February 2007
6 posts
6 tags
Code Snippet: ListEnum
Some times you want to list an Enum and see what it’s actual numeric values are.. Well sometimes I do anyway, and when I do, I use: private static void ListEnum(Type _enum) { Console.WriteLine("enum " + _enum.Name); Console.WriteLine("{"); string[] foo = Enum.GetNames(_enum); Array bar = Enum.GetValues(_enum); for(int i =0;i<foo.Length; i++) { ...
Feb 16th
8 tags
Code Snippet: SQL FileExists
Today in the course of my work, I came across a situation where some of the files referred to in our SQL database were not actually on disk where we thought they were. This was a largeish database of files (over 10,000), and we thought there might be as many as 1600 files missing, so I didn’t want to go through each one manually to find the missing files. That led me to this solution:...
Feb 15th
6 tags
vista sidebar on XP 2
Well, I was very excited about getting the Vista sidebar to work on XP, until I started playing with the Gadgets. It turns out the patched version of the Sidebar executable is from a early beta version of Vista. The unfortunate point about that, is that the Gadgets that work with the XP version are vastly different than the Gadgets for the released version of Vista. That means all the gadgets...
Feb 9th
10 tags
vista sidebar on XP
So, I was perusing codeproject.com and I came across their current Vista Gadgets Competition. Well, this sparked my interest, not because I am interested in prizes, but because until now, I hadn’t heard of Gadgets, or the Vista Sidebar, or really much about Vista at all. The reason for this is that, I, being slightly conservative regarding willy-nilly-ly installing new OSes as soon as they...
Feb 8th
3 tags
self-stabilization and dijkstra
So, upon creating this blog, the first thing I felt obliged to do was to show it off to my roommate and idea-raquetball partner Max Strini (his blog). His first reaction was “that’s sort of militant”. Probably in reference to the term “vanguard” which is generally used to refer to an aggressive front-line force of some sort. I concurred, but still felt I had made a...
Feb 7th
1 tag
a startlingly quick birth
Creating this blog today was extremely simple. I am duely impressed.
Feb 7th