The One With The Accident

Transformers Gone Wrong You know how people say that when you’re in an accident, your life flashes before your eyes? I got a taste of that on December 6th. John, Paulo and I were on our way back to Bacolod from Cadiz when we were involved in a car accident. Some idiot decided it was a good idea to cross the main highway wihout looking to see if there was any traffic.

John (who was driving) swerved to miss the idiot and crashed into a parked truck. As it was happening, my life didn’t really flash before me. Instead it seemed like everything went into slow motion without any sound. I didn’t feel the impact and the next thing I knew was Paulo asking if I was feeling alright. I wasn’t feeling anything but when I sat back my right arm started hurting, exactly how I imagined the phrase “I feel like I’ve been hit by a truck” to be. John and Paulo had sore muscles and sme bruises but I apparently had the most pain. Paulo took me to the hospital (which thankfully was about 300 meters from the accident site).

The first thing that happened to me when I got in the ER? I was placed on a weighing scale. Yes, indeed. My arm is hurting like a bitch, I’m about to faint and attendants want to take my weight. I’m placed on a gurney and the whole ER routine starts - what happened, who am I, do I have insurance, where’s the pain, etc. The doctor sends me for an x-ray - getting off the gurney was incredibly painful so after the x-rays are done I elected to stand rather than lie back down.

While waiting for the boss to arrive to pick us up, the doctor decided to put my arm in a sling as the x-rays showed a fracture in my right arm and a dislocated shoulder. I hit the back of Paulo’s seat during the crash. Since there weren’t any slings, he fashioned one out of a sack cloth. Within a few hours, the boss arrived to bring us back to Bacolod. The drive home was exruiating - I felt every single bump and pothole in the road and just when the pain was so numbing I wasn’t really noticing it, we were reaching Bacolod.

At the hospital in Bacolod, the doctor reset my shoulder. In fact he did it three times when the second x-rays showed my shoulder was still dislocated. John and I had to stay overnight in hospital for observation.

Thankfully our injuries weren’t serious. Having seen photos of the car, it could have been a lot worse.

Post Avatar 1.2.3

post-avatar-123

A couple of minor bugfixes and a few new features, namely:

  • Avatar selection rights for Authors, Editors and Administrators only. Use the role manager plugin to customize access rights. If you already have Post Avatar installed, deactivate and reactivate the plugin to update user rights
  • Customize HTML and CSS within the options page. Dominik added this to make it easier to change the styling of avatars. It will work with both the template tag and the automatic avatar display
  • Automatic avatar display for post excerpts is now included
  • I fixed the bug where avatars where showing up in feeds

Download now or visit the plugin page

UPDATE (Oct. 9, 2007): Discovered a bug (Thanks Paul!) - automatic avatar display causes the image to appear twice when using the_excerpt. Download the updated zip file or if you’re feeling adventurous:

Open up gkl-postavatar.php and look for this code at the end of
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('the_excerpt', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

Just comment out or remove “add_filter(’the_excerpt’, ‘gkl_postavatar_filter’);”.

It should look something like this:
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

Upgrading to WordPress 2.3 - The Tag Issue

upgrading-to-wordpress-23-the-tag-issue

With WordPress 2.3 expected out on September 24th, I’ve been giving the beta releases a whirl to see how what I need to do before I make the final change over.

I currently have 17 plugins(!) installed but I’m most concerned about Ultimate Tag Warrior - will it work in WP2.3?

Short Answer: Not really.

UTW doesn’t play well with WP2.3. Tags show up on posts but there’s a “No Posts Found” error on the link to see other posts with the same tag.

Since I’m only using a small portion of UTW’s capabilities: tagging posts, displaying those tags in my posts and a tag index, I ended up using the UTW importer.

The UTW Importer

Tagging problems in WordPress 2.3While all the post relationships and tags are passed over, tags with more than two words are hyphenated. Yikes! It seems that the importer considers tag names and tag slugs to be the same thing. Hopefully, that will be fixed soon.

Formatting Tags

With WordPress 2.3, there’s a number of tag-related template tags you can use: the_tags(), wp_tag_cloud. Rich Gilchrest has a helpful guide for updating your theme.

But wait, aren’t tags generally lowercase? Yes they are but as you can see in the screenshot above, there are some tags like “post avatar” and “wordpress” that appear as “Post Avatar” and “Wordpress”.
This happens when a term, in this case “Post Avatar”, is shared by both a tag and a category. To get around this issue, you can define a css class to use in your templates and set text-transform to lowercase.

.post_tags { text-transform: lowercase}


So, inside index.php, archive.php and single.php I changed the format of the_tags to:

<?php the_tags('Tags: <span class="post_tags"', ', ', '</span><br />'); ?>

For wp_tag_cloud(), your styling options will depend on the cloud format that you choose.

By default, tag cloud formats to “flat”, generating a space separated list of your tags. So your template could look something like this:

<p class="post_tags"><?php wp_tag_cloud(); ?></p>

If you format it to “list”, you will get an unordered list (ul) with the class “wp-tag-cloud”.

Update your css file to reflect this new class:
.post_tags, .wp-tag-cloud { text-transform: lowercase }

The Tag Index

Creating an index of all your tags is quite simple.
First, create a new template (I called mine “Tag Index”) which contains the wp_tag_cloud with the following parameters:

<?php wp_tag_cloud('format=list&smallest=12&largest=12'); ?>

  1. format: I set this to “list” to create an unordered list
  2. smallest and largest: I made the font sizes equal so there would be no trace of the cloud effect. In this case the font size is 12pt

Using the Default Theme as an example, this is what your final template will look like…

<?php
/*
Template Name: Tag Index
*/
?>
<?php get_header(); ?>
<div id="content" class="widecolumn">
<h2>Tags</h2>
<?php wp_tag_cloud('smallest=12&largest=12');?>
</div>
<?php get_footer(); ?>

Now upload your template and once you’ve done that, create a new Page and assign the “Tag Index” template to it.

Also make sure that the Page Slug is “tag”. If you’re using pretty permalinks you can access your tag index from http://yourdomain.com/tag/.

Whew! One plugin down, 16 more to go!

Post Avatar Compatible with WordPress 2.3

post-avatar-compatible-with-wordpress-23

I’ve installed the beta version of WordPress 2.3 and Post Avatar is running smoothly. Wheeee

There will be an update of the plugin due in a couple of weeks. Here’s a feature list:

  • Post avatar role - this will be useful for a community blog that wants to limit posting avatar rights to editors and admins only. If you’re using Role Manager 2.0, you can customize access rights.
  • Customizable HTML/CSS options for automatic display - if you’re not using the template tag, you will be able to specify your own HTML styling or CSS class to match your theme instead of editing the stylesheet that comes with post avatar.
  • Display in excerpt - Avatars currently show up wherever the the_content() tag is. I’ll be adding the display for the_excerpt() as well.

Update: Corinne helpfully pointed out a bug which causes the avatar to show in feeds. I’ve made the necessary fixes and updated the download file

Bon Voyage

The gang got together for an afternoon out before Jake headed off to Camiguin Island to practice medicine. We watched Blades of Glory (much better than I anticipated) and had dinner.

Unfortunately Jake couldn’t join us for dinner - he still had to pack. I got a text message from him yesterday that his baggage was 20 kilos over the limit.

Well Jake, enjoy your experience in Camiguin. We’ll be looking forward to your missives on your new island adventures

Rain, rain, go away

rain-rain-go-away

It rained heavily for over an hour yesterday. Bad timing because I was getting ready to go home and I had to wait. The road leading from the office was full of water but it wasn’t as bad as the roads leading to my street - both entrances were flooded for 20 meters with six inches of water.

Walking through the rank water all these words flashed through my mind: typhoid, cholera…

Doctor Who Fan Video

doctor-who-fan-video

Pia and I are watching Doctor Who now and this is the fan video that Pia made:

Transformers

transformers

Alien robots are searching for the All Spark, a device which gives them power. The race is on to see which side - the Autobots or the Decepticons - will to the All Spark first and caught in the middle are a group of human beings.

Transformers the movie follows three human stories - a group of soldiers who survived a Decepticon attack on their base, hackers trying to help the government figure who is behind the attacks and a teenager, Sam Witwicki, who unwittingly buys an Autobot car, Bumblebee.


My favorite storyline was that of Sam’s - there is so much humor and Shia LaBeouf is brilliant in this role. The interaction between Sam and the Autobots had me cracking up so many times, especially the scenes when they all go to Sam’s house.

I loved the way Michael Bay treated the robots - each one of them has distinct personalities that even though there wasn’t a lot of characterization you still get the sense of these robots from the cartoon.

So now the thing you’re all waiting for…the action. It was FRAKKING AWESOME. I got chills every time one of the robots transformed. And the havoc that they caused…WOW! I was overwhelmed by all the action in the final showdown but on further viewings, my appreciation for the seamless way the robots interacted with human characters and the sheer awesomeness of these robots fighting has kept on growing.

If it weren’t for the nostalgia of the Transformers cartoon the premise of this movie would just be plain silly. But watching Transformers you really begin to believe that alien robots do exist and that they can transform into regular objects.

Michael Bay, thank you for saving my summer. Up until this point I had really been disappointed with the movies I’ve seen but Transformers totally kicked ass. I’ll even go as far as to say that I’ve forgiven Bay for Pearl Harbor.

Favorite Autobot: Bumblebee
Favorite Decepticon: Barricade
Favorite Scene: Sam trying to deal with both his parents and the Autobots

Transformers Advanced Screening

transformers-advanced-screening

All you Bacolod Transformers geeks. Read this!

What: Transformers Advanced Screening
Where: SM City Bacolod (Cinema 1)
When: June 28, 2007 (8pm)

Call 468-0168 for more details.

Jim Carrey impersonates Horatio Caine

jim-carrey-impersonates-horatio-caine

Pia showed me this clip of Jim Carrey impersonating CSI: Miami’s Horatio Caine and it’s so frakking hilarious!

I have this theory about why CSI:Miami is considered the most popular show in the world. It’s not the storylines, or the great acting, or even the forensics. It’s Horatio Caine and the mocking that goes with watching David Caruso.

As this clip proves, Caine is the master of cheesy one liners and habits made for a drinking game.

Pia and I used to watch CSI:Miami just to count the number of times Caine would:

  1. twirl his sunglasses before putting them on
  2. put his hands on his hips
  3. twirl his sunglasses, put them on before putting his hands on his hips and then say something prophetic before gliding out of the scene

From watching season 1 the most we counted in this episode was 44 but we stopped when RPN went off the air in Bacolod. But Miss(ed) Manners has a comprehensive drinking game.