Archive for September, 2005

Time Since Plugin

September 17th, 2005

At the bottom of each post on this site, a wonderful little WordPress plugin adds how long it’s been since the post was made. It’s called Time Since. But there’s a bug in the example ‘how to use’ code… actually a few, so I’m posting updated examples of how to use the plugin here in the hope that people wondering why this plugin won’t work for them as instructed on their site will pick up on it. Good luck!

Since Entry Publication:

<?php if (function_exists('time_since')) {
echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()) . " ago";
} else {
the_time('F jS, Y');
} ?>

Since Comment Publication:

(I don’t use this second example, so I haven’t tested it, but the problem appears to be identical.)

<?php if (function_exists('time_since')) {
echo time_since(abs(strtotime($comment->comment_date_gmt . " GMT")), time()) . " ago";
} else {
the_time('F jS, Y');
} ?>

Server Trouble

September 14th, 2005

Update: All websites and services are now back online. Contact me if you are experiencing any problems.

We’ve had some fairly major server problems this week, as many of my colleagues (and many of my friends) who I share an online home with know. We suffered some website vandalism and consequently had to take the server offline while we sorted everything out. If you look through the list of community, campaigning and small, personal websites listed below — many of which are hosted for nothing as solidarity with great community work and activism — you’ll be able to imagine the chorus of dismay that followed when we were forced to take the server offline.

This is just a quick note to let everyone affected know which sites have been restored, and which are still offline, and to apologise for all the inconvenience. Anyone I’ve talked to this week will know it has affected me as much as it has you.

I’m still working hard to bring the remaining sites back online, and once everything is back to normal I will be contacting everyone affected in person. In the mean time I will update the list below as I get the final few websites back online, but do contact me if you have been affected by all of this and want to find out the latest or if there is anything urgent I can help with.

Best wishes to everyone, and my sincere apologies — Matthew

Services now back online:

Mailman (mailing list software)
All email accounts
SpamAssassin (spam email filtering)

Note: You will need to set your email software to use a secure connection. Contact me if you have any trouble with this.

All sites now back online:
The Pledge Against Airport Expansion
Guelph Students for Environmental Change
Elissa Smith
Rising Tide
The Yellow House
Climate Outreach Information Network
Dave Carroll
Plan B
No New Oil
Art Not Oil
National Petroleum Gallery
Hugh & Zoe
Rubbish Monsters

Finally two new sites joined us this weekend, after most things got back to normal:

Scholarship Training Series
Ban Terminator

bash script to upload files from flash drive

September 4th, 2005

Here’s a useful little bash script I just wrote to upload photos from my flash card reader onto my laptop. The script is specific to the flash card file system used by my Canon EOS 300D, but should easily be adaptable for other uses. It is Free Open Source Software and is released under the GNU GPL license.

#! /bin/bash
mount -t msdos /dev/sda1 $MOUNTPOINT
DIR_LIST=`ls $FLASH_PHOTOROOT | grep .canon`
for dir in ${DIR_LIST}
if [ ! -d $LOCAL_PHOTOROOT${dir} ]; then
rmdir -v $FLASH_PHOTOROOT${dir}
chown -R matthew:matthew $LOCAL_PHOTOROOT${dir}

  • Search
  • You are currently browsing the archives for September, 2005.

  • Meta

  • Old Browser

    It seems you are using an old web browser (e.g. Internet Explorer 5 or below). This is a security risk to you, since Microsoft no longer releases updates for old versions of Internet Explorer. Also, note that this site is designed to modern internet standards, and the layout may appear strange or plain in older browsers. All the content is still accessible to you, but I strongly recommend you upgrade to a modern, safe, standards-complient browser, such as Firefox. For more information on getting the best experience surfing the web, see