Win a Samsung Galaxy S4 at TechQuark.com

TechQuark is giving away a brand new Samsung Galaxy S4 International Version to one of our lucky readers. The Samsung Galaxy S4 has already lived up to its predecessors and has received a great response and reception in the market upon its arrival and the success story seemed to write itself.

It takes 20 seconds to do the activities and you can earn your chances to have the great phone in… Continue reading

[How to] Write a code to score 39 with 3 stars in Google doodle basketball (cheat sheet)

Today again it was pleasant surprise by Google on Basketball day, they posted a doodle to let us play basket ball. And again I thought to use the same code which I used yesterday [see here]

So my best score achieved with manual results was “33”, and with my code my best was “39”.

Here goes my code:

 
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>
Display *display;
unsigned int… Continue reading

[How to] Write a code to win Google doodle hurdle game (Cheat sheet)

Today it was exciting day when I saw everyone playing Google doodle game “Hurdle” So I also tried and got my best as 10.7.

But then I realized that if I can automate keypress events I can reduce lots of efforts, Thus I started writing and finally came up with following code

 
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>

#define PRESS_UP 0
#define PRESS_DOWN 1… Continue reading

[Review] Terminator – The Tab’s Alternative

Bad Bad Tabs!

I think the Gnome-terminal developers thought, “Well, if browsers can have tabs, why not a terminal”. I wanna ask them “But boss! What’s the use?”.

Tabs are cool, but they are cool just for the browsers, where I do not have to monitor the activities on several web pages at once. But that’s not the case with the terminal. I will go nuts… Continue reading

[Programming] Solving Facebook’s Hacker cup 2012 Alphabet soup

This particular question was easy yet many people failed to do this correctly. So that motivated me to upload my solution on this blog.

You can go and visit http://www.facebook.com/hackercup/ for solutions online of other participants.

 
As Said:
The Facebook Hacker Cup is an annual worldwide programming competition where hackers compete against each other for fame, fortune, glory and a shot at the coveted Hacker Cup.
&nbsp… Continue reading