April 07th 2010

Dave's got a new blog

Tags: project news Written by Dave Barker

Well hello and welcome to the fresh new blog. I wrote it using web.py, couchdb and python.

It’s looking pretty nice, comments are outsourced to Disqus. It’s all pretty simple, I am quite pleased with it though.

It now means I can quick edit code samples by adding a <code> tag around the sample. It escapes everything and renders it in a <pre> tag when being displayed and it even highlights everything using the prettyfier Javascript module.

(Doesn’t sound like much but in Wordpress I had to add an I-frame to each code post by hand, save the code to HTML with Emacs, upload the html and reference the file for the I-frame. It was the only way I could stop Wordpress from fucking up my code let alone getting it to display properly.)

Everything is stored in Couchdb, the URL’s are sensible, it’s all under my control and I generate an atom feed using libxml.etree.

I spent a while getting Nginx forwarding on all the old URLs properly. Also I have added some nice features to the admin system so it’s easy for me to maintain everything.

After writing it though I got thoroughly annoyed with Python, I’ve decided to go back to learn Clojure, I’ve just bought a copy of Programming Clojure and in a few months I expect to re-write everything using that.

So anyway all the code is really messy for now but it works nicely and most important of all It’s not wordpress.

Let me know if something breaks, if an old URL doesn’t work or if there are any issues :) Also if anyone is interested how I coded parts of the blog just ask and I can explain.