WP Super Cache 0.6.2

A few people stumbled across a strange bug in WP Super Cache. If your index.php was cached by the plugin then feeds or other pages that hadn’t been cached would show the front page!

A simple way to fix this is by adding “index.php” to the list of rejected URIs, but then it won’t be cached at all. This release fixes the problem but also allows index.php to be cached by the WP Cache engine, much better than excluding index.php completely.

Also included is a new feature that inserts your rewrite rules in a new .htaccess block. That will stop WordPress overwriting the rules after doing an upgrade, or after changing permalinks. The plugin won’t update your .htaccess if it finds the rules already in the “WordPress” section, but if you visit your permlinks options page and hit “Save Changes” the plugin rules will be deleted. Go to the WP Super Cache admin page where you can update the rules again. They’ll be inserted in a “WPSuperCache” block above the WordPress rule block.

If all that seems a bit technical, just go to your permalinks options page and hit “Save Changes” without changing anything, then update your rewrite rules on the Super Cache options page!

Go grab the plugin from the usual place.

I never saw this obscure problem because I redirect hits to /index.php to / using this mod_rewrite rule and php code. This used to help avoid duplicate content rules but I think Google is smarter now. It probably will help reduce pagerank dilution because all requests will go to one homepage url, rather than two.

.htaccess:
RewriteRule ^index\.html / [R=301,L]

wp-config.php:
if( $_SERVER[ 'REQUEST_URI' ] == '/index.php' ) {
    header( "Location: http://ocaoimh.ie/", 301 );
    die();
}

Thanks to Dax (NSFW text) who figured out the problem with index.php caching.

Mario Kart Wii

I blame Matt. If he hadn’t taken his Nintendo Wii to Stinson Beach last year I might never have known the delight of waving a remote control at random angles through the air. I jest of course. The Wii has had so much press that even I couldn’t not have become aware of it. Add to that my brother and sister bought machines for their homes and it was only a matter of time before I bought one.

I couldn’t be happier with my purchase. Well, there is one thing. If it was somehow able to freeze time, or add an extra 4 hours on to a day then I’d be over the moon, but let’s not quibble with fantasies of free time. I bought Super Mario Galaxy with the machine and I’ve been bowled over. Graphics, gameplay, sound are amazing. I love how Mario zooms from one moon or planet to another. So far it’s been fairly easy but then I’ve only had an hour or two of play at it and it’s early days yet.

Today, with much excitement on Twitter and elsewhere, Mario Kart Wii was released in Europe. I bought my copy after the Cork OpenCoffee (must post pics!) this morning and managed a quick play of it. I see from the Wikipedia page on the game that it will be released later this month in Australia and North America. When it does, run to the shop and buy it.
The Wii remote fits into the plastic wheel that comes with the game and works pretty well. It’s not required though as you can just as easily hold the Wii remote without the wheel. Extra steering wheels are reasonably priced at around €10, even if it probably cost Nintendo a fraction of that to make ’em…

I’m still getting the hang of it though and did atrociously badly at the 100cc races. Please note: if you try playing the game without glancing at the instructions and turning the wheel makes your character go the opposite way, you’re holding the wheel back to front. Not that that happened to me, no, I’m just saying, like. My brother Donal and his fiancee are calling over tomorrow with their Wii remotes so we’ll have some fun in the afternoon!

Now, where did I leave the free time. I just can’t find it anywhere.

PS. Here’s a Mario Kart Wii review video, haven’t watched it all yet but it’ll give you a feel for the game:

RateYourDoc.org

Who are the top 10 doctors at Sacred Heart:

  1. Dr. Jan Itor
  2. Dr. John Dorian
  3. Dr. Chris Turk
  4. Franklyn
  5. D Elliot Reid
  6. Nurse Espinosa
  7. Dr. Perry Cox
  8. Dr. Robert Kelso
  9. Dr. Todd Quinlan
  10. Dr. Doug Murphy

Feel free to rate your favourite Scrubs doctor at rateyourdoc.org. There’s no way I’d vote for JD, I’d probably vote for Perry or Turk, but Dr. Jan Itor is a strong possibility too!

Do not however follow Todd’s advice and visit his toddtime website! It’s pretty shocking. You have been warned!

Lifelong Learning Festival

I was so very tempted to name this post after Conor’s tweet about the browsing behaviour of kids but I’ll be strong and mature about it. He gave a talk today in a large truck in the car park of Wilton Shopping Centre. That might sound a bit dodgy but it’s actually part of the Lifelong Learning Festival this week in Cork. I was out there doing some shopping so I dropped by and took a few photos.

Thanks Frank for the link. Otherwise I’d never have known anything about it!

Bloody hell that Wilton crowd knew their stuff. Kids browsing pron and phishing questions galore.

Life Before Death

A series of powerful images, taken before and after the death of each subject. The images are striking, but what I found most moving and upseting were the stories that accompanied them. Some had accepted their fate while others rallied against it.

“Death is nothing,” says Maria. “I embrace death. It is not eternal. Afterwards, when we meet God, we become beautiful.” Maria Hai-Anh Tuyet Cao, 52

“Get me out of here”, she whispered as soon as anyone held her hand. “My heart will stop beating if I stay here. This is an emergency! I don’t want to die!” Elly Genthe, 83

(via Photub.com)

The best way to test new WordPress themes

  1. Download the Theme Tester plugin for WordPress, install and activate it.
  2. Download themes from http://themes.wordpress.net/ (or maybe not, see Adam’s comment below!) and try them out without annoying your visitors by changing themes on them.

My new Theme Tester plugin allows you to change themes and view the results without the visitors to your blog seeing any changes.
There is one cavaet. Your visitors may notice some changes if your current theme uses blog options that a new theme overwrites. This could happen if for example you’re testing a newer version of your current theme or testing a theme based on the same engine as your current theme. The K2 theme springs to mind here because it’s the base for several other themes but YMMV.

I used the plugin already when I trawled the themes sites and the archives at Weblog Tools Collection for a new theme for this place. As you can guess if you’re a regular visitor, I haven’t changed theme yet, but I found a couple of very pretty designs that may make an appearance here eventually.

Windows 95 is the best Windows

I used to believe that Windows 95 was the best version of Windows. Compared to previous Microsoft operating systems and software like Windows 3.1, how could I not think that way? DOS was great, it did the job it was supposed to and got out of the way when playing Doom 2 but Windows 95. Damn, that was a whole new ball game. Marvelous.

Now I’ve found something better. It’s a souped up version of Windows XP. Check out the screenshot. I’m getting rid of Linux. Ubuntu? Bah. It’s gone.

You can check out a fully functioning demo too. I know you’ll be as impressed as I was.

Bertie Ahern Jokes

It didn’t take long. Bertie Ahern, the Irish prime minister, announced his resignation yesterday and already the joke emails are pouring in. (Thanks Brian and Louise!)

My own contributions:


Sunday Times, December 23rd 2007.

The Bertie score card above is from Bifsniff.com (but created by Brendan O’Connell), anyone want to claim credit for the others? Unfortunately email forwarders don’t usually give credit ..

Gavin, who has blogged the Mahon Tribunal for so long has given his own reaction as well as a chronology of events leading to the resignation yesterday. It’s scary how long the Teflon Taoiseach managed to survive in politics. Nothing stuck to him.

Edit: Green Ink created Bertie 300. Thanks for commenting!

Slow down trackback spam with Simple Trackback Validation

I used the Simple Trackback Validation plugin for a while until I noticed these errors showing up in php_errors.

PHP Fatal error: Cannot instantiate non-existent class: snoopy in /home/www/wp-content/plugins/simple-trackback-validation/simple-trackback-validation.php on line 158

This morning I decided to fix it as the spammers have been going crazy. I spotted dozens of POST requests to trackbacks as I tailed my log files.

How to fix the plugin:

  1. Open simple-trackback-validation.php in a text editor and go to line 158. It should be this line:

    $stbvSnoopy = new Snoopy;

  2. Above that line, add the folloing line:

    include_once( ABSPATH . 'wp-includes/class-snoopy.php' );

  3. Save the file and upload to your host again.

It’s no substitute for Akismet but along with Cookies for comments it should help keep your blog spam free!

Or, as I’ve just done because this blog is being inundated with trackback spam right now (over 17,000 in the last 9 hours), I blocked off access completely with this rewrite rule. Any WordPress blog will send a pingback anyway and MT even supports pingback now!

RewriteRule ^(.*)/trackback/ - [F]

Stargate: Ark Of Truth

Sunday 30th March at 9pm on Sky 2. If you’re a fan that’s all you need to know

Stargate: Ark Of Truth, the feature length episode which followed the last and final series of Stargate SG1 was released on DVD in the US at the start of March according to Barry’s post. I thought I’d have to wait until the region 2 DVD became available but Sky ponied up the dosh and I presume it was shown during the week on Sky 1? I’m still catching up on my regular programming through Sky+ and haven’t hit last week yet so I missed any trailers if there were any.

Sky+ is all set to record Ark Of Truth tomorrow night! I hope it’s better than the drivel they served for the final episode! Here’s a trailer to wet your appetite. I think it just might be a winner.