How to force Internet Explorer to ignore the cache and reload a SWF...

Dave of davewhite.net and I have just put the finishing touches to a very* simple voting form on a website I have been developing. Users can vote from six choices and the results get picked up by a SWF file that displays the results as an animated bar graph.

The problem, as ever, was Internet Explorer. After casting your vote you would be redirected to a new page containing the SWF file showing the new vote standings (including your vote). This worked fine in Firefox and Safari but, for reasons best known to some useless Microsoft techy, IE saw fit to just load in the SWF with the old data. I tried all sorts of work arounds including meta-tags that (supposedly) prevent IE from caching the webpage but to no avail.

In the end I created a new SWF file, the same shape and size that loads the original one in using the following code:

theDate = new Date();
// this number will always be unique
nocache = theDate .getTime();
_root.holder.loadMovie("myMovie.swf?nocache="+nocache);

The random number *should* prevent IE from just loading in the previous version from cache. Some testing will tell...

Oh - and you can do the same if you are loading in other files, such as txt, too.

* No really - VERY simple.

***Updated*** iPhone - how to unlock the hidden Emoji for free...

So why do the Japanese get Emoji and we don't?

That just isn't fair... In an attempt to balance things up a bit I'll tell you how to unlock the Emoji hidden on your iPhone. Follow these four easy steps and you'll be grinning smilies at your mates (with iPhones) in no time:

  1. Make sure you have iPhone software 2.2 or higher installed on your iPhone 3G (not sure if this works with the original iPhone)
  2. Go to the App Store and search for an App called 'Spell Number' - it's written by a company called Waterworld and is FREE! Install it.
  3. Once installed open the App and tap in '9876543.21' - this is an Easter Egg that will unlock the Emoji hidden on all iPhones with software 2.2 and above installed
  4. Now to turn them on. Go to: Settings > General > International > Keyboards > Japanese. You will see that an Emoji setting has been added. Switch it on.

***UPDATE*** The 'Spell Number' application was updated on 6 March 2009 and the Emoji Easter Egg was removed! Bummer. However - it you search for 'Emoji' on the App Store you will find other applications that claim to unlock iPhone Emoji. Simply replace steps 2 amd 3 above with the App you choose to use.

NOTE: You only need to follow these steps to use Emoji - you can still see them on an iPhone 3G (v2.2+) without having them turned on. This means you can surprise all your friends by sending them a bunch of random images. (Believe me there is some wierd little pictures in there.)

Next time you type an MSN, send an email, update Facebook, etc using your iPhone you will see a globe button to the right of the Space Bar. That's where your Emoji are! Bear in mind that only people with iPhones (v2.2+) will see your Emoji - everyone else will see a strange Japanese character.

Nine minutes through Paris...

My dad send me a link to Claude Lelouch's 1976 film 'C'etait Un Rendezvous' today. I've never seen it before but I must say - it's pretty captivating. The film was set in Paris as is supposed to be a gyroscopic camera attached to the front of a Ferrari 275 GTB. The driver, a previous Formula 1 star whos identity remains hidden to this day, drives at speeds up to 146mph through the centre of early morning Paris.

There is some dispute as to wheather or not a Ferrari was used - it is said to be a Mercedes-Benz 450SEL 6.9 with the sound of a Ferrari dubbed over the top. There's also disagreeance over the top speed achieved. Whatever the case, we should all bow down to willing suspension of disbelife as it is a wonderful piece of film and well worth nine minutes of your time.

The feeling of speed is incredible as the car slides and screeches round the Arc de Triomphe, Opera Garnier, and Place de la Concorde with pigeons scattering and red lights being completely ignored. Although the driver his obviously skilled he is effectively trusting to luck that he's not going to get hit by a bus, stopped by the police or collide with on-coming traffic. You can't help feeling like you shouldn't be watching this nine minutes of pure seat-of-the-pants danger. Its wrong on so many levels. What if he'd hit someone? Crashed into a building? Been stopped by the law? The many possible conquences don't bear thinking about but it does give you a wonderful little thrill to be part of it for the duration of the film.

These days it would be seen as mindless stupidity - I daresay you can easily view similar modern-day equivilents online - but the magic of the early morning, the noise of the engine, 1970's Paris and the fact its supposedly a vintage Ferrari all combine to make it somehow seem ok.

The Director was arrested shortly after he screened the film for not revealing who the driver was.

Vita R1 DAB Radio...

I've just taken delivery of a Vito R1 DAB/FM Radio and I must say... It's highly strokable.

 

See?

"So", I hear you all shouting in unison, "why the hell did you buy a £160 DAB radio in a world where streaming thousands of radio stations via the internet is FREE?"

Well really I wanted this:

The Tivoli Networks Radio. Again: Nice! This one is not just DAB and FM but also picks up your wireless Network and allows you to stream internet radio with gay abandon whereever you may choose to listen (within range of your wireless router of course). The only bummer is the price tag. We're talking £500.00. Luckily I was able to get a bit of a bargain Vita R1 on ebay. I'm sure the price of this internet-streaming-to-hifi-gear technology will come down in time and until then I am happy to use the lovely looking R1 in our kitchen.

Another picture of the R1 I feel:

Another good reason for DAB is my girlfriend, Nicky. She is still very wary of computers (having not used one at work or even had one in her house until we moved in together a year ago) and would probably refuse to use something that she knew was in any way involved with the internet. She still kind of avoids my computer and I'm sure she believes it is sitting there plotting ways to kill her! I am being a little unfair - she has recently started sending emails (occasionally) and has even commented that my iPhone is "pretty cool" (begrudgingly). ;o) I think the key is to ween her onto technology slowly.

Back to the R1 then. The sound quality is pretty amazing for a unit of such a small size (H.W.D 17cm x 13cm x 13cm). Crisp bass and not boomy, which can be the risk when the bass port faces downwards. The cool looking control dial on the top is, whilst not ground-breaking in terms of what it does, easy to use and feels nice with solid clicks and a smooth turning action on the rubberised dial. There are two inputs - a jack on the front and phono's on the back - and a headphone output on the front.  There is also the option to plug in a external stereo speaker despite the fact that Vito don't actually make one. At least yet. The little illuminated black-text-on-white screen serves its purpose well and all-in-all I can't really find anything bad to say. Yes - its fairly expensive - but you're paying for the sound quality (which I don't resent) and the 'retro-modern' looks (which I love).

So if you're waiting for the price of Network radios to fall and are after a stop-gap, little radio for the kitchen or somewhere without a computer (or internet access) to stream radio from then I highly recomend the Vita R1. Pull one in...

PX to EM...

Now this is good: pxtoem.com 

I found the link to it on Dave White's blog and its pretty damn groovy. It is hailed as “px to em conversion made simple”. Type a base font size in pixels, and the tool will produce a complete pixel to em conversion table, making elastic Web design much easier to produce.

I like those apples :o)

Oast One hits Twitter...

I've been hearing about this thing they call 'Twitter' for a while. This week it's also come to light that both Barack Obama and Stephen Fry both use it regularly. I'd better check it out I said to myself as I clicked open a browser window and fired in the URL.

To start with I was a bit confused...

Effectively all it is, for those of you who may not know, is a way of answering the question “what are you doing?” in less than 140 characters. All your Twitter ‘followers’ can see your answers to this question as often as you care to update and they care to check the site out. In turn you can choose to follow as many Twitterers as you wish. All updates then get displayed in Chronological order on your Twitter homepage.

You can access this information in one of a number of ways - RSS feeds, Facebook, your mobile phone, Instant Messengers the list goes one. I have already added the Oast One Twitter RSS feed to this blog and I could even integrate it as a Flash application should I so choose.

So why?

As I said - to start with I was a little confused. Why would you want to be continually updating what you are up to when you have a million and one ways to already do so? MSN away messages, Facebook statuses, Blogs, email, SMS, etc etc etc... But it’s actually quite addictive. There is a real sense of community when you see the updates rolling in.

After signing up this morning I noticed that Chris Moyles (the Radio 1 DJ you either love or hate... or really hate) had signed up too only a few seconds before me; so I added him to the people I am following as a comparison to my own followers. No doubt his followers will spiral exponentially until, in his own words, he gets bored and stops using it whilst mine will probably get to about 10 then die out. Forcing me to 'get bored'.

It certainly does seem that through communications the world is becoming a much smaller place.

Oh - and Barack Obama is following me too...

To Do: Oast One Blog Design Refresh...

It's been on the cards since Summer '08 but I still haven't got round to doing it. I really need to tweek the look of my blog to match the rest of the Oast One refreshed brand. I have been managing to slowly roll it out since last summer (new business cards, stationary and even the website has had an overhaul at last) but still not got onto the Blog.

I really need to sort the catagories out too as they are a little confusing and don't really reflect what I've been blogging about.

Will have a good hard think...

Oast Rider Font - Free for personal use...

As our updated brand rolls out a few people have been asking what the font we use for the Oast One logo is. It is called Oast Rider and we created it from scratch inspired by a font named Ghost Rider. So, after much debate, we have decided to make the font available to download free for personal use...

Download: TrueType

Oh - and I should also mention that the logo on the blog still uses the old font - we just haven't got round to updating it yet.

2Mb Broadband for the entire UK. And then we're stabbed in the back...

Yesterday Lord Carter announced that by 2012 the entire population of the UK should have at least 2MB broadband access in their homes.

Excellent I thought. I live at pretty much the furthest point from the local, and by all accounts pretty dire, exchange and my home broadband struggles to download at speeds higher than 100Kbps. Awful when you think there's people less than a quarter of a mile away enjoying 3Mbps and two miles the other way rolling at speeds around the 7Mbps mark. Although 2Mbps is far less than the current national average Broadband speed (3.5Kbps-ish) it was was still going to be a welcome policy for people like me. Even though, at this stage, it was a bit uncertain as to who was going to pay for this massive communication upgrade.

But then today I woke up and recieved the newscast equivilent of a massive hammer in the groin! Lord Carter was suggesting that we all absorb a £20 a year tax increase. At first I thought this was not too bad if it meant we had these increases in Broadband speeds.

But then I learnt what the £20 was really for...

No - not the speed increase. Lord Carter required this extra cash to help the Music and Film Industry fight file-sharing! He wants to tax the UK's ISP's the equivilent of £20 per head which, of course, they would have to pass on to the customer. For absolutely NO benefit to them at all.

Now correct me if I'm wrong but I've never really noticed a massive lack of cash in the Film or Music Industry's. Why should the consumer pay to fight the debateable crime of file-sharing if it doesn't affect him or her in any way? I don't file share. I can't think of anyone else I know who does. As far as I'm concerned its the Film and Music Industry's probelm. Not mine. I would like to know why the government feels it needs to step in and help the poor film and music industry when, if my business was repeatedly being burgled, I certainly wouldn't recieve a govenment handout to upgrade my security. I would be lucky to get the police to turn up.

Where are the local help files in Adobe CS4?

I recently upgraded to Adobe CS4 Producton Suite. It's pretty good as far as upgrades go. Photoshop now uses your 3D card to make zooming in on images a treat to behold and the groovy new interface for After Effects is a little bit more like Final Cut than my previous version of AE (something like 6.5 I think).

The problem was the help files...

If you clicked on About > Help (or hit F1) in any of the CS4 applications to bring up the help it took you online to the Adobe support area. There's lots of information there - from all over the shop - user posted info from the Adobe community, training videos, stuff from the Adobe support site and all sorts... Far too much data if all you want to do is know how to loop a sound clip in Soundbooth or reverse a piece of footage in After Effects.

How could I get to the local help files that are installed with the CS4 applications?

I knew that if I unplugged my internet connection and hit F1 I would be taken to the local help files so they must be on my computer somewhere. After a spot of searching I finally managed to stumble across where they were all hiding:

C:\Program Files\Common Files\Adobe\Help\en_US

or

Macintosh HD:Library:Application Support:Adobe:Help:en_US

All the folders are there for the various applications so I was able to make a load of shortcuts to the index.html files and stick them somewhere easy to find.

J