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
14 posts
Resolving types with Autofac using type without...
It’s really simple once you know how but it took me ages to track down the informaion on how this is done. I first started by passing in a NameService with the fully qualified name of the type, this didn’t work. I then eventually found the TypeService which works exactly how I would want. requestContainer.Resolve(new TypedService(type), new Parameter[0]) It’s all so easy once...
Mar 30th
Mar 26th
1 tag
Mar 23rd
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
1 note
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