hr

Archive for November, 2006

When is a dead pixel not a dead pixel?

Wednesday, November 29th, 2006
 
I was doing a bit of light reading today, flicking through an ASUS notebook warranty booklet (The booklet is way better than the movie). I found a section entitled TFT LCD Defect Policy that should clear up any confusion people might be having on what constitutes a problem with your notebook monitor. It states that you may claim warranty service when your screen has:

…at least 3 bright dots or 6 dark dots or 8 bright and/or dark dots in total; or 2 adjacent bright dots OR 2 adjacent dark dots; or 3 bright and/or dark dots within an area 15mm in diameter.

Yes, that one “or” was in capitals.

The booklet also had a hilarious compendium of collective nouns for pixels. Well, no that’s not true. But if it did I’d have to say my favourite one would be “a sprite of pixels”. What’s yours?

Tags:

Javascript Hexadecimal Helpers

Thursday, November 23rd, 2006

Oboe ShoesHexadecimal sure comes in handy sometimes. Like, say, um, if you wanted to know why there was some of the alphabet on your scientific calculator for example. There’s been a few times I’ve needed the following functions to convert decimal bytes to hex in javascript: converting decimal RGB values to those #FF00FF looking ones, or far more commonly, creating XBM images by hand. You do create your XBM images by hand don’t you?

First up, here’s a javascript object I use to convert bytes (0-255) between the two numbering systems. I can’t remember where I got the guts of the dec2hex function. But I do like it:
(more…)

Formalised System For Beer Re-distribution

Monday, November 20th, 2006

EEpiphanic moments of genius are relatively rare. Especially for me. That’s why I was kind of surprised to have one last Saturday night. It germinated while I waited for my change at the bar, and had blossomed into a fully-fledged revelation by the time I returned to my seat at the back of the room.

It began when I was charged with the mission of retrieving three beers; A Reschs for myself, a New for my friend, and a V.B. for a newly-met acquaintance at our table.

On the return journey I happened across a couple of friends I had not seen for some time. I sat at their table and had a brief “catch up”, before remarking that I had been charged with a mission of retrieving three beers and had better conclude that mission with haste.

I picked up the bounty of beers and returned to my table. Then, without so much as a tinge of self-doubt, I gave the correct beers to the correct persons and we merrily drank up.
(more…)

Line Rider File Format

Wednesday, November 15th, 2006

a dodgy line-rider-readerA while back I tried to “reverse-engineer” the Line Rider shared object - the file that stores your Line Rider Tracks. The idea was to add a much required “erase” function. I mostly figured it out - but owing to my extremely short attention span it quickly entered my immense “1/2 finished projects” repository.

In an effort to get some more posts happening around here I’ve decided to unleash a few of these 1/2 finished projects. The Line Rider File Format is the first such post. I chose this one because there is supposed to be a new version of Line Rider due out very soon - once this happens this information will be totally useless, instead of just mostly useless.
(more…)