The Infamous Rice Disaster of 2010
Amount of rice on the counter and floor: Amount of rice in the measuring cup I was aiming for: Fail.…
Brandon KonkleAmount of rice on the counter and floor: Amount of rice in the measuring cup I was aiming for: Fail.…
Brandon KonkleI've always loved the concept of class-based views because views often become repetitive. There are a lot of common operations in a view that work best when they are defined once and reused. Class inheritance, in my opinion, is the best way to keep views DRY and allow you to focus on what makes…
Brandon KonkleI recently moved Pegasus News [http://www.pegasusnews.com] from Perlbal, Lighttpd, and Apache to Nginx and uWSGI. We balance the traffic between 3 physical servers, and the systems were struggling under the load even after weeks of Apache conf tweaking. We began having issues with excessively slow p…
Brandon KonkleI 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`/cont…
Brandon KonkleI just got bitten by an interesting bug related to Python's pass-by-reference feature. I had a class method (mymethod) with a keyword argument (mykwarg) that defaulted to {}. I thought that each time mymethod was called, if mykwarg wasn't passed then it would default to an empty dict. In re…
Brandon Konkle