Skip to content

Commit b854f97

Browse files
committed
Under 700
1 parent d18f5e9 commit b854f97

File tree

84 files changed

+811
-2362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+811
-2362
lines changed

_posts/2007-08-30-suprise-of-day.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Suprise of the day?
3+
title: Surprise of the day?
44
date: 2007-08-30T15:14:00.000Z
55
author: Marcus Hammarberg
66
tags:

_posts/2007-10-29-aspnet-20-profile-in-web-application.md

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,16 @@ blogger_id: tag:blogger.com,1999:blog-36533086.post-5749312230854668126
1111
blogger_orig_url: https://www.marcusoft.net/2007/10/aspnet-20-profile-in-web-application.html
1212
---
1313

14-
It has been a while since I coded web (not longing to much, I can
15-
say) and during this time a lot of development has happened of course.
16-
One of the great new features in ASP.NET 2.0 is the membership and
17-
profile handling which gives you easy access to store and get values
18-
that is has to do with the current user - a bit like settings in Windows
19-
programing.
14+
It has been a while since I coded web (not longing to much, I can say) and during this time a lot of development has happened of course. One of the great new features in ASP.NET 2.0 is the membership and profile handling which gives you easy access to store and get values that is has to do with the current user - a bit like settings in Windows programming.
2015

21-
A good introduction example can be [found
22-
here](http://www.odetocode.com/Articles/440.aspx).
16+
A good introduction example can be [found here](http://www.odetocode.com/Articles/440.aspx).
2317

24-
However there is a problem in the different project models. When Visual
25-
Studio 2005 was released Microsoft did an attempt to solve the "i want
26-
to place my files for web projects wherever I want"-problem, and came up
27-
with the Web Site-project type. It sucks!
18+
However there is a problem in the different project models. When Visual Studio 2005 was released Microsoft did an attempt to solve the "i want to place my files for web projects wherever I want"-problem, and came up with the Web Site-project type. It sucks!
2819

29-
That project type doesn't contain a project file and has a completely
30-
different compilation model, so it no good in most professional
31-
development projects. To do a build script for that kind of project is
32-
nigh on impossible...
20+
That project type doesn't contain a project file and has a completely different compilation model, so it no good in most professional development projects. To do a build script for that kind of project is nigh on impossible...
3321

34-
So a new project type was released - Web Application Project. It is
35-
good! So good in fact that after Visual Studio SP1 - the web site
36-
project cannot be chosen and the Web Application project template is the
37-
only one left.
22+
So a new project type was released - Web Application Project. It is good! So good in fact that after Visual Studio SP1 - the web site project cannot be chosen and the Web Application project template is the only one left.
3823

39-
To bad that, in the progress, some features was removed - for example
40-
the automatically generation of a Profile-class to get easy access to
41-
the Profile-values in web.config.
24+
To bad that, in the progress, some features was removed - for example the automatically generation of a Profile-class to get easy access to the Profile-values in web.config.
4225

43-
Here is a add-in that gives you that feature back - [ASP.NET WebProfile
44-
Generator](http://www.codeplex.com/WebProfile). It will (they have
45-
promised) work in the next version of Visual Studio.
26+
Here is a add-in that gives you that feature back - [ASP.NET WebProfile Generator](http://www.codeplex.com/WebProfile). It will (they have promised) work in the next version of Visual Studio.

_posts/2008-01-02-2008-what-year-to-look-forward-too.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,15 @@ blogger_id: tag:blogger.com,1999:blog-36533086.post-1990770724840060092
1010
blogger_orig_url: https://www.marcusoft.net/2008/01/2008-what-year-to-look-forward-too.html
1111
---
1212

13-
So - here we are at the beginning of a new year. Prepare your
14-
fingers of writing 08, 2008 and so on, I know that it will take me a
15-
month or so to get use to it.
13+
So - here we are at the beginning of a new year. Prepare your fingers of writing 08, 2008 and so on, I know that it will take me a month or so to get use to it.
1614

1715
Here are a of the things I look forward to in 2008:
1816

1917
- Of course - becoming a father. No - nothing yet. But soon!
20-
- Recording a CD with my band, the Vasa Band. The band has been
21-
working so hard for a long time now. It will be great to record it
22-
for real.
23-
Also I will be playing a solo on the CD which is a first for me. I
24-
will be playing my favorite solo in the Salvation Army literature
25-
"Journey into peace" by William Himes. That will also be great
26-
- Becoming a Sergent Major at the Vasa Corps. For the first time i
27-
really feel that a role suites me.
28-
- Rebuilding the Vasa Corps - from 28/12 2007 it's in progress. We are
29-
now rebuilding the corps. YEEES - it took about five years to come
30-
to a decision. Packing are in progress
18+
- Recording a CD with my band, the Vasa Band. The band has been working so hard for a long time now. It will be great to record it for real. Also I will be playing a solo on the CD which is a first for me. I will be playing my favorite solo in the Salvation Army literature "Journey into peace" by William Himes. That will also be great
19+
- Becoming a Sergeant Major at the Vasa Corps. For the first time i really feel that a role suites me.
20+
- Rebuilding the Vasa Corps - from 28/12 2007 it's in progress. We are now rebuilding the corps. YES - it took about five years to come to a decision. Packing are in progress
3121

32-
These are just a few of the things I look forward to. I hope that your
33-
year will be as exciting as mine is sure to be.
22+
These are just a few of the things I look forward to. I hope that your year will be as exciting as mine is sure to be.
3423

3524
God bless you

_posts/2008-03-20-publish-tfs-testresult-as-html.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,52 @@ blogger_id: tag:blogger.com,1999:blog-36533086.post-3773215006802964327
1212
blogger_orig_url: https://www.marcusoft.net/2008/03/publish-tfs-testresult-as-html.html
1313
---
1414

15-
OK - this is one of thoose "now where has that file moved"-posting.
15+
OK - this is one of those "now where has that file moved"-posting.
1616

17-
When you run tests in a TFS build with MSTest a .trx-file is created.
18-
This file contains all the testresults for that run. However you can't
19-
view it unless you have Visual Studio...
17+
When you run tests in a TFS build with MSTest a .trx-file is created. This file contains all the test results for that run. However you can't view it unless you have Visual Studio...
2018

21-
(Appearently you could publish the result to the Team Foundation Server
22-
and then do a report but this is much simpler...)
19+
(Apparently you could publish the result to the Team Foundation Server and then do a report but this is much simpler...)
2320

24-
Here is a tool, [trx2html](http://www.codeplex.com/trx2html), that
25-
converts that .trx-file into a nice HTML-report. And that report could
26-
then easily be published on the Team Portal.
21+
Here is a tool, [trx2html](http://www.codeplex.com/trx2html), that converts that .trx-file into a nice HTML-report. And that report could then easily be published on the Team Portal.
2722

28-
And here are, based on [this
29-
article](http://blogs.msdn.com/buckh/archive/2007/05/30/viewing-test-results-in-a-web-browser.aspx),
30-
some steps on how to include the functionality in your build script:
23+
And here are, based on [this article](http://blogs.msdn.com/buckh/archive/2007/05/30/viewing-test-results-in-a-web-browser.aspx), some steps on how to include the functionality in your build script:
3124

32-
1. Download [the
33-
tool](http://www.codeplex.com/trx2html/Release/ProjectReleases.aspx?ReleaseId=10672)
34-
2. Include the RidoTask.dll in your solution or reachable on the server
35-
where the tests are run. I've included the dll in a solution folder
36-
in my solution, called SolutionItems\Tools
25+
1. Download [the tool](http://www.codeplex.com/trx2html/Release/ProjectReleases.aspx?ReleaseId=10672)
26+
2. Include the RidoTask.dll in your solution or reachable on the server where the tests are run. I've included the dll in a solution folder in my solution, called SolutionItems\Tools
3727
3. Reference the msbuild task in your build file (.proj)
38-
\<usingtask
39-
assemblyfile="$(SolutionRoot)\SolutionItems\Tools\RidoTasks.dll"
40-
taskname="RidoTasks.trx2html"\>
28+
29+
```xml
30+
<usingtask
31+
assemblyfile="$(SolutionRoot)\SolutionItems\Tools\RidoTasks.dll"
32+
taskname="RidoTasks.trx2html"
33+
>
34+
```
35+
4136
4. Convert the trx into html after TFS has dropped the results
42-
\<target name="AfterDropBuild"\>
43-
\<calltarget targets="CreateTRXReports"\>
44-
\</target\>
45-
46-
\<target name="CreateTRXReports"\>
47-
\<createitem
48-
include="$(DropLocation)\\$(BuildNumber)\TestResults\\*.trx"\>
49-
\<output itemname="trxfiles" taskparameter="Include"\>
50-
\</createitem\>
51-
\<ridotasks.trx2html filename="%(trxfiles.Identity)"\>
52-
\</target\>
37+
38+
```xml
39+
<target name="AfterDropBuild">
40+
<calltarget targets="CreateTRXReports">
41+
</target>
42+
43+
<target name="CreateTRXReports">
44+
<createItem
45+
include="$(DropLocation)\\$(BuildNumber)\TestResults\\*.trx"
46+
>
47+
<output itemame="trxfiles" taskParameter="Include">
48+
</createItem>
49+
<ridotasks.trx2html filename="%(trxfiles.Identity)">
50+
</target>
51+
```
52+
5353
5. Inform your project where to find your latest reports, which is the
5454
same directory as the testresult itself
55-
\<Exec Command="xcopy
56-
"$(DropLocation)\\$(BuildNumber)\TestResults\\*.htm"
57-
"$(TestResultReportPath)" /Q /H /R /Y" /\>
55+
56+
```xml
57+
<Exec Command="xcopy
58+
"$(DropLocation)\\$(BuildNumber)\TestResults\\*.htm"
59+
"$(TestResultReportPath)" /Q /H /R /Y"
60+
/>
61+
```
5862

5963
That's an easy way to keep everyone informed

_posts/2008-04-07-transactions-in-stored-procedures-with.md

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,18 @@ blogger_id: tag:blogger.com,1999:blog-36533086.post-293035297188284140
1212
blogger_orig_url: https://www.marcusoft.net/2008/04/transactions-in-stored-procedures-with.html
1313
---
1414

15-
Yesterday I got a question from a collegue who had run into trouble
16-
using the TransactionScope-construct in .NET.
15+
Yesterday I got a question from a colleague who had run into trouble using the TransactionScope-construct in .NET.
1716

18-
The case was as follows; the are programming against a database whose
19-
stored procedures they cannot change. Some of these stored procedures
20-
are using calling each other and doing so under stored procedures. When
21-
the .NET-code is calling those stored procedures and doing so under
22-
TransactionScope they run into problems. The TransactionScope is not
23-
Complete-ing and the reader they are using in the TransactionScope
24-
simply returns empty (Nothing).
17+
The case was as follows; the are programming against a database whose stored procedures they cannot change. Some of these stored procedures are using calling each other and doing so under stored procedures. When the .NET-code is calling those stored procedures and doing so under TransactionScope they run into problems. The TransactionScope is not Complete-ing and the reader they are using in the TransactionScope simply returns empty (Nothing).
2518

26-
OK -first and foremost; don't mix! It's no good idea to have two guys
27-
deciding on when you are done. So use either the excellent Transaction
28-
support given in .NET 2.0 or use transactions in stored procedures.
29-
However...
19+
OK -first and foremost; don't mix! It's no good idea to have two guys deciding on when you are done. So use either the excellent Transaction support given in .NET 2.0 or use transactions in stored procedures. However...
3020

31-
To my colleague's defense it must be said that they cannot change the
32-
stored procedures they are using, so they are stuck. This is how you fix
33-
that situation (or well work around it is maybe more to the point).
21+
To my colleague's defense it must be said that they cannot change the stored procedures they are using, so they are stuck. This is how you fix that situation (or well work around it is maybe more to the point).
3422

35-
In the connectionstring it is possible to add a parameter stating that
36-
you will not enlist in transactions:
23+
In the connectionstring it is possible to add a parameter stating that you will not enlist in transactions:
3724

38-
new
39-
SqlConnection("connectionString;**Enlist=false**");
25+
```c#
26+
new SqlConnection("connectionString;**Enlist=false**");
27+
```
4028

41-
[Here](http://blogs.msdn.com/florinlazar/archive/2005/09/29/475546.aspx)
42-
is the article that pointed me to that direction.
29+
[Here](http://blogs.msdn.com/florinlazar/archive/2005/09/29/475546.aspx) is the article that pointed me to that direction.

_posts/2008-05-30-commenting-stockholm-marathon.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@ blogger_orig_url: https://www.marcusoft.net/2008/05/commenting-stockholm-maratho
1313
---
1414

1515

16-
This weekend one of the biggest sports events in Sweden will take place
17-
in Stockholm - the Stockholm Marathon.
16+
This weekend one of the biggest sports events in Sweden will take place in Stockholm - the Stockholm Marathon.
1817

19-
This year the only organization that is allowed, offically, around the
20-
course is the Salvation Army. The Salvation Army in Sweden has decided
21-
to make an effort to raise money for [water tanks for schools in
22-
Kenya](http://www.fralsningsarmen.se/dl2/p3/admin.nsf/wwwPublished/fralsningsarmen_startsida_kenya?OpenDocument).
18+
This year the only organization that is allowed, officially, around the course is the Salvation Army. The Salvation Army in Sweden has decided to make an effort to raise money for [water tanks for schools in Kenya](http://www.fralsningsarmen.se/dl2/p3/admin.nsf/wwwPublished/fralsningsarmen_startsida_kenya?OpenDocument).
2319

24-
The Vasa band, the band of my corps, will be playing at
25-
[Odenplan](http://www.hitta.se/ViewDetailsPlace.aspx?vad=&var=odenplan&PlaceId=2471632)
26-
during the day. Also the Source Of Joy gospel choir will be there.  
20+
The Vasa band, the band of my corps, will be playing at [Odenplan](http://www.hitta.se/ViewDetailsPlace.aspx?vad=&var=odenplan&PlaceId=2471632) during the day. Also the Source Of Joy gospel choir will be there.  
2721

28-
I have promised to speak during the day - and keep the day going. It
29-
will be great fun -but quite challenging also - we will go on for almost
30-
8 hourse straight!
22+
I have promised to speak during the day - and keep the day going. It will be great fun -but quite challenging also - we will go on for almost 8 hours straight!
3123

3224
Well, I'll get back to you with some information on how it went.

_posts/2008-08-21-in-control-iii-trombonist.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,12 @@ blogger_orig_url: https://www.marcusoft.net/2008/08/in-control-iii-trombonist.ht
1212
---
1313

1414

15-
This
16-
is not for the faint hearted, but well worth seeing.
15+
This is not for the faint hearted, but well worth seeing.
1716

18-
Its a clip from a recording session of the film music to the movie
19-
Hellboy. And the sounds these dudes produces are just ... well scary.
17+
Its a clip from a recording session of the film music to the movie Hellboy. And the sounds these dudes produces are just ... well scary.
2018

21-
For any non-brass players I can tell you that to produce one of those
22-
"bursts" is hard. Really hard. To do 15 or so in a row is just
23-
amazing.
19+
For any non-brass players I can tell you that to produce one of those "bursts" is hard. Really hard. To do 15 or so in a row is just amazing.
2420

25-
And now for something completely different. The best trombone player
26-
(not counting the bass trombone dudes above) in my opinion is Håkan
27-
Björkman. Here is a clip of him doing a cadenza of the Leopold Mozart's
28-
Alto-trombone concerto. Very different - but still amazing.
21+
And now for something completely different. The best trombone player (not counting the bass trombone dudes above) in my opinion is Håkan Björkman. Here is a clip of him doing a cadenza of the Leopold Mozart's Alto-trombone concerto. Very different - but still amazing.
2922

30-
Yeah - this is also something that shouldn't be possible to accomplish.
31-
I have heared it live at the Stockholm Opera once.
23+
Yeah - this is also something that shouldn't be possible to accomplish. I have heard it live at the Stockholm Opera once.

_posts/2008-11-05-blogging-in-two-places-avega-group-blog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ blogger_id: tag:blogger.com,1999:blog-36533086.post-3049897076598246711
99
blogger_orig_url: https://www.marcusoft.net/2008/11/blogging-in-two-places-avega-group-blog.html
1010
---
1111

12-
[Avega](http://www.avega.se) is starting up a [corporate blog](http://blog.avegagroup.se) and have asked me to post some posts there. Sounds great so I have just posted in some items from [www.marcusoft.net](https://www.marcusoft.net) to my ["Avega"-alias](blogg.avega.se/marcushammarberg).
12+
[Avega](http://www.avega.se) is starting up a [corporate blog](http://blog.avegagroup.se) and have asked me to post some posts there. Sounds great so I have just posted in some items from [www.marcusoft.net](https://www.marcusoft.net) to my ["Avega"-alias](https://blogg.avega.se/marcushammarberg).
1313

1414
<http://blog.avegagroup.se> will not be live in a few weeks though, so keep cool until you can read me in ... stereo. ;)
1515

1616
A few interesting questions arose:
1717

18-
- How will [Google](http://www.google.com) tackle the indexing. Will a search for "marcus hammarberg" yeild a hit at the Avega-blog before [www.marcusoft.net](https://www.marcusoft.net)?
18+
- How will [Google](http://www.google.com) tackle the indexing. Will a search for "marcus hammarberg" yield a hit at the Avega-blog before [www.marcusoft.net](https://www.marcusoft.net)?
1919
- How to use [Windows Live Write](http://get.live.com/writer/overview) (which I have fallen in love with) with [SubText.NET](http://subtextproject.com/) (the Avega blog engine of choice)? Luckily there is a [simple solution here.](http://blogs.meetandplay.com/WPierce/archive/2006/08/18/SubText_and_Windows_Live_Writer.aspx)

_posts/2008-12-30-about-this-blog.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,15 @@ blogger_orig_url: https://www.marcusoft.net/2008/12/about-this-blog.html
1212
---
1313

1414

15-
Lately I have been asked the question why I have this blog, several
16-
times actually. I honestly thought that I wrote that in [the first
17-
posting I did](https://www.marcusoft.net/2006/10/marcus-on-net.html), but
18-
it was very short. Not even when I change into
19-
[www.marcusoft.net](https://www.marcusoft.net) I [wrote
20-
something](https://www.marcusoft.net/2007/08/new-url-httpwwwmarcusoftnet.html)
21-
about it.
15+
Lately I have been asked the question why I have this blog, several times actually. I honestly thought that I wrote that in [the first posting I did](https://www.marcusoft.net/2006/10/marcus-on-net.html), but it was very short. Not even when I change into [www.marcusoft.net](https://www.marcusoft.net) I [wrote something](https://www.marcusoft.net/2007/08/new-url-httpwwwmarcusoftnet.html) about it.
2216

23-
But the reason for the blog is, and has always been this simple: I write
24-
about things that interest me and when they catches my attention.
25-
For several years I did notes in diffrent kind of notebooks at different
26-
customers. Always forgot them when I left. So now I have them in one
27-
place. I often link to the blog for solutions to problems I have and
28-
solve.
17+
But the reason for the blog is, and has always been this simple: I write about things that interest me and when they catches my attention. For several years I did notes in different kind of notebooks at different customers. Always forgot them when I left. So now I have them in one place. I often link to the blog for solutions to problems I have and solve.
2918

30-
I then and then write about private stuff also, in the same manner -
31-
when it feels good.
19+
I then and then write about private stuff also, in the same manner - when it feels good.
3220

3321
I write in english to keep my english up to date.
3422

3523
So there you have - the reason for this blog and why I keep it.
3624

3725
PS.
38-
The implications and "reach" of the blog has been way more than I ever
39-
expected. I have around 700 visitiors (lost about 200 visits/month with
40-
the [Avega
41-
blog](http://blog.avegagroup.se/MarcusHammarberg/default.aspx)) each
42-
month from all around the globe.
43-
DS
26+
The implications and "reach" of the blog has been way more than I ever expected. I have around 700 visitors (lost about 200 visits/month with the [Avega blog](http://blog.avegagroup.se/MarcusHammarberg/default.aspx)) each month from all around the globe. DS

0 commit comments

Comments
 (0)