Posted on June 26th, 2009
Last night I got zero sleep. Neither reading a book nor sleeping pills helped, and I finally gave up around 3:00am. At first I tried thinking positive. Here was an excellent opportunity to get caught up on my backlog of work! Unfortunately, my brain was all mooshy, so I couldn't concentrate. Instead I ate a sandwich and watched a couple episodes of Star Trek before it was time to get up.
Today was nothing but a blur as I wandered around in a zombie-like state. My only goal was to not make anything explode.
Which is really too bad, because if anything had exploded, I'd have something to blog about.
Instead I'll make do with boring tales of blog development...
My MacBook was working on some processor-intensive 3-D renderings, and so I couldn't use it for anything major or I'd slow things down. It was the perfect time to work on a few site improvements, because a text editor doesn't use much of the computer's processor power.
One of the things I've longed to do was be able to add search terms to my "Google That Shit!" page URLs. This way, when I send somebody there, I can pre-populate the search box with the words they should be searching for. I thought it would be really simple... I'd just hunt down some snippets of code that somebody else had used, modify it slightly, and away we go. Unfortunately, I couldn't find any code snippets.
So I spent the next three hours trying to get the code working. I eventually figured it out, but it's a kludgy solution that will probably break more often than it works (if you don't believe me, just go to the "Google That Shit" page and look at the source code!).
The good news is that now I can send search terms! Just add a "?" to the URL followed by search terms divided by "+" characters. Like this... SEARCH GOOGLE FOR CHOCOLATE PUDDING.
I can even refer site specific searches like this... SEARCH BLOGOGRAPHY FOR BETTY WHITE.
Now I don't know if I should be proud of myself because it actually works... or embarrassed because the way it works is so ugly.