August 20, 2009
’bout time I add some sysadmin content here. If you ever have a trac instance go boom with an error like “DatabaseError: database disk image is malformed” you can often fix the problem by doing an sqlite dump/reload: $ cd /path/to/trac-sqlite-db-directory # find the trac.db file $ su www-data # switch to the owner of [...]
Read the full article →
July 31, 2009
If you’ve read Jeffrey Friedl’s Mastering Regular Expressions1 you’ll recall that one of the things that is a lot harder than it looks to get right using regexps is extracting the content from within some text-delimited string, especially when there are opening and closing delimiters2. Text::Balanced originally by Damian Conway and now maintained by Adam [...]
Read the full article →