Adventures of the web
There are some amusing aspects of coding, or system administration, that I’ve come to know through the years. One of them is:
When you set out to fix a problem, you end up doing a lot more than what you originally intended.
This is what happened to me today. I was aware that my blog looked like it had been put through Liberaces wardrobe, on a bad hair day, when viewed with Internet Explorer. So now that I just had won $160 on blackjack bonus hunting, I thought that lady luck might be on my side. I might give this seemingly strange task a go.
I started IE and took a look at the page. The sidebar elements somehow bleeded into the main page area and all the texts ended up beneath the place where the footer was supposed to be, and all the fonts were screwed up in size. I thought that this might be a problem with the stylesheet. So I started checking it for anything that might cause this strange behaviour. I checked all the places where I had put code to avoid IE breaking, but none of them could cause the things I had seen. I took the opportunity to clean out some old code in the CSS-file and polish it up a little.
Okay then, time to figure out exactly where the sidebar went nuts. I was going to remove some of the sidebar widgets and see what happened. When I accessed the widget manipulation menu I discovered that they weren’t working! What the !#¤%¤¤%? How long had it been like this? Could something have been misplaced when I updated wordpress last time?
I went to my blogs dashboard and saw that 2 days earlier there was an upgrade to Wordpress. I though that it might be a good idea to upgrade and see if that solved my problem. So I started upgrading my wordpress, from 2.0.5 to 2.0.6. It was pretty straightforward, I had just to delete some catalouges and upload the new inform…. wait a minute. Delete some catalouges? Like the wp-includes? Hmm… I had a nagging suspicion that the culprit could be found here, so I checked the information for installing the Widget plugin, and lo and behold if there wasn’t a catalouge there that could reside in the wp-includes catalouge!
I had to find the Widget plugin source, extract the right catalouge and put it back. Said and done. Now I could manipulate my sidebar widgets again! Success! Now then, for the IE problem.
I removed some of my sidebar widgets and it gave very strange effects. Sometimes the sidebar text appeared in the main text area, and sometimes the sidebar text wasn’t even visible at the bottom of the screen. It was as if it disappeared beneath another CSS element. Weird. I messed around little with HTML-code and CSS-code with no success.
Then I thought that I might aswell see if the HTML-code was valid. It might be that something was broken in it that caused IE to behave as it did. So I went to the W3 Validator and input my blogs URL. The horror! The horror! The errors! The errors! There were so many of them! I was reminded of a quote from the movie 2010: “My God, it’s full of stars!”. In my case it would be “My buddha, it’s full of errors!“.
Bleah. I started fixing the errors, one by one. Seeking out the HTML-code, sometimes in .html-pages and sometimes in the sidebar widgets themselves. An arduous task! Took me 30 minutes to complete, but finally the W3 Validator gave me the green lights.
To my utter astonishment my blog suddenly looked okay in IE! Amazing! I was prepared for more error pruning and search for anomalous code! But no need. There it was, bright and shiny and sticking it’s nose out at me! Jeepers!
I started out trying to fix my blog so IE displayed it as it was supposed to be displayed and in that attempt I managed to polish and clean up my CSS-file, upgrade Wordpress, fix my Widget plugin and clean up a lot of HTML-errors! The work I ended up doing was a lot more than I originally intended.
But all is well that ends well. It’s all in a days work for… Mr System Administrator Man!
JenEriC wrote,
Everything is always more complex than you thought from the beginning.
I have a plugin, FireBug, that shows if a page isn’t well formed. Might be interesting for you to check out!
January 7th 2007 at 16:14 (4:14 pm) — Using
Firefox 2.0.0.1 on
Windows XP
John Kim wrote,
wow, people win in blackjack?
you know i was at a casino couple weeks ago and played poker, made 700 and then played blackjack
i work it up to 1500 and i got bold and bet 500
i got an ‘11′ and the dealer was showing ‘2′
so i doubled down and got a horrible ‘4′.
Some guy i was playing with hit on a ‘15′ and got a King (very dumb of him) and that guy made me broke because the dealer flipped up a ‘12′ and pulled out a ‘8′. She was supposed to bust and so i lost 1000 in one hand of BJ. lol
January 7th 2007 at 19:48 (7:48 pm) — Using
Internet Explorer 7.0 on
Windows XP
John Kim wrote,
ooo but i won though the other day
http://www.fileden.com/files/2006/11/29/438993/poker.jpg
January 7th 2007 at 19:56 (7:56 pm) — Using
Internet Explorer 7.0 on
Windows XP
Mika Perälä wrote,
Jens: Oh! I’ll give FireBug a go
Got it installed now!
John: Cheesus! $1000 in one hand? Yikes!
Well, I do bonus hunting on the webcasinos. I use the fact that many casinos have promotional offers where they double the money I deposit in my first deposit (often up to $100) and then I play Blackjack with strategy cards to meet the wager requirements, thus taking advantage of the casinos bonus to make some money. I’ve so far managed to scrape together around $1000
Sweet! $500 as number one in poker! Congrats! :pom: :pom: :pom:
January 8th 2007 at 01:59 (1:59 am) — Using
Firefox 2.0.0.1 on
Windows XP
Mari wrote,
Mr S.A.M. Got a nice ring to it. I wanna do business. (I’m not jesting)
January 8th 2007 at 14:53 (2:53 pm) — Using
Internet Explorer 6.0 on
Windows XP
Mika Perälä wrote,
Uh-oh, what kinda business this time?
And Jens, FireBug is sooo good! How could I live without it?
January 8th 2007 at 17:02 (5:02 pm) — Using
Firefox 2.0.0.1 on
Windows XP
Mari wrote,
E-trade.
January 10th 2007 at 10:45 (10:45 am) — Using
Internet Explorer 6.0 on
Windows XP
Mika Perälä wrote,
Oooh, that I have never done before. I’ll try to call ya sometime soon so we can continue talking about business and our common efforts!
January 11th 2007 at 07:41 (7:41 am) — Using
Firefox 2.0.0.1 on
Windows XP