Twitter feed wall – great for projectors

January 21st, 2009 § 3 comments § permalink

Inspired by http://twistori.com/. I wrote a generic tool which will allow people to setup a simple wall where people can post and it will automatically refresh. I built this tool specifically because it was needed at proto.in. I am very sure it will be useful to a lot of people out there.

Uses JQuery and a Queues for javascript library. Maybe someone can do some transition magic with it, i am still a javascript n00b :) .

Here is the complete source code and demo. Please forgive the lack of documentation.

First wordpress plugin : Kwippy poster 1.0

January 19th, 2009 § 4 comments § permalink

Just created my first wordpress plugin, from concept to implementation in 3 hours :D . This plugin basically posts an update on kwippy when you publish a new blog post. This can be a good tutorial for someone trying to build their own plugins actually. Enjoy.

Updated:
Official WordPress plugin page :
http://snipper.in/86

The Screen Savers! – NES PC

January 19th, 2009 § 0 comments § permalink

Very cool … though i seem to be nearly 4 years late.

Nginx + django fcgi lessons

January 19th, 2009 § 2 comments § permalink

Today was a good day as i learned some valuable lessons about django and nginx.

  1. ALWAYS close the database cursor in django, it can lead to some pretty wierd memory issues going forward.
  2. FIND the most optimal number of database connections you initialize for you connection pooling. This will let you optimize on memory going forward.
  3. ENSURE that you do not set a very high client_timeout, this means that if connections are not explicitly not closed by the client then the web server will not timeout. This results in bad memory behavior for the fcgi threads.

Well, this has solved my major issues with respect to kwippy. Also learned that GIFs are very fundamentally different than JPEGs which results in a lot of problem when used in the python imaging library. All in all a good day :D .

Microsoft remote terminal from linux

January 19th, 2009 § 0 comments § permalink

I know it would be simple for a lot of people reading this blog :) . But the easiest way to remote desktop into a windows machine using a X based linux distro is to install rdesktop.

http://www.rdesktop.org

For ubuntu and debian based distro, fire up the console and type

sudo apt-get install rdesktop

This would install the client.

rdesktop <server IP/domain>

This would fire up the windows remote desktop stuff.