Flashblock’d 2

We’ve not used Flash image replacement in a big way yet, but I’m sure we will need to for some of the more design led sites that we will implement in the near future. I was alerted to the importance of using the right technique this morning when I visited this article about an unrelated CSS technique today.

The problem comes once again with Flashblock, the Firefox plugin I use to kill off resource hogging Flash ads in web pages. I’ve blogged about the BBC falling foul of this already. Here’s what I saw when I viewed the article:

Screenshot of a web article

All those lovely headings replaced with the big shiny Flashblock F. Here’s how it should look:

Screenshor of a web article

Again, I’m certainly not knowledgeable on Flash text replacement. But after a bit of Googling, it seems as though the sIFR technique is the way forward here. The folks behind this have worked with the Flashblock developers to ensure that for those who are blocking their flash, they see the text (albeit in a normal boring font) rather than the big F. When I look at the sIFR example page, that’s exactly what happens.

I’m not sure what technique the chap behind the David’s Kitchen blog is using, but I think it probably needs reviewing. But perhaps he’s so busy working on “web 3.0 and other deliciousness” that he doesn’t have time for Flash-shy luddites like me.

Whilst researching all this, I was pleased to discover that something that had been troubling me about Flash replacement probably shouldn’t. Does Google dislike the technique? The answer it seems is,  if it’s done right, probably not:

http://mezzoblue.com/archives/2008/05/05/image_replac/

http://googlewebmastercentral.blogspot.com/2007/07/best-uses-of-flash.html

DIY 3D wizardry with the wii

Thanks to Ollie for sharing this video made by one of his friends. Levels of geekiness we can only dream of at White October…

Taleb : applied to web development

I know nothing more about Nassim Nicholas Taleb than what I read in the Sunday Times magazine this weekend : that is he’s trader, turned philosopher who makes bleak predictions on the global economy and the over efficient world we now live in.

Taleb has has a theory about Black Swans in life : things we don’t know about that come out of nowhere and disrupt our lives or investments, sometimes directly contrary to facts we had taken as a given. The analogy that the term is derived from relates to the discovery of black swans in Australia. They’d always existed, but up until their discovery most reasonable people would have told you resolutley that swans are white. The discovery of black swans destroyed the commonly accepted white swan theory.

A few of Taleb’s points seemed to resonate with recent changes in thinking behind web development. He believes that we have to accept our falibility as humans : we are not perfect; we cannot perfectly understand incredibly complex systems around us; to rely upon our “understanding” of such systems with no error margin is dangerous.

A similar idea seems to lie behind the increasing popularity of Agile development methodologies. In a lecture (mp3) given by Leisa Reichelt at d-construct 2007 which Dan and I attended she talked about the difference between the traditional waterfall model of development and Agile development which is growing in popularity. Leisa said that the way we naturally solve proplems is piecemeal : we see the “headline” for the problem, visualise a solution and think we’ve nailed it. However, as we start to build the solution, we discover more problems that we hadn’t forseen (read: black swans), have to reassess our solution and come up with another one. This happens again and again as we move closer towards an acceptable solution. The traditional waterfall model doesn’t allow for this : we have to specify the entire solution at the beginning of a project leaving little room for deviation as we start to build it. Agile programming lets us adapt the solution as we go, taking decisions based on the discoveries (black swans) we make along the way.

In essence Agile does away with the assertion that we can arrive at a perfect understanding of the complex system we are building a solution for, accepts that we can’t possibly know everything about it, and sets out to start exploring the system, uncovering the benign black swans along the way before they become maglignant and catastrophic.

Taleb is a proponent of “tinkering” - so much so it was to be the title of his next book: From the Sunday Times article I read:

Trial and error will save us from ourselves because they capture benign black swans. Look at the three big inventions of our time: lasers, computers and the internet. They were all produced by tinkering and none of them ended up doing what their inventors intended them to do. All were black swans. The big hope for the world is that, as we tinker, we have a capacity for choosing the best outcomes.

To me “Tinkering” seems a really great way of describing agile development to the layman.

A reader writes…

The BBC has an area on their website called “Have your say” where they let anyone with access to the internet comment on the topics of the day or BBC programmes.

Every now and again some who has borrowed half a brain finds the internet and “Has their say”.

An enterprising chap has a website called spEak You’re bRanes where people can send in such comments for him to share with the world.

A few examples:

I don’t like what was shown in the BBC news, I feel not fair, want to have my say.
Ula, Rhyl

Thank God for the secular society we live in - lets keep it that way!
Lorraine, Bristol

A lot of numpties and racists can also be found on the Have Your Say website:

Anglican church is in crisis because of you not church leaders. You, and like you try to seed insecurity between people. Probably most of you are homosexsuals, and muslims.
Lee

A couple of readers of the spEak You’re bRanes have send in an script that generates spEak You’re bRanes type comments automagically!

It’s brilliant, have a go.

PHP debugging with FireBug

We like Firebug the javascript/dom debugger for Firefox.

Now we can debug our PHP applications using Firebug thanks to the FirePHP library.

IE Development gets easier

Developing websites for Internet Explorer is not a fun task. Especially having to support the multitudes of different versions. Internally we use Multiple IE which tries to install IE 6 and older versions alongside the standard IE7 installation. It is a bit hit and miss and not very stable. My installation for example doesn’t let me fill in text boxes in IE6.

A new tool has been released that tries to make testing easier and a bit more consistent. It is early and still has bugs, like flash rendering in IE6, but it is a good start.

CDN for Javascript libraries..yes please

Google is great, it’s a fact.

Today they have launched an Ajax Library API. They are hosting the major Javascript Libraries (Jquery, dojo etc), and are providing a nice API to load them in, pick your version number etc.

They also serve it over a content delivery network, which means when a user requests the library file the server will send it from the nearest server to the user so it loads in nice and quick. The CDN is also setting the caching headers correctly and gzip the files for speed.

The other huge advantage to this is that as the files are being delivered from the same place for every website that uses this api (and being google lots of people will use this api) the selected library will be cached on the users computer and won’t need to be downloaded again.

Friday fun

Who needs a wii?*

All you need is a browser and some javascript to play mario cart.

*(Toilet is at the end of the corridor)