SQL Ordered Grouping

It seems there’s no way to do the following in SQL:

Merry Christmas Everyone!

And I wish you all fewer bugs in the following year! :)

Urbee on iPhone

Yey! It’s on its way to the AppStore!

Paint.NET Cannot Draw a Circle

This is a 12px x 12px circle drawn in a 12px x 12px image, starting from the top-left pixel:

Microsoft’s Browser Native Client

It seems that Microsoft also has a technology that enables native code to be run inside the browser: XAX. (via Adrian)

Quick Problem

Suppose you have a set of N “something” that each is working fine or not. You (randomly?) check M of them, and all M are working fine.

Can you probabilistically estimate the percent of items that are “working” ? Or there’s no chance ?

Microsoft HealthVault

This SDK post looks like a story written in C#-speak:

delivery1.Location = new Organization(“General Hospital”);
delivery1.TimeOfDelivery = new ApproximateDateTime(new ApproximateDate(2008, 11, 1), new ApproximateTime(00, 15, 35));
delivery1.LaborDuration = 123;

….

delivery1.Baby = new Baby();
delivery1.Baby.Name = new Name(“Thomas John Andersen”);
delivery1.Baby.Gender = new CodableValue(“Male”, new CodedValue(“male”, “gender-types”, “wc”, “1″));
delivery1.Baby.Weight = new WeightValue(2.5, new DisplayValue(5.5, “pounds”));
delivery1.Baby.Length = new Length(0.46, new DisplayValue(18, “inches”));
delivery1.Baby.HeadCircumference = new Length(0.31, new DisplayValue(12.4, “inches”));

pregnancy.Delivery.Add(delivery1);

A strong-typed class library for all your life ! Brilliant ! :)

Copy-Paste in Remote Desktop

I’ve been using RD for like 4 years but had no idea copy-paste works for files between your PC and the remote one (I remember the drag-drop in VMWare but no copy-paste). The temporary files seem to be in C:\Windows but I couldn’t find them – weird.

Checking for Empty Strings

Ok I know s.Length != 0 is faster but I still say s != “” is more readable …

Mandatory DataKeyNames

Always, but *always* set DataKeyNames on a ListView, if not you may end up with weird errors when editing etc.