Archive for April, 2008

The pastoral issues of wrestling with IE5/Win

Tuesday, April 22nd, 2008

Page displayed in IE5.01
Screenshot of the new code, with debugging background colours (greys) showing.

I’ve spent much of today working on an XHTML/CSS code rewrite for the University of St Andrews website.

Based on feedback from staff and students, having used the site for the best part of the last year and the desire to make the code more robust and work in more browsers we’ve started again and rewritten the code from the scratch, throwing in a few design tweaks. And on the whole we’re really pleased with it.

Browsers

Our Google Analytics statistics reveal that the majority of visitors use newer browsers, the usual suspects:

  • Internet Explorer 7
  • Internet Explorer 6
  • Mozilla Firefox 2.x
  • Apple Safari 3.x
  • Opera 9.x

But there are still quite a number of visitors who still use older browsers, such as IE5.01/Win, IE5.23/Mac, IE5.5/Win and older versions of Mozilla Firefox, Netscape and Opera.

My desire was to ensure that the new code works as perfectly as I can get it in the newer browsers (our base-line browsers), and it would be a real bonus if I could get it to work in IE5.01 and IE5.5, as well as some of the other browsers.

IE5.01 jumping bug

Well, this afternoon I managed to get it working perfectly in IE5.5 and almost in IE5.01 apart from one really annoying bug.

Whenever I hovered over the left-hand navigation the website would jump down the page! (See screenshot below.) And the more I moved my mouse over the navigation the more it would leap on down the screen until there was nothing there but white space.

Page displayed in IE 5.01 -- with empty, white gap at top of page

I spent about an hour pouring over CSS books and websites trying to identify which IE bug this was, and how to fix it. Then just as I was about to give up I found the answer on the A List Apart website, in an article called Drop-Down Menus, Horizontal Style.

It said

Anyone using IE5.01 on Windows will notice that the menu jumps around when you hover over some of its items. The problem is easily fixed by modifying our previous hacks as follows:

/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */

So I tried it, and lo and behold it worked! There was much rejoicing and leaping around the office.

Was it all worth it?

Within the last month the University has had 318,282 visits to the website. 189,328 visitors used IE7, 155 used IE5.01. That represents just 0.04% of all visitors using the old and outdated web browser.

Was it really worth spending 90 minutes trying to find this obscure patch for a browser that hardly anyone uses? It was certainly fun trying to track it down, and it satisfied my intellectual curiosity, I went home on a high feeling that I’d done something worthwhile and productive today. So in that respect yes.

Our desire is to make the site as accessible as possible. As I said, we see this as real bonus that we can get the new code working in IE5, but those visitors still using IE5 won’t see it as a bonus, I imagine they’ll be delighted that we took the time to ensure that they can still view the site as we’d designed it. Maybe one of them will come to study with us, as a student, and go on to bigger and better things. Who knows.

Sure, it would be great if they upgraded their browser. Perhaps they can’t. Perhaps they’re still on dial-up accessing from a poorer area of the world. Who am I to judge?

In my interview I said that I was interested in the pastoral care of Web users. Today was one of those days where I could put that into practice.

Update

I’ve been playing around with the code since writing this post, and have discovered that if you have a sub-list within the main navigation list then this hack doesn’t work. Darn!

However, I’ve also discovered that it’s the background-color element with the hover rule that breaks it in IE5.01/Win.

It would appear that serving up an IE5-only conditional comment that pulls in an IE5-only style sheet that overrides the background-color, such as:

background-color: transparent !important;

does the trick. Changing the text colour works too, but almost everything else I’ve tried, such as font-weight, text-transform or border also breaks it, it would appear. Simplicity on a:hover within IE5/Win would appear to be the key it seems.

NYCGB 25th anniversary weekend

Thursday, April 17th, 2008

Rehearsals in the Birmingham Symphony Hall

It’s been a crazy week since I got back from Birmingham that I’m only now getting around to writing about it. But what a superb weekend, packed with great friends, good food and much laughter.

Jane and I drove down on Friday, arriving in the city of a thousand trades in a little over seven hours, to be greeted almost at the door by a couple of friends sitting in the bar.

Gimme credit!

Credit cards

Checking-in took a little longer than anticipated. When I handed over my credit card it flagged up a warning which required the hotelier to call the bank for an authorization code. “I’m so sorry about this,” he apologised.

“That’s okay,” I said. “That happens every now and again, just to make sure that it really is me spending £300 about 350 miles from home. I’m quite glad they’re paranoid.”

It turned out to be more than that.

Seemingly my credit card number had been compromised on an online store (not sure which) and was being used to make fraudulent payments. First £1.00 to Oxfam, then £10 to O2 pay as you go, and £30 to Vodaphone pay as you talk. It would appear that this is what they do: make small payments that could easily get overlooked. Were it not for the fact that my cautious bank look out for exactly this sort of thing.

So within twenty minutes of arriving at the hotel I was now sans credit card: it had been cancelled. It’s now cut up into little pieces and I’m awaiting a replacement card.

Rehearsals

Matthew Owens

Rehearsals began on Saturday morning at 11:00 … ish. They were conducted by Matthew Owens (aka Smiggins) and went really well. Warm ups were hilarious and I wish I’d taken more video footage of it. It would certainly rival any so-called celebrity fitness video for entertainment value.

So there we were, back in our places in the choir. I was transported back to Beaconsfield #1 in 1989, with the same rogue’s gallery on the back row, much banter and deep laughter. It was great, great to be back, great to be back singing. I love my NYC friends with all my heart.

I was initially a little disappointed with the music choice. There was a lot of new music, which is fine, and a few of us felt that we’d rather have had more of a “NYCGB Greatest Hits”. But we got to sing Shenandoah (arr. Erb), which we toured the world singing in 1992 which was great.

But, you know, at the end of the day it wasn’t about us. It was about celebrating NYCGB in all its fullness and looking ahead to the next 25 years (not back to the halcion days of 1987-1994!!) and that was certainly done with style. I’d sing a whole concert of nursery rhymes if it could be with NYC!

Anniversary dinner

Mark Powell, Carl Browning and Danny Curtis

In the evening we retired to the Copthorne Hotel for the anniversary dinner where there was more fun and laughter and a guest appearance by master magician Kockov from the former Soviet Republic of Monrokvia who entertained us with close card tricks and then a 20-30 minutes set, including a quick game of Russian roulette!

This is my favourite photo from the evening (above). As far as Mark (left) and Carl (right) were concerned I was taking a photograph of them. It was only after I’d taken it and was reviewing the picture that I noticed what Danny (foreground) was doing. That had me crying with laughter. Mark and Danny used to be choir administrators; Carl founded the National Youth Choir in 1983.

Concert

Concert in the Birmingham Symphony Hall

Sunday morning was a relaxed affair with rehearsals beginning in the Adrian Boult Hall around midday for an hour. We took lunch and reconvened in the Birmingham Symphony Hall around 14:15.

We made the mistake of eating in at All Bar One, a hop, skip and jump from the Symphony Hall. The food took an age to arrive, and when it did some of it wasn’t even cooked. As Danny pointed out, it should have been called All Bar Food!

The concert began at 19:00 and ended nearly four hours later at 22:45. A gala concert indeed. Perhaps a little late for some of the younger choir members, and indeed our choir members who were needing to drive home to get to work the following morning.

I left the post-concert party back at the hotel just as Big Robbie Patterson was demanding that the bar be reopened. Again. It was nearly 02:00.

All in all, an absolutely brilliant weekend, with some of the loveliest and funniest people that I know.

Photos
You can see all my photos from the 25th anniversary celebrations on Flickr.

Off to Birmingham to sing

Friday, April 11th, 2008

NYCGB

I’m off now for a few days to Birmingham to take part in the National Youth Choirs of Great Britain’s 25th anniversary gala concert as part of the exNYCgb choir.

I’ll not be blogging, but you can follow my goings on at Twitter: www.twitter.com/garethjms.

Testing browsers

Wednesday, April 9th, 2008

Various browsers in a toolbar

I’ve got to a point working on my current Website design project where I’m needing to

  1. test the code in a variety of browsers
  2. keep track of which browsers still have issues with the code

Toolbar

So I took my own advice and created a new toolbar which I now have as part of my main toolbar, with links to the 15 web browsers I currently have installed, based on the Google Analytics stats for the website.:

  1. Firefox 1.0.8
  2. Firefox 1.5.0.10
  3. Firefox 2.0.0.13
  4. IE 5.01
  5. IE 5.5
  6. IE 6.0
  7. IE 7.0
  8. Opera 7.5
  9. Opera 8.0
  10. Opera 8.5
  11. Opera 9.27
  12. Netscape 7.2
  13. Netscape 8.1
  14. Netscape 9.0.0.6
  15. Safari 3.1

The “Browsers” link with the folder icon (that you can see in the screenshot) is simply a shortcut which will immediately open the folder containing the links to all these browsers.

Even though this now takes up a fair chunk of the main toolbar I’m finding it invaluable for quickly opening whatever browser I need next without having to scrabble with Start menu … Programs … Internet … Browsers … etc. I can always remove the toolbar when I’m done with this part of the project.

Keeping track of issues

Spreadsheet of browsers and files

The next thing I need to do is keep track of which browsers I’ve tested the code in and whether there were any issues. So I’ve thrown together a spreadsheet to do that very thing. I have a rows for each of the files, and columns for the filename, whether it validates and whether it works as expected or not.

The key that I’m using is:

  • A – OK
  • B – Minor flaws
  • C – Major flaws
  • XXXX – Unusable

I’ve updated this key since I first blogged about it, as I needed to distinguish between minor and major flaws. I’m still using XXXX as it sticks out like a sore thumb.

I’m aiming to get everything marked as either A or B in the majority of browsers, certainly the A-Class browsers (Firefox 2, IE 6, IE 7, Opera 9 and Safari).

Needless to say, as tests go so far I’m having issues with Firefox 1.0, Netscape 7 and Netscape 8 (which both use the same rendering engine as Firefox 1.0), Internet Explorer 5.01 and Internet Explorer 5.5.

Oh well, on with the testing …

CSS Naked Day

Wednesday, April 9th, 2008

CSS Naked Day

Today (Wednesday 09 April 2008) is CSS Naked Day.

Which is why the page design has disappeared and you’re currently looking at fairly plain, old school web page.

Unless of course you’re reading this in your RSS client of choice.

The idea behind this event is to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and of course, a good ‘ol play on words. It’s time to show off your <body>.

The design will be back tomorrow.

Sacred space at Linne Bheag

Tuesday, April 8th, 2008

Sacred space at Linne Bheag

One of the smaller Web projects that I’ve been working on over the last few months is a new website for my parents-in-law, Peter and Dorothy Neilson: Sacred space at Linne Bheag.

Weebly

It’s built using Weebly, which is a really simple to use content management system.

Weebly is wonderfully easy to use, even easier to use than WordPress, can you believe it?!

Once we got the site structure sorted it took only a few hours to set up and populate with content. It’s well recommended if you’ve got a small site to create and populate.

You can create blog/news sections, it automatically includes an RSS feed so that people can subscribe to your latest news, and it will even manage your DNS so that you can tie your domain name to it, otherwise you’ll have http://username.weebly.com.

Linne Bheag

Anyway, the site is now live, and my mother-in-law Dorothy (whose 0×3Cth birthday it was on Sunday — Happy Birthday!!) is enjoying making site updates.

They offer all sorts of events, services and stuff, such as:

either out-and-about in sunny Scotland or from the comfort of their beautiful new home in Anstruther, Fife.

Check out the website: www.linnebheag.co.uk.

Red Robot Leaving The City

Tuesday, April 8th, 2008

Have I shown you my laptop? It’s a Lenovo 3000 C100. Nothing wonderfully spectacular about it.

Laptop - front

Until you turn it around:

Laptop - back (complete with red robot and blue dog image)

How cool is that?!

It’s a GelaSkin that I got from Urban Retro. It’s called “Red Robot Leaving The City” by Exploding Dog.

GelaSkins are artistic, protective skins that are easy to both apply (with no annoying bubbles) and remove. There are loads of different designs available. Check them out.

Only I got the wrong size, which is why it doesn’t reach the bottom of the lid where the Ubuntu sticker is. I got the 15″ sticker (because I have a 15″ laptop) and then discovered that I’d ordered the 15″ widescreen sticker. For my 15″ non-widescreen model I should have ordered the 14″ sticker. Of course!

You can check out the proper dimensions here:

I still think that it’s pretty cool.

Probably because I’m a boy. And boys like red robots. That’s official.

(According to the comments, it would appear that girls like red robots too.)