Programming Blog

Programming related articles.

Create thumbnails for an ImageField in django

Django does not provide any standard way of organizing thumbnails. Even though community has some applications to work with thumbnails, they are usually over kill if You only want to create a thumbnail for an ImageField. So here is my solution to handle thumbnails...

Truck game: A javascript game that uses svg animations for movement (firefox only)

The other day my wife and I were looking for an educational game to teach our son how to use a computer. Unfortunately most of the games on the internet were a little too competitive for our purposes. So I decided to roll my own.

It is a javascript game that uses svg animations for movement. Unfortunately game is using some of the firefox specific methods, so it is only working in firefox right now. But I will fix it as soon as I have some spare time.

Anyway here is the game. Source code can be found in github.

Create a default django development environment on python virtualenv

Recently, I decided to build my development environments on a python virtualenv, so project dependencies will not clobber global python path. Here is how I start a default django project from scratch...