Load XHTML into an XDocument?

Mon, 28 June 2010

I thought XLinq would be a convenient way to load and manipulate XHTML data but was scuppered as it wouldn't parse due to some undeclared entities   for example...

MyFaultException

Mon, 14 June 2010

Everyone is used to typed exceptions, using them in your libraries is good practice allowing for concrete compile time type checking and that kind of thing. This is also a good thing to do when designing your web services.

Season Your Hash - Adding Salt

Sun, 13 June 2010

Hashing your passwords is not enough, there are a number of hash databases which store huge numbers of hash values which act as a reverse lookup revealing your passwords true identity.

Camelize

Mon, 31 May 2010

Quickly... yes its got an American z in it, but here is some code to convert a string into Camel case, upper or lower

Cyclical Ranged Number

Sat, 12 December 2009

Ever wanted a number which can only be between two given min/max values, which when you assign it a value outside of this it works uses the remainder...? No...? What are you weird!

Long Operation Status

Sun, 29 November 2009

How to provide the UI with the status of a long operation

Regex Match "not in quotes"

Wed, 28 October 2009

How to parse csv files with regex allowing for commas in quotes.

A common enough task, this is a way of doing it using .NET regular expressions.

Getting Progress on File Upload

Sun, 20 September 2009

This is not a new thing by any means, but I found it difficult to find a single place where it was explained and the code made available, so here we go ...

Making a Hash of Secure Password Storage

Sat, 5 September 2009

There are a lot of passwords in my head from numerous sites of which I am a member. I try not to use the same password for any two sites because ...

Web Site - Charter Publishing

Fri, 21 August 2009

Charter Publishing, an existing client of mine, asked me to update their site

Targeting Pages with CSS in ASP.NET MVC

Tue, 11 August 2009

Sometimes its useful to be able target html elements on a particular page or you want to have specific styling according to a particular area, controller or action.

301 Redirects in ASP.NET MVC

Sat, 1 August 2009

Recently this site has changed structure, it's still being updated and pages are not where they used to be. My "SEO Doctor" tells me that I need to keep a track on the changes and nicely redirect requests to the new location.

jQuery.htmlInput

Sat, 1 August 2009

When I started this project there were few alternatives to FCKEdit, TinyMCE

Web Application Project Publish (part 2)

Tue, 18 November 2008

Calling bespoke MSBuild Targets from VS for publishing versioned builds, a specific web.config, Compressed JavaScript/CSS and FTP to a server

Web Application Project Publish (part 1)

Fri, 14 November 2008

Since way back in 2006 there has been a very handy right click Publish option for Web Application projects, but how do you extend it?

Antix CV Builder -> cv antix

Sun, 19 October 2008

MVC, jQuery, developers heaven

jQuery.htmlClean

Sat, 27 September 2008

The problem with Content Management on-line is the users ability to paste any old HTML into the page editor

Objects to Database (open source)

Tue, 9 September 2008

Creates a database structure from an object model tagged with attributes

Calling WCF Service from a WHS Add-in

Sat, 30 August 2008

Windows Home Server (WHS) provides for extension through add-ins, only thing is they are loaded into the host AppDomain, which means one App.Config, which means...

The Importance of the Slash

Tue, 5 August 2008

Adding a slash to the end of a link to a directory turns out to be important - who knew, oh, you knew, well I didn't ...

GDI Error and Images loaded via a stream

Fri, 1 August 2008

You load an image from a stream, you then try to covert it to a byte array by loading it into another stream - BANG! Your 40.

Gallery 3.0

Thu, 31 July 2008

Mostly this week oi ave been working on the new version of the Web Gallery

Antix.Data.Objects IQueryable?

Wed, 16 July 2008

I have decided to make my data access layer IQueryable... why!

Goodbye VSS, hello SVN

Thu, 3 July 2008

Moving to a new source control (Sub)Version... oo its very good

Regular Expression Testing

Wed, 2 July 2008

I was looking for a tool to test a regular expression...