I build software with Python & Django. Every day. All day long.

Shallow Copy Incidents 

How a Simple Bug Cost Me One Week of Sleep

I didn't sleep well recently. I'm one of the organisers of PyCon SG 2013 and specifically it is my task to maintain the website. Since the conference will be held very very soon, we are approaching a hot phase where everyone's hard work has to come together ...

OSX Django Toolbelt 

Everything You Need to Build Django Apps on OSX

Every time I mentor someone about web development with Django, we spend countless hours setting up his or her development machine. I'm getting sick of it, so I thought I might write it all down.

This post will help you to setup a fresh MacBook in such a way ...

Pelican and Github Pages 

Blogging on The Shoulders of Pelican, Markdown & Github Pages

One year ago I blogged about Pelican and up until today this remains the most frequented post in my blog. However, in the meantime Pelican got two major version bumps and is much more powerful now (and easier to use). So let's see how to setup your blog with ...

Django GFKs & Factory Boy 

Test Models with Generic Foreign Keys and Factory Boy

Let's say you are writing a reusable Django app and your app has a model with a generic foreign key. An example could be a messaging app where messages can attached to any other object (when you think about Facebook, a message can be sent to another User, or ...

Manage Twitter Bootstrap 

How to Manage Twitter Bootstrap. The Sane Way.

Without any doubt, Twitter's Bootstrap is awesome. So far I am using it in more than 10 projects and I don't regret anything.

Unfortunately, Bootstrap has one major flaw: You can't really add it to your project and manipulate it, without editing the source files. Bootstrap offers ...

Solr & Supervisor 

Daemonizing Solr on Webfaction with Supervisor

A while ago I wrote how to daemonize Solr on Webfaction with Circus .

Unfortunately this solution has not proven to be as stable as I wished, plus I think there is a security issue because in theory other Webfaction users on the same machine could communicate with my own Circus ...

RE: Developer Time 

My Answer to Daniel Greenfeld's Post

I just came across Daniel Greenfeld's post about Developer time and when I was halfway entering my reply into the comment field I realised that this might be worth a blog post on it's own. So here is my two cents:

I believe that there are good ways ...

Fixing Mountain Lion 

Fixing OSX 10.8 after Mountain Lion upgrade

Out of habit I opened the AppStore on my MacBook Pro yesterday and found a big fat new app in the spotlight: OSX 10.8 Mountain Lion. I paid my 15 bucks, downloaded the 4GB over night and started the installation this morning. It estimated 34 minutes to install but ...

Solr & Circus 

Daemonize Solr with Circus 0.5 on Webfaction

Since Webfaction increased the available memory from 40 MB to 250 MB I started using Solr for more and more of my projects. However, I never really knew how to ensure that Solr restarts itself if it crashes and how to easily stop and start it in case I have ...

StartSSL and Webfaction 

Installing Free SSL certificate with StartSSL and Webfaction

For my next big project it will be mandatory to use a SSL certificate for the web application. I have never dealt with SSL before, so I am going to take some notes here. Let's see how it goes...

I chose StartSSL because they offer a free certificate.

I ...