Geeks With Blogs
Liam McLennan January 2009 Entries
A Tale of Two Notebooks
In november 2007 our old desktop finally passed away. In the midst of our grief we were faced with the need for a new machine. To support my wife's mobile lifestyle we decided to get a notebook. In our hurry we purchased a 15" MSI notebook and upgraded the memory. All told the cost was about AUD $1400 . By february I needed a new notebook myself. I bought a Dell Inspiron 6400 - probably the ugliest notebook on the market at the time. The Dell cost me AUD $998. The MSI was expensive, has been unreliable ......

Posted On Sunday, January 25, 2009 5:27 AM

Adding simple functionality to Mock objects
Very occassionally I need to mock a service that must do something more than just returning a value. Consider the contrived example of a Worker object that has a property called Count. During the execution of the function under test the Worker object is passed to an IIncrementer service to increment its Count property by one. [Test] public void DoStuffTest() { var incrementer = new Mock<IIncrementer>(); WOrker worker = new Worker(incrementer); incrementer.Expect(i => Increment(worker)); ......

Posted On Tuesday, January 20, 2009 11:47 PM

The security benefit of using presentation models
Presentation models, or screen-bound DTOs, are are lightweight classes tailored to the needs of the screens on which they are used. The obvious benefit is that they remove some of the work required to translate between domain model objects and user interface elements. Work that is usually performed by the view and controller in an MVC context. A secondary benefit of presentation models is that they explicity define what can be bound to domain model objects. Automatic binding such as MVC's ......

Posted On Monday, January 19, 2009 7:05 PM

My Home Office
I finally feel I have a setup that works. The window provides natural light and a long-range focal point. Three screens are just awesome. Behringer powered monitors for cranking the tunes. For anyone contemplating a triple monitor setup here are some points to keep in mind: try to get screens that have similar hight and resolution you will need a second video card and therefore a motherboard with two pci express slots the two video cards must have the same architecture. ie you cannot mix nvidia and ......

Posted On Saturday, January 17, 2009 5:27 PM

Hilarious Tech Ed Panel
Tech Ed 2008 Software Quality Panel

Posted On Thursday, January 15, 2009 10:56 PM

Orwell's Six Rules for Writers
Never use a metaphor, simile, or other figure of speech which you are used to seeing in print. Never use a long word where a short one will do. If it is possible to cut a word out, always cut it out. Never use the passive voice where you can use the active. Never use a foreign phrase, a scientific word, or a jargon word if you can think of an everyday English equivalent. Break any of these rules sooner than say anything outright barbarous ......

Posted On Thursday, January 15, 2009 9:57 PM

Weird Assembly Load Error: Could not load file or assembly...
Could not load file or assembly 'antlr.runtime' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) All of a sudden I started to get assembly load errors for antlr. Process monitor showed me a BUFFER OVERFLOW was occuring in the temporary folder (C:\Windows\Microsoft.NET\F... ASP.NET Files). So I deleted the Temporary ASP.NET Files folder and got a different error: The current identity (NT AUTHORITY\NETWORK ......

Posted On Thursday, January 15, 2009 7:12 PM

Method not found: 'Castle.Windsor.IWindsorContainer Castle.Windsor.IWindsorContainer.AddComponentLifeStyle(System.String, System.Type, Castle.Core.LifestyleType)'.
For me, this error was caused by MvcContrib and Castle binaries being out of sync. So the fix is to make sure you have corresponding versions.

Posted On Tuesday, January 6, 2009 10:47 PM

Copyright © Liam McLennan | Powered by: