Getting dates automatic in Notepad

Just passed this “trick”. You’d think that everything that there is in notepad was known…

This is cool and could also be handy for creating a manual notebook or diary .

  1. Open a blank Notepad file
  2. Write .LOG (in uppercase) in the first line of the file, followed by Enter. Save the file and close it.
  3. Double-click the file to open it and notice that Notepad appends the current date and time to the end of the file and places the cursor on the line after.
  4. Type your notes and then save and close the file.
  5. Each time you open the file, Notepad repeats the process, appending the time and date to the end of the file and placing the cursor below it.

Check it out

Read More

TESTTOOLSTASK warning VSP1024 Unable to open file file for writing.

This warning occurs when doing testing with MSTest and running the test under code coverage. It is related to the warning “warning VSP2013: Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this.”

and has confused me a lot. Especially since, when running the tests in a build script, the warning seems to come and go.

No fear; the solution is quite simple (thanks to this excellent forum post); here is what you need to do:

  • Find the test configuration file you’re using for the test run under code coverage. It is usually called LocalTestRun.testrunconfig and resides in the solution root.
  • Open the file in a XML-editor
  • Find all the CodeCoverageItem-elements change (or add) the attribute instrumentInPlace from “true” to “false
  • Save and rerun -...
Read More

In Control II - Bobby McFerrin

Bobby McFerrin is known to a broader audience for the summer-hit “Don’t worry, be happy”. But that is such a little part of his work. And his real genius lies in his voice.

This guy has control, and loads of it. When I heard this clip yesterday I found myself with my mouth open through out the whole thing. And then I checked this out where he improvises over a Air by Bach. My good! He is the king!

Read More

The vacation - short recap

As I wrote earlier I’ve just spent four wonderful weeks on vacation. Great times and great feeling to do something completely different for a month.

First we went to Skåne and stayed for a week in Ystad, in this nice cottage.

Only about 1.90 m in height but it worked out alright. In the surrounding fields Elin took a Gladiator-inspired photo.

Then we went to Ängelholm at the other side of Skåne and stayed at a wonderful bed and breakfast, Galleri Grythyttan, with a very beautiful view from our bedroom window.S

Ängelholm

Then we went to Denmark to visit my parents and sister. The Denmark visit included a short stop at Skagen where two oceans meet. Powerful stuff!

Read More

WCF, WSDL and differences from web services

I’m back after a four week vacation (oh yeah - us Swedes really has things going for us). More about the vacation later. First thing to learn this “season” is that the WSDL generated by WCF (Windows Communication Foundation) services differs from the one generated with ASMX web services.

The main difference is that the WSDL is generated with some kind of virtual links. That is; parts of the WSDL-file is retrieved using a different URL. For example: schemaLocation=”http://localhost:3236/Bokforing.svc?xsd=xsd0

This seems to be working fine in Visual Studio 2008 (and hopefully in 2005 also), since they are capable of navigating such references. But there are problems when you want to send the WSDL-file to someone as an attachment, or in other environment that can’t navigate such links.

Fortunally Christian Weyer has a suggestion on how to solve this. There are also some other very useful...

Read More

Modelling - the result

As I wrote earlier I have done another “photo session” for Avega. Who knew that such assignments were to take place at a software consultant firm ;).

I then promised to show the result and here it is.

I am really pleased with the result. It almost looks like it was drawn or something. Really cool colors. It is a great photographer. The model leaves more to wish for but you’ll have to work with what you’ve got…

Read More

Bus drivers on strike in Stockholm

This spring there has been strikes for some groups of workers who actually might need it; nurses for example. And right now, in the beginning of the vacation times, the bus drivers of Stockholm has gone on strike. This in turn leads to a lot more people in the subway and commuter trains.

But we are still not even near an ordinary day in the Tokyo metro…

Read More