Troy Hunt: Hacking is child’s play – SQL injection with Havij by 3 year old

Fancy watching a 3 year hack a website? Try this: Troy Hunt: Hacking is child’s play – SQL injection with Havij by 3 year old.

ploeh blog – Dependency Injection in ASP.NET Web API with Castle Windsor

Just trying out the press this bookmarklet, this seemed as good a post as any.ploeh blog – Dependency Injection in ASP.NET Web API with Castle Windsor.

CSS Border Radius Generator

I just stumbled across this really handy CSS round corner tool. It isn’t magic, but it’s a simple tool that just works. Enjoy. CSS Border Radius Generator

Are you Learning C#?

If you’re learning C# you won’t go much wrong with the C# Yellow book. Rob Miles has just released a new version. This year’s copy is a minor release, of a sort. It’s mostly a couple of corrections to last years content. If you’re starting out with programming or programming C# then you really should

Continue reading »

Dynamic Robots.txt in ASP MVC

I recently had the need to switch a robots.txt file dynamically, depending on whether a site was deployed to live or beta servers. The solution was very simple, ditch the real file and replace it with a controller action. This is a brief note on how I did this. I don’t pretend this is an

Continue reading »

A Better Guard Class

Recently I was working with some of the developers in a different office, I don’t normally see their code, so it was interesting to see how they are meeting various problems. Generally speaking, they are doing some nice looking work. The architecture that they are moving towards looks like it’s going a long way to

Continue reading »

Handling Google Instant in ASP MVC

I love google chrome, it’s how browsers should be, it just works. The one thing I really like about it is the instant setting. The problem is that most sites don’t really know the difference between a bad url and a url that is being typed. Well, now you can and it’s really simple. The

Continue reading »

Encrypt Connection Strings on Application Startup

Just so I don’t forget how I do this:

FluentMigrator Code Templates

A little while back I created some migrator.net code templates. Since I’ve now moved over to using FluentMigrator it seemed only reasonable that I port the templates for the FluentMigrator project as well. To use them simply take the zip file from here and drop it into C:\Users\username\Documents\Visual Studio 2010\Templates\ItemTemplates\Visual C#\ Once you’ve done that

Continue reading »

PIXELS by Patrick Jean

This has been round the web for a while now, but it still makes me smile.