setting up pyblosxom

i've used blosxom before, and seeing as all the cool people use pyblosxom and I'm much more familiar with python than I am with perl, I've got it all going. I've had a few issues that I've got workarounds happening for.

Firstly is the redirects so that you can't actually see the pyblosxom.cgi file that is doing all the work. My naive first attempt at writing a global catch all rewrite rule was just

RewriteRule ^(.*)$ /pyblosxom.cgi/$1 [L]

But I think the issue with that is that it ends up recursevly matching and you end up with a 500 error. The solution (for me) was to modify this to break out when it matches the cgi file, so my .htaccess looks like

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /pyblosxom.cgi/$1

this seems to work quite well

Then there's the issue of only being able to upload to wienand.org (where technovelty.org lives) via ftp ... since pybloxsom relies on timestamps things were going to get tricky. luckily there is a hardcodedates.py plugin already written by Nathan Bullock. So now I can create entries with a little scripts like

#!/bin/bash
if [ $# -lt 1 ]; then
    echo usage: ./newentry.sh path/to/filename.txt
    exit 1
fi

ENTRY_DATE=`date '+%Y-%m-%d-%H-%M'`

#make directory heirarchy
NEWFILE=$1

if [ ! -d "`dirname $NEWFILE`" ];then
    echo making `dirname $NEWFILE` ...
    mkdir -v  -p `dirname $NEWFILE`
fi

emacs -nw $NEWFILE

echo $ENTRY_DATE $NEWFILE >> timestamps

and upload them with which is a poor-mans ftp rsync.

on motivation

I sat behind a guy on the bus today, and he was holding what was clearly a bunch of readings for a course. He was asleep, head bobbing around like one of those little dogs on the car dash. The title of the paper he was "reading" ... "How to manage for motivation".

about my blog

Welcome to my blog. This is something I've wanted to setup for almost exactly a year now as a part of a "junkcode" repository that Andrew Tridgell talked about at linux.conf.au 2004. Seeing as I've just registered for lca2005 hopefully I'll be able to keep my notes from the interesting talks in here. so this is where I hope to keep ideas that don't fit into a .c file. I decided to call the blog technovelty because I wanted a name for some reason, and so the first thing I obviously did was type in "random word generator" to google. The first link that pops up lets you type in a few letters and using Markov chains makes sort-of words. I put in "tech" and a word that popped up was very like "technovelty" which subsequent google searches showed wasn't too popular a term. I couldn't belive that technovelty.org wasn't taken; there are some similar names that are parked on and I think someone must have made a typo and wanted to squat on technovelty.org but got something else. so we'll see how i go.