Capturing SIGINT in multithreaded python

Multithreaded Python scripts doesn’t always respond to signals. This is because it is not defined which thread will receive the signal. Also, it seems that if a thread is sleeping the signal might be interrupted altogether. The sympton of this that I saw the most often was that the script deadlocked and had to be [...]

System freezes in Ubuntu 7.10

I installed Ubuntu 7.10 on my stationary machine in an attempt to get it into a more working state, and I was very unhappy with the 7.10 version. The system kept freezing completely and not even the system recall key combos worked. After experimenting a bit I noticed that it happened whenever the machine was [...]

iSync plugin for the Sony Ericsson w910i

UPDATE: See this page for the latest version. I got my new cellphone yesterday and everything was bliss. I was happy. Everything was just great. I was impressed by the nice feel of it, the responsive interface and the form factor. Today, I wanted to transfer the contacts from laptop to the new phone and [...]

Running java 5.0 code on java 1.4

Today I had one realization. The customer is running OS X 10.3, and apple doesn’t officially support java 5.0 for anything else than OS X 10.4. I remembered having read that it is possible to do cross-compiling with javac. However, the cross compiling just means that you can link against the class files from one [...]

How To Force Eject a CD or DVD on a Mac

If you ever end up with a CD or DVD stuck in your Mac, and you can’t do a mechanical force eject because you don’t actually have a hole in which to poke your cdrom-drive through, you are still not without hope. The trick is to do a cold start with the computer (shut it [...]