I created an internal wiki for our team, and I needed to password-protect the whole thing. I didn't want users to have to authenticate themselves to Apache, then get to the wiki pages and have to log in again, so I went looking for an automated solution. I found info on doing it with MySQL, but not with PostgreSQL.
Article Archive
Setting Up MediaWiki 1.13 with mod_auth_pgsql Authentication
Fixing vim backspace
<p>
While installing my new <a href="http://www.slicehost.com">Slicehost</a> server today, I ran across a problem with the vim editor that took me a long time to solve. I couldn't use backspace in insert mode.
</p>
Reinstalling Leopard's Address Book
While working with a Bash script, I ungracefully used "/" instead of "./" and wiped out a portion of my Leopard installation. Luckily, I was able to stop it when I noticed it didn't finish after a second, but damage has been done. So far, I've only noticed problems with my Spotlight index and Address Book, but who knows what else I've hosed. I was able to reinstall Address Book, but it wasn't as easy as the Apple Docs said it would be.
Telling Subversion to Ignore .pyc Files
I'm always forgetting how to tell Subversion that it should ignore .pyc files, so I figured I'd write it down.
Working With Lists
While attempting to add lists together today, I ran into something unexpected - I was using append() when I should have been using extend(). I've also added a quick gotcha for sorting lists and returning only unique elements.
Setting Django Environment Variables in a Python Script
If you use the Django database API from a Python script, you will probably need to set the DJANGO_SETTINGS_MODULE and PYTHONPATH environment variables. Read on to find out how.

