Sunday, September 25, 2005

Online TV Guide live

Posted by Chris @ 5:00 PM

After a bit of work this Sunday afternoon, I now declare the Online TV Guide out of beta and live!

I've finally managed to sit down and spend a bit of time ironing out the last main bug, that the listings data didn't update properly when opened for the first time that day. I solved it (based on an idea suggested by Tony) by naming all of the XML files with the date they are listings for, and then changing the page to load in the current server date, and request files for that date, or that date plus however many days specified when you choose to view a different day.

Suffice to say it works much better! As it is now live I guess any bugs you find are supposed to be more important, contact me using the details provided on the page if you do find any and I'll try and fix them as quickly as possible.

And now for a closing tagline for this post, how about "Find a new programme today."

My tomatoes!

Posted by Chris @ 12:17 PM

As with most weekends there is a certain amount of housework to be done, and this weekend has been no exception. However I have extended the housework to include the garden today, and so I've been giving "ouwt back" a bit of a tidy up. Essentially titivating some tubs, ripping out the dead sweet peas and cutting down the tomatoes, but not before taking the remaining tomatoes off to ripen up indoors.

I must say this years tomato harvest has been much better than last years. The below photo shows you what I've got left of my tomatoes. When you bear in mind I've already eaten a few, and thrown a few of the bad ones out, I can safely say I'm very happy with my crop =:o)

My tomatoes!

Saturday, September 24, 2005

Froggatt Edge and White Edge

Posted by Chris @ 6:24 PM

We've been walking in the Peak District again, this time on a nice pub walk. Starting near Curbar, it goes along Froggatt Edge, calls in at the Grouse Inn for lunch, and then back down White Edge. The pictures we've taken aren't the most exciting ones we have taken, mainly because I'm in them, but you can look at them all the same.

That's about it, suffice to say after a 7 mile walk we're pretty jiggered so won't be doing much else today!

Friday, September 23, 2005

Photos by location using Google Maps API

Posted by Chris @ 7:16 PM

I've been playing again, this time with the Google Maps API. And what have I produced? Our photos by location.

This natty little page takes the photo galleries and marks them on the map, along with a link along side the map. Click on a marker or a link, and a little info window opens up showing you three thumbnails from the gallery. Click on a thumbnail to take you to the full gallery.

Make sure you explore the map as well, as not all galleries are within the map it starts on. (Hint, our honey moon and snowboarding in Morzine weren't in this country!)

As for the technical stuff, getting the map into a web page is remarkably simple, and their Google Maps API documentation will help you with that. I've put all the galleries, along with their lng and lat position into an XML file, and again using Google documentation you can figure out how that is used to place the markers on the map.

Difficulties arise when you try to get links (on the right of the map) to open the little info windows. Essentially the method that opens the marker window takes a string as the html to display in the window. However placing this on the map, and within the onClick event of a link is not easy. The solution is to give each marker a unique ID, and then place the marker object, plus the html to go in that marker's window, into separate arrays, referenced by the unique ID.

I won't go into too much more detail about it here, suffice to say if you view source you can see the code I've written, and as usual any questions you have I'm happy to answer.

Have fun exploring where we've been!

Tuesday, September 20, 2005

Joke from Jack Dee on TV last night

Posted by Chris @ 8:57 AM

Q. What key opens every lock?

A. A Pikey.

Saturday, September 17, 2005

My site, SDL style

Posted by Chris @ 11:41 AM

In a throwaway comment at work the other day, when I mentioned I was doing a style sheet switcher to Phil, he said I should do the site in SDL green, gold and red. (Essentially every SDL website has to have these corporate colours.)

And so I'm proud to reveal the SDLified style sheet! Check it out in the style sheet switcher on the right. It's not the best implementation, and I will not be fixing the TV Guide to work with it, but I think it suffices for a Saturday mornings playing around :o)

Friday, September 16, 2005

Style sheet switcher broken

Posted by Chris @ 1:48 PM

Hmm, I've been playing with the style switcher, trying to make it W3C compliant, and I've broken it. I can't fix it now, but rest assured I'll fix it this weekend, in the meantime enjoy CGRiley.com in Magenta, or whatever colour is decides to display!

Fixed, and all standards compliant, come on!

Further news, I've sorted out the style sheets for the Online TV Guide, so now the site should look OK on all pages. Any complaints let me know.

Thursday, September 15, 2005

Style sheet switcher

Posted by Chris @ 8:36 PM

CGRiley.com - See It Your Way

As you may remember I launched an Online TV Guide a while ago and during development of that, Tony commented that it looked a bit pink, and then proceeded to say, "But are you gay tho'?" in a bothered style teenage voice.

I decided to do something about this.

So to allow Tony to view my site in more, ahem, masculine colours, and to also better improve the accessibility of my website, I have integrated a style sheet switcher, and a number of pre defined style sheets into the site.

So now you can view my site in the standard magenta, blue, green or for those who have problems with their sight, an accessible version (its bigger and the colours have a higher contrast).

If you want to know how it works look at the source and ask me questions if you can't figure it out, I'm happy to explain it to you. You should see the alternative styles in browsers that allow you to change the stylesheet too. The only page I've not fully updated to use the new styles is the tv guide, that will follow soonish.

So go forth, choose your colour, and enjoy.

Ignore this post

Posted by Chris @ 1:14 PM

This is just a test to see how quickly Google Blog Search actually picks up on new posts from little ol' blogs like mine.

Google, on your marks, get set, GO!

Tuesday, September 13, 2005

The Ashes and Petrol

Posted by Chris @ 1:11 PM

Today is meant to be a great day. The day when I can hold my head up high and say I am proud to be English after such a magnificent Ashes victory.

However I can't hold my head up high, and say I'm proud to be English, because English people are stupid. All these arseholes panic buying petrol are causing chaos over nothing. If the mindless idiots bothered to read and watch the news properly, they would have noticed the forthcoming protests aren't planning to blockade supply routes, just stand around outside oil refineries, and have go slows on major roads.

No shortage, no panic buying needed. The only thing creating a shortage is you idiots panic buying.

Go home, stop worrying about it, hell if the worse happens and you can't get into work because there is no petrol, enjoy it, you work more hours than the average EU citizen anyway!

Please people of England, I beg of you, grow some brains.

Monday, September 12, 2005

Back from the Lakes

Posted by Chris @ 8:25 PM

We're back from dog sitting at Dawn's parents, and very relaxing and stress free it was. A lovely break. The best bit however was our morning trip to Keswick in The Lakes. Derwent Water look absolutly beautiful as the early mist clung to the shoreline. It was at this point I took the best picture I've taken with my camera so far.

Feast you eyes on the below, and the rest here.

Derwent Water
Breathtaking.