Making WordPress XHTML Strict Compliant
Posted in Tech
Afternoon watch, 3 bells (1:46 pm)

There are two obstacles in making WordPress, even the most current version, XHTML Strict compliant. Today I discovered the second one, when you use the relatively new Gallery feature.

To fix this problem, you need to eliminate an inserted style tag from the wp-includes/media.php file. The chunk looks like this (mine is found on line 426):

<style type='text/css'>
	.gallery {
		margin: auto;
	.gallery-item {
		float: left;
		margin-top: 10px;
		text-align: center;
		width: {$itemwidth}%;			}
	.gallery img {
		border: 2px solid #cfcfcf;
	.gallery-caption {
		margin-left: 0;

Copy this to your theme's style.css stylesheet, replacing the call to $itemwidth with width: auto;. Delete the offending code from media.php.

Every time you upgrade, you'll have to repeat this process. That is, until the WordPress developers make their code XHTML Strict compliant, which may never happen.

The second obstacle to a nice, XHTML Strict weblog is the link code. Get a copy of my strict_links.txt widget, rename it, and add it to your widgets directory. Use it instead of the normal links widget.

Compatibility for IE 8
Afternoon watch, 1 bell (12:42 pm)

From Microsoft's Partner Program today:

On August 27, 2008, Microsoft released Windows Internet Explorer 8 Beta 2 in English, German, Simplified Chinese, and Japanese. We will release Beta 2 in an additional 21 languages* within a month. Because you’re actively engaged in developing and maintaining websites, Microsoft wants to make you aware of a display issue related to Internet Explorer 8. Upon initial release, browsing in default Internet Explorer 8 Standards mode may cause content written for previous versions of Internet Explorer to display differently than intended. To enable existing content to display as expected, Microsoft is providing a compatibility tag that you can add to sites that might be affected. This tag instructs Internet Explorer 8 to display site content as if it were in Internet Explorer 7. This option helps ensure that existing content will continue to display seamlessly in Internet Explorer 8 without requiring any additional code changes.

A compatibility tag for IE 7? Wow, what a great idea.

How about sticking to published Internet standards, instead? Biznatches.

1 Comment »
Congratulations Laura!
Posted in Warm and Fuzzy
Forenoon watch, 2 bells (9:12 am)

I just heard about my old pal Laura (from her parents), she had a baby girl last night. Eight pounds and 20 inches long, sounds real healthy!


Leave a Comment »
Blank Journal
Posted in Bookbinding
Forenoon watch, 1 bell (8:48 am)

Last night I worked on a blank journal text block for bookbinding. I think I got it worked out to where I have a nice title page, a page for listing memorable events with their page number, and nice light gray lines. I'm thinking about creating a non-lined version too.

The biggest holdup right now is my plough blade. Without it (and a plough) I don't have the ability to cut the text block square. Now this isn't necessary, and books I've made in the past weren't ploughed, but it makes it look nicer. I can't wait for my tools to get here!

Leave a Comment »
Favorite Pictures
Forenoon watch, 1 bell (8:53 am)

This is one of my favorites I took on vacation:

Beware of Trains

Beware of Trains

Leave a Comment »
Vacation Pictures
Posted in Travel
Forenoon watch, 1 bell (8:35 am)

This past weekend I went through fixing up vacation pictures that we went through last week. Out of the 2400-odd pictures I took on this vacation (yes, I take a lot of pictures, I know), we ended up with 571 album quality pictures. Thankfully, I had a 50 picture credit on my online photo center account, so at least a few of them are going to be free.

You can see these pictures in somewhat lower quality on my Picasa Gallery

Leave a Comment »
Nectarine, Orange, Coconut, and Lime
Posted in Recipes
Last dog watch, 8 bells (8:11 pm)

Tonight's drink is the

Nectarine Orange Coconut Lime smoothie
1 whole nectarine, pitted and quartered
1/2 cup Cream of Coconut
1 tablespoon sweetened lime juice
1 11oz can of mandarin oranges in light syrup
1 tablespoon orange juice concentrate
15-20 ice cubes

Blend all ingredients and serve immediately. Makes 2 huge smoothies or 4 smaller ones.

1 Comment »
Treasure Island
Posted in Bookbinding
Last dog watch, 3 bells (7:51 pm)

To take my mind off how bad this week has been, I sat down and started putting together Treasure Island. I stitched all the signatures together and now it's sitting on my table awaiting pasting and shaping of the spine. I'll post some pictures when I get around to feeling like it.

Leave a Comment »
How Is It Possible?
Last dog watch, 3 bells (7:47 pm)

Two days ago, I wouldn't have believed I could have a more difficult day at work. Somehow I managed to experience one…the very next day! I had a terrible day right after a really bad day, which doesn't make me very happy.

We had a bunch of people over last night, too. When I got home, I stomped around for a while, then went to my bedroom, turned off the light, and just laid there in the gloomy silence. I felt a lot better after about an hour or so.

When people started arriving, I no longer felt like caving their heads in with the nearest blunt instrument.

Leave a Comment »
Fantastic Contraption
Forenoon watch, 2 bells (9:16 am)

John, a cow-orker of mine, sent me a link to Fantastic Contraption, a physics-based flash game. It looks interesting, but I'm far too busy at work to play with it.

Leave a Comment »
So Busy
Last dog watch, 1 bell (6:53 pm)

Today was terribly busy. It all started when I was asked to test internal network mail relaying as soon as I walked in the door. I accidentally overwrote the file I was "borrowing" the code from, using Notepad.

In case you didn't know, there is no way to recover a file if you'ved edited it and saved it in Notepad. It only has one level of undo, and it's certainly not the one you need. Take it from my mistake, use a real editor even for a small job, and make sure your files are backed up.

From there, the day got worse, with steady a traffic of problems into my office. Everybody thinks they're the only ones with problems and I should be able to take care of it right away. Some I can, when they're easy, and I don't mind it. But some people come to me even when they know I have nothing to do with whatever their problem is and still expect me to figure it out for them.

The file I overwrote this morning wasn't a total loss—I was able to rewrite it much better, and the bulk of the difficult part was a SQL query that I had stored so I access it as a View, so I just had to rewrite some logic.

The worst part about the day was I was so busy I never even had time to stop for lunch. I hate days like this.

Leave a Comment »
The Avenging Unicorn
Posted in Strangeness
Afternoon watch, 3 bells (1:32 pm)

Last year for our Christmas white elephant gift exchange at the office, my contribution was the Avenging Unicorn playset; it was quite a hit, actually.

Now, almost eight months later, I had quite forgotten who went home with the unicorn. After a short jaunt around the office fixing computer problems, I returned to my office to find this:

The Avenging Unicorn

The Avenging Unicorn

It found its way home, how endearing…

Leave a Comment »
Calling All Norwegians
Forenoon watch, 7 bells (11:46 am)

On their Tele-mega-phone! Call the number and broadcast your voice (or something else) all over the mountains.

PS If you're looking to RickRoll them, it's already been done, so you can't be the first to RickRoll an entire country. Sorry.

Leave a Comment »
Say the ‘J’!
Forenoon watch, 2 bells (9:27 am)

Thanks to Richard Bartle's post about Beijing pronunciation, it sparked me to make my own comment about something that's been bothering me since the opening ceremonies.


It's bay jing, not bei zhing!

In America it seems common to make fun of Asian people because they can't pronounce 'L's and 'R's properly, but every hour on the news they can't say the 'j'!

I don't understand why this is so hard! Nobody calls me 'Zhacob,' why can't they pronounce Beijing?

Leave a Comment »
Dear Windows
First watch, 1 bell (8:44 pm)

Please don't display a dialog box for me to interact with if you aren't ready to receive input.

Thank you.

Leave a Comment »