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.

PIXELS by Patrick Jean

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

Timestamp Your Assembly Version

Recently Jimmy Bogard (@bogardj) blogged about a simple, but very effective versioning strategy for .Net assemblies. I thought I’d show you how I implemented that for a project I’m working on. I opted to use MSBuild Community Tasks, which can be downloaded from here. To get started, crack open your .csproj file and find the

Continue reading »

FindParent Extension Method for Web Controls

This is another one of those tiny bits of code that I’ve written too many times and I don’t want to waste my time thinking about again. It’s simple, but I’m bored of writing it. I’ve also posted it to http://www.extensionmethod.net (http://www.extensionmethod.net/Details.aspx?ID=415) Anyway it all its limited glory; public static T FindParent(this Control target) where

Continue reading »

Unable to Update WordPress Plugins Hosted in IIS 7

I’ve had a bit of trouble updating my Worpress plugins this evening, it’s normally a 30 second job, but tonight things were being a bit tricky. Initially I was seeing Akismet complaining that it couldn’t create its plugin directory. Looking at the folder in <website root>\wp-content\plugins\ I could see that the folder was already there.

Continue reading »

Saving CSV files in UTF8 Creates  Characters in Excel

A few weeks ago in work I was minding my own business creating one of the ubiquitous “Export to CSV” features. You know the one, the one that screams “My application even get close to what my client needs, we’ve run out of time, CSV FTW!”, yep, that one. Anyway, I ran my testing and

Continue reading »

ASP .Net Webforms can be Sexy too

Source code: https://github.com/ilivewithian/SexyWebforms For all the frustration that is felt as an ASP .Net Webforms developer, ASP .Net Webforms applications don’t have to be ugly. They can produce nice, easy to work with, valid html. Today I’m going to cover one small way that can help make your sites a little bit nicer. Sexy CSS

Continue reading »

Double Postback in ASP .Net

One of the things that I’ve seen in a number of different ASP .Net apps is a double post back. Once you get it on a page it seems to be almost impossible to work around. You’ll get everything from optimistic concurrency exceptions, double orders, repeated emails – all kinds of rubbish. It started happening

Continue reading »

NeverNull – because we can’t extend the ?? operator

This morning @JeffHandley tweeted this http://www.forkcan.com/viewcode/277/Null-Dot-Operator-Extension-Method essentially the idea is that you can call your code and apply default options. I kinda like the idea, but I wasn’t so convinced of the name he chose for the name of his extension method _ it kinda looks like an operator, but really isn’t and you have

Continue reading »