Django: field type ImageField + PIL

December 31, 2008 § 3 Comments

When using Django model’s ImageField, you need to have Python Image Library installed.

If your machine is Linux, easy job. Simply do the typical: wget, configure, make, and make install.

If your machine is Intel OS X… not so easy.

The configure script assumes that the OS X is using PPC architecture, thus make install would fail.

Luckily, folks at provided a nice installer for PIL. You can get those here. It works for both Tiger and Leopard.



Erlang: TextMate bundle

December 28, 2008 § 1 Comment

Here’s a simple shell script for downloading and applying TextMate bundle for Erlang. I found it, here.


SVN=`which svn`

echo Changing to Bundles directory...
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles

if [ -d /Library/Application\ Support/TextMate/Bundles/Erlang.tmbundle ]; then
echo Erlang bundle already exists - updating...
$SVN up Erlang.tmbundle
echo Checking out Erlang bundle...
$SVN --username anon --password anon co


echo Reloading bundles in TextMate...
osascript -e 'tell app "TextMate" to reload bundles'


One year after I look away from Java World

December 26, 2008 § Leave a comment

A lot of interesting projects are happening in Java world.

First, is the highly celebrated Hadoop. For those who don’t know it’s open source distributed file system and map-reduce implementation.

Scripting languages such as Groovy, Jython, and JRuby are also gaining more popularity. Although, it’s kind of hard to google real world usage of these scripting languages.  

There is also a simpler open source web server project called Simple. For those who build web application using PHP, Ruby or Python, Simple makes sense immediately. It integrates well with Velocity Templating Engine, a powerful and yet POJO based system.

All these projects use java in a different manner than what you would expect in Enterprise environment, it’s exciting.


Just created my first open source project

December 18, 2008 § 2 Comments

It’s called Super Simple Message System.


For multiple obvious reasons, it will not scale to withstand the hailstorm of internet users.

What does it do:

It allows server-side machines to send string messages to each other.

Why did I do it:

To illustrate various concepts like:

  • Web service
  • Messaging system
  • How to build a complete application in 4 hours using Python.
  • What does it feel (for me) to host an open source project.


Backing up using S3

December 12, 2008 § Leave a comment

Two days ago, my MacBook’s hard drive failed. Lucky things are backed up using time machine.

But there’s a new problem, the backup drive is running out of space. Damn.

This post is the answer to my problem. Just backup using S3 (The cost concerns me a bit, but that’s a different issue).


OS X Maintenance

December 12, 2008 § Leave a comment

The author compile a list of quick and easy things to do for maintaining Mac OS X.

Side Note:

  • It seems that MacJanitor does something extra beyond periodic command.


RubyInline: Optimize your ruby in C

December 11, 2008 § Leave a comment

RubyInline is a gem package that allows rubyist to write functions or blocks.

Perfect for optimizing a lot of loops.


Where Am I?

You are currently viewing the archives for December, 2008 at RAPD.