devadutta.net

BoiledBeans Scanner

Ever since I saw the “Annotated Time Graph” on Google Finance, I wanted to use it in one of my projects. Finally, I got a decent scenario to use the visualization.

BoiledBeans scanner plots all questions ever posted on bb based on their difficulty levels. Check it out here

Clipboard02

The backend magic is delivered by SQL and php and front end is of course powered by Google Visualization API.

Please tell me how it is!

KapaLa Moksha – Quiz Buzzer

A few months ago, I conducted a Kannada quiz for the Sacramento Kannada Sangha. Since people were fond of buzzer rounds, they requested me to have one. I hate buzzer rounds because it is very hard to arbitrate who hit the buzzer first. To solve this problem, I rigged up a micro-controller based Quiz Buzzer which talks directly to a computer via RS232 and clearly displays which team hit the buzzer first! Since we had a huge screen and a projector set up at the location, the entire audience could see the team number as soon as someone hit the buzzer.

I got some overwhelmingly good response for the buzzer and I decided to make it available for download.

KapaLa Moksha — Quiz Buzzer v0.1

Features

  1. Supports up to 8 teams
  2. Communicates with a computer via RS232
  3. Windows software which displays team number on screen is included
  4. Additional LCD display which shows team number and other debug data

Hardware requirements

  1. PSoC CY3210 PSoCEVAL Kit. I had this kit from a course I had taken in grad school. The PSoC is a very versatile platform and facilitates rapid implementation on hardware, which is exactly what you are looking for when you are trying to rig a project in 3hours.
  2. A computer with a RS232 port
  3. Lots of wires and n* push button switches

*n = number of teams < 8

Thats it!

Downloads and implementation instructions

  1. Get the kit and connect n switches between Port A ( or whichever posrt you choose to make the input) and ground.  Should look something like this
  2. dscf3521

  3. Download and burn HEX code availabe in the C source code package under the folder quizBuzzer\output\quizBuzzer.hex onto the PSoC chip. Or you can open quizBuzzer.soc in PSoC Designer(comes with the kit, or you can download it from www.cypress.com )
  4. Connect to a computer with an active RS232 port (NOTE: otherwise, the program will crash) and run this program
  5. Hit reset and press one of the team buttons. You will hear a buzzer sound form the computer and the team number will be displayed! Screenshot below

moksha1

 

The thing is really nifty and can make audience very happy!

The Name: KapaLa Moksha in kannada stands for “One tight slap”.

bash emulation using Mootools

We recently posted our 500th question on Boiledbeans and to celebrate, we conducted a Live Quiz Contest.

I built a neat bash like interface for the quiz using Mootools ( and of course, Javascript and HTML ) and people really liked it!

Take a look at it here!

Screenshot:
bbterm

I am planning to make the code public in a while. Since the quiz is still alive, I cannot release it immideately.

Happy New Year!

Wish you a very happy and prosperous new year!

I was at my friend’s place yesterday for new year celebrations and we needed a random number generator to play bingo. Instead of writing numbers on chits and picking them up, I hacked together a random number generator using Javascript in about 15 minutes, which looked like this:

bingobaby

I used a simple hash to see that numbers did not repeat and It actually worked pretty well.  I was delighted at Javascript’s utility at non geek parties!

Here is the code:

<!-- Devadutta Ghat, last piece of code written in 2008 ;) -->
<html>
	<head>
		<title>Bingo Baby!</title>
<script type="text/javascript">
var gblHash=new Array();	
function getNewRand()
{
	return (Math.floor(Math.random()*99)+1);
}
function getRand()
{
	var ilm=getNewRand();
	var i=0;
	while(gblHash[ilm]==1)
	{
		i++;
		ilm=getNewRand();
		if(i>=100)
		{
			alert("All numbers done!");
			return;
		}
	}
	gblHash[ilm]=1;
	document.getElementById('randomNumber').innerHTML=ilm;
	document.getElementById('drawnNumbers').innerHTML
		+=(" "+ilm);
}
</script>
</head>
<body>
	<div id="randomNumber" style="font-size: 150pt;">-1</div>
	<input type="button" onClick="getRand();" value="Clicky!">
	<div id="drawnNumbers"></div>
</body>
</html>

And here is a demo

Enjoy 2009!

What’s the good word?

This is an English quiz, written in PHP. You can play this to improve your vocabulary and prepare for tests like the GRE or just to have some fun.
NEW!! Updated to the Barron’s GRE word list!! Has 4816 words in database!
Click on the image to start playing

I had originally coded this in 2005 when I was preparing for the GRE. Although the wordlist I have had (now with Barron’s word list) is not very good, the game is not bad. It did help me in the beginning.

This release is officially version 1.1
Change log:

  1. Based on the Barron’s GRE wordlist
  2. Fixed the n+1 question error
  3. Fixed the random hack which could be used to get 10/10 each time
  4. Changed the copyright to 2007 only in the result page :)

Coming up:

  1. Better wordlist Already up!!
  2. Ajaxification :)
  3. Better AI in picking the wrong choices
  4. Synonyms, antonyms, example usage and more!!

Greasemonkey Script to type in Kannada

What does it do?
Simple. Lets you type Indian language kannada in any textarea box on a webpage.
You can toggle between English and Kannada keyboards using F12.

Wow! Where do I find it?
here http://userscripts.org/scripts/show/10251

What about tamil, telugu, marathi, bengali?
Coming soon!!

What license?
All code not marked with the (c) Monusoft is released under GPL version 2 or higher.

Does it work?
Of course yes!
Tested on blogger,orkut,gmail,livejournal,facebook and many such sites.

Where can I find the keyboard layout?
Here ( Click to enlarge )

Thanks to http://vishalon.net http://monusoft.com

rot13 — Text area encryption

This Greasemonkey script encrypts the contents of a text box on a web page using the rot13 cipher at the click of a button.
If there is a clean text box on a page, the e13 button pops up next to it. Click on it and the text inside the box will be rotated by 13.
well, here are some examples of the operation

Get the scripts here
http://userscripts.org/scripts/show/9234

Note:
You will need Firefox and Greasemonkey to be able to run this script.
Get Firefox here
Get Greasemonkey here

Here is a related post which explains how to install Greasemonkey.
Comes with absolutely no warranty.

Introducing: Node Gravity

nodeGravity is a novel way to visualize web-site statistics which I had devised sometime ago.
Each article on this page falls into a category like downloads, news, projects etc. nodeGravity uses the number of visits to that particular category and the number of nodes in that category to render and visualize web stats according to Planck’s black body radiation and Newton’s Law of Universal gravitation.
Here is an example

Simple interpretation of the stats are this

  • Each category forms a star.
  • The size(mass) of the star is based on the number of nodes in that category
  • The color of the star tells us how quot;hotquot; the current category is with the visitors.
  • Hotter a star, the color will be more towards the blue. It means, that this category is currently getting a lot hits.

The color is calculated using Plank’s black body radiation laws, which says that the hotter a star is, the lesser the wavelength of the emitted light will be.
Newton’s Law of universal gravitation comes in to associate energy to each node, based on its mass and number of visits.

Hope you enjoy it!
copy; Devadutta D Ghat, 2007

jam mASHtra: Automatic JAM ( Just A Minute ) Timer

jam mASHtra: Just a minute mastering ashtra ( Asthra in sanskrit means tool)

Last year, for Udbhav at MSRIT, I conducted a Kannada Jam competition. The day before the competition, I was worried that no one will turn up for the competition. I thought it would be a flop. But to my surprise, the event saw a full house audience. I was forced to finish the competition by the admin staff since I had exceeded my time slot, but the audience did not listen and forced me to conduct it for some more time!
It was a thrilling experience.
One of the reasons behind the success of the event was, jam mASHtra.

jam mASHtra: Is an automatic and easy to use jam timer. I coded this the day before the event just to save myself from keeping insane jam logs for each participant.

jam mASHtra is very intuitive to use and if you know how to conduct a JAM, things will simply flow.

Downloads:

(Yes, the name is multiplexed )

Gallery gets a new interface!

In a lightning speed hack, I changed the interface to the gallery and it looks surprisingly good. A sneak preview is shown here

You can visit the galley section to check it out.
quot;The dayquot; is here! This update is a part of the celebrations.

 
mallika sherawat ge battena?