Relauching my blog on Drupal 7

Published on Thu, 2010-10-07 - 22:37

More than a year ago, I was agitating for a move to Drupal 7 for all the blogging developers. As is rather obvious now, Drupal 7 was not in a state then for public websites. There was outstanding security issues, no upgrade path, lots of API changes to be made, etc.

However, since that has all been resolved now, I figured it was about time I moved my blog over. I have obviously been preparing for this for some time,…

Tags

Protecting your users from phishing with Apache rules and HSTS

Published on Thu, 2010-09-09 - 22:27

HTTP Strict Transport Security or HSTS is a new security feature in browsers that enables you tell the browser “always use SSL when accessing this site”.

Mozilla has a good blog post explaining HSTS, so I won’t try to replicate that here, but I’d just like to make it clear that if you have a site that should always use SSL, be it Drupal or Django or any other system, this is definitely something you should get…

Tags

A tip for using PostgreSQL with Drupal 6

Published on Mon, 2010-08-09 - 21:27

If you are using PostgreSQL for hosting your Drupal sites, you might have noticed a lot of warnings in your logs like these:

Aug  8 18:41:05 s002 postgres[90076]: [5-1] WARNING:  nonstandard use of \\ in a string literal at character 32
Aug  8 18:41:05 s002 postgres[90076]: [5-2] HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.
Aug  8 18:41:05 s002 postgres[90076]: [6-1] WARNING:  nonstandard use of \\ in a string literal at character 122
Aug  8 18:41:05 s002 postgres[90076]:…

Presenting Django Password Required

Published on Mon, 2010-06-07 - 13:17

Have you ever wanted to password-protect your Django-site, without requiring user registration, do you find HTTP Basic Auth to be a very blunt instrument for protecting sites or do you want to do StackOverflow style beta-testing?

Then Django Password Required is for you. It provides a simple @password_required decorator for your views, and lets you configure a password in your settings.py file. The authentication is stored in the user’s session data, using Django’s own session system. This means that…

Tags

Introducing Herd Fire

Published on Thu, 2010-01-21 - 20:49

If you, like me, are an avid Firefox user, you will likely have felt the burden of using the same Firefox profile for a variety of tasks. Having NoScript or ImgLikeOpera installed is handy when surfing, but just annoying when working on developing websites. Having FireBug installed will slow down JavaScript execution on all pages, unless you disable some of its features, regardless of whether you're using it or not. Every extension you install slows down Firefox ever so slightly.…

Attention all Drupal Git-mirror users

Published on Mon, 2009-11-09 - 19:18

A long-standing issue with the Git mirrors of Drupal's CVS has been fixed thanks to Damien Tournoud.

The problem is that CVS outputs dates in RCS tags in the somewhat nonstandard format 2009/10/19 (ISO 8601 specifies dashes, not slashes as separator). The git-cvsimport tool used for creating the mirrors, however, uses cvsps, that updates the RCS tags to use the correct format (2009-10-19). Adhering to standards is generally a good thing, but in this case…

Tags

New blog, same as the old one...

Published on Thu, 2009-10-15 - 10:03

So, I finally did it. I've long wanted to do something about this blog, to try and push a better design on it and generally trim everything.

I wanted to try something new and challenging, so now I've rebuilt my blog with Django Mingus.

Building stuff with Django tends to be a lot of fun. I have quite a few ideas that I'd like to try out, so you may see some of my work moving into Mingus.

Tags

Rotating Apache httpd logfiles on FreeBSD

Published on Thu, 2009-10-08 - 14:27

With the disk space available on modern servers, you tend to notice some things a lot less. Like the boring fact that without log rotation, an Apache access log can grow to gigabyte size in no time.

FreeBSD's Apache HTTPD port does not ship with configuration for the FreeBSD log rotation utility, newsyslog, so your logs won't be rotated by default.

That, however, is fairly easy to fix by tweaking /etc/ newsyslog.conf a bit.

Here's how I did it:…

Tags

How to get your Disqus API keys

Published on Tue, 2009-09-15 - 15:25

I'm working on importing my comments into the otherwise excellent Disqus commenting system, but getting ahold of your API keys can be rather difficult, so I'll just document the process here for later reference.

To call the API functions, I'm using the Java-based REST Client – which is free and very handy for this kind of thing.

  1. Log in to Disqus.com with a user that has access to the forum you want API keys for.
  2. Visit http://disqus.com/api/get_my_key/ with your browser

Going to the edge with Drupal 7...

Published on Thu, 2009-08-27 - 12:01

So, my fellow Drupallers, we are only inches away from the code freeze. Are we afraid yet?

A common trend amongst Drupal developers is that we're all mostly on last years version. Many Drupal programmer blogs have only recently been upgraded to Drupal 6, or are even still running Drupal 5. Not picking on anyone in particular.

I think that's a good indicator of a problem with Drupal. Upgrading is hard, and when the very people that do Drupal 24/7…

Tags