Archive for January, 2008


Emacs for OS X Leopard

I have been using the text mode emacs up to now. On Windows (yikes!) I uses the xemacs with windows extension, which is pretty nice. Quick googling found me Carbon Emacs. It has been updated, universal binary and Leopard. Highly recommended !

gettext on Leopard for Django Internationalization

I started working on one of my internationalized applications on the new Mac. I realized I did not install “gettext”, which is required by the make-messages and compile-messages scripts. I want to avoid installing things into OS X if I can. Then I found the easy way out:
1. Install poedit for os x. I need […]

Fighting spam in wordpress by bulk deleting comments awaiting moderation

I have lots of spammer breaking this blog and submitting comments. They are all held for moderation (i.e. delete). But deleting them using the wordpress admin interface manually is painful. Sometimes I let the comments build up, and then I end up having too many of them in the system. The admin interface cannot […]

Unresponsive Keyboard on Leopard

I started using Leopard, and I swore my keyboard froze once in a while. I thought it was iTerm or something. Until this morning Apple software upgrade told me that there is an upgrade, and it solves the problem. So I was not seeing things. It was a bug! Read and download the update here […]

Django on Leopard

Part of the reason I was waiting to switch from using Windows XP (gasp) as my Django development platform to OS X is that it is actually easier to install the platform on XP. Windows does not come with any of the tools, so it was a matter of installing the version that I need. […]

Django 0.96 Internationalization

I am trying out Django’s i18n support and found a few issues. This only applies if you are using newforms and Django 0.96.
Order of Middleware
First, the order of the middleware is important. It is defined in the documentation, but I missed it the first time around. You have to put the localeMiddleware after SessionMiddleware:
MIDDLEWARE_CLASSES = […]

Snap Circuits SC 300

My love of electronics and computers, which defined my career, can be traceback partially to having a electronic building block toy when I was very young. Back then, we do not have Snap Circuits. The toy/kit that I had was more powerful and less user friendly. You can only buy that kit as a specialty […]