Here’s a handy piece of code for finding a style in the ESRI Style Gallery. You simply pass in the style and the category and it returns the appropriate object…
So here a simple way to find a point’s intersect along a polyline. The code includes the ability to include buffer distance. So if the point doesn’t actually intersect, but…
FYI, if you happen to be in the market for someone with over 21 years experience in Microsoft related technologies, I’m available on contract as a consultant. Just send me…
Sometimes you don’t want to use LINQ or some other domain type structure to hold your rows of data. Here’s a quick way to convert your SqlReader rows to a…
…and now for a little Silverlight/XAML. I tend to use combos and listboxes a lot, so I thought it would be good to include this little code snippet. It’s a…
This is a nice little wrapper class around the Worksheet COM automation interface in Excel. You’ll need the Excel Office extensions installed. I use it to open and modify excel…
Here’s a quick and easy way to create a “stopwatch” object that you can put in a using() {} block as follows. I just needed something quick and dirty to…
Here’s a quick and easy way in C# to round a double value to the nth significant digit: double RoundToSignificantDigits(double d, int digits) { // nothing to do if the…
So Windows Vista and Windows 7 have a nice little undocumented feature you might enjoy. They call it Godmode. The point of Godmode is to give you full access to…
I have an ASUS O!Play HDP-R3 media player. Works great! It has HDMI 1080p output, UPnP and Samba network sharing, 802.11n wireless and 10/100 ethernet and multiple external inputs including…