Monthly Archives: January 2007

Topless Speed Bandits cause traffic pile up

It appears that the Danes have been just a little too good at slowing down traffic by employing a new method of attracting the attention of speeding drivers to speed limit signs. Drivers are literally queuing up to watch the young beauties holding the signs. Oops. The following video might be viewed as NSFW so click through with caution!

Continue reading

Death and Divorce Unix style

When you break up with your significant other you go through the motions of living your life, but in a daze. At some stage you need to let go and move on, no matter how hard it is. (from xkcd)

userdel

PS. Congrats Elly on the move to WordPress! A pity this cartoon wasn’t published before your talk at BarCamp!

PPS. But seriously, a friend just broke up with his girlfriend of over 4 years. She was cheating on him, I hope he listens to how to dump a cheating girlfriend!

The new WordPress UTW gotcha

(Later – Scroll to the end of this post for a small patch to fix the problem with disappearing tags!)

As seen elsewhere and of course on the official blog, WordPress 2.1 was released to much fanfare yesterday.

It works great, I’ve been using the development version on my blogs for quite a while now and until recently it worked swimmingly. It still does, but some time in the last 2 weeks Ultimate Tag Warrior stopped working properly. Whenever someone made a comment on a post the tags on that post would be deleted. It’s gotten so bad now that I’m moderating all comments, and opening those posts in the editor before approving the comments.

A half-way fix is available but moderated comments will still delete the tags so once I verify that the fix does what it does comment moderation will go back to the way it was before.

You should upgrade WP-Cache to the new 2.0.22 release too. It fixed problems I was seeing here with comments and posts not showing up until I deleted the cache manually. Yay!

If you’re interested, a new WordPress MU release will follow in a day or so. More here.

I forgot to mention, do I recommend you upgrade to WordPress 2.1? Yes. If you run a site that is in any way popular your database server will thank you. WordPress uses the MySQL query cache in a much more efficient manner than ever before when reading posts. Make sure your query cache is activated and tweak it until you hit the sweet spot. It’ll make a big difference when your server is under load.

Fix Fix Fix!

HandySolo spotted a simple fix for the tag problem! Check out the thread on this post and scroll to the entry by 082net.com where he outlines a simple fix for the disappearing tag problem. I just tried it and it works!

Here’s a temporary patch for resetting tags.
Modify ‘ultimate_save_tags()’ function on ‘ultimate-tag-warrior-actions.php’ about line 502:
if (isset($_POST['comment_post_ID'])) return $postID;
if (isset($_POST['not_spam'])) return $postID; // akismet fix
if (isset($_POST["comment"])) return $postID; // moderation.php fix

Even with the fix above, deleting a comment will delete the tags, and sending a trackback/pingback will do the same. 082net.com fixed that too. You can remove the above fix and apply the following.
Around line 862 of ultimate-tag-warrior-actions.php find the following chunk of code:

// Save changes to tags
add_action('publish_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
add_action('edit_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
add_action('save_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
add_action('wp_insert_post', array('UltimateTagWarriorActions','ultimate_save_tags'));

Replace that code with:

// Save changes to tags
add_action('save_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
if($wp_db_version < 3308 ) { // if lesser than WP 2.0
  add_action('publish_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
  add_action('edit_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
  add_action('wp_insert_post', array('UltimateTagWarriorActions','ultimate_save_tags'));
}

PS. Stephen Spencer has discovered why UTW doesn't always work with custom permalinks. This is a longstanding bug, and it's why I had to use the ?tag= format on my photoblog.

We are live from BarCamp South East!

Here I am blogging away at BarCamp South East. It’s been a great day so far. My talk was scheduled for 10:50am which was a relief to get out of the way. Feedback has been positive too and horrors of horrors, I actually enjoyed the talk! Video and podcasts will be online eventually and I’ll update this post when they’re available. Elly left Bernie’s dictaphone on the seat next to me, Joe and Conor had video cameras so I’m sure you’ll get to hear or watch me talk about WordPress one way or another if you’re interested!

Thank you all for the comments on yesterday’s post. I’m hopeful that things will return to normal sooner or later on inphotos.org!

Now, I’m off to look around and mingle with the rest of the attendees!

Just spotted on Lifehacker, is How to manage kids in the home office, a topic brushed upon in my talk.

I’m sitting in the Drupal talk now by Alan Burke and Stephane Corlosquet on the laptop. John Handelaar is showing off his voter site written in Drupal. It’s a great presentation on the power of Drupal and it’s plugins.

Ken McGuire has a review of the day, and apart from everything else, and it was great to talk to Justin Mason finally.

Great day. I think everyone’s looking forward to the next one in May!

Conor O’Neill has posted videos of my talk on his blog. I could embed them here, but he went to all the trouble of uploading them, so go visit his blog and check them out. There are bits there about scaling WPMU by hashing blog_ids and partitioning databases, as well as how to get past the 32,000 file limit of ext2/ext3 in the blogs.dir files directory. Also, if you work from home I discuss my experiences doing the same, and communicating within a virtual company.

Bernie has posted the first podcast of my talk. He’s posting the second half tomorrow about working from home and in a virtual company.

The second part of Bernie’s podcast is online today! In this part I talk about working from home and balancing work and home life. Should be of interest to everyone working from home!

How to dump a cheating girlfriend

Galaxy Radio’s Danny dumps the girlfriend of a guy who is about to propose to her when he finds out that she, eh, serviced her married boss at the Christmas party.

It’s cruel, it’s awful, and the way she was dumped wasn’t too nice either but didn’t she deserve it?

Did she deserve that? Did they go too far? Have you got any similar breakup stories? (via)

Getting to know the Trotts

Just goes to show what a hectic week it was last week. Despite it being on the front cover of the Business Section, I completely missed this Sunday Times interview with Mena and Ben Trott, the founders of Six Apart, makers of blog software Moveable Type, Vox, Typepad and owners of Livejournal.

It’s a personable interview that doesn’t go into any great technical detail but it’s interesting for me to find out a little about the competition from my outpost across the Atlantic.

Is RSA encryption broken?

First spotted on the ILUG mailing list, it appears that a young 16 year old student has cracked the RSA encryption system and won 1st prize at the BT Young Scientist Competition 2007.

If it’s true then Internet commerce could be in for a rough time, but some previous winners have proven to be less than remarkable when seen against the cold light of day. This comment from the winner, Abdusalam Abubakar, seems to indicate that the method used might not be that effective either. Check out this ILUG thread for further discussion. Can it be true he wrote it in Visual Basic?

“It was great, unbelievable. I didn’t think I was going to win anything. I didn’t want to be optimistic,” he told The Irish Times last night. Abdusalam, whose name translates into “man of peace”, based his initial work on partially successful attacks on the world’s most widely-used encryption system, RSA, mounted by two mathematicians. He decided to take the best aspects of both and generalise a new approach, which he believes has the potential to tackle at least some less complex coding systems.