Mr Speaker

mrspeaker's head in a monitor You find yourself at the entrance to the Hompage of Mr Speaker. In a darkened corner sits a trunk containing HTML5 games and some JavaScript tidbits. Next to it you spy a mastodon account. Exits are North, East, and .

When is a dead pixel not a dead pixel?

 

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?

Javascript Hexadecimal Helpers

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:
Read on for more »

Formalised System For Beer Re-distribution

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.
Read on for more »

Line Rider File Format

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.
Read on for more »

Visual Studio Tab Un-stupidifier Macro

Necessity is the mother of dodgy macros, they say. Here's one I made to fix the stupid most recently- to last recently-used document tab order of Visual Studio. But before the code, here is my harrowing tale....

I remember doing user interface design courses in my undergrad study, and thinking "I don't need to pay attention to this - by the time I'm out in the real world UI standards will be firmly in place."

I remember this today as I try to tab to an open document in Visual Studio.
Read on for more »

Read-Only Live Clipboard

A couple of years ago I had a client who insisted that they should be able to copy some cells from Excel and paste the data into their web-based inventory system. I ended up creating a faux-grid of textboxes, with a "paste-box" where they could paste the data, which would be parsed and entered into the grid. It really felt like a horrible hack - the pasted data wasn't always in the "correct" format, and my parsing code was pretty dodgy.

But now that microformats are poised to take over the web, it's not looking like such a stupid idea after all! Ray Ozzie outlined his "Live Clipboard" idea a few months ago and created a pretty cool system that allows you to copy and paste microformats between web pages and applications.
Read on for more »

The End of XBM as we know it

A broken imageMicrosoft giveth, and Microsoft taketh awayeth. Damn Microsofth. They've killed the super-cool, barely known, rarely used x-bitmap (XBM) image. Kind of.

Recently Wolf5k got front-paged on Digg, and in the comments I noticed some people where having troubles with it noting, "I just get a broken image" or some such. This sounded odd, so I decided to investigate.
Read on for more »