Archive for September, 2008

Bruce Almighty

Sunday, September 14th, 2008

Adrian’s Rating: 8

I do love this film. The comedy is great, even if Jim Carrey can be a bit over the top at times and the general style of the film is written to support this (which stops this from being a 10 for me.) The real gem, however, is that underneath the fun of watching Jim Carrey’s character Bruce Nolan come to grips with the powers he has been given, there are some serious life lessons to learn and reflect upon:

  • Actions have consequences
  • What people want and what they need are rarely one and the same 
  • There is no use in asking for signs if you are going to ignore them
  • You can’t expect to stand in the middle of the highway and live to tell about it :)
It is this juxtaposition that really does it for me. Watch and enjoy!

RedDot CMS and RQL Documentation

Sunday, September 14th, 2008

Thought I had hit gold this morning. Playing around with my iPhone and RSS feeds, I happened to do a search for “RedDot blog” and came across this on the US community site: new cms 7.0 and 7.1 rql documentation released. Unfortunately, you need a US community site login to access it. Tried checking the UK community site (which I do have access to) but as I suspected, it isn’t there :( Is it only in the UK that this documentation seems to be pay to access? Anyway, if you have access to the US community site, I would be interested to know whether the RQL documentation is indeed free to access from the above link - along with whether it is the most up to date (the above is from February 2007). Meanwhile I guess it is back to the user and common logs for me…

Undercover Blues

Saturday, September 13th, 2008

Adrian’s Rating: 7

A fun, family friendly comedy about two spies (Dennis Quaid and Kathleen Turner) on maternity leave in New Orleans with their baby daughter who get drawn back into the spy game whilst simultaneously dealing with the bumbling attention of a local thug and the local police.

The characters are fun, quirky and memorable. There just doesn’t seem to be quite enough laugh out loud moments to warrant a purchase - but then Lou loves it and we own it anyway :)

RedDot CMS, SmartEdit and Lightbox

Saturday, September 13th, 2008

Sometimes, my previous article on RedDot CMS, SmartEdit and Javascript is just not enough - for example, integrating Lightbox (in this case, version 1). Now, there is probably not any really good reason to have Lightbox working within SmartEdit - but that is not the point of this post. No. The point of this post is to explore “why” Lightbox doesn’t work in SmartEdit, because, chances are, the Javascript library you *do* want to have work in SmartEdit is probably suffering the same issue. And any way - its an easy problem to solve :)

The symptoms of note here (apart from it not working) is that we also do not have any Javascript errors. Which generally means some clever Javascript is failing safe, or, more likely, the Javascript isn’t being run at all. Either way, we need to find where the Javascript begins running, and in this case, we happen upon the issue straight away at the bottom of the Javascipt file - extract below:

// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function'){
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

addLoadEvent(initLightbox);	// run initLightbox onLoad

As you hopefully can see, the call to addLoadEvent on line 17 (above) is supposed to start the initialisation of Lightbox. The addLoadEvent function (lines 5 through 15 above) takes a copy of the old onload function and replaces it with one that calls the old unload function followed by the supplied function. All would seem well - but it suffers one minor but important flaw - it relies on everything else playing just as nice with the onload event.

Now, when you are dealing with your own web sites or web applications, you are in control of playing nice and, well, it serves you right if you don’t. But when you deal with other peoples web sites or web applications, well, unless you want to start modifying them (assuming that you can *and* you wish to deal with whatever can of worms that opens) your other options are to *hope* that they play nice (not very effective) or work around it. Guess what we will be doing…

With respect to SmartEdit and the onload event - RedDot CMS does not play nice. In the previous article, we saw how in SmartEdit mode, RedDot CMS would happily add a HTML body tag to our page if it was missing one - whether it needed one or not. This time we are more interested in what it does to an existing HTML body tag - bludgeoning the onload attribute with its own code. And by doing so, it effectively overwrites what Lightbox had previously set up.

Thankfully, the solution is easy - we simply repeat the addLoadEvent call *after* RedDot CMS has output the HTML body tag:

<!IoRangeRedDotMode>
<script type="text/javascript">
/* <![CDATA[ */
  if ((typeof addLoadEvent == 'function') && (typeof initLightbox == 'function')) { addLoadEvent(initLightbox); } // Overide SmartEdit!
/* ]]> */
</script>
<!/IoRangeRedDotMode>

As the code is only necessary in SmartEdit mode, we use SmartEdit mode only block marks to remove the added code from preview and publish. I place the code at the end of the HTML output, between the closing HTML body and html tags, and also do some checks to confirm the existence of the functions - in case I have pages that do not include the Lightbox code.

Stargate Continuum

Saturday, September 13th, 2008

Adrian’s Rating: 8

Disclaimer: Your mileage may vary. I like Stargate - I imagine I have seen most of the series (but definately not all, and not the previous movie…)

I enjoyed this. Its a bit like a reunion tour - a lot of characters (and I mean a *lot*) from the Stargate series make an appearance, even if only for very small cameos (like passing briefly in the corridor). Baal goes back in time and changes history resulting in the SG-1 team (Cameron, Sam and Daniel only) gating back to an alternative timeline Earth - one where the Stargate had not made it to America and is instead inside the hull of a cargo ship trapped in the Artic ice.

It feels like a Stargate SG-1 episode, it looks like a Stargate SG-1 episode, it *is* a Stargate SG-1 epsiode - but longer, with better pacing and time to add those small flourishes that round out the characters in the situation they find themselves in.

Lou and I also watched the “making of” - which was very interesting, as you get to see what elements of the film would not be possible (or at least not to the same consistency) if it had been a done as a double episode. Who knew that filming old cargo ships and ice would be so tricky?

Thoroughly Modern Millie

Monday, September 8th, 2008

Adrian’s Rating: 6

When Lou feels she needs an emotional lift, there are a couple of her personal movie favourites that she turns to. She gave me a choice. I chose Undercover Blues. I mentioned I would have to write a review on my blog (more for my own personal record than the need to share the information with the world!) She thought that was great and promptly overrode my choice. Perhaps I have created a monster?

There are a number of things that let this film down for me:

  1. Repeated watching. If this was the first time I had seen this I may have rated it a 7 (WO - watch once), but as I mentioned above, it is one of Lou’s favourites…
  2. Musical. Not that I particularly dislike musicals - but I do find that my opinion tends to become more polarised, and even more so considering point one above. The Tapioca was bordering on painful, and the Maseltov seemed like unnecessary filler.
  3. Dated. I have nothing against older movies, but I do find that films that utilise techniques which date them particularly offputting, especially if the movie isn’t providing enough entertainment to draw me away from the fact. Being filmed in 1967, I imagine the double imaging done to make people appear to be climbing buildings and driving cars would have been quite impressive. Today it is just quite obvious. Funnily enough, I usually find this to be less of a problem with films that are set in the past (as this one is - 1922) as there is less tendency to display 80’s technology as “today” or even worse, “futuristic” - but not this time (not that there is any 80’s technology in this film - it is just the cinematography that dates it). Again, though, I also feel point one above has contributed negatively to this…
Having said all that, the film is quite entertaining and does get better as it progresses. It is bright and colourful and the style is consistent throughout. I do not feel the need to watch it again - but somehow I don’t think I will have a choice… 

The Week That Was

Sunday, September 7th, 2008

This week has been a combination of a lot of little things with not much time to write. Fear not, that is why “The Week That Was” is here! Certainly I have a lot of potential posts for the future…

Wednesday 3rd September 2008

  • Unexpected surprise renewing my First Great Western travel ticket - renewals get 10% off. Can’t be upset with a £37 saving.
  • Lou finally sorted out the last bits of our itinerary for our upcoming holiday to Croatia and Italy (with my parents) and Malta (just the two of us). If the coming weeks seem a little mundane (in terms of our activities), it is because we should more than make up for it on holiday.

Thursday 4th September 2008

  • Movie: Thoroughly Modern Millie

Friday 5th September 2008

  • My RedDot CMS project at Friends of the Earth is finally coming together and I have a back list of articles I still want to write…
  • Installed Google Chrome and have been trialing it since…
  • Today is the second anniversary of our move to the UK!

Saturday 6th September 2008

  • Finally purchased my iPhone - yay! Mucking around with this managed to take up most of the weekend…
  • Movie: Stargate Continuum

205 To Mile End

Wednesday, September 3rd, 2008

After four weeks of travelling from Reading to Hackney without any major drama, I was beginning to become skeptical of what I had been warned about regarding the train and tubes. With the onset of the British wet weather though, I feel my naivety is about to be compromised…

Normally I take the train from Reading to Paddington, the tube (Hammersmith or Circle line - depending which I exit closest to) to Moorgate, and then the 43, 214 or 205 bus to within walking distance of Friends of the Earth. So far, the most I have veered from this was to take (on the return journey) the Metropolitan line from Moorgate to Baker Street, and then the Bakerloo line to Paddington - due to flooding on the  Hammersmith and Circle lines. Today was going to pose a greater challenge!

It all started with exiting near the entrance to the Circle line at Paddington - the queue of people came right up into the station. While I headed back towards the Hammersmith line, an announcement let me know that the gates to the Circle and Bakerloo lines would remain closed until the flooding had subsided…

On reaching the Hammersmith line, the service status boards proudly announced severe delays. Announcements informed me it was due to signal failure at Edgeware Road (the next station) - and suggested taking the Bakerloo line and then Metropolitan line to get to east London. Given that the entrance to these lines were flooded, I figured I would take my chances on the Hammersmith line. After further waiting, and more announcements - I got the impression there were delays all over the network due to signal failures and flooding. So when the announcements suggested taking the bus, I thought this would be a perfect opportunity to try a different route to work…

The 205 bus I usually take from Moorgate goes to Paddington, so I figured I would just catch that. The signs inside Paddington helpfully pointed me towards the correct exit - though you need to keep a sharp eye out or you will miss the ones that show buses. I couldn’t find any signage outside of Paddington, but somehow managed to pick the correct direction and the bus stop wasn’t far.

The unexpected reward was the bus journey itself. Sitting on the top floor of the bus, near the front, I had a great view of London (admittantly a very small part of it) that I have basically missed by taking the tubes all of the time! And I think I managed to cover off most of my tube journey, as well as a part of the Monopoly board - Edgeware Station, Marylebone Station, Baker Street Station, Great Portland Street Station, Euston Square Station, Kings Cross Station and Angel Islington. Even better, it only took 37 minutes, not much longer than the tube journey.

Now all I need to do is convince Lou that this is a good way to see London…

My Spy

Tuesday, September 2nd, 2008

Adrian’s Rating: 4

Bordering on painful, this is a lacklustre comedy with grating characters. The only thing going for it is the cast - and then, only if you mute the dialogue. I don’t expect it has done anything positive for the careers of Antonio Banderas, Meg Ryan or Selma Blair. As Meg’s character says at one point - “Life is too short”. Lou and I took her advice and gave up watching before the end.

The Week That Was

Monday, September 1st, 2008

A weekly note on smaller happenings that haven’t warranted full posts….

Monday 25th August 2008 (Bank Holiday)

Not that we got up to much. A trip to purchase dog food confirmed that the Reading Festival was over for another year, with only a few stragglers remaining.

Friday 29th August 2008

Lou succumbed to the local fish and chips shop, despite my warnings. She confirmed once again that the fish and chips back home are better. I think it has to do with how the British pre fry everything and leave it in warming bins / shelves until purchased - rather than frying as ordered. Or maybe it is a coastal thing - the fish and chips we had in Mevagissey (Cornwall) earlier this year were great…

Saturday 30th August 2008 

Met Bruce and Caroline and their dog (whose name Lou probably knows) whilst out walking Kobe. They joined us on Lou’s usual walk through the local golf course. Bruce and Caroline hail from South Africa, though they have been here longer than us - 16 years! Bruce used to be an Architect in South Africa, but came to London to study Theology and is currently pastor of the Caversham Evangelical Church

Formatted and reinstalled Windows XP Home Edition on what used to be our file server (an old AMD Athlon 2000+ 1.6GHz) and hooked it up to our LCD TV so that Lou and I can play City of Heroes together. This time I copied the updated pigg files from my laptop - successfully avoiding the 2.6GB patch download! Today’s effort was successful - unlike the drama of my laptop last weekend - where after days of patching, the game wouldn’t even run! (That will teach me to check the graphics card requirments before installation)

Sunday 31st August 2008

Long Skype conversation / catchup with Iain and Bern, followed mostly by City of Heroes. Paragon city welcomes Cosmo (natural tanker - me) and Wanda (magical scrapper - Lou) Odd. As one bright spark realised - the Odd couple :) Actually, the character names and colours (and size!) is based on the Fairly OddParents. Lou purchased the Good vs. Evil Combined Edition a couple of weeks ago and is playing on the free month that comes with the game. She also has a much higher character she started earlier. I get to play on the two week trial… we will see how long this lasts :)