myCssProp is not a known CSS property name
My good friend Fredrik “Fran” Anfelter found the solution of a very irritating problem. If Visual Studio 2005 is set to Treat all warnings as error, with warning level 4 (which both are good practices) you will get a LOT of error for any CSS-properties that is defined by you. This has to do with that no XML-schema exists to validate those properties for the .css-file. However there is a setting in Visual Studio 2005 that will help you to get rid of those errors. Under Tools->Options->Text Editor->CSS->CSS Specific the dialog to the right can be found. Simply uncheck the “Detect unknown properties” and the errors a but a memory from the past. The “formally correct” solution would have been to include a XML-schema that validates the properties used in the css-file. Two problems though: How do you point the xml-schema to the css-stylesheet? Who has the time to keep...
NUnit testing asynchronous events
In my current project we are using a some asynchronous webservice method calls. The actual call are in turn encapsulated in a layer that is used by the GUI, the “ClientCommand”-layer. However when writing tests for these method we ran into trouble…. First the NUnit-framework is not very good at handling events at all, but by using this excellent article by Peter Provost i got a nice, compact way of doing the tests. Then it was the whole asynchronous thing, which really was hard to get by. The solution given above worked out fine as long as not any assertions went threw exceptions - but what is the use of that? So the simple solution to the problem was to simply wait for the event to fire and be handled. This was solved by setting a bool variable (bEventHandled) and not continue with the assertions until that bool was true....
Eating my mobile... and a Nanbread
Today i might have to eat my mobile (QTek 8100) and an indian
I have bet the IT-department at my customer that I would do that if the
test-team has finnished their testing in one day (which is the set
Although they never has done that before i am still a bit nervous. It
looks really big and hard to … “handle”. I’ll try to find a loophole
to get me out of it… maybe if i made a replica of marispan and ate it
really fast they wouldn’t know the difference.
To the right is a picture of my phonemodel… Gulp
Today when i bicycled to work it was, as always in Sweden this season, dark. So in order to see anything i switched on my headlight on the bike. My bike is not very good so for the third time in a short while (broken wheel, flat tire and not the headlight) something broke on the bike. About 200 meters after the light had faded for the morning i met a guy. He had just climed a steep hill and was not in a good mood. He probably also was a person very concerned with following laws and regulations. So, in a not very friendly mood, he shouted: “Maybe a lightbulb, don’t you think?” Of course we had passed each other before i could think of any good comeback. I laughed for while but then it has nagged me the whole day. This is the basis for a whole Seinfeld...
New Besson Euphonium
After some turbulent times for Besson they are now back…. with some
new euphonium models too.
That would be something to dream of
Pretty cool that a new Sovereign models is released. I always thought
that Besson had abandonded them for Prestige. The Prestige is just to
expensive for hobby-players like myself… maybe when I am a
Get more use from NCover
is just to good to be missed…
In my current project I have implemented an automated build process,
which includes some component testing done with NUnit.
Yesterday I also added the use of NCover (http://www.ncover.org) which
gives you some idea on how much that was tested. The reports from NCover
is not very easily understood, don’t give you any overviews and is not
easy to trace back to the code.
So, with this background my eyes was running with tears when i found
NCoverExplorer. A truly great and useful utility. And good-looking to
Be sure to get hold of the tool today:
And a big thank you to the “kiwi dude”. Great stuff!
Marcus on the net
This is my first ever publication on the Internet.
I am not sure yet what to put down here but I hope that it will be
meaningful, for me if not for anyother.
Today I will try to lead the future-group at my Salvation Army corps
(church) after work. We are planning the activites for the corps in the
future. A major rebuilding is in the planning and on the way so we also
need to look over the “content” of the house.
I am so honored to be leading this team of nice and intelligent
So - that was the start…. Lets see where this leads.