Archive for August, 2009

How to set up your HDTV like a pro

August 19th, 2009 No comments


The Register has published a guide on how to set up a flat screen/HD TV so that you get a better picture quality from it.

How to set up your HDTV like a pro • Register Hardware.

I know what I’ll be spending half an hour doing tonight!

Categories: TV Tags: ,

VBScript function IsNumeric

August 18th, 2009 No comments


Last night, we discovered that the VBScript function “IsNumeric” is a little more clever than you’d like, but there’s also no simpler version either.

Consider the following scenario.

We have the user input in a bit of text on screen. We need to process that (client-side), and part of that processing needs to find out if it is a number or not (i.e. if it’s a number, do this, otherwise, do that.)

Last night, we encountered a problem with the word “65d1” – clearly, it’s not a number (the “d” gives that away,) however, IsNumeric says that it is. If you CInt(“65d1”) you get 650. WTF?

A little more testing reveals the following:

CInt("65d0")  => 65
CInt("65d1")  => 650
CInt("65d2")  => 6500
CInt("65d-1") => 6

So obviously that “d” refers to “*(10 ^ following number)” – however, I can’t find a reference for that.

A bit of googling turns up this page , which shows that adding a space at the front doesn’t stop it from being classed as numeric.

The only real clue to what is going on is to read, and interpret, the MSDN reference page which states:

Returns a Boolean value indicating whether an expression can be evaluated as a number.

And there-in lies the answer – that expression can be evaluated as a number, not that it is a number.

Fortunately, there is an implementation listed on the first page which shows you an alternative way to get the job done.

I’m now wondering if there are other things that you can enter that will affect an number in that way. I tried


but that just errored. I’m wondering whether “e” has a similar effect.

Update: Yes, “e” (at first glance) appears to have an identical effect to “d”.

CInt("65D1") => 650
CInt("65D1") => 6500
CInt("65E1") => 650
CInt("65E1") => 6500

Why do Americans make up words?

August 10th, 2009 No comments

Check out the comment on the post below:

vagif comments on Hypothetical situation: if someone were walking down the street one day just minding their own business and they stumbled upon a lost flash disk with the entire Windows7 source code on it … What do you think it would be worth?… To Microsoft… To Google … To Apple?.

Google and Apple officials will immediately distantiate themselves from you.

“Distantiate”??? LOL, the word is “distance”, you pillock.

Americans, you’re so funny.

Categories: Computers, Programming Tags:

WAP on the iPhone

August 5th, 2009 No comments

I have just discovered that the iPhone doesn’t support WAP sites (I discovered this by trying to use National Rail‘s WAP site).

Now, I’m aware that this might sound a little redundant, but I really think the iPhone should work with WAP pages. Sure, you have a perfectly good web browser on the iPhone that renders ordinary web pages perfectly well. But….

You simply cannot escape from the fact that the screen is small, and it can be a real pain in the arse scrolling around the screen, zooming in and out, etc.

Which are similar problems that WAP pages were designed to solve!

And seeing as there are some sites out there that are much, much, quicker to use through a WAP site rather than their HTML-based equivalents, it kind of makes sense some times….

No? Just me then….

Categories: Computers, iPhone Tags: ,

BBC News – Driver’s escape from horse

August 5th, 2009 No comments

Sadly, the story did not live up to it’s trojan-like name.

Driver’s escape from horse.

Categories: Humour Tags: , ,

The Inbetweeners Get Third Series

August 4th, 2009 No comments


They’re making a new series of the Inbetweeners! via Greg James (from BBC Radio 1).

Categories: TV Tags:

Debugging Client-Side VBScript

August 4th, 2009 No comments

Having used client-side VBScript for years at work, I discovered the joys of the Microsoft Script Debugger several years ago. Unfortunately, until now, I’ve been unable to get the debugger to invoke when I desired (rather than having to wait for a crash!)

Several times, I ran across web pages saying that you just type “debugger” – however that only works with Javascript and not VBScript. I also found loads of references to Server-side debugger with ASP.Net – again that doesn’t work with client side.

But, finally, today I managed to find an article which actually explains the process, and marvellously, it’s not difficult and it’s (logically) a one liner.

So I can reveal that to invoke the debugger in client-side VBScript, all you type is…..