Problems mounting a Debian drive over AFP

It took me ages to find the answer to this, so I figured I’d post the answer for posterity; hopefully between us, Google and I can help the next person avoid that hassle.

I’ve created a Debian virtual server in Parallels for some development work. To ease the pain of mounting drives, I’ve configured AFP (Apple File Protocol) on the server. (As a sidenote: there’s some issues with Debian’s AFP package, netatalk, and OS X Leopard which mean you have to recompile netatalk, for which you can find instructions here. You probably also want to have your server auto-discovered and appearing in the “Shared” areas of the finder, for which you can find instructions there. Some Debian chutzpah will be required to follow both these sets of instructions.)

All was running well, and I was happy, until one day the drives stopped mounting… Continue reading “Problems mounting a Debian drive over AFP”

Interspersing your post listing with date headers in WordPress

Update: OK, so at least one person wanted it as a plugin, so feel free to download Intermittent Date Headers.

Here’s a code snippet that’s not really worth making into a plugin. It’s designed to put date headers into your main post listing page. As an example, you could end up with:

Heading: March, 2008
Post: dated 15th March
Post: dated 28th March
Post: dated 29th March
Heading: April, 2008
Post: dated 1st April
Post: dated 4th April

Continue reading “Interspersing your post listing with date headers in WordPress”