Getting started with backbone.js

April 27, 2012

I want to built a client side application (one that runs in the browser), making use of data supplied from my server via json. This app will perform mathematical calculations on the data, and by doing this I move the load to the client, distributing it amongst all my users ...

Python String Diffs

March 17, 2012

One of my websites provides users with the ability to put up a textual profile, and they can edit it at any time. I wanted an easy way to see what changes had been made.

The source strings are paragraph based - a carriage return is only at the end of ...

Ubuntu xorg.conf

February 9, 2012

Recent Ubuntu distributions don't use a physical /etc/X11/xorg.conf file by default - they detect everything at runtime. If you need to set some settings yourself in xorg.conf, this is problematic. To override this behaviour, you need just create a new /etc/X11/xorg.conf and this ...

celeryd init.d

February 9, 2012

I was having trouble getting celeryd to work started from an init.d script. A sample script is provided by the celery project at https://github.com/ask/celery/blob/master/contrib/generic-init.d/celeryd, and I had the following in /etc/default/celeryd:

CELERYD_CHDIR="/home/tjs/web/bbr/bbr ...

HttpClient v3 Logging

February 7, 2012

To enable logging for Apache, HttpClient 3 set the following system properties in your code, and include the commons-logging jar file.

System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
System.setProperty("org.apache.commons.logging.simplelog ...