chillijam.co.uk RSS Feed
 
 
 
 

Archive for .NET

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 and abbreviations of names.  For example, Jonathan Miller may quite rightly be represented as Jon [...]

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, the overhead of setting up IIS5 to run an MVC site may lead to trouble if [...]

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 jQuery javascript files, I had to figure out how to add a realtive link to [...]

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 had it proven to me that I should have taken the plunge months ago.
In one [...]

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, though, is so much better.  For a start, it doesn’t die when you try to [...]

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());
}

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.

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 sounds terrible, b ut is actually really good. I’ll be blogging about that [...]

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 you go. *
I needed to determine whether several assemblies were built as “Debug” [...]

Remote Debugging Issues

My colleague, John, was having problems connecting the remote debugger to our SharePoint stage server. When connecting he got an “Access Denied” error. After spending much of the afternoon Googling for a solution, he came up with the following fix.

Open an MMC session and add the Component Services snap-in. Alternatively, run “dcomcnfg.exe”
Expand [...]