Windows Phone 7 Tutorials

Throughout January I have published on codeguru.com a series of articles about developing Silverlight applications for Windows Phone 7. Here is the list of articles: Windows Phone 7 Quick Tutorials: Part 1 – Hello World Windows Phone 7 Quick Tutorials: Part 2 – The Application Bar Windows Phone 7 Quick Tutorials: Part 3 – Page … Read more

How To Determine the Platform Architecture for a .NET Assembly

I’m using Red Gate’s .NET Reflector for decompiling .NET assemblies. It’s a great tool but it lacks, at least in the free version I’m using, information about the platform architecture of an assembly. Sometimes I want to know whether an assembly was built for Any CPU, x86 or x64. The tool that help you find … Read more

Alchemy for Windows

I have played recently a great game on Android, called Alchemy, created by Andrey Zaikin. You start with four basic elements, Fire, Water, Air and Earth and you can combine them to get more and more elements. The game was so catching that after finishing it I decided to write my own version for Windows. … Read more

Weasel Implementation in C#

In the book The Blind Watchmaker, Richard Dawkins explains how evolution happens through accumulated small random variations (or mutations) filtered by the natural selection, as opposed to the mainstream misinterpretation that evolution happens in big leaps. He proposes a computer program, called weasel, to demonstrate how the accumulated small improvements (mutations that bring a benefit … Read more

F# Operations on List

In this post I want to show how you can implement common list operations: union, intersection, difference and concatenation. Concatenation is the simplest of them all, because type List already has a function call append that does everything for you. let concat left right = List.append left right The union of two lists is a … Read more

Using ColorMatrix for Creating Negative Image

.NET provides two classes for image transformations: Matrix, used for geometric transformations, and ColorMatrix, used for color transformations. One of such color transformations is inverting or negating. This means subtracting each color component from 255. Black (0,0,0) becomes White (255, 255, 255), and Green (0, 255, 0) becomes Magenta (255, 0, 255). You can find … Read more

Hacking WCF Extensions for Visual Studio 2005

If you are still using Visual Studio 2005 and need to develop WCF services you need the following: Microsoft .NET Framework 3.0 Redistributable Package (SP2) The Visual Studio 2005 extensions for.NET Framework 3.0 (WCF & WPF), November 2006 CTP 3 The problem with the later is that Microsoft no longer supports it. Visual Studio 2008 … Read more