[]RSS

[ Here: About | Archives+Tags | Artwork | Resumé | Contact ] [ Elsewhere: Comic | Projects | Philosophy | Work ]

Migrating to WordPress

[Comment]

December 30th, 2004 in General. Weblog

I decided to put my weblogging tool project on hold, and am in the process of transferring over to and . Upcoming projects will eat most of my spare time, so I won’t have any time to twiddle with the back-end to keep it all running. It also gives me an excuse to work with two great new tools (new to me), and learn what they’re really capable of doing.

So far, I’ve migrated the site styles over, and hacked a few features into the back-end. I’m happy with both tools, though I will have to continue customizing them a bit to get things just right. I’m also going to transfer the site data over slowly, which means that the archives will be offline for a few weeks.

A list of remaining tasks:

  1. Import links
  2. Import articles
  3. Import Wiki pages
  4. MagicMarkup plugin (or MediaWiki markup?)
  5. Other plugins
  6. Textfile export
  7. Autopost bookmarklets
  8. Fix IE rendering problems
  9. Write

The last point is a second reason I switched back to a pre-fab tool: I’m not writing enough, again. And, writing is more important that coding yet another weblogging tool.

Replace in files

[Comment]

December 1st, 2004 in Perl. Weblog

A great one-liner:

perl -pi -e 's@foo@bar@g' *txt

This replaces instances of foo with bar in text files found in the current directory.

The -pi option is a shortcut for emulating the behaviour of tools like sed. It wraps your code in a while loop, processing the filenames passed on the command line. For more details, see the man perlrun page.