Handy

Fix for OSX New Zealand Daylight Savings Time - NZDST changes

Apple does actually have a document on a fix for their timezone data for OSX, which will result in Macs set to use automatic time adjustment being an hour wrong for the next week or two. Unfortunately their workaround seems to be clear, point by point instructions for how to fix it your damn self, by manually changing the time until we are past the date when their TZ data is wrong. Hmm

HOWTO: Removing Duplicate Posts in WordPress

We've been using a spare WordPress installation (via Postie) to trac job comments that aren't in Trac, and a Lilina installation to correlate and aggregate all the RSS feeds together. The mashed tools together work really, really well - Mummy, is this Web2.0? - but a misconfigured mail filter resulted in about 400 duplicate posts on the WordPress install, which didn't help.

Making multi-page PDFs from separate JPG images with ImageMagick

Was looking for a way to help Jacqui produce a single PDF from several jpeg scans today. Turned out - as is often the case with a nice Linux desktop - the answer was right under our noses. We have a bunch of scans, named Scan-001.jpg, Scan-002.jpg thru Scan-009.jpg. We want an output PDF file that lets you download all dozen pages as one PDF.

How hard can that be? This hard - with ImageMagick:

convert -density 150 Scan*jpg Output.pdf

Log 404 Plugin

WordPress 2.0 doesn't log 404s to the system log (eg Apache system log) by default.

That's no good!

But this plugin fixes it: Log-404 plugin

That's nice.

I didn't write this plugin, I just like it.

emacs php folding

I found myself needing code folding in PHP5 again, and switched to TextMate for a few days. But it just doesn't handle things right ... nice UI, but it inserts a <% %> every time I press ^x which drove me nuts. So I worked out how to make code folding for PHP5 work in Aquamacs, and here it is (for your .emacs).

(defun show-onelevel ()
"show entry and children in outline mode"
(interactive)
(show-entry)
(show-children))
;;
(defun cjm-outline-bindings ()
"sets shortcut bindings for outline minor mode"
(interactive)

Syndicate content