I used to …

Looking around the shopping center this afternoon I remembered how I used to wonder why parents had a dull lifeless haggard look about them. This was when I was single. Now I’m a parent and I know why.

I used to think that people who had their credit cards stolen probably used them on a dodgy site or entered their details on a non secure server. Then my credit card details were skimmed somehow.

I used to spell Windows Windoze, but then I graduated from college.

I used to think I was invincible, I’d climb trees, climb the local quarry, go caving, do slightly mad stuff. Life experience taught me otherwise.

I used to look for gratification in material things but then I got married and my son was born. Wow.

I’ve never been happier. What about you?

The Copper Kettle

The Copper Kettle in Castletownbere is a small little cafe we stumbled upon the first time we visited the town earlier this year and again in April. It’s in the main square of the town, near the petrol station and well worth a visit if you’re down that direction.

It’s always a good sign when local people eat in an establishment and the first time we were there a granny took her grand daughter and her 3 friends for lunch, sitting next to us, and keeping Adam delightfully amused with their chattering and laughing.

Were we lucky or is it normal that everyone we met in the Bantry area of West Cork was extremely pleasant, helpful and a joy to talk to?

Shocked that my credit card number was stolen

Wow, this is one of things you never expect to happen to you. Linode, where this blog is hosted, recently emailed me saying my monthly payment had been denied and I should contact my bank.

This morning I received a letter from the bank saying they had tried to call me and would I ring them which I did. After holding for what seems like an age I talked to a nice girl at the bank who told me there were suspicious transactions on the card:

  1. Aug 30: 1 Euro spent at the iTunes store. Never used it. Alarm bells ringing.
  2. Aug 31: 3 Euro at “Usenext”, whatever that is.
  3. Sep 3: Various amounts (168 Euro, 48 Euro..) spent at Virginmedia on subscriptions.

Ouch, thankfully the bank caught it and I’m not out of pocket, but it’s frightening when you’re the victim of credit card fraud. I presume it was skimmed by the same guys who had impersonated repair men and modified credit card machines around the country that was widely reported last week. The card hardly ever gets used online. Cutting it up now.

Shredz64 – Guitar Gero on the Commodore 64

C64 fans, get that guitar out and play along to your favourite SID tunes with Shredz64. It uses a small circuit called the PSX64 interface to connect Playstation controllers to the old Atari or DB9 joystick interface on old computers like the C64, Amiga, Atari ST, Speccy (with the right interface itself!)..

There are two videos, the first is an explanation of the whole thing, showing the C64 connected to the Guitar Hero guitar and the game loading SID files off a disk. The second video, after the jump, is a demo of Shredz64 itself. Not quite as fancy as Guitar Hero or it’s ilk, but impressive enough!

Continue reading “Shredz64 – Guitar Gero on the Commodore 64”

WordPress MU 2.6.1

WordPress MU version 2.6.1 has just been released. This is a sync of the WordPress maintenance release that saw the light of day a few weeks ago.

This is a required upgrade as it fixes a number of critical bugs, particularly in deleting users and blogs. Upgrading is as easy as copying over the files of your current install.

For a more comprehensive list of changes, check the timeline, but in short, yes you do need to upgrade!

WordPress MU is a multi blog version of WordPress that runs many sites such as Linux.ie Blogs and WordPress.com. If you run the single blog version of WordPress you can probably ignore this message.

Free Priority Boarding on Ryanair

We’re all used to being fleeced by Ryanair and Aer Lingus with their 5 Euro per person, per flight “credit card charge”, which in reality should amount to 2 or 3 Euro total, so sometimes you can’t help but smile when someone gets away with fooling them ..

Darran figured out a really easy way of getting priority boarding on a Ryanair flight. I’m sure it’ll work with any other carrier too, not that I’d be encouraging you to do anything illegal, especially in these hard-up times when Ryanair are possibly skimming on their fuel allowances.

Didn’t something similar happen in the US when a NY Times journalist modified his boarding pass?

PS. In all seriousness, it’s up to Ryanair to close this loophole. The barcode on the ticket should verify that the customer did in fact buy the “Priority Boarding” upgrade. It’s the most basic check any retailer should do. If you’re an online retailer using Paypal’s IPN service they stress again and again to check every little detail of the transaction.
Who knows how much Ryanair have lost because of their incomplete checks?

TechLudd Cork 2008

Anton Mannering organised TechLudd Cork last night at the Cork International Airport Hotel. I demoed Tweet Tweet and answered questions about WordPress and some of the plugins I had running on my blog.

Apart from showing off Tweet Tweet I took a few photos too. Pictured below are only some of the people there including (in no particular order): Walter, Bernard Goldbach, Anton, Aileen, Gavin Harkness, James Galvin (who should tweet more about Tweetrush!), Walter Wynne, John Peavoy, Pat Phelan, Ashley Halsall, Robin Blandford and some crazy guy who calls himself Damien.

If you see yourself in one of the photos please leave a comment, and apologies for not getting your name on the night.

Yes, the lighting in the toilets in the Cork International Airport Hotel really do change colour.

WP Super Cache 0.7 – the dupe content killer

WordPress.org user, “definitelynot” discovered a bug in the WordPress plugin, WP Super Cache that could expose blogs to duplicate content penalties. Unfortunately this affects every blog that uses the plugin in “ON” or full “Super Cache” mode, and has URLs that end with the “/” (forward slash) character. If the plugin is on “half on” mode, you’ll be fine.

The problem is that an anonymous user might visit a legitimate URL, ending with a slash, the plugin then creates a static file out of that page, which is then used when people visit the same URL. Unfortunately if someone links to that URL without the ending slash, a visiting browser or search engine bot won’t be redirected to the proper URL, they’ll be served the static html file.

For example:

  1. John visits the URL /2007/05/23/why-the-nurses-cant-go-on-strike/ on my site. WP Super Cache creates a html file of that page.
  2. In his enthusiasm for that post, John publishes a post about those zany doctors, but he forgets the ending “/”.
  3. Googlebot, seeing fresh content on John’s site, crawls it and sees the link, visits my site eventually and wonders why it’s seeing the exact same page at two different URLs.

To be fair, Google is pretty good at figuring out where duplicate content is supposed to go but it’s better to avoid the issue completely. It also only matters if there are links to your site without the ending slash. The most common will probably be to your homepage as it’s likely internal URLs will be copy/pasted.

How to Fix
You should update to version 0.7 of the plugin which checks if your blog is affected by this problem. It also has instructions for updating the mod_rewrite rules in your .htaccess. It’s fairly easy to fix. Thank you “andylav” for the mod rewrite magic!

  1. Edit the .htaccess in the root of your WordPress install.
  2. You’ll see two groups of rules that look like this:
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} .*gzip.*
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    
    
  3. You need to add the following 2 rules above each block of “RewriteCond” lines:
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    
    
  4. The rules should eventually look like this:
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} .*gzip.*
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    
  5. Or you could just delete those rules and let the plugin regenerate them for you again.

PS. Thanks also to Lloyd for noticing the “enable the plugin” link was pointing at the wrong URL, and to Ryan who spotted a minor problem with the admin page and was kind enough to send me a Tweet about it.
PPS. I’ve just tagged 0.7.1 to fix some problems with the updating of the .htaccess, mainly for new users. If 0.7 of the plugin works for you, there’s no need to upgrade!

Howto: Twitter sms notification for Meteor and Vodafone

A few weeks ago Twitter annoyed a lot of European users when they stopped sending sms notifications to their users. I never really used that facility so I didn’t miss it but many Tweeters did. Outrage and blue murder were spoken of in the same sentence. People marched in the streets, there were riots.

OK, maybe not, but it annoyed a few prolific Tweeters and I wondered aloud if I could make Tweet Tweet send me sms notifications when I got replies or direct messages. After quite a bit of testing and playing around with Meteor’s website I’m glad to say I cracked it. I added hooks to my plugin for other plugins to latch on to, and wrote a small bit of code that logs in to Meteor.ie and uses their free web text to notify me of replies or direct messages.

Following on from that success, Jason Roe added code so Irish Vodafone customers could get sms notifications too!

So, if you really miss the sms notifications from Twitter, and you’re an Irish Meteor or Vodafone customer, download Tweet Tweet, install it in your WordPress blog and enjoy getting those sms notifications from Twitter again!

Developers – if your phone company isn’t covered just yet, please take a look at the existing Meteor and Vodafone plugins. The framework is there. Using curl to login and send texts can be a little daunting but it’s not impossible. Get in touch by leaving a comment here, or using the contact form on the about page.

PS. Almost forgot to mention Tweetrush went live yesterday with some very nice Twitter stats. Check out what my friend AJ has to say about the launch!
PPS. I’ll be demoing Tweet Tweet at Techludd Cork on Thursday night. If you’re there, please say hi!

WP Super Cache 0.6.7

WP Super Cache is a plugin for WordPress that creates cached copies of your blog posts and pages, making your site much faster to serve. It’s also ideal for coping with sudden surges of traffic.

I released a new version of the plugin this morning. This is a bugfix release:

  • Mike Beggs contributed a number of changes:
    1. Better support for Win32 NTFS
    2. Better use of the “Vary” header so proxy servers won’t cache the wrong page. If you see leakage of comment details on posts this will fix that problem.
    3. WP-Cron handles cleanup of expired cache files in the background now.
    4. Disable mod_deflate if it’s running as it sometimes tries to compress gzipped files. Remove wp-content/cache/.htaccess for that file to be updated.
  • Lazy and Otto both recommended using get_comment() instead of the depreciated get_commentdata()
  • A basic “uninstall” function has been added to remove some of the files the plugin creates. It’s called when you deactivate the plugin.
  • PHP running as a CGI doesn’t support apache_request_headers() so that’s been added too.
  • And I almost forgot, the admin page received a slight makeover.

Get the plugin from the download page!