Recent Posts

Letting ssh remember your passwords

If you're like me, you ssh into the same small set of machines over and over. Maybe sometimes you run commands that sit on top of ssh, like scp for file cop...

YSlow 80/20

I spent some time this week optimising a new site, specifically looking at some of the YSlow recommendations.

Quick and dirty Ajax on any FORM

I have been trying to write as much unobtrusive javascript as possibly lately. Mainly this means getting everything working without any javascript in the pi...

Unit testing Django with doctest

There are two main ways to write tests in Django; doctests and unit tests. Units tests will be familiar to you if you're coming from Java. You basically wri...

Django - Externalize settings.py

In Django, settings.py is where you store configuration such as database connection strings, directory paths for static and media resources, as well as cach...

Python/Django: First Impressions

I've started a brand-new codebase at work. With new code comes the possibility of a new language/platorm. What we really needed was speed; we don't know exa...

Name resolution failure caching in SMB

If you have a production file server failing, you have serious problems. Client requests are failing. But they may not be failing quickly. If your product i...