<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mr Andersson</title>
	<atom:link href="http://johan.andersson.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://johan.andersson.net</link>
	<description></description>
	<lastBuildDate>Fri, 13 Jan 2012 18:31:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='johan.andersson.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mr Andersson</title>
		<link>http://johan.andersson.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://johan.andersson.net/osd.xml" title="Mr Andersson" />
	<atom:link rel='hub' href='http://johan.andersson.net/?pushpress=hub'/>
		<item>
		<title>Integration testing HTTP service caller using PostBin.org</title>
		<link>http://johan.andersson.net/2011/07/19/integration-testing-http-service-caller-using-postbin-org/</link>
		<comments>http://johan.andersson.net/2011/07/19/integration-testing-http-service-caller-using-postbin-org/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 07:20:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://johan.andersson.net/?p=185</guid>
		<description><![CDATA[Problem: Post-Receive service hooks in GitHub are great. However, the lack all kind of flexibility chosing which commiters and/or branch of a repository the service hooks should be applied to. The other end, Hudson CI in this case, of the service hook call has the same problem. Solution: As many other have, I started out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=185&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Post-Receive service hooks in GitHub are great. However, the lack all kind of flexibility chosing which commiters and/or  branch of a repository the service hooks should be applied to. The other end, Hudson CI in this case, of the service hook call has the same problem.<br />
<strong>Solution:</strong> As many other have, I started out to write a HTTP proxy which could provide some conditional logic for when to proceed with a Post-Receive call.</p>
<p>I started out driving the development of my proxy using TDD. My initial requirement was to <em>NOT</em> proceed with Post-Receive calls for certain commiters. So I started with the following failing end-to-end tests:<br />
<pre class="brush: csharp;">
[Test]
public void GivenATargetAndAnIgnoredCommiter_WhenPostingPayloadWithCommitsByIgnoredUserOnly_ThenTargetWillNotBeCalled() {}

[Test]
public void GivenATargetAndAnIgnoredCommiter_WhenPostingPayloadWithCommitsWithAMixOfIgnoredAndNotIgnoredUsers_ThenTargetWillBeCalled() {}
</pre></p>
<p>After a while of hacking around I ended up with the following tests which tested my needs of the logic in my little service hook proxy:<br />
<pre class="brush: csharp;">
[Test]
public void GivenATargetAndAnIgnoredCommiter_WhenPostingPayloadWithCommitsByIgnoredUserOnly_ThenTargetWillNotBeCalled()
{
	var postReceiveHook = GivenATargetAndAnIgnoredCommiter();

	Payload payload = PayloadWithCommitsByIgnoredUserOnly();
	postReceiveHook.Post(payload);

	Assert.AreNotEqual( payload, _testTarget.Received );
}

[Test]
public void GivenATargetAndAnIgnoredCommiter_WhenPostingPayloadWithCommitsWithAMixOfIgnoredAndNotIgnoredUsers_ThenTargetWillBeCalled()
{
	var postReceiveHook = GivenATargetAndAnIgnoredCommiter();

	Payload payload = PayloadWithCommitsWithAMixOfIgnoredAndNotIgnoredUsers();
	postReceiveHook.Post(payload);

	Assert.AreEqual( payload, _testTarget.Received );
}
</pre></p>
<p>But these tests, are they really end-to-end tests involving a Hudson CI instance?<br />
Let&#8217;s take a look at the class behind the _testTarget field:<br />
<pre class="brush: csharp;">
internal class TestTarget : IPostReceiveTarget
{
	public HttpStatusCode Call( Payload payload )
	{
		Received = payload;
		return HttpStatusCode.OK;
	}

	public Payload Received { get; private set; }
}
</pre></p>
<p>I don&#8217;t think so!<br />
But do I want to bundle a complete Hudson CI instance with my NUnit test project? <strong>No!</strong> So where to draw the line?<br />
Let&#8217;s try to find out what we actually want here.</p>
<ul>
<li>Is it important to actually verify that the Hudson CI server can process the GitHub Post-Receive Service Hook JSON payload? <em>Nah.</em>
</li>
<li>Is it important to verify that it can forward requests to different target URLs (Hudson jobs)? <em>Nah.</em>
</li>
<li>Is it important to verify that it can receive a payload from GitHub and then resend the same payload to an arbitrary HTTP POST target? <strong>Yes!</strong>
</li>
</ul>
<p>Let&#8217;s take a look at the interface I wrote to separate the conditional logic from faking HTTP requests to Hudson CI in the previous tests:<br />
<pre class="brush: csharp;">
public interface IPostReceiveTarget
{
	HttpStatusCode Call( Payload payload );
}
</pre></p>
<p>Right here I felt a bit bored because I started out writing the HTTP POST service call gateway, no tests involved.<br />
Ended up with the following piece:<br />
<pre class="brush: csharp;">
public class HttpPostTarget : IPostReceiveTarget 
{
	public HttpPostTarget( string targetUrl )
	{
		Url = targetUrl;
	}

	public HttpStatusCode Call( Payload payload )
	{
		var wc = new WebClient {Encoding = Encoding.UTF8};
		wc.Headers.Add( HttpRequestHeader.ContentType, &quot;application/json&quot; );
		try
		{
			wc.UploadString( Url, JsonConvert.SerializeObject( payload ) );
			return HttpStatusCode.OK;
		}
		catch ( WebException ex )
		{
			var response = ex.Response as HttpWebResponse;
			return response == null ? HttpStatusCode.BadRequest : response.StatusCode;
		}
	}

	public string Url { get; private set; }
}
</pre></p>
<p>So what do you say? This code can&#8217;t be tested? Well, I could go down the road and write a test which utilizes the HttpListener and verify the payload received by the listener in the test. Doable, yes indeed, but earlier today I was wasting some hour or two on getting the HttpListener to work with Windows Firewall (a.k.a. the &#8220;netsh&#8221; ceremony) which totally failed since I was hosting the code on a network share on my Mac and trying to fire up the listener on the Windows 7 Parallels VM&#8230;.<em>Aaarghh! Frustration!</em> <strong>I just want the simplest possible thing that could work out of the box!</strong></p>
<p>Suddenly I remembered a web hook debug thingy I stumpled upon a couple of months earlier: </p>
<ol>
<li>Go to <a href="http://www.postbin.org">www.postbin.org</a> and make a PostBin</li>
<li>Your created PostBin&#8217;s URL is shown </li>
<li>Start making HTTP POST requests to that URL</li>
<li>See the result at your PostBin&#8217;s URL or access the Atom feed for it (append /feed to the URL)</li>
</ol>
<p>Excellent!<br />
So what is the most LOC effective and least ugly integration test I can make out of this which tests my HTTP POST code?<br />
Here is what I ended up with:<br />
<pre class="brush: csharp;">
[TestFixture]
public class HttpPostTargetPostBinTests
{
	[Test]
	public void GivenAPayloadAndAPostBinBucket_WhenCallingTheTarget_ThenPostBinReturnsThePostedPayload()
	{
		const string postBinBucket = &quot;http://www.postbin.org/93483c01&quot;;
		var target = new HttpPostTarget( postBinBucket );
		var commitId = new Random().Next().ToString();
		Payload samplePayload = SamplePayload( commitId );
		var status = target.Call( samplePayload );

		var content = GetFirstEntryContentOfAtomFeed( postBinBucket + &quot;/feed&quot; );

		Assert.AreEqual( HttpStatusCode.OK, status );
		StringAssert.Contains( &quot;&amp;quot;&quot; + commitId + &quot;&amp;quot;&quot;, content );
	}

	static string GetFirstEntryContentOfAtomFeed( string atomUrl )
	{
		XNamespace atom = &quot;http://www.w3.org/2005/Atom&quot;; 
		return XDocument.Load( atomUrl ).Descendants( atom + &quot;content&quot; ).First().Value;
	}

	private Payload SamplePayload( string commitId )
	{
		return new Payload { Commits = new[] { new Commit { Id = commitId, Author = new Author { Email = &quot;foo@bar.tm&quot;, Name = &quot;Foo Bar&quot; } } } };
	}
}
</pre></p>
<p>Someone else can probably make it prettier and more effective but this just works out of the box, without adding any external library references except for NUnit.</p>
<p><strong>Conclusion:</strong><br />
It is very easy to get into trouble when writing tests for problems which are closely tied up with or depending on some technical concepts. In my case I was trying to get away as far as possible from a data format (JSON) and a network protocol (HTTP). A good start seems to be to make the abstractions where you hit these techie stuff. Think of that before you find yourself extending the problem context; Do you really need that infrastructure or external library to deal with your current design issues? Stay in context. When time comes and you need to hit the outer limit of the context, proceed as always: Make the simplest possible thing that could work.</p>
<p>Note:<br />
PostBin is a web site made by Jeff Lindsay. You can <a href="https://github.com/progrium/postbin">fork his work</a> on GitHub.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=185&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2011/07/19/integration-testing-http-service-caller-using-postbin-org/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>Median Nerve Entrapment</title>
		<link>http://johan.andersson.net/2011/03/07/median-nerve-entrapment/</link>
		<comments>http://johan.andersson.net/2011/03/07/median-nerve-entrapment/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 05:00:14 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://johan.andersson.net/?p=167</guid>
		<description><![CDATA[MEDICAL DISCLAIMER: The following information is my personal notes about PTS. It is intended for informational purposes only. Consult a physician to help you diagnose and treat injuries of any kind. In my last post I wrote about something called Pronator Teres Syndrome (PTS or just Pronator Syndrome). So what is this fuzz about? Who [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=167&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>MEDICAL DISCLAIMER: The following information is my personal notes about PTS. It is intended for informational purposes only. Consult a physician to help you diagnose and treat injuries of any kind.</strong></p>
<p>In my last post I wrote about something called Pronator Teres Syndrome (PTS or just Pronator Syndrome). So what is this fuzz about? Who is this Pronator Teres guy and why is he bothering me?<br />
When you are seeing a doctor he/she will use a lots of words that you probably doesn&#8217;t understand and can&#8217;t refer to. So after seeing the doctor you search the web to find more about these new words. In this blog post I will try sort out some of the words/sounds I learned so far which relates to PTS. </p>
<p>Release your hands from your computer for a while and look at your palm, also known as the <em><a href="http://mw1.meriam-webster.com/dictionary/volar">volar</a></em> side. Now turn your hands 180 degrees so your palms face down. What you just did is called <em><a href="http://medical-dictionary.thefreedictionary.com/pronated">pronation</a></em>.</p>
<p>I found this great illustration at <a href="http://thefreedictionary.com">TheFreeDictionary.com</a> which also shows the opposite act of pronation, which is called supination:</p>
<p><a href="http://medical-dictionary.thefreedictionary.com/pronated"><img class="aligncenter" title="Illustration: Pronation and supination" src="http://img.tfd.com/mosbycam/thumbs/500197-fx37.jpg" alt="Illustration: Pronation and supination" width="250" height="328" /></a></p>
<p style="text-align:center;font-size:.5em;">Mosby&#8217;s Dictionary of Complementary and Alternative Medicine. (c) 2005, Elsevier.</p>
<p>So to get back where I started; Pronator Teres is a muscle in the forearm which makes the arm pronate:</p>
<p style="text-align:center;"><a href="http://apmsurgery.com/Diagnoses/Elbow.html"><img class="aligncenter" title="Pronator Teres Muscle" src="http://apmsurgery.com/images/_pronator_teres.bmp" alt="Pronator Teres Muscle" width="453" height="240" /><br />
</a>APMSurgery.com</p>
<p>The median nerve can be entrapped at several sites in the forearm. Most common seems to be the <a href="http://en.wikipedia.org/wiki/Carpal_tunnel_syndrome">carpal tunnel syndrome</a> (carpal = wrist), CTS. More uncommon is the <a href="http://en.wikipedia.org/wiki/Pronator_teres_syndrome">pronator teres syndrome</a>, or PTS, which is caused by <a href="http://en.wikipedia.org/wiki/Hypertrophy">hypertrophy</a> in the muscle.</p>
<p>When a nerve is entrapped you get <a href="http://en.wikipedia.org/wiki/Paresthesia">parasthesia</a> and in the case of PTS, pain occurs in the palm at the thumb and at the elbow (more specifically at the pronator teres muscle).<br />
<a href="http://apmsurgery.com/Diagnoses/Elbow.html"><img class="aligncenter" title="Pronator Teres Pain" src="http://apmsurgery.com/images/Pronator_Teres_Pain_Map22.bmp" alt="Pronator Teres Pain" width="784" height="261" /></a><br />
Pain can also be present in other parts of the arm with PTS present. These muscles are overused because of compensation for the decreased capacity of signals to the lower arm in the median nerve.<br />
This decreasion can easily be discovered by a orthopedic specialist by using different algorithms during a manual examination of the arm. As far as I have understood (I&#8217;m not a M.D.) these algorithms are built up as decision trees consisting of several manual tests. Each &#8220;exit point&#8221; of these algorithms indicates different diagnoses.<br />
During my search for information about PTS I found a great book named <a href="http://books.google.com/books?id=HVXORrTa5poC&amp;ots=LsRJxG4iWt&amp;pg=PA203#v=onepage">Functional Soft-Tissue Examination and Treatment by Manual Methods</a> by Warren Hammer.<br />
A more common diagnose caused by median nerve entrapment in the fore arm are the Carpal Tunnel Syndrome, CTS.</p>
<p>Nucleus Medical Media has <a href="http://catalog.nucleusinc.com/generateexhibit.php?ID=11575&amp;ExhibitKeywordsRaw=&amp;TL=&amp;A=2">a pretty good illustration</a> covering some of the surgical incisions used when treating CTS and PTS.</p>
<p>Treatment for PTS includes, but is not limited to, massage, pain killers and surgical treatment. As I have been told &#8211; also nerve glide excercises have shown good results in some cases.<br />
For people spending most of the day at a desk/computer, ergonomic planning of the workplace is a must!<br />
Tips and checklists: <a href="http://physicaltherapy.about.com/od/ergonomics/Ergonomics_and_Preventing_Injury_At_Work.htm">Physical Therapy: Ergonomics and preventing work injuries</a></p>
<p>More reading:</p>
<ul>
<li /> <a href="http://xnet.kp.org/socal_rehabspecialists/ptr_library/03ElbowRegion/20Elbow-MedianNerveCompressionatPronatorTeres.pdf">Median Nerve Compression at Pronator Teres</a>
<li /><a href="http://www.buzzle.com/articles/pronator-teres-syndrome-and-massage-therapy.html">Pronator Teres and Massage Therapy</a>
<li /> <a href="http://www.massagetoday.com/mpacms/mt/article.php?id=13625">Pronator Teres Syndrome by Whitney Lowe [Excerpt, Massage Today, May 2007]</a><br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=167&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2011/03/07/median-nerve-entrapment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>

		<media:content url="http://img.tfd.com/mosbycam/thumbs/500197-fx37.jpg" medium="image">
			<media:title type="html">Illustration: Pronation and supination</media:title>
		</media:content>

		<media:content url="http://apmsurgery.com/images/_pronator_teres.bmp" medium="image">
			<media:title type="html">Pronator Teres Muscle</media:title>
		</media:content>

		<media:content url="http://apmsurgery.com/images/Pronator_Teres_Pain_Map22.bmp" medium="image">
			<media:title type="html">Pronator Teres Pain</media:title>
		</media:content>
	</item>
		<item>
		<title>Pronator Teres Syndrome</title>
		<link>http://johan.andersson.net/2011/02/02/pronator-teres-syndrome/</link>
		<comments>http://johan.andersson.net/2011/02/02/pronator-teres-syndrome/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 13:51:58 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://johan.andersson.net/?p=160</guid>
		<description><![CDATA[Since the end of november last year I have been struggling (rather &#8220;whining about&#8221;, if you ask my fiancee!) with pain in my forearms, primarily in the right arm (my non-dominant arm since I&#8217;m left-handed). Thanks to the great folks (Camilla and Elisabet) at http://www.handfootsurgery.com I now know this is caused by something called &#8220;Pronator [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=160&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since the end of november last year I have been struggling (rather &#8220;whining about&#8221;, if you ask my fiancee!) with pain in my forearms, primarily in the right arm (my non-dominant arm since I&#8217;m left-handed). Thanks to the great folks (Camilla and Elisabet) at <a href="http://www.handfootsurgery.com">http://www.handfootsurgery.com</a> I now know this is caused by something called &#8220;<a href="http://en.wikipedia.org/wiki/Pronator_teres_syndrome">Pronator Teres Syndrome</a>&#8221; (swedish: pronatorsyndrom), a repetitive strain injury. (read about it <a href="http://books.google.com/books?id=8oj-bkhNyjIC&amp;lpg=PA66&amp;ots=U83ELW0hcK&amp;dq=repetitive%20strain%20injury%20pronator%20teres%20syndrome&amp;pg=PA66#v=onepage&amp;q&amp;f=false">here</a>).</p>
<p>I&#8217;m currently seeking around the net to get as much (relevant) information I can about this injury.<br />
Please let me know if you have some for me, or if you have been treated for PTS.</p>
<p>You can find the information I&#8217;ve been reading so far in this <a href="http://www.delicious.com/johanandersson/pronator_teres_syndrome">link collection</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=160&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2011/02/02/pronator-teres-syndrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>WordWrap function in c#</title>
		<link>http://johan.andersson.net/2010/11/03/wordwrap-function-in-c/</link>
		<comments>http://johan.andersson.net/2010/11/03/wordwrap-function-in-c/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 10:51:26 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://johan.andersson.net/?p=150</guid>
		<description><![CDATA[Today I worked on a piece of code at RemoteX and needed a pretty simple word wrapping function in C# which: 1) breaks between words, if possible 2) breaks words, if they&#8217;re too long to fit on one line I used the almighty code snippet resource but couldn&#8217;t find a quick fix for my need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=150&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I worked on a piece of code at <a href="http://www.remotex.se">RemoteX</a> and needed a pretty simple word wrapping function in C# which:<br />
1) breaks between words, if possible<br />
2) breaks words, if they&#8217;re too long to fit on one line</p>
<p>I used the <a href="http://www.google.com">almighty code snippet resource</a> but <a href="http://stackoverflow.com/questions/17586/best-word-wrap-algorithm">couldn&#8217;t find a quick fix for my need without digging further</a> into the different solutions, so here is my contribution to the long list of word-wrapping functions posted around the web.<br />
Just like I tried to use several of the code snippets I found on the web, you are free to use mine.</p>
<p>I take no responsibility for any bugs you may find in this code snippet may include. Please let the tests guide you!</p>
<p><a href="https://github.com/anderssonjohan/snippets/blob/master/wordwrap/WordWrapTests.cs">https://github.com/anderssonjohan/snippets/blob/master/wordwrap/WordWrapTests.cs</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=150&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2010/11/03/wordwrap-function-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>The move to WordPress.com</title>
		<link>http://johan.andersson.net/2010/06/28/the-move-to-wordpress-com/</link>
		<comments>http://johan.andersson.net/2010/06/28/the-move-to-wordpress-com/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 22:23:11 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://johan.andersson.net/?p=138</guid>
		<description><![CDATA[I have recently moved this blog from Blogger.com to WordPress.com. Everything have went fine, using the Import tools in the WordPress blog dashboard. The only thing which didn&#8217;t work out out-of-the-box was source code syntax highlighting. Previously I used FTP publishing with Blogger.com and I used Alex Gorbachev&#8217;s syntax highlighter from my own server. To [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=138&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have recently moved this blog from Blogger.com to WordPress.com. Everything have went fine, using the Import tools in the WordPress blog dashboard. The only thing which didn&#8217;t work out out-of-the-box was source code syntax highlighting. Previously I used FTP publishing with Blogger.com and I used <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter" target="_blank">Alex Gorbachev&#8217;s syntax highlighter</a> from my own server. To fix this small issue I needed to edit all posts depending on the syntax highlighter using the <a href="http://en.support.wordpress.com/code/posting-source-code/" target="_blank">WordPress.com syntax</a>.</p>
<p>Please do report any issues with the blog. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=138&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2010/06/28/the-move-to-wordpress-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploying applications to Windows and Windows Phones which supports dynamic modules</title>
		<link>http://johan.andersson.net/2010/01/20/deploying-applications-to-windows-and-windows-phones-which-supports-dynamic-modules/</link>
		<comments>http://johan.andersson.net/2010/01/20/deploying-applications-to-windows-and-windows-phones-which-supports-dynamic-modules/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:28:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[netcf]]></category>
		<category><![CDATA[remotex]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[windows mobile]]></category>

		<guid isPermaLink="false">http://anderssonjohan.wordpress.com/2010/01/20/deploying-applications-to-windows-and-windows-phones-which-supports-dynamic-modules</guid>
		<description><![CDATA[Many .Net applications being developed today are leveraging the greatness of dependency injection using some sort of inversion of control-container. So do we at RemoteX when we develop the product called RemoteX Applications. The product has two client applications which roughly adresses the same use cases. One is targeting desktop computers and the other one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=60&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many .Net applications being developed today are leveraging the greatness of dependency injection using some sort of inversion of control-container. So do we at RemoteX when we develop the product called RemoteX Applications. The product has two client applications which roughly adresses the same use cases. One is targeting desktop computers and the other one is targeting Windows Phone (you can read more <a href="http://www.microsoft.com/emea/windowsmobileapps/">here</a> and <a href="http://www.morkeleb.com/tag/remotex/">here</a>).</p>
<p>As you can tell by the name, the product consists of several applications (or rather modules). Using frameworks like Prism or Caliburn we can, in code, easily manage each part of the product. And the deployment is taken care of using ClickOnce technology using mage.exe (the MAnifest GEnerator).<br />But that&#8217;s for the desktop client targeting WPF.</p>
<p>So the big question is, how are we going mobile with this?</p>
<p>What regards an inversion of control-container we are &#8220;almost there&#8221;. We have a home-grown container in place which have been around for a while now, even though it lacks some basic features you would expect an ioc container of year MMX to have.<br />Speaking of deployment to the Windows Phone&nbsp;you probably know you are kind of locked to using CABinet files. If you are using the tools Microsoft brought to us, you probably also use their Device Setup projects in Visual Studio.<br />They are good, but you must use Visual Studio to choose the contents of and create/build your CAB file.<br />What this basically means is that we need to use devenv.exe to build each customer&#8217;s customized CAB file.<br />So up til now we have not had per customer customized CAB files.</p>
<p>All I wanted was ClickOnce technology and a manifest generator for the Windows Phone. So what&#8217;s the solution on that?<br />Say hello to the PowerShell script New-CabWizInf.ps1:</p>
<p>.\New-CabWizInf.ps1 -path .\myapp.inf -appName &#8220;My Application&#8221; -manufacturer &#8220;RemoteX&#8221; -fromDirectory .\MyApplication\bin\Release</p>
<p>It works like mage.exe with its -fromDirectory switch and creates the necessary .inf-file (like an Visual Studio Device Setup project would). All needed from that point is to call CABWIZ.exe and Set-AuthenticodeSignature in PowerShell to create and sign the CAB file.<br />The real power is the -fromDirectory switch which allows us to create custom CAB files on the fly.</p>
<p>So here is a peek of what our setup package scripts now looks like:</p>
<p><b>Setup Package for Windows using ClickOnce</b><br />mage -new deployment -tofile MyApp.application -fromdirectory bin\Release -name &#8220;My App&#8221; -publisher &#8220;RemoteX&#8221;<br />mage -sign</p>
<p><b>Setup Package for Windows Phones using CAB files</b><br />.\New-CabWizInf.ps1 -path MyApp.inf -fromDirectory bin\Release -appName &#8220;My App&#8221; -manufacturer &#8220;RemoteX&#8221;<br />cabwiz MyApp.inf /dest .\<br />Set-AuthenticodeSignature .\MyApp.CAB</p>
<p>So right now I&#8217;m a very happy camper since our packaging tools for Windows AND Windows Phone have equal capabilities which allows us to use dependency injection with dynamic module selection.</p>
<p>Next stop, Prism and Silverlight for the Windows Phone?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=60&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2010/01/20/deploying-applications-to-windows-and-windows-phones-which-supports-dynamic-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get $VerbosePreference applied on remote commands</title>
		<link>http://johan.andersson.net/2009/11/19/how-to-get-verbosepreference-applied-on-remote-commands/</link>
		<comments>http://johan.andersson.net/2009/11/19/how-to-get-verbosepreference-applied-on-remote-commands/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:25:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[scripting]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[winrm]]></category>

		<guid isPermaLink="false">http://anderssonjohan.wordpress.com/2009/11/19/how-to-get-verbosepreference-applied-on-remote-commands</guid>
		<description><![CDATA[If you use Write-Verbose in a script executed on a remote computer, you may not get the result you expect. Example TestRemoteCommand.ps1: The above will only output &#8220;hello&#8221; and not &#8220;there&#8221; in the host window. I thought I was clever by just passing along the $VerbosePreference value: But, still no luck! Only the statement using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=59&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use Write-Verbose in a script executed on a remote computer, you may not get the result you expect.
<div></div>
<div><strong>Example TestRemoteCommand.ps1:</strong></div>
<p><pre class="brush: powershell;">
Invoke-Command -ComputerName comp1 -ScriptBlock { 
    Write-Host &quot;hello&quot;
    Write-Verbose &quot;there&quot;
}
</pre>
<div>The above will only output &#8220;hello&#8221; and not &#8220;there&#8221; in the host window.</p>
<p>I thought I was clever by just passing along the $VerbosePreference value:<br />
<pre class="brush: powershell;">
Invoke-Command -ComputerName comp1 -ArgumentList $VerbosePreference -ScriptBlock { 
    param( $VerbosePreference )
    Write-Host &quot;hello&quot;
    Write-Verbose &quot;there&quot;
}
</pre></p>
<p>But, still no luck! Only the statement using Write-Host is included in the output when the command is invoked on the remote computer.<br />What&#8217;s going on here is that the argument sent to the remotely executed script block is converted to an integer, which is the base integral type of the underlying enum type of $VerbosePreference. <br />So I figured that typing the argument in the param() clause will bind the parameter to the correct data type, and voila, it now works as expected.<br /><pre class="brush: powershell;">
Invoke-Command -ComputerName comp1 -ArgumentList $VerbosePreference -ScriptBlock { 
    param( [System.Management.Automation.ActionPreference] $VerbosePreference )
    Write-Host &quot;hello&quot;
    Write-Verbose &quot;there&quot;
}
</pre></p>
<p>Now you can toggle the verbose output of your remote script using the switch of your local script:<br />
<pre class="brush: powershell;">
.\TestRemoteCommand.ps1 # Default, or -Verbose:$false
.\TestRemoteCommand.ps1 -Verbose
</pre></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=59&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2009/11/19/how-to-get-verbosepreference-applied-on-remote-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable-PSRemoting is broken in PowerShell?</title>
		<link>http://johan.andersson.net/2009/11/18/enable-psremoting-is-broken-in-powershell/</link>
		<comments>http://johan.andersson.net/2009/11/18/enable-psremoting-is-broken-in-powershell/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 07:57:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[scripting]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[winrm]]></category>

		<guid isPermaLink="false">http://anderssonjohan.wordpress.com/2009/11/18/enable-psremoting-is-broken-in-powershell</guid>
		<description><![CDATA[Yesterday I installed the RTM bits of WinRM 2.0 on a Windows Server 2003 machine and it were really no issues at all getting it working. Today I tried to do the same thing but on a Windows 2008 Server (R1) that is not joined to any domain, and it fail on step 1 of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=58&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I installed the RTM bits of WinRM 2.0 on a Windows Server 2003 machine and it were really no issues at all getting it working.
<div></div>
<div>Today I tried to do the same thing but on a Windows 2008 Server (R1) that is not joined to any domain, and it fail on step 1 of the configuration.</div>
<div></div>
<div>In both cases I started out downloading the patch. Then I run &#8220;Enable-PSRemoting&#8221; in an elevated PowerShell prompt, which succeeded on the Windows 2003 Server but not on the Windows 2008 Server.</div>
<div>The error I got was &#8220;Access denied&#8221;.</div>
<div></div>
<div>I thought I followed<a href="//www.morkeleb.com/2009/11/25/prerelease-of-appengine-sdk-1-2-8/"> the troubleshooting guide for WinRM</a>, but apparently there is slight difference of two different ways I found on how you set this up. You can either run &#8220;Enable-PSRemoting&#8221; or you can run &#8220;winrm qc&#8221;. If I run the quick config tool using the &#8220;winrm&#8221; command everything works out just fine, but if I use &#8220;Enable-PSRemoting&#8221; I get &#8220;Access denied&#8221;.</div>
<div></div>
<div>The most mysterious part of this is that &#8220;Enable-PSRemoting&#8221; WORKED on Windows Server 2003, but not on Windows Server 2008. Strange!</div>
<div></div>
<div>If you have any clues about this, please leave me a comment!</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=58&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2009/11/18/enable-psremoting-is-broken-in-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
		<item>
		<title>Note to self: If you get error code 12250 from ISA server 2006…</title>
		<link>http://johan.andersson.net/2009/11/17/note-to-self-if-you-get-error-code-12250-from-isa-server-2006/</link>
		<comments>http://johan.andersson.net/2009/11/17/note-to-self-if-you-get-error-code-12250-from-isa-server-2006/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:30:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[isaserver]]></category>

		<guid isPermaLink="false">http://anderssonjohan.wordpress.com/2009/11/17/note-to-self-if-you-get-error-code-12250-from-isa-server-2006</guid>
		<description><![CDATA[&#8220;Error Code: 403 Forbidden. ISA Server is configured to block HTTP requests that require authentication. (12250)&#8221; Everything works from and to the protected networks but traffic from the external network is blocked with the error response above. Solution: Stop using the darn &#8220;Publish web site&#8221; wizard and copy already existing stuff -or- make sure that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=57&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8220;Error Code: 403 Forbidden. ISA Server is configured to block HTTP requests that require authentication. (12250)&#8221;</p>
<div>Everything works from and to the protected networks but traffic from the external network is blocked with the error response above.</div>
<div></div>
<div>Solution: Stop using the darn &#8220;Publish web site&#8221; wizard and copy already existing stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>-or- make sure that the &#8220;Allow client authentication over HTTP&#8221; check box is checked.</div>
<div></div>
<div>Found at the HTTP Listener properties &#8211; Authentication tab, click Advanced.</div>
<div>
<p><a href="http://johan.andersson.net/blog/uploaded_images/allow-client-auth-over-http-706464.png"><img src="http://johan.andersson.net/blog/uploaded_images/allow-client-auth-over-http-706462.png" border="0" alt="" /></a></div>
<div></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=57&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2009/11/17/note-to-self-if-you-get-error-code-12250-from-isa-server-2006/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>

		<media:content url="http://johan.andersson.net/blog/uploaded_images/allow-client-auth-over-http-706462.png" medium="image" />
	</item>
		<item>
		<title>Swedish Alt.Net UG Coding Dojo at Avega, Stockholm</title>
		<link>http://johan.andersson.net/2009/11/11/swedish-alt-net-ug-coding-dojo-at-avega-stockholm/</link>
		<comments>http://johan.andersson.net/2009/11/11/swedish-alt-net-ug-coding-dojo-at-avega-stockholm/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:01:00 +0000</pubDate>
		<dc:creator>anderssonjohan</dc:creator>
				<category><![CDATA[events]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[alt.net]]></category>
		<category><![CDATA[codingdojo]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://anderssonjohan.wordpress.com/2009/11/11/swedish-alt-net-ug-coding-dojo-at-avega-stockholm</guid>
		<description><![CDATA[Yesterday I was at my very first Coding Dojo with my fellow collegues Morten and Sebastian. I was somewhat nervous before this event. Coding in group is not an every day occasion for me . But it went very well and I can only concur on what Morten blogged about. Adding to that I must [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=56&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was at my very first <a href="http://www.codingdojo.org/">Coding Dojo</a> with my fellow collegues Morten and Sebastian. I was somewhat nervous before this event. Coding in group is not an every day occasion for me <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . But it went very well and I can only concur on what <a href="http://www.morkeleb.com/2009/11/11/alt-net-stockholm-coding-dojo/">Morten blogged about</a>.
<div></div>
<div>Adding to that I must say it were so popular that we needed to split up into two conference rooms. Each room was equipped with a projector, a decent table with room enough for about 15 people.</div>
<div>However, even though we split up into two teams (that focused on the same Kata, see link in <a href="http://www.morkeleb.com/2009/11/11/alt-net-stockholm-coding-dojo/">Morten&#8217;s post</a>), we were just too many people around the table. I&#8217;m not sure about the exact head count but I guess we ended up with about 9 or 10 people. The most disappointing thing was that one guy was &#8220;rolling his own private solution&#8221; on his machine during the session. No hard feelings though; I believe this is a sign that we had too many participants in each group.</div>
<div></div>
<div>Worth to say is that each rotation was time limited to 4 minutes with a break of 15 seconds. That means each 4 minutes you rotate around the table and the next person takes the keyboard and continues where the last person left off. The person to the left of the person at the keyboard is the navigator in the pair.</div>
<div></div>
<div>Really nice experience and very nice and bright people in the user group! Thanks <a href="http://www.avega.se">Avega</a> (especially <a href="http://www.joakimsunden.com">Joakim Sundén</a> and his collegues) for hosting the meeting at their office here in Stockholm.</div>
<div></div>
<div>Today I couldn&#8217;t resist thinking of how we could do this internally at work (we&#8217;re 6 persons writing code at <a href="http://www.remotex.se">RemoteX</a> so it seems to be just too perfect). Oh, so much cool code to write, so little time. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anderssonjohan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anderssonjohan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anderssonjohan.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=johan.andersson.net&amp;blog=14414387&amp;post=56&amp;subd=anderssonjohan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://johan.andersson.net/2009/11/11/swedish-alt-net-ug-coding-dojo-at-avega-stockholm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6de6b62d537e1d9d7911e840fdcd3b71?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anderssonjohan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
