Debugging Multi-Threaded Code

I just spent several (as in > 8) hours between last night and tonight diagnosing what appeared to be a threading issue in a fairly large and complex code base, and it just reminded me just how hard diagnosing race conditions in multi-threading code can be. While the code has...

BtsErrorLookup

I've been spelunking a bit the last couple of days digging again into BizTalk Adapters, and one of the things that can be pretty frustrating is trying to lookup what the HRESULT codes returned by the BizTalk Messaging Engine when batch operations fail mean. Usually this involves digging around using Reflector...

Recent Music Acquisitions

SAs usual, I'm always looking for good music to have around. Here's a few albums I got my hands on recently: Leaves' Eyes Both Lovelorn and Vinland Saga are decent albums, though it strikes me a bit repetitive (i.e. a lot of the songs sound a bit alike). Norwegian Lovesong...

Boo vs. PowerShell

Oren (Ayende) wrote a cool little script in Boo showing how to count the number of types and methods in mscorlib. Just for fun, here's an equivalent script in PowerShell that does the same thing: [System.Object].Assembly.GetTypes() | foreach {     $typeCount++     $methodCount += $_.GetMethods().Length } "Types $typeCount, Methods $methodCount" This is, of course, just one possible way to write...

Flat WSDL with WCF

My good friend Christian Weyer shows how to take advantage of WCF's extensive extensibility model to improve interoperability with other Web Services stacks by simplifying the WSDL generated by WCF to get rid of all the and factored WSDL files. Here, he takes my InlineXsdInWsdl behavior to new heights and...

Windows Fax and Scan

Very ocasionally, I find the need to scan a simple document or fax a page or two. I don't own a fax machine (and have no plans on getting one), and my computer has a perfectly good modem and scanner capable of doing these things. Now, Windows Vista includes Windows...

BizTalk Services, Cardspace and Console

I've spent some time playing with the recent BizTalk Services CTP SDK (way cool stuff!), and ran into a weird error that perhaps others might run into: Sometimes, but not always, I would get an error when trying to use any of the BizTalk Services WCF extensions, like the relay...

Visual Studio Moria Alternate

This is yet another dark color scheme for Visual Studio 2005. This one is based (loosely) on the excellent Moria color scheme created by Georg Dahn that I use for Vim. There are obviously a lot of differences, as Vim's syntax highlighting is a bit more flexible (and a bit more...

Kubuntu Feisty Fawn

A few weeks ago, just before the MVP summit, I got a new Dell Latitude D820 laptop, which is now my main development machine. It runs far, far better than my previous laptop and overall I'm very happy with it. After waiting for a while and making sure I had...

Vista Hang with DVD

Today hasn't been a very good day. First, I wasted several hours on the phone trying to get an account set up and then trying to be able to access an application created by Colombia's Department of Commerce (thank goodness I'm a developer and know my way around things, otherwise...