The Importance of XHTML Validation

When will I ever learn?

Miraz has told me again and again — validate your pages after making changes to your WordPress theme templates. She even advised readers in our book, WordPress 2: Visual QuickStart Guide. And every time I validate, I find errors, proving that it’s a step I really do need to take.

Yet I continue to skip this step when I tweak my theme’s template files on every single blog I run.

This morning, I got an e-mail message from someone named Tine who wrote:

I’m completely new to WordPress but found your site because of the book you have made and was curious.

Are you aware that your blog don’t look good in Explorer 6? Some of the text to the left is cut off.

I use Explorer 6 on XP Pro and 1024×768.

Uh-oh.

I fired up my PC and loaded up my home page in Explorer 6. The situation was worse than Tine reported. What appeared did not look much like my site at all. And in the status bar, Explorer was politely telling me that page had errors but didn’t offer any way to find out what they were.

My first instinct was to panic. But then I remembered the XHTML validator at http://validator.w3.org/. I ran the page’s URL through the validator and settled down to find and fix the 110 errors it found.

Sheesh.

The main culprit in this case was some code I’d inserted into my post.php file to display RSS links beside category names in each post’s header. This rather slick piece of coding, which I was pretty proud of, contained the dreaded unencoded ampersand error. That means I’d included & in the code when I should have included & in the code. That error was all over the place, but Explorer seemed to be choking on it in the new code. When I fixed its first occurrence and reloaded the page in Explorer, the page appeared fine, although the status bar smugly reported that there were still errors in the document.

Other problems included

    and tags without

  • and tags. Oops. And

    tags without tags. (It appears that ecto was causing that problem in the way it codes Technorati tags. Good thing I’m not using tags in my posts anymore.) Of course, all my Amazon.com book cover links were missing alt attributes. And some of my rotating ads used IMG instead of img for coding. The list goes on and on.

    Of course, if I’d been validating the XHTML after each template change as Miraz recommends, I would have caught these errors as I introduced them. I wouldn’t have spent my Sunday morning debugging code.

    Have I learned my lesson? I think so. At least for a few days.

    The Lost Painting

    History that reads like a novel.

    Book CoverI saw The Lost Painting by Jonathan Harr in a copy of Bookmarks, a magazine full of book reviews. I added it to my Amazon.com wish list.

    The Taking of ChristThe book is an account of the finding of a painting by Caravaggio, a 17th century Italian artist. The painting, called The Taking of Christ, was found in the 1990s by a restorer.

    Evidently, many paintings from that time were lost — they’d be sold by the artist or a dealer to a wealthy patron or art collector to be hung in a home. Over the years, the paintings would be moved around, handed down to descendants, sold, and resold. The records regarding these paintings were not always complete, so paintings would disappear from the records and thus “disappear” from the art world. In some cases, a painting’s value would be understated and the painting, aged, dirty, and possibly damaged would simply be discarded by an owner. Many masterpieces were lost this way.

    The book tells the story of how two art history students stumbled upon some evidence that the painting had been sold to a Scotsman in 1802, who believed the painting was done by a different artist. The painting was then traced to an auction house where the trail went cold. Had it been sold? No one knew. And no one knew what had become of it.

    The book is written like a novel, complete with dialog and some characterization. But all the characters are real people, many of whom were interviewed by the author during his research. This keeps the book from being a dry history tome. Instead, it has life and is quite interesting to the average reader.

    The book was listed on the New York Times Book Review 10 Best Books of the Year for 2006. The edition I read included an epilogue by the author which covers the discovery of another version of the same painting.

    I recommend the book to anyone interested in art, history, art history, or the process of searching for lost artwork.

    Understanding the Rules of Great Content

    Somewhat related to my Three Types of Blog Entries post…

    In trying to catch up with the RSS feeds I subscribe to, I ran across an article titled “Understanding The Rules of Great Content” on ProBlogger Blog Tips, which says, in part:

    In your quest for creating excellent content, you may have come across the following dilemma: I would love to create something important for my blog, but how do I, as a “mere” blogger contribute to that conversation at large? If I don’t create something de novo, will it be worth posting?

    To answer that question, let me tell you about the 1 / 9 / 90 rule — and, in my humble opinion, its a rule that every blogger ought to live (and subsequently), die by.

    In a way, the three types of blog posts I wrote about correspond to each part of the “rule” discussed in the article. The 1 is for 1% creating content — that’s where my “full-length articles” come in. The 9 is for 9% enriching content — that’s my “analysis of Web content.” And finally, the 90 is the 90% consuming content — that’s my “link lists.”

    Although I’m not quite sure if I agree with the percentages — I’d rather see a 10 / 30 / 60 rule — I find it interesting that Tony Hung over at Problogger.net should come up with the same basic idea that I did, right around the same time. It’s as if we were both thinking about the kinds of entries a blogger could write but came up with different ways to say the same thing.

    If you found my post interesting, I highly recommend that you read Tony’s. He goes into more detail about how to stay in that 9 percent.

    As for this post, it falls into the 9 percent category. (Or at least I hope it does.)

    My New (Old) Office

    I move back to old quarters.

    I spent much of today preparing to move my office back into my house. Late in the afternoon, Mike arrived from work and we loaded a bunch of stuff into the back of his pickup. I’m now typing this from my relocated office.

    For the three and a half years, my office has been in a condo I own in downtown Wickenburg. I moved it there after the last tenant broke their 1-year lease and abandoned the place. When I discovered that nice white carpet (installed by the previous owner; I’m not a complete idiot, you know) completely trashed, I decided I was sick of tenants and sick of having a three bedroom house with only two occupants and no guest rooms.

    We moved our offices to the condo in August 2003 (I think). It was nice to have a dedicate workspace, a place I had to go to to work. It got even nicer when DSL became available and I could get fast Internet.

    But as time went by and I got more and more involved with my helicopter work, the downtown office became an inconvenience. If I had a call for a flight, I’d have to hurry home and get changed into normal clothes before driving to the airport. That was about 30 minutes shot to hell. And I started to get lazy, to not want to go to work in the morning. That’s not a good thing when I’m facing a deadline.

    I wanted an office at Wickenburg Airport, but the powers that be in Wickenburg decided my small business wasn’t worthy. I guess I told too many truths on wickenburg-az.com. Made a few people feel uncomfortable. They decided to punish me by not letting me have an office at the airport. When I got the FAA involved — after all, the town’s agreement with the FAA has an “economic non-discrimination” clause — they started “cooperating” and finally got around to putting out an RFP for the 1000 square feet of land I had my eye on. But do I really want to be a tenant of the town? I thought so at first, but after dealing with the town’s crap for the past eight months, I’m pretty sick of it all and not very interested in giving the town any of my money. Frankly, most of my business comes from Scottsdale these days anyway. I’m still trying to decide whether to bid on the space after all.

    So I decided to move my office back into the second bedroom at our house, the same room that was my office when we first moved here 10 years ago. It’s a 12 x 10 space with a nice, big closet. There’s no additional cost and a nice tax deduction for a home-based office. Best of all, I can go to work at any time of the day or night without commuting a single mile.

    Mike’s office, which occupied the master bedroom of the condo, has been reduced to the size of a desk and set of shelves in the upstairs “den” where the television and stereo are. Not too shabby. He tunes into Sirius radio on Dish Network while he’s working and listens to it in surround sound. The window he faces has the best view in the house.

    The view from my officeMy window also has a nice view. It looks out into the garden with the mountains in the distance. I just finished setting up the Webcam for wickenburg-az.com, which shows the view. Here’s the small view. (Well, if you’re looking at this during the week of January 22, you might actually be seeing the inside of KBSZ studios; there’s a tiny Webcam problem right now.) When spring comes, I’ll start working in the garden again. I’m looking forward to it. I miss gardening, but when my office was in town, I never seemed to have time for it.

    Right now, 2/3 of my L-shaped desk has been moved into my office. My Dual G5 computer and the big 20-inch Sony monitor has been hooked up. I put the Dell speakers on the computer, but I think the old Altec Lansings sound better, so I’ll put them on tomorrow. I’ll get the last piece of my desk later in the week, after I clear space in this room for it. (Still got one of the old “library” shelves in here.) That’s also when I’ll bring in the printers and the Ethernet hub.

    Other stuff that cluttered my office is gone. I sold the G4 that was my Web server — it sold for $335 on eBay yesterday and I shipped it out today — and I moved the G4 eMac to KBSZ studios for audio streaming. Today, I disassembled the Dell Dimension L933r computer that was my old PC test mule in preparation for donating it to the local library. My old Strawberry iMac (a G3) is in the garage, waiting for me to restore it to factory settings and dispose of it. I gave my old clamshell iBook SE to my next door neighbor, who is home-schooling her four young kids. She now has her own “computer lab.”

    That leaves me with a very reasonable 3 computers for my work: my Dual Processor G5 (now about 3 years old), my relatively new Dell Latitude D820 laptop test mule, and my reasonably new 15″ Mac Book Pro test mule. Oh yeah, and my 12″ G4 PowerBook, which I really can’t part with. No need for all the desk space I had in my downtown office. I’m even cutting myself down to two printers (rather than the 3 I had accumulated). Look for some new items on eBay soon.

    Getting rid of all this old equipment feels good. Although I actually threw away — in a Dumpster! — three external SCSI hard drives and a dual bay SCSI CD-ROM reader today, most of the other equipment is finding a good home. I hate throwing stuff away, but I really hate storing it. And let’s face it: old computer equipment has very little value these days.

    So now I’m sitting at home in my office at 8:25 PM, listening to iTunes music on my G5 (right now: “Wish You Were Here” on Wish You Were Here by Pink Floyd). It’s later than I’d usually be working. I think I’ll be working longer hours with my office in the house. Getting more work done. Blogging more.

    And doing a lot of work in my pajamas once again.

    A Helicopter Repair Story

    Including a happy ending.

    On Tuesday, I flew out to Robson’s Mining World in Aguila, AZ. I was scheduled to appear there on Saturday for their anniversary celebration and I wanted to make sure my usual landing zone was in good shape.

    It was a windy day and I was tossed around a bit on the 8-minute flight from Wickenburg (vs. a 30-minute drive). But the winds were calmer closer to the ground. I circled Robson’s once, then set down on what I thought was a spot closer to the road. Turned out, it was the same spot I’d occupied the year before. It just looked closer to the road from the air. The quartz rocks Mike and John had laid out in a line for me were still there. The idea was to land with the helicopter’s cockpit over the line. That would keep my tail rotor away from the bushes behind us. But since the bushes looked bigger than they had the year before, I positioned the helicopter a little bit closer to the road.

    I cooled down the helicopter and shut down the engine. Then I went out to assess the landing zone on foot. I discovered that the quartz line was still quite workable for me. The bushes were farther back than I’d thought on landing. (I always estimate the helicopter’s tail longer than it really is.) So the landing zone was fine. No trimming would be required. That’s good because I don’t like the idea of cutting any desert vegetation unless absolutely necessary.

    I put on my jacket — it was still quite cool at 9 AM — and walked through Robson’s front gates. The place looked deserted. I headed toward the restaurant, planning on having a piece of pie for breakfast. The door was locked but as I was starting to turn away, Rosa, who works in the restaurant, hurried out from the kitchen and opened the door. I settled down at a table and she talked me into having a real breakfast of bacon and eggs. She set me up with a small pot of hot tea and went back into the kitchen to prepare my food.

    I had a few awkward moments when the teapot’s lid fell into my cup and became stuck there. If I’d been with someone, we would have been laughing hard. But I was alone and laughed at myself more quietly. I had to pour all the tea back into the pot and wait for the lid in the cup to cool and contract a tiny bit before I could get it out.

    Rosa brought me a plate of fresh fruit — grapefruit, pineapple, grapes, and oranges — then disappeared back into the kitchen. I busied myself by reading the history of Robson’s and some information about the equipment and vehicles on display. When she brought out my breakfast a while later, I gobbled down the two eggs over medium, three slices of bacon, and two slices of wheat toast with real butter. (Don’t you hate when restaurants use mystery spread on toast?)

    The person I was hoping to see there, Rebecca, wasn’t in yet. She lives in Wickenburg and drives out five days a week to manage the place. I saw her drive in just as I was starting the engine for the helicopter at about 9:45. Since the engine was already running and the blades were already turning, I didn’t shut down. I had another stop to make.
    Continue reading