Blog

I was just editing some reStructuredText content for my website when Django threw a strange error at me. Values instance has no attribute 'default_reference_context' What was really bizarre is that exactly the same rst content could be published as HTML just fine in a test script: from docutils.core import publish_parts … more

Here's a little snippet for cache busting without abusing a query string which can lead to caching problems. The example below will rewrite paths like /css/foo_20130401-5.css to /path/to/static/css/foo.css on the static.example.com host. more

It's been more than two years that this site has been running on Django, but I had never gotten around to making really good RSS feeds. Some entries didn't contain the relevant content, others didn't format it properly, etc. Fortunately I have learned enough about Django by now that it … more

Django has a {{ spaceless }} tag that's a little too greedy for my taste. Removing all whitespace between HTML tags can actually change what the browser renders, so here's a less greedy variant. However, it removes all whitespace, not just between tags, so if you use the pre tag … more

So I got myself a new keyboard. It's an Apple MB110 (D/B variant). Works flawlessly in xorg after configuring it. more

Facebook likes

2013-01-24

I want to change my permalink structure, but I will lose my facebook like count. Any way to keep them?

Drupal SEO

2013-01-24

I'm concerned that converting to a Drupal will cause a neg result in SEO... any thoughts?

I thought that I had to dump specific columns from a table. In the end I needed to parse the resulting XML with a script anyway to convert it to CSV, but here is a reminder for myself (and maybe you): more

Adult SEO

2013-01-15

Hi guys, is SEO any different at all when doing it for an adult type website. I dont mean porn …

I decided it was time to try FreeBSD. And what better way is there to learn about an operating system than to use it every day? So I decided to put it on my x121 and to dual-boot with Debian. Networking I was pleasantly surprised that the NIC (Atheros AR8151) … more