Editing WPF Controls in Expression Blend

This is one of those quirks that until you try it, you may not know it exists or what the answer is. I am working on a WPF project and have a separate control library (actually, a module because I am using the Component Application Guidance/PRISM pattern). I pulled it into Expression Blend and was…

Ref Keyword for Reference Types

The Ref keyword is well known. It indicates that you are passing a reference, not a value, to a method. That means that if the method modifies the value, the changes will be apparent to the calling method as well. Where I see a lot of confusion, however, is what happens when dealing with reference…

WinUnit is Now on CodePlex

As there are still tons and tons of native C++ development going on and you need to test that code just like you do for your C# code. I’ve been using WinUnit, which was first introduced in a great MSDN Magazine article by Maria Blees, for all my native testing and love it. Where previous…

Pragmatic Reflection on Singletons

So today I was wading through some code that gets called quite a bit. It is in a process that might be hit thousands of times per second. It uses a pipeline pattern so there are several objects to “new up” and place in the pipeline. Being performance-minded I originally was tempted to follow the…

Happy Beatles Day

In case you didn’t know, The Beatles re-masters are being released today (9/9/9).  Even more exciting is the fact that you will be able to get all of them in mono and in stereo.  So, you can hear them the way they were meant to be heard!!  From my understanding, though, the mono versions will…

Lambda Expressions, Anonymous Methods, and Syntactic Sugar

What is the relationship between lambda expressions, anonymous methods, and delegates? The answer is, in two words: syntactic sugar … or is it? To show this, I put together a real simple console program that declares a delegate which returns a string. I then declare a concrete method that matches the delegate signature, and another…

Mac Pro + OS X 10.6 (Snow Leopard) + Windows 7 x64 = Love

If you’ve been reading my blog for a while, you have already seen my infatuation with using Apple hardware. With a freshly pressed copy of Apple’s latest, OS X 10.6 now in my hot little hands, it was time to install both the Leopard and Windows 7 RTM on my main desktop Mac Pro. After…

Silverlight Captcha Example

Silverlight, with its powerful text and graphics manipulation capabilities and strong interaction with the scripting DOM, seems to be the perfect engine for a Captcha challenge. See an Example Online Download the Source (18.3KB) Captcha is a challenge-response test used to determine to a degree of confidence that the end user is really human and…

Fixing a Server 2008 R2 Upgrade from Server 2008 Activation Problem

After remoting into my domain controller I recently upgraded to Server 2008 R2, I very briefly saw a balloon tip pop up that said: “Invalid Windows Activation” (or something close to that). That was odd as I was sure I had already activated the server. I shudder to think what would happen if your domain…

Silverlight 3’s New and Improved Duplex Networking

One of the many cool features added to the run-time in Silverlight 2 was support for WCF duplex services. That support allowed Silverlight clients to connect to duplex services and receive asynchronous callbacks through a callback channel. This made it possible to write Silverlight apps that, for example, update stock prices in near real time as the prices change…

Windows Workflow Sequential Workflow Unit Testing

Windows Workflow Foundation (WWF) is a powerful programming model and designer for workflow processes. Using workflow is easier than some may believe. I wanted to share a quick post relative to some practices I’ve found useful for sequential workflows, specifically around Inversion of Control (IoC) and unit testing. In our shop we have several complex…