-
For SDN Event of June 14th I did two presentations Transactions Why are transactions the bottleneck of so many applications? Why isn't the database always consistent, even though we use transactions? This session explains why everything in a database is a transaction and how a developer should...
-
Just a quick little post today: I got the error "The Path 'path' is already mapped in workspace 'workspace'" when I connected to a new Team Foundation Server and tried to map my workspace today. I had connected to a Team Foundation Services project a while back to get some shared...
-
A rather long title for this post, but that’s exactly what happened: when I opened an ASP.NET MVC 4 project with a cshtml view open, Visual Studio would crash with the error messages seen on the right. This would only occur if the first project I opened had a cshtml file open. When I opened another ...
-
At work we’ve been using Enterprise Library for quite some time. A new colleague came in a few months ago and he’s apparently in love with log4net. And I’ve been proving over and over again that Enterprise Library logging can do what log4net can do. It’s probably that patterns & practices don’t have...
-
Just a quickie today: when working with Twitter Bootstrap tabs , like I am in my ASP.NET MVC 4 project, you might want to add Next and Previous buttons on the tabs to create something of a Wizard. Here’sa step by step overview of how I did this: Add an ID to all the ListItem elements that are used for...
-
Problem: Developing a generic class that maps datasets, datatables and datarows from a legacy system to my domain model, I ran into an issue. I wanted to call a generic method with a runtime type. Lets say the method looked like this: public string DoSomething<T>(string param). Because I use reflection...
-
Twitter Bootstrap is a... "Sleek, intuitive, and powerful front-end framework for faster and easier web development." One of the nice things in Bootstrap is you can use icons from Glyphicons . To use these, you can simply use this markup <i class="icon-fire"></i> get a...
-
In the past, when you had some XML document that you wanted to translate into classes we had to create / generate a schema based on the XML file. Next, we had to generate a class based on the schema with an external tool. Not all too user friendly and somewhat time consuming. In Visual Studio 2012 you...
-
I’ve just came back from a trip to Washington DC , where I’ve been at the 50th IAM International Moving Annual Meeting . This was for my employer TellUs , who’s into lead generation for international removal companies. A lot of people asked for the reason why I went to the states, this is it. And of...
-
This blogpost is part of a series Template Method Pattern explanation Template Method Pattern example Template Method Pattern advanced So we’ve looked at the Template Method Pattern with an implementation as really simple example, and another real world implementation. We have additional requirements...
-
This blogpost is part of a series Template Method Pattern explanation Template Method Pattern example Template Method Pattern advanced So in my previous post I explained how I change the template method pattern a bit with protected abstract methods. In this post I’ll explain why I used this pattern and...
-
This blogpost is part of a series Template Method Pattern explanation Template Method Pattern example Template Method Pattern advanced I’ve recently read a post about someone who hated the Template Method Pattern, because its intent wasn’t revealed. When based on the many examples out there, you might...
-
When building an ASPapplication that generates Word documents, it was working fine on the local machine. A windows XP installation with Office 2007. When we deployed it to windows 2008 (64 bit) and Word 2007 we saw that Documents.Open returned null. Other than this, there are no exceptions. The code...
-
When installing SQL Server 2008 R2 on a Windows XP (or, according to the comments, Windows 7) development machine that has been around for quite some time, I got an error stating an unhandled exception occured in the application (see image). The error showed up directly upon startup and read: An error...
-
How do I test a method that returns void? For example a method like this. public void Process(int leadId) { decimal price = _calculator.CalculateNormalLead(leadId); Lead lead = new Lead(leadId, price); _leadRepository.Save(lead); } How to test what the state of the lead object is? This is a question...