More Than Nothing

“You mean you can't take less; it's very easy to take more than nothing.”

Archive for February 2009

Stream Data Structure

Posted on February 25, 2009 by [ICR] under .NET, C#, Programming

Recently I’ve had need of a stream data structure – a queue of a certain size that you can keep adding items too and, if the queue gets full, it removes the oldest item. It took me far too long to work it out, so I decided to post the code in case I ever [...]

1 Comment | Read the rest of this entry »

Object initialisation in rose

Posted on February 24, 2009 by [ICR] under Languages, Programming, Rose

Recently I’ve been thinking more about a toy language I have created called rose. It’s largely an exercise to teach myself about some of the difficulties of language design, giving me a greater understanding and apreciation of the languages I work in. Some of the guiding features of rose are immutable-by-default fields and as few [...]

No Comments | Read the rest of this entry »

Using VkKeyScanEx to find out what keys should be pressed to produce a character

Posted on February 21, 2009 by [ICR] under Programming

In a misguided attempt to solve a StackOverflow question I came up with the following code that checks whether the key combination represented by a KeyEventArgs would produce a given character on the current keyboard layout. The actual solution was a lot simpler, but I thought I’d post the code here for prosperity: public static [...]

1 Comment | Read the rest of this entry »

Adding hints to HTML fields

Posted on February 15, 2009 by [ICR] under Interface Design, Javascript, Programming, Web

There have been a lot of UI innovations since HTML forms, some of them big and some of them small. One of the smaller innovations is the addition of hints to text fields. These are basically placeholder text in the fields that describe the sort of input that should go in them that disappear when [...]

2 Comments | Read the rest of this entry »

An exercise in understanding people

Posted on February 10, 2009 by [ICR] under Uncategorized

In a recent post Jeff Atwood questioned why people aren’t up in arms over the Google monopoly: I’m a little surprised all the people who were so up in arms about the Microsoft “monopoly” ten years ago aren’t out in the streets today lighting torches and sharpening their pitchforks to go after Google. Does the [...]

No Comments | Read the rest of this entry »