30
Dec

Joke…

What’s the largest of the 52 United States of America?
Continue reading ‘Joke…’

02
Feb

Yay Snow!!

The piste and the pissedFinally we have some proper snow in Cornwall… It’s been about 5 years in the making, but today the weather let rip and gave us a good dousing of the cold white flakes.

As per usual, as soon as the first flakes fall they shortcircuit everyone’s driving ability and we have major gridlock everywhere with my lovely lady taking nearly an hour to travel between Pool & Redruth… Look ma no wheels!To avoid the prospect of trying to get down then back up two notorious hills, even she had to leave the car a few minutes away from home, but good job too because anyone else who ventured further would have had to abandon their no-longer trusty steeds to fate, sledgers and idiots who think that because they have a Scooby, they can drive like Colin Macrae. This idiot could not even go 10mph without hitting 2 cars, even when the smarter kids on the street suggested he give up. Anyway, he distracted our community copper long enough for the kids to start bombing down the hill again!

Flippin' spongers get everywhere…Check out some pics of the new craze that’s hopefully not sweeping too hard, but skimming down a hill near you. I would have joined in but I did not have anything slidey that…

a) …belonged to my grandad/older brother/Cormac

b) …I cared about too little not to trash - my sponge.

Er, 1 veg basket?And, contrary to popular current opinion, a bin lid doth not a slidey thing make…

Oh well, here’s fingers crossed for a snow day tomorrow.

14
Nov

Best Job Ever…

I have been freelancing for the past year and was getting on okay, but in July I stumbled across a job advert that spiked my curiosity. Anyway, to cut a long story short, I applied for the job, got an interview, trialed - part time over 2 months and started full-time again in October. I am now helping to build an army of robots to take over the world*
Continue reading ‘Best Job Ever…’

05
Nov

Firefox 3 - CSS Float problem.

Great, yet another browser to test things on - by rights, my code that works in Firefox 2, should work in Firefox 3, but checking through a site I had built recently, I noticed my floats were not floating.
Continue reading ‘Firefox 3 - CSS Float problem.’

16
Sep

Google Chrome…

So much for my rant about relying on Google to much - I have been running Google Chrome too, yes I admit it, but hey as a web developer, I have to check out browsers to make sure my sites don’t break…
Continue reading ‘Google Chrome…’

15
Sep

Bloody Google

Why does the whole world seem to revolve around Google…

I have been trying to work on 3 different web projects today and have been hampered because something is wrong with Google - i.e. their entire infrastructure appears to be down from where I am sitting.

This would not seem to be a huge problem as I can use Yahoo to search, but the as so many websites rely on Google Analytics & Adwords, etc.  I am still stuffed:  When Google’s servers go down, all the other sites break because they hang when trying to load content from Google.

So, I can’t download the latest version of Wordpress, I can’t seem to read all the blogs from one particular aggregator.  I am having problems using my time tracking tool, plus a load of other stuff, which means I can’t do my job today through circumstances beyond my control.

So much for the internet being unbreakable - back to the drawing board people - although this does highlight the fact that relying heavily on one particular provider could bite you in the a** if they go pear shaped.

This provides a good example of why monopolies are bad:  if you rely on Google, Amazon, or any of the other big players for your livelyhood, you are stuffed when they screw up.  I guess it’s a bit like investing all your money with some cronky US bank, although at least with the internet, “investors” are as stuffed as the “customers” as it is more democratized, which is one nice thought.

Tip of the day -  Web designers, put the effing analytics code and any other JavaScript that relies on external resources at the bottom of the page just before the </body> tag.  To do otherwise is a bit of a schoolboy error and I shall swear at your incompetent web offerings, then go somewhere else.

06
Jun

SWFAddress and a tip

Working on a revamp of a website, I decided to try out SWFAddress to make the back button work instead of a hand-rolled solution…

I managed to get this up and running really quickly, which was nice, but then I spent 2 hours working out why it no longer worked when I integrated the SWFAddress into the site…

The Flash bit worked okay - change something and the address bar got updated, but the back button never worked - or did not send any events back to Flash.

2 Hours later, after stripping my code back, I found the problem:

If you are using SWFObject, the javascript for this needs to be included before the SWFAddress javascript. Doh!

Apart from that small hiccup, it’s nice and fairly simple to use…

30
May

I won something!

I received a cool poster through the post today, courtesy of Ethan Eismann, who works for Adobe.

http://hello.eboy.com/eboy/2008/02/25/poster-for-adobe-air-launch/

Ethan ran a mini-competition on his blog asking for the best comments on “optimisation” and I got an email a few days later saying mine was the best out of 4.  I had not realised it was a competition I was just having a slightly sarcastic rant on a pet subject of mine :)

Anyway, it made my day and I have a limited piece of artwork by Eboy now too!

28
May

regular expressions…

Tip of the day for Dreamweaver users.

If you are doing a search and replace for ellipses with the corresponding HTML entity - &hellip; - remember to turn off the “Regular Expressions” check box, especially if you have selected “Entire Current Local Site.

Search & Replace

Otherwise your computer sits there and starts making pretty patterns and if you go and make a cup of tea, it might make it through your entire site.

Search & Replace 2

16
May

SAS SOS

Surfers Against Sewage - Save Our SeasI finished a big project last week for Surfers Against Sewage called Save Our Seas.

This is another free educational resource like Operation Beach Clean which I had done previously.

Anyway, this time I did some animation myself and also re-used part of the intro from OBC, adding some extra audio and lip-sync’ing to this.

The Flash is a bit more modular this time, so we can easily create new content and add it to the XML sitemap to be loaded in. It still runs in AS2 as it borrows some code from the OBC project.

Some cool stuff which helped a lot: the XPath implementation from XFactorStudio, Jobe Makar’s Wordsearch game from Flash MX Game Programming Demystified was ported to AS2 and I used the Tween Lite package for the first time when the ripple transitions started slowing everything down - nice and simple. I also had some great help from the FlashCoders mailing list with some tricky problems, cheers guys.

Anyway, check out the finished project and if you know any teachers who might like it, let them know too.

http://www.sas.org.uk/education/sos/

Tip - don’t launch PDF documents as a URL in Firefox, Acrobat Reader keeps hanging the browser for some reason…

Here is some code to help:
Quick Code


private function _showPDF(_pdfURL:String):Void {
//use JS to pass in the browser variable to Flash: - http://www.quirksmode.org/js/detect.html
 
var browser:String = String(_root.browser).toLowerCase();
 
if ("firefox" == browser) {
_useDownload = true;
}
if (true == _useDownload) {
var fileRef:FileReference = new FileReference();
if(!fileRef.download(_pdfURL)) {
trace("Failed to download.");
}
} else {
getURL(_pdfURLl, "_blank");
}
}




About

I am a web-monkey / computer junky living in Cornwall and occasionally I tear myself away from my computer to go bodyboarding and playing in some of the beautiful places near my home. I love doing Flash and ActionScript stuff and feel that there needs to be more of this going on around here, so someday, if I have time, I may get my goddamn user group started. I may occasionally make controversial comments here about work, life and such, but this is essentially a diary and we still have the laws for a free press. Feel free to go somewhere else if you don't like it, or maybe comment if I dare turn them on. If you are: * my Gran, then sorry for swearing * my Mum, stop reading my diary dammit * everyone else, then get out more
Adobe, MAKE SOME NOISE