Monthly Archives: November 2007

What’s the national speed limit on a dual carriageway for a car?

Here’s an interesting question. How frequently do you get stuck on a dual carriageway with a central reservation behind a car sticking to 60MPH?

This seems to happen to me nearly every time I go out. Is it that these drivers just don’t feel comfortable doing more than 60MPH (in which case I would respectfully submit that they should not be in the outside lane), or is it because they think the national speed limit is 60MPH?

If so, I have news for them. The national speed limit for a car on a dual carriageway with a central reservation is 70MPH. It’s in the Highway Code – the book everybody is supposed to read before taking their test.

Why won’t my AJAX form upload a file?

Do you ever have those dumb moments? You waste a whole load of time trying to get a piece of code to work and performing the most complex de-bugging on it only to realise that you have overlooked the most basic and obvious thing?

Yesterday I was putting together an image upload script, which I wanted to do with AJAX. I wanted to have a file upload box at the top of the screen, press upload, have a nice spinning graphic whilst it uploaded, and then have the image fade into a gallery below. I tried all the AJAX methods with Mootools, checked and double checked my form enctype, until it dawned on me…

When you submit forms via AJAX, then it runs through Javascript (that’s all AJAX is of course). The Javascript takes the content of the form boxes and then sends it through an AJAX request. What Javascript cannot do is access local files on your machine, which is why a file upload field on an AJAX form will not work.

D’oh! I couldn’t believe I’d been so stupid. I put it down to the excessive hours I’ve been working…

Anyway, how about a simple workaround?

Put an IFRAME on the page with invisible borders and load up a file in that. Works perfectly, and although the page in the frame is reloading, it doesn’t appear to be at all. End result is exactly what I wanted and very simple.

Should Beckham retire?

Not if last night’s performance was anything to go by. After Peter Crouch, Becks was our best player. He proved yet again that he is the guy for the big occasions. And what was all that nonsense in the BBC studio about him not being fit? He covered 6.4KM in the time he was on the pitch – more than anyone else in the same 45 minute period.

The MLS doesn’t seem to have done him much damage. Yet.

Let’s hope he can keep it up until 2010 because I don’t see anyone able to fill his shoes yet.

Bye bye Steve

Steve McLaren has been sacked. Thank goodness for that. The England team deserves better.

Shambolic England – time for Steve McLaren to go

I’ve blogged before that Steve McLaren should be sacked and tonight was the ultimate proof. There are people all over the forums claiming that there are too many foreigners in the English game and this has caused the current crisis. There are too many foreign players, and it will have an impact, but there are still sufficient numbers of talented players to choose from. Read more »

Spare a thought for the British motorist – Part 3 – sensible solutions

It’s all too easy for me to sit and rant about the ridiculous state of transport in this country, without offering up some sensible solutions. I really don’t think it’s that difficult to sort out the various motoring issues. Trying to tax cars off the road is not the answer. Let’s look at some possibilities… Read more »

Time Machine in Leopard without an external hard disk drive

I installed Leopard on my MacBook Pro the day it came out. I pre-ordered, obviously. I have an external backup drive that I use with my MacBook, so that was Time Machine sorted there, but I also have a PowerMac G4 at home and I don’t have another decent size external USB hard disk. However, the PowerMac does have a second backup hard disk inside, and I thought it would be really cool to just have Time Machine running on this disk. Apple does state in all its literature for Leopard that you need an external USB or FireWire hard disk to use Time Machine.

Well, as it turns out, Leopard is perfectly happy to use the second internal hard disk. Just open System Preferences and go to the Time Machine pane and you can select an alternative internal disk. If this is true, it should also be possible to run Time Machine on a single hard disk that has been partitioned. This is a much better way of working, particularly if you are a mobile worker. Frankly, I can’t be bothered to lug an external mains powered hard disk with me everywhere I go, which means my machine is only backed up when I’m in the office. I would partition the disk, if there was enough space, but the 120Gb disk just isn’t big enough for my needs.

Whilst we’re on the subject of Leopard, and having mentioned my PowerMac G4, you may be wondering how the latest OS runs on these older machines. My PowerMac G4 is the MDD (mirrored drive doors) version with FireWire 800. It has a G4 1GHz processor, 1.5Gb RAM and a 64MB ATi Radeon 9000 Pro AGP graphics card. I have to be honest, it is slower than Tiger. I guess that should be a given considering all the extra features that are running. It could probably do with a bit more RAM and it almost certainly needs a graphics card upgrade (which I won’t be doing due to the outrageous cost of such an upgrade). I think the main problem is the glass dock. It seemed to really slow the whole system down. But… there is a solution!

Did you know you can turn off the glass dock in Leopard and replace it with a simpler version that doesn’t tax your graphics card? It’s pretty simple to do, and I think the alternative dock is still attractive and nice to use. You need to open Terminal and type the commands below. You’ll find Terminal in your /Applications/Utilities folder.

To switch Leopard’s glass dock off:

defaults write com.apple.dock no-glass -boolean YES
killall Dock

Take care to write the two lines exactly as shown.

To switch the glass dock back on again:

defaults write com.apple.dock no-glass -boolean NO
killall Dock

Cheers Alistair et al!

My jaw just hit the floor. I read on the BBC website that some complete retards in government sent out by post the personal data of 25 million families receiving child benefit on two discs, which were subsequently lost. The article reports that the data contains: “parents’ and children’s names, addresses, dates of birth, child benefit and national insurance numbers and in some cases, bank or building society details”. Oh. Great! So, some form of secure, recorded post didn’t seem sensible then?

Alistair Darling insists that we are not all in danger of identity fraud.

Are you a complete moron Alistair?

With a name, date of birth, NI number, address and some bank details it’s ludicrously easy to commit identity fraud. Frankly, with that kind of information, your average household pet could get a few credit cards and loans.

What is the point in having a Data Protection Act if the government responsible for policing it is completely incapable of following their own rules? Perhaps you should have just flogged all the data Alistair – then maybe you could recoup some of the £24 billion of tax payers’ money you’ve given to Northern Rock in the past 3 months.

Convertible drivers

Went to the retail park yesterday. Sat in the usual bumper to bumper traffic due to some morons who lacked the cognitive ability to drive their cars without invading another car’s personal space. Of course there were about 3 ambulances parked up clogging the traffic even more, despite it being a rather tame looking “fender bender”. Once I’d fought my way past that, and the brain washed Christmas shoppers worshipping at the church of retail, I managed to get into Comet to pick up the joystick I’d ventured out to buy. Parked outside is a Mini convertible… with the roof down.

I just don’t understand the British mentality to A: buy a convertible in the first place (they cost more, handle poorly, are noisy, invite vandalism, make one look pretentious etc.), and to B: insist on having the roof down whatever the weather. This is Britain. It is November. By no stretch of the most imaginative person’s imagination is it warm enough to drive around with no roof. Convertible owners that do this are the type of people that will never admit they’re wrong or that they made a mistake. Yep, you bought the convertible. The model which delivers the least driving pleasure so that you can, on the few occasions that the sun dares to rear it’s head in this country, put the roof down and let the pollution belch through your hair, ensuring you arrive at your destination with a messed up, smelly and dirty barnet. No. You never got to drive down that imaginary empty B-road pictured on the brochure, with the sun on your back and the wind in your hair. The reality is that convertible ownership is crap, so instead you resort to putting the roof down at every possible moment regardless of the temperature, because you imagine other drivers will be looking at you with envy.

Er… nope.

The XBox is dead

Switched on my XBox 360 at the weekend for a nice relaxing thrash around the Nurburgring on PGR3. All was not well. Weird noises and screen garbage ensued, so I naturally rebooted, only to be faced with the red ring of death. Arse. It turns out my XBox is fried and now has to be returned. Thankfully, Microsoft are fixing it free, even though it is out of warranty. Would be nicer if it didn’t break in the first place of course.