ServiceStack JSON Deserialization vs DataContractJsonSerializer

I used to have this horrid piece of code to deserialize a license stored as JSON: Along came ServiceStack.Text, and now I have this beautiful one-liner: Or using an extension method ServiceStack provides results in even clearer code: The simplicity and elegance of this just blows me away. What were Microsoft thinking when they came up… Continue reading ServiceStack JSON Deserialization vs DataContractJsonSerializer

jQuery Event Binding – OMG What Happened to live()?

One idle Tuesday, I decided to update jQuery from version 1.8.2 to the latest version, v1.9.1. I love new shiny things, and the jQuery team do a consistently awesome job of bringing new performance improvements with every release. So, just change 1.8.2 for 1.9.1 in the CDN’s URL, and I’m good to go, right? NOOOOOOOOOOO!!!!!… Continue reading jQuery Event Binding – OMG What Happened to live()?

Just Installing VS2012 Can Break VS2010 Websites

Last week, I installed Visual Studio 2012, to play around with new features. We’re probably not ready to move our production code to VS2012 yet, but I just wanted to see what’s new. I should probably have installed it in a virtual machine, but hey, this is a well tested, production ready Microsoft product …… Continue reading Just Installing VS2012 Can Break VS2010 Websites

Accessing ASP.NET Session from ServiceStack

This content is based heavily upon an answer I posted on StackOverflow. Oh, ok then, it’s almost an exact copy. Recently, I’ve ripped WCF out of the heart of a project at work, and replaced it with ServiceStack. There were a couple of reasons for doing this.  Firstly, for the relatively simple API we wanted… Continue reading Accessing ASP.NET Session from ServiceStack

Running ASP.NET 4.0 Web Applications on IIS 6

Today, I decided to install a NuGet gallery on our development server at work, in order that we can host our internal packages there, and make them easily available to all projects.  The problem, our development server is not exactly state of the art, and runs Windows Server 2003 SP2 and IIS 6.0.  It did… Continue reading Running ASP.NET 4.0 Web Applications on IIS 6

Setting up a Mercurial Repository under IIS

Setting up Mercurial to serve repositories using IIS has been on my to do list for months. I had a quick go at it late last year, but was thwarted by confusing solutions which quite frankly, just didn’t work for me. Many walkthroughs mention using a file named hgwebdir.cgi, but as of Mercurial 1.6, this… Continue reading Setting up a Mercurial Repository under IIS

Visual Studio 2010 Solution Won’t Open From Explorer

This one has caused me some problems recently.  I have a Visual Studio solution I downloaded, yet double clicking on the solution file in Windows Explorer does not open the solution. I know it’s a Visual Studio 2010 solution, because the file starts with: Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio… Continue reading Visual Studio 2010 Solution Won’t Open From Explorer

FB Hacker Cup 2011 Round 2 – I’m Out

A couple of weeks ago, I blogged about my participation in the inaugural Facebook Hacker Cup.  Well, I didn’t get any further, and exited spectacularly in round 2. To say it was tricky is an understatement.  The level of difficulty was a huge leap up from the previous round.  Of the 1,673 programmers eligible to… Continue reading FB Hacker Cup 2011 Round 2 – I’m Out

Facebook Hacker Cup 2011

Over the last couple of weeks, I’ve been taking part in the inaugural Facebook Hacker Cup, a programming competition ran along almost identical lines to Google’s well established CodeJam. The format of the competition is quite simple.  To start with, there was a qualification round lasting 72 hours in which 3 problems were posted.  Competitors… Continue reading Facebook Hacker Cup 2011

An Alternative to Redirecting HTTP to HTTPS in IIS 7

Recently, I needed to ensure that a whole ASP.NET web application was forced to deliver content over a secure connection. Almost every page in the application contained sensitive data, and is was deemed acceptable for the small number of pages which didn’t contain secure content to be delivered over HTTPS too.  I started looking around… Continue reading An Alternative to Redirecting HTTP to HTTPS in IIS 7