Generating passwords

So if you need to generate passwords easy you don't have to reinvent the wheel, you can use functionality that the Mempership functionality from ASP.NET already has. On the Membership class in System.Web.Security namespace is a static method for generating passwords. You can specify a length and how... [More]

Common nHibernate exceptions and a question

I often get asked question about nHibernate issues the question discussed last in this post is often brought up. But lets start out with a few simple exceptions that can sometimes take up more of your time than you would like. "NHibernate.MappingException : Unknown entity class: MyNamespace.Wi... [More]

BlogEngine.NET - Urlrewriting

So the first thing I usually do when reviewing web projects is to find the default entry page that the user would see. When doing this with BlogEngine.NET you find the default.aspx (obviously in most cases). The first thing in the Page_Load of this is the following code: if (Request.RawUrl.ToLowerI... [More]

Small challenge: call method on null

Inspired by some talk I "overheard" on twitter I thought it would be interesting to post a small challenge. Is it possible to implement the missing parts of the following code so it compiles and runs without exceptions, if yes how would you do it? You are not allowed to modify the body of ... [More]

BlogEngine.NET - DAL Architecture

So as I wrote a few days ago I have been looking at BlogEngine.NET and considered how I would have designed its lower layers. So lets kick off with the provider that's currently used in BlogEngine.NET for accessing the various storages (XML and RDBMS). The provider is responsible for accessing all d... [More]

BlogEngine.NET investigations

Last Friday I took a look at the source code from BlogEngine.NET I wrote a little log during my short look: 20:32 - Downloaded the latest source from BlogEngine.NET on codeplex 20:34 - Build the solution and starting the website after a single problem with the website expected in another place t... [More]

Fluent interfaces. Make it easy to do it right

A fluent interface is a way to make what we could call an "inline" domain specific language using the power of the tools you already have at hand. Often when speaking statically typed object-oriented languages its a way to build an object graph or manipulate the state of an object in a mor... [More]

Tray icon annoyance

I have two wonderful tools that produce icons in tray. Last.fm allows me to hear music that is exactly my taste and TeamCity tray notifier monitors failed builds on TeamCity. However I wish that the icon for a failed build wouldn't be so much like the icon Last.fm produces: Its failed build on t... [More]

Blacked out

I got a a little surprised today when I opened the Danish version of Google, they changed their look to be a.... erhm... little darker.     Apparently its Googles way of "turning off the lights" and its done as part of a campaign to make people turn of their lights today to... [More]

Handling lists of checkboxes with MonoRail

I have had some discussions with a few people about why i would use MonoRail as it (for these people) seem like a step back from WebForms. First of all its important to understand that WebForms provide a statefull abstraction over something that is in fact stateless. In my opinion this makes somethi... [More]