February 2012
2 posts
1 tag
Brighton Marathon 2012
I decided a few months back that I would run the Brighton Marathon again. That’s right, for a second time. However I’m doing it with a difference this time around. I’m going to run the full 26.2 miles while carrying 15kg of weight. Why on earth would I do that? Our burdens, mental or physical, have a profound impact on how we live our life and those around us. Mankind support...
Feb 13th
3 tags
26.2 miles with a bag of sand.
When I do Brighton 2012 I’ll basically be carrying one of these: Please sponsor me to raise money for ManKind, http://www.charitygiving.co.uk/johnharman. If you’re actually after a bag of sand then Amazon can provide - http://www.amazon.co.uk/Childrens-Play-Sand-15kg-Bag/dp/B002ED5Y2K
Feb 13th
August 2010
1 post
DataAnnotations validation with ASP.NET MVC...
Well I spent hours the other day trying to work out why my validation using the default DataAnnotations in ASP.NET MVC wasn’t working. It turns out that my resource file was internal and not public so the model binder couldn’t access the resource file properties. It’s fair enough that it couldn’t gather the error messages but I really do think that it should throw an...
Aug 26th
April 2010
2 posts
2 tags
Tips to help write flexible and robust sites with...
HTML and CSS isn’t new but there are still so many people out there that mis-understand it. So I’ve come up with my own list of tips to help develop more robust and flexible pages. Use a reset stylesheet All browsers have their own defaults for paddings, margins and all sorts of settings which can make your life harder. So level the playing field by using a reset stylesheet to bring...
Apr 28th
500 error IIS7 with blank page
So I went to fix a bug in a clients site the other day, loaded up visual studio as usual and went into debug to see if I could find the problem. However no matter what I did I was getting the error “Unable to start debugging on the web server” Now considering I thought I hadn’t touched anything for some time I was surprised to say the least. Next I tried to just load the site...
Apr 13th
March 2010
11 posts
Mar 12th
NHibernate QueryOver
It’s a small thing but I’m really looking forward to NHibernate 3.0 with QueryOver.
Mar 10th
Mar 10th
Mar 10th
Oooooo I can’t wait until this is out RT @CrypticAlivet: This gave me chills: http://bit.ly/cyDtvI
Mar 9th
Mar 9th
1 tag
Marcus Starnes .digital photography →
The last few photos were taken from a good friend’s site and personal collection.
Mar 9th
1 tag
Mar 9th
1 tag
Mar 9th
2 tags
Invalid index N for this SqlParameterCollection...
Well I have run into this a few times in the past, however as always I forget what the error meant. I googled as usual and found a guy called Derik Whittaker describing exactly the same issue, however his fix was to do with the foreign key as well as the mapped object. Now my mappings didn’t have the duplicate foreign keys so I went off for a while trying to work out what the problem...
Mar 9th
2 notes
2 tags
NHibernate - Unexpected row count: 0; expected: 1
Using NHibernate I get this now and again and I always forget why. The reason is often because it doesn’t know that an item you have added should be auto saved, make sure you double check the unsaved-value attribute and that when your class has the correct default value, basically the same as your unsaved-value attribute. Simple really but hopefully it will save someone some heartache...
Mar 9th