Category Archives: .NET

Split a Camel-Cased word into its components

I needed to split a camel-cased word into it’s component parts, and found the following extension method to help out.  It works pretty well. public static string SplitCamelCase( this string str ) { return Regex.Replace( Regex.Replace( str, @"(\P{Ll})(\P{Ll}\p{Ll})", "$1 $2" … Continue reading

Posted in .NET, C# Snippets, Extension Methods, Uncategorized | Leave a comment

Fuzzy-Matching of names

Yesterday at work, I had to try to knock together a quick application to parse a database table and pull out records with a matching name.  Simple at first glance, but more complex when you think about the common mis-spellings … Continue reading

Posted in .NET, SQL | Tagged , , , | Leave a comment

ASP.NET MVC – Deploying on Win XP

This is the second in a series of posts about things I found out while learning ASP.NET MVC. Today : Setting up your development XP machine to run your site. This is actually quite a simple one, but be warned, … Continue reading

Posted in .NET | Tagged , , | Leave a comment

ASP.NET MVC – Preparing for the real world

This is the first in a series of posts about things I found out while learning ASP.NET MVC. Today : adding jQuery support that will work wherever the app is deployed in a directory structure. In order to reference the … Continue reading

Posted in .NET | Tagged , | 1 Comment

System.Linq – Unleash the power!

I’ve been poking about with the System.Linq namespace in C# 3.5 this week.  Like most “new” areas of a language, it can be difficult to find the time or motivation to delve into the capabilities it provides, but I’ve just … Continue reading

Posted in .NET | Tagged , , , | Leave a comment

Windows 7 on the MacBook

I’ve just installed Windows 7 on my MacBook’s BootCamp partition, and so far it looks great.  I’m not new to Win7, having had it installed in a Parallels VM since it was released.  The experience on the MacBook’s native hardware, … Continue reading

Posted in .NET, MacBook, Win7, windows | Leave a comment

Iterate through enum values

A quick example of how to iterate through the values in an enum… enum myEnum { one, two, three, four, five, }; foreach (int i in Enum.GetValues(typeof(myEnum ))) { myEnum myItem = (myEnum )Enum.ToObject(typeof(myEnum ), i); System.Diagnostics.Debug.WriteLine(myItem.ToString()); }

Posted in .NET, C# Snippets, General, Software | Comments Off

A List of LiveWriter Plugins

As well as my own humble effort, there are quite a few others out there writing LiveWriter plugins. A good place to start looking would be here or here.

Posted in .NET, General, LiveWriter Plugins | Comments Off

So what am I up to now?

Well, about 5 weeks ago I joined Avanade as a solution Developer, and since joining I’ve had all kinds of things going on – not least of which was a trip to Seattle for an orientation / training week. It … Continue reading

Posted in .NET, Avanade | Leave a comment

Determine if an assembly is a debug or release build

*This code originally came from another blog, although it was written in VB over there. It has lost some elegance in the translation, but I needed a very quick solution this afternoon, and I needed it in C#, so here … Continue reading

Posted in .NET, C# Snippets, Software | 1 Comment