Archive for the ‘Uncategorized’ Category

About a year ago, I wrote about daemonizing some python script for a web application. Today I encountered similar problems when I was fixing some migration issues when we retired an old server and moved some services to a OpenVZ container. Technology moves fast. What was large now has become small. Data that would have required a dedicated computer cluster to crunch years ago would now be processed quite comfortably on a single virtual machine. We decided to replace our qsub-based approach by running the job locally. It was as simple as replacing the qsub command by bash, plus the extra effort to daemonize the script so that it won’t hang our web application.

Looking for a quick fix, I thought about nohup. After a failed attempt, I discovered a recipe to make it work flawlessly. That is so simple and handy, and can replace become_daemon in django.utils.daemonize for many of my needs.


Read Full Post »

I am loving snow

Coz it’s light!
Picture 1Screen shot 2009-09-24 at 8.08.54 AM

Read Full Post »

I wanna surf the web on my TV, sitting in my couch. However, I hate to carry a full-size keyboard. Maybe a remote control is the ultimate choice, but a small wireless mouse plus a on-screen keyboard is the easiest to implement.

GOK is the first thing I found. However, it was too “advanced” that I could not figure out how to use it for my simple application. A post on the Ubuntu forum showed that it confused more than just me. Luckily there are alternatives like SOK and the old but simple xvkbd.

Read Full Post »

Work and life

Insightful insightful insightful

Read Full Post »