devadutta.net
Welcome to 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!

Featured Content
Words Quiz
Birthday Reminder
Greasemonkey Scripts
Older Posts

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”.

Experiments with Hydrogen

Hydrogen is a free and open source drum machine for multiple platforms. Since I have used Fruity Loops quite expensively, I decided to give Hydrogen a shot and came out with this decent piece of drum loop in about 15mins.

You can listen to it here

The software is quite impressive but far from perfect.

Pros:

  • Does a decent job.
  • Free!

Cons:

  • Very few inbuilt drumkits
  • Synthesis is limited to drums and does not have other instruments and the output audio quality is not as good as Fruity Loops.

But still, I like it and really appreciate the effort put in by the developers to deliver a free and open source music composing experience!

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!

 Continue reading >>
 
mallika sherawat ge battena?