Latest Blog Entries
Setting up a template_postgis on Lucid
I wasn't able to find instructions in the Django docs for setting up a template_postgis database with postgis-1.5 and Postgres 8.4 on Ubuntu Lucid (10.04). Below is what worked for me. GeoDjango installed via Ubuntu 10.04 packages #!/usr/bin/env bash POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib createdb -E UTF8 template_postgis # Create the template spatial ...
Bitten by Python's Pass-By-Reference
I just got bitten by an interesting bug related to Python's pass-by-reference feature. I had a class method (my_method) with a keyword argument (my_kwarg) that defaulted to {}. I thought that each time my_method was called, if my_kwarg wasn't passed then it would default to an empty dict. In reality, ...
Provisioning a new Ubuntu server for Django
I've been a long-time satisfied user of Webfaction, but recently I've had a strong urge to move to VPS hosting so that I can have greater control over the environment. After some research, I went with Rackspace Cloud because of the incredibly cheap low-end options. My site doesn't use a ...
Using virtualenvwrapper to start processes and swap config files
I do my Django development work locally on OS X, so I have several different daemons installed on my machine. I used to keep Postgres, MySQL, lighttpd, memcached, and more set up to autostart and run continuously, but I didn't like the burden on performance (real or imagined). Also, I ...
Dynamically Updating IP Addresses with Update-ip
A couple of years ago, I write a post including a snippet to automatically update your DNS overrides with WebFaction. That script served my purpose well until I moved to an ISP that gave me a static IP. Recently, though, I moved to a new apartment and signed up for ...
Twitter Activity
- @brosner Yup, same for me on Echofon's 'maintain position'. It's rather annoying.
- uWSGI is great! I'll be moving Pegasus to it next week, so I'm doing some benchmarking in dev. It's performing fantastically!
- Can't code anymore - coding requires keeping your eyes open and that's too much of a challenge for me right now. 1am is definitely bedtime.
- @nomadjourney Nice - let me know how it goes. I've been keeping an eye on that and Riak - both look really interesting.
- @jdunck It is for now, but to keep the downtime minimal I'll be moving it over to 02 or 03 while I upgrade 01.
Shared on Google Reader
-
Eric Holscher: Large Problems in Django, Mostly Solved: Delayed Execution
[This is part of the Large Problems in Django Series, see previous entries about: Documentation, APIs, Search, and Database Migrations] A lot of Django applications have tasks that they need to perform out of process. When you are executing a ...
-
America vs Soccer
You can learn a lot from soccer. One day Will took a bite of Raf’s sandwich. Raf immediately went down holding his face and started rolling around in agony. Ray saw Raf on the ground and immediately booked Will with ...
-
Minor Differences
A short list of minor differences that aren't really that minor. View
-
Andy McKay: Using Arecibo and Django, the easy way
So you've got your Django project on the production server. Want an easy way to track the errors in Django? The existing Django package is pretty easy to use, but it doesn't get much simpler than this: add in your ...
-
Freelance Freedom #161