— Huy Nguyen

I'm young and still trying

Archive
Tag "jquery"

I realize I like to hack stuff. I spent more time to write small programs that automate the work I encounter. Below is one of the examples.

We recently organized an TEDx conference. 1 requirement of the conference: each speaker is only given 18 minutes to speak. So we must put a count-down clock in front of the speakers to remind them how many minutes they have left.
And since we have no such specialized digital clock, I decided to write a small script to facilitate.

How the page looks like

How the page looks like

Took me 30 mins to come up with the first version. Andrew took over and customize the script to allow specifying minutes and seconds through query string (thanks Andrew!)

You can try out the script here (though you might not see exactly in the picture since you don’t have the correct font): DS-Digital. You should try in the full-screen mode (keypress F11).

During the conference, we put the script in a 17″ computer facing the speaker and start it every time the speaker start his speech.

For those of you who are techie, you can download the source code (or you can just view source and see, it’s just some HTML, CSS and JS).

Thanks date.js, jquery, stackoverflow for the great help!

Read More

So I was bored… not exactly bored but I felt like there are so many small things that I thought I could have done, but in the end, they were never got done. Why? Because everything I started working on that, either I gave up, or either I felt I spent too much time (more than expected) on that.

So there it goes, the simple game BomBom is born in 3 hours.

After playing a game which I can’t remember the name on Mo Hao’s iPhone, I was really addicted to it. I thought I could have done something similar. Now I did. The game is about stopping a sequence of boms to be exploded by touching it one by one.

I, however, did not manage to find a nice pair of normal bomb / exploding-bomb image. So I just took 2 tick and cross image to replace. I felt it’s not that fun compared to MoHao’s game in term of graphics and time deplay. But since his iphone is on vacation (read: maintenance), I would wait for it to come back and play the actual game again.

OK here is my game: BomBom

The rule is simple: you have to press the correct sequence of the bombs appearing (the bottom left is number 1, bottom center is 2, etc.. — its exactly the numpad on ur PC keyboard)

If you’re using PC (or a PC keyboard), use ’123456789′ key on the right numpad. If you are using laptop, check the “Laptop mode” and your keys are: ‘zxcasdqwe’

I intended to make it on java with swing at first, but thinking about the javaswing with netbeans scared me a lot. I decided to choose web platform with jquery. And that was really easy. most of the 3 hours counted is dedicated to searching for the correct jquery and javascript command and syntax to use T_T

Read More