Solution to closing the lid of my MacBook cause it to get VERY hot
June 21, 2010
OK – this might not be one of my ordinary subjects but this was soooo annoying. Sometimes when I closed the lid of my MacBook Pro there were something still running. This caused the battery to drain in about 20 minutes and the computer to go very, very hot. For the first time ever I actually burned myself on a computer.
I have checked around the net for a solution, and even went into a MacStore but as the error comes and goes there’s not much security in the tips.
As suspected one process doesn’t have time to close down and just keeps running. But which one?
In my case it was something called Safe Sleep (that prevents unsaved data from being lost if the power goes out). This is disabled by the following commands in a Terminal window:
Read Moresudo pmset -a hibernatemode 0 sudo...
Resovling policy enabled objects with Unity 2.0
June 14, 2010
Read MoreI had the opportunity to use Unity and Enterprise Libarary in my current project. On of the really cool features of Enterprise Library (and most Dependency Injection frameworks) is the support for Aspect Oriented Programming. It’s a really neat way of handling the cross-cutting concerns in your application.
I was therefore very surprised when I had a really hard time to get, what I thought was simple, the following scenario to work:
I want the objects that I resolve to be “policy enabled” – i.e. configured in such a way that I can add policies in the configuration that can be picked up later and applied to the resolved objects.
That is, it was hard in Enterprise Library 4.1 and Unity 1.2. I had to scan the net and put together a solution of my own. It was a mix of extension...
Rewrite project - requirements SWAT team
June 7, 2010
Read MoreIn my current project we have had a problem. The project is a “rewrite” project that shall “convert” a VB6 application into a VB.NET version of it. I put those words in quotes for a reason; here-in lies much of our problem in my mind. From the business-side of the project this has been viewed as technical problem and project. It’s a 1:1 conversion (the word “re-compile” has been used at more than one occasion). We all know that this is not the case. And even if it was that simple and you actually could do a 1:1 conversion it’s a waste of time. But that’s another story. In any case, we have had problem to get the business to engage in our project. (When I say business here it refers to people with the knowledge and power to decide on what the system should do). And that’s not the...
TF203007 Cannot create the label because the version controlled item […] already exists or has been specified more than once
May 28, 2010
Read MoreOK – I just broke my old “longest blog post title” but this was a problem we ran into today.
As I understand the message some kind of duplication has taken place, but I don’t know what to do about it. Well I found this on a msdn-forum:
This error is cause by one of your developer was deleted file and added exactly same file back in instead using undeleted feature, and in the backend database, TFS give this file new file id which has exactly same server path; therefore, when you are trying to label, it throws an exception which complaining file already existed. To work around this issue, you have to manually open label and remove […] Then you should be able to label again.
OK. One of those - “That’s strange, but it works”. Thank you AndyPham.
Using ATDD in conversion project
May 26, 2010
Read MoreI have been involved in a lot of conversion project. More specific it has been converting legacy VB6 applications to .NET applications. I’m not sure why or how but I have found myself in many project like this.
Common scenarios in conversion project
Very often these project has an ideal picture that “it’s just a conversion”. “This is 1 to 1 project” is a very common phrase in many of the projects I have been involved in. That can be understood as: “just convert it in the new language – with the exact same features”. I have even been asked to do bug conversion – that is to also convert any bugs I find into the new language.
Moreover, these project very often lack interest, time and effort from the stakeholders/customers/business people. To non-technical persons conversion is purely technical thing. “Just recompile it – let me know when you’re...
WCF, MVVM and good client design
May 11, 2010
Read MoreUp to now most of my assignments has not been client-related. Often the project description and main focus is on the layers beneath the GUI. But lately I have seen a shift in the industry and more so in my own interest. Client-side stuff is coming on strong.
And it’s hard work to design a well structured client application. There are a lot of patterns but the frameworks and “recommended” ways up to now often doesn’t lend themselves well to those patterns. Ever tried to do proper MVC with WebForms or WinForms – it’s not easy.
But that has also shifted. I have written a lot on ASP.NET MVC – that of course supports the mother of all client patterns, MVC, in a great way. So enough said there.
But for “fat clients” such as windows clients there’s been a hazy mystery for me. I know...
Configure WCF in IIS for anonymous access
May 6, 2010
Read MoreThis case may sound strange and I have seen loads of post that describes how to get out of this behavior. But we have a case where we want to allow anonymous access and the let a external component manage the security validation.
This turned out to be very hard to figure out and required some wizard-like skills of Anders Granåker amongst others.
OK – the case is very simple. I have a WCF Service that I want to allow anonymous access to. I don’t care about message and transport security (for now). Just allow anonymous access – I’ll take care of the authorization in code.
Here is what I had to do to get it to work on Windows 2003 R2:
- Create a account on the server
- Put that account into the IIS_WPG group
- Create a virtual directory for my WCF service
- Create an application in that virtual...
Specification by example – the missing link?
April 22, 2010
Read MoreI’ve been thinking. That statement alone will be sure to put fear in the heart of a lot of you… But if you have continued on this far, here we go.
Learning programming stuff
During the last year or so I have been reading a lot. I have read stuff on XP, on good design DDD and TDD. This reading has affected me and my coding style way much more than I first thought. I simply cannot write code anymore without the test first, interface first, thinking of SOLID etc..
Learning lean stuff
At the same time I have change role at Avega. I am now an AvegaCoach. This means that my time is divided between my regular (often coaching) assignments with customers and Avega and Elevate. Since my fellow AvegaCoaches (Joakim and Christophe) and me are interested in agile...
Calling SOAPUi Testscript from MSBuild
April 14, 2010
Read MoreYes, I know that I have written about this before, with several updates. But I have now solved some issues with setting different endpoints for different services and thought that I might need to update the MSBuild-script to be able to call with those parameters also.
Again – the script I am starting off is written by Todd of the Tar Pit. I’ve just tweaked it to take project property as input. That was the recommended way to change the endpoint for one service, to set the endpoint to a projectwide parameter.
So, here is what the new MSBuild targets looks like.
And here is a DOS-command that runs the MSBuild-target TestAll with the project property set to a endpoint.
Please note that I was running this on a 64-bit Windows 7 and got some strange paths (Framework64) that you...
Home with children – everything’s fine
April 7, 2010
Read MoreWe have now been home for a while and things are settling down over here. Actually, it’s working pretty well so far.
Gustav is much better – he’s completely cured, to be honest. Both Arvid and Gustav are gaining weight and are generally happy, unless you change their diapers…
Small children sleep a lot, which is nice when you have another one to take care of as well. Albert is very loving towards Arvid and Gustav and enjoys holding them… with us watching closely. He can lose interest very quickly ;)
So, all in all – we’re doing just fine. Thanks for all the greetings and congratulations (is that even a word?). We’ll soon come out of our cocoon and see you all...