Techno

things which came out my laptop

Tell Your Friends How Many Seconds Are Left in the Decade

I got this idea from goggle new year seconds counter, I decided to set my pidgin status to showing seconds are left in the decade.
After bit of goggling found a command-line program called purple-remote that allows me to automatically update the Pidgin status and message lines. The purple-remote program is included in the libpurple-bin package, make sure you have it installed.


sachin@sachin-laptop:~/Utility$ sudo apt-get install libpurple-bin

Here is small script that does this trick.

sachin@sachin-laptop:~/Utility$ gedit hny.sh

add text as follows:

Save and make it executable as follows:


sachin@sachin-laptop:~/Utility$ chmod +x hny.sh

time to run script every second with watch command.

sachin@sachin-laptop:~/Utility$ watch -n 1 ./hny.sh


DONE!!!

Screenshot:


HAPPY NEW YEAR to all.

Update:
after few requests I am writng cross platform utility which will do this trick:


You need to get the Smack API which is an open source, pure Java library for working with XMPP (clients only). The API can be downloaded from smack, .Just download the appropriate libraries and put the JAR files in your classpath. If you can’t figure out how it is done, please Google your way around.

Enjoy…

Comments

pravin
Superb Yaar!!!