December 2009
1 post
Friendly validate input attribute in asp.net mvc
So asp.net mvc by default will validate any Request parameters to make sure that they don’t contain any html tags or scripts which stops xss attacks. This is a good thing. The trouble is detecting this so that you can tell your user that they are doing something naughty. Asp.net mvc will throw a nasty HttpRequestValidationException and your user will end up with a YSOD or some useless error...
Dec 13th
September 2009
2 posts
Sep 21st
Sep 21st
June 2009
10 posts
Don't Create Aggregate Roots →
Udi Dahan has posted an interesting article about the creation of Aggregate Root within the context of a person visiting an ecommerce website. Can’t wait to try this out on a project that I have in the pipeline…
Jun 29th
NHibernate Listeners = easy last modified dates
NOTE: For a good rundown of NHibernate listeners checkout Ayende’s post on IPreUpdateEventListener and IPreInsertEventListener. For my simple application I am building I wanted an automatic way of handling the task of setting the created and modified dates on entities when saving them to the database. So I added a IDateModifed to my entities public interface IDateModified { DateTime Created {...
Jun 29th
Domain Events Pattern
Ritesh Rao has implemented a simple Domain Events Pattern for the ncommon project. This is a problem that I have often encountered when trying to encapsulate behaviour in my domain objects. At some point you will find that you need to reach out of your domain “when” something happens in your model. For example StackOverflow users earn badges after completing certain actions within the...
Jun 17th
Storing timestamps in UTC
Nate Kohari of Ninject and Zen fame has just posted an interesting article about storing all your dates in your database in UTC. The problem with this technique is that you then need to localise these dates for each individual user. Forcing the user to select which country they are from on signup is draining and it will also be displayed wrong for users that travel frequently around the world. His...
Jun 15th
Jun 14th
57 notes
Argh! Installing Visual Studio 2008 on Vista x64...
So after trying many many times to get Visual Studio 2008 to install on Vista x64 and not getting anywhere I’ve had enough. I don’t want to go back to Xp because it is 9 or so years old now, and the default browser it comes with is IE6 which I f&^ken despise. I decided to have one last go and install Vista x86 at work and install vs 2008 again on that machine but that failed as...
Jun 8th
3 tags
Jun 8th
“When the senior engineers in this scenario begin to have their time taken up...”
– Derick Bailey on the The Impact of Staffing Practices on Software Quality and Productivity
Jun 7th
Jun 6th
1 tag
About this site
I’m using tumbr for the blog engine. I find it fairly easy to use and it has some pretty nice themes built in. I had looked at using squarespace which is way more advanced but it also has a price tag, so I went with what is simple and free. Tumblr does not have comments for some reason, so I have set up this site to use another free service called Disqus which I think is better option...
Jun 6th
August 2008
2 posts
Visual Studio File Explorer Add-in
The guys at mindscape have just released a free file explorer add-in to visual studio. This is mint alternative to VisualSVN as you can execute shell extensions like Tortoise Svn from your standard right click menu. Check it out its free :)
Aug 17th
Envato network
A while back I decided that I need to get some basic photoshop skills up my sleeve as I can already code server and client side with C#, jQuery and css being my current tools of choice. Photoshop is fairly hard, and I rekon the only way to get better at it is do lots of tutorials. So I searched photoshop tutorials and eventually stumbled upon a site called psdtuts. Psdtuts is a blog/service that...
Aug 17th