Category Archives: Uncategorized

lazy-loading class-based-views in Django

So one of the nice things with method-based views in Django is the ability to do this sort of thing to load a view at the path frontend.views.home: urlpatterns = patterns( ‘frontend.views’, url(r’^$’, ‘home’, name=’home’), ) Unfortunately, if you’re using … Continue reading

Posted in Uncategorized | Comments Off

A libnss plugin for Docker

So we’ve been starting to use Docker at Infoxchange. A little while ago my Infoxchange colleague Ricky Cook wrote a Twisted service to resolve Docker container names into their private IP addresses. I thought this was a pretty neat idea, … Continue reading

Posted in Uncategorized | Comments Off

Writing your first web app using Python and Flask

I presented a tutorial at linux.conf.au a couple of weeks ago on what there was for Python developers between CGI scripts and Django. That developers needn’t still be writing CGI scripts in 2014 (it happens) and there were frameworks that … Continue reading

Posted in Uncategorized | 2 Comments

Testing sites with beforeunload and Lettuce/Cucumber

I recently added a beforeunload event handler to a site I’m working on, which instantly caused a regression of the entire Lettuce test suite before they got stuck on a “Leave this page?” dialog. We reuse the same Selenium browser … Continue reading

Posted in Uncategorized | Comments Off

vim + pathogen + git submodules

As part of PyCon Au this weekend I did a lot of hacking on my laptop, which is not something I’ve done for a while, given how much I used to hack on my laptop. I was frequently getting annoyed … Continue reading

Posted in Uncategorized | 3 Comments

free as in gorgeous

I’m at PyCon Au.1 I made it this year. There were no unexpected collisions in the week leading up to it. I decided at the last moment to do a lightning talk on a piece of Django-tech I put together … Continue reading

Posted in Uncategorized | Comments Off

calling Melbourne Python and Perl programmers

For the last couple of months I’ve been working for Infoxchange, a not-for-profit that provides technology to other not for profit. I’ve been working in the webapp development team, where we mostly work on webapps in the health and community … Continue reading

Posted in Uncategorized | Comments Off

First thoughts on RedHat OpenShift

I’m looking for a PaaS provider that isn’t going to cost me very much (or anything at all) and supports Flask and PostGIS. Based on J5′s recommendation in my blog the other day, I created an OpenShift account. A free … Continue reading

Posted in Uncategorized | 6 Comments

Extending geoalchemy through monkeypatching

I’ve been working on the data collection part of my cycle route modelling. I’m hoping that I can, as a first output, put together a map of where people are cycling in Melbourne. A crowd-sourced view of the best places … Continue reading

Posted in Uncategorized | 4 Comments

scratching my own itch [or: why I still love open source]

I’m visiting my parents for the long weekend. Sitting in the airport I decided I should use my spare time to write some documentation, so sitting in the airport was the first time I’d tried to connect to work’s OpenVPN … Continue reading

Posted in Uncategorized | 3 Comments