Recent Posts

Django: show me the sql!

This week, I noticed that there was a select query in our production system without a where clause, and it was running a lot. Tracking it down, I found the ...

cat to syslog

Ever wanted to submit the results of regular command-line tools to syslog? Logger lets you do that. Here is an example of logging CPU load and vmstat into t...

Sanitize HTML with Beautiful Soup

If you have a website that displays user-generated HTML (emails, rich text entry, etc), you likely want to scrub that HTML before you display it. At the ver...