<?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/"
	>

<channel>
	<title>deviceZero</title>
	<atom:link href="http://devicezero.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://devicezero.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 01 Sep 2011 16:39:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PSRemotingTransportRedirectException Error</title>
		<link>http://devicezero.com/blog/?p=607</link>
		<comments>http://devicezero.com/blog/?p=607#comments</comments>
		<pubDate>Tue, 23 Aug 2011 16:43:17 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Outlook Live]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[WinRM]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=607</guid>
		<description><![CDATA[I spent way too much time trying to use PowerShell WinRM to connect to Outlook Live this week. Here is my basic connection code: public void ConnectToOutlookLive() { string username = "user@domain.com"; string password = "plaintextpassword"; string uri = "https://ps.outlook.com/powershell/"; string schema = "http://schemas.microsoft.com/powershell/Microsoft.Exchange"; SecureString securePassword = new SecureString(); foreach (char c in password.ToCharArray()) securePassword.AppendChar(c); [...]]]></description>
			<content:encoded><![CDATA[<p>I spent way too much time trying to use PowerShell WinRM to connect to Outlook Live this week. Here is my basic connection code:</p>
<p><code>public void ConnectToOutlookLive()<br />
    {<br />
      string username = "user@domain.com";<br />
      string password = "plaintextpassword";</p>
<p>      string uri = "https://ps.outlook.com/powershell/";<br />
      string schema = "http://schemas.microsoft.com/powershell/Microsoft.Exchange";</p>
<p>      SecureString securePassword = new SecureString();</p>
<p>      foreach (char c in password.ToCharArray())<br />
        securePassword.AppendChar(c);</p>
<p>      PSCredential psc = new PSCredential(username, securePassword);</p>
<p>      WSManConnectionInfo rri = new WSManConnectionInfo(new Uri(uri), schema, psc);</p>
<p>      rri.AuthenticationMechanism = AuthenticationMechanism.Basic;<br />
     //rri.AuthenticationMechanism = AuthenticationMechanism.Kerberos;</p>
<p>      Runspace remoteRunspace = RunspaceFactory.CreateRunspace(rri);<br />
      remoteRunspace.Open(); //Error happens when trying to open the connection<br />
     }</code></p>
<p>When using AuthenticationMechanism.Kerberos I received the following error: </p>
<blockquote><p>System.Management.Automation.Remoting.PSRemotingTransportException was caught<br />
  Message=Connecting to remote server failed with the following error message : Logon failure: unknown user name or bad password. For more information, see the about_Remote_Troubleshooting Help topic.<br />
  Source=System.Management.Automation<br />
  WasThrownFromThrowStatement=false<br />
  ErrorCode=1326<br />
  TransportMessage=Logon failure: unknown user name or bad password. </p></blockquote>
<p>When using AuthenticationMechanism.Basic I received a different error: </p>
<blockquote><p>System.Management.Automation.Remoting.PSRemotingTransportRedirectException was caught<br />
  Message=The WinRM service cannot process the request because the request needs to be sent to a different machine. Use the redirect information to send the request to a new machine. </p></blockquote>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/0d8d1052-4e3c-4cf2-b25b-2a13a24ba0e1">Exception when opening a Remote Runspace using WSManConnectionInfo</a> &#8211; This was the only place on the whole internet I could find someone who was having the same problem&#8230; unfortunately the solution did not fix my issue. </p>
<p></p>
<h2>Solution</h2>
<p>The exception is being thrown because the remote server is redirecting you to a new location. So you have to set the MaximumConnectionRedirectionCount. Just add the following line of code before the open and everything works fine:</p>
<p><strong>rri.MaximumConnectionRedirectionCount = 1; </strong></p>
<p>I hope this saves someone a lot of time and frustration.</p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=607</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Game Dev Blog</title>
		<link>http://devicezero.com/blog/?p=565</link>
		<comments>http://devicezero.com/blog/?p=565#comments</comments>
		<pubDate>Wed, 08 Sep 2010 21:00:29 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Game Development]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=565</guid>
		<description><![CDATA[I am starting a new blog focused on game development. You can find it here: http://gamedev.devicezero.com/.]]></description>
			<content:encoded><![CDATA[<p>I am starting a new blog focused on game development. You can find it here:<br />
<a href="http://gamedev.devicezero.com/">http://gamedev.devicezero.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=565</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sadie Decorates for Christmas</title>
		<link>http://devicezero.com/blog/?p=549</link>
		<comments>http://devicezero.com/blog/?p=549#comments</comments>
		<pubDate>Mon, 14 Dec 2009 04:50:34 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=549</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/nimD_8v-tAo&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nimD_8v-tAo&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=549</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Version Error</title>
		<link>http://devicezero.com/blog/?p=533</link>
		<comments>http://devicezero.com/blog/?p=533#comments</comments>
		<pubDate>Tue, 17 Nov 2009 16:18:46 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=533</guid>
		<description><![CDATA[Last night, I struggled with the following error for a few hours: Could not load file or assembly &#8216;Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342&#8242; or one of its dependencies. The system cannot find the file specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information [...]]]></description>
			<content:encoded><![CDATA[<p>Last night, I struggled with the following error for a few hours:</p>
<blockquote><p>
Could not load file or assembly &#8216;Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342&#8242; or one of its dependencies. The system cannot find the file specified.<br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
<p>Exception Details: System.IO.FileNotFoundException: Could not load file or assembly &#8216;Oracle.DataAccess, Version=2.111.7.20, Culture=neutral, PublicKeyToken=89b483f429c47342&#8242; or one of its dependencies. The system cannot find the file specified.
</p></blockquote>
<p><strong>Development Machine Setup:</strong><br />
Windows 7 64 bit<br />
Oracle 11g Release 1 (11.1.0.7.0)</p>
<p><strong>Target Machine Setup:</strong><br />
Windows XP 32 bit<br />
Originally Oracle 10g, now Oracle 11g (11.1.0.6.0)</p>
<p>After many grueling hours of searching the darkest corners of the internet, I found this post: <a href="http://walaapoints.blogspot.com/2007/06/odpnet-llblgen-pro.html">ODP.NET &#038; LLBLGen Pro</a>. The author suggests using a binding redirect to fix a problem with LLBLGen Pro (but same basic error). While I am not exactly sure what is causing my problem, adding a binding redirect fixed it. The solution seems silly. I install Oracle 11g release 1 (11.1.0.7.0), which is what it is asking for and it still cannot be found.<br />
I install Oracle 11g (11.1.0.6.0) and add the binding redirect and it works.</p>
<p>Here is my config:</p>
<blockquote>
<p>  &lt;assemblyBinding xmlns=&#8221;urn:schemas-microsoft-com:asm.v1&#8243;&gt;<br />
     &lt;dependentAssembly&gt;<br />
        &lt;assemblyIdentity name=&#8221;Oracle.DataAccess&#8221; publicKeyToken=&#8221;89B483F429C47342&#8243;/&gt;<br />
        &lt;bindingRedirect oldVersion=&#8221;2.111.7.20&#8243; newVersion=&#8221;2.111.6.0&#8243;/&gt;<br />
      &lt;/dependentAssembly&gt;<br />
   &lt;/assemblyBinding&gt;</p>
</blockquote>
<p>Note: Assembly redirection can work both ways. You can re-direct calls to a new version of the to an older installed version and vice-versa. You can read more about Binding Redirects on <a href="http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx">MSDN</a>. </p>
<p>I hope this post can save someone a few headaches.</p>
<p><a href="http://1e2c3c03ymx5nhc6r-nkr53p0o.hop.clickbank.net/?tid=DZDB" target="_top">Database Normalization explained</a></p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=533</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lost Tooth</title>
		<link>http://devicezero.com/blog/?p=518</link>
		<comments>http://devicezero.com/blog/?p=518#comments</comments>
		<pubDate>Tue, 01 Sep 2009 03:32:13 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=518</guid>
		<description><![CDATA[My son lost his first tooth day! Photo taken 8/31/2009]]></description>
			<content:encoded><![CDATA[<p>						<div class="flickr-gallery image none"><a href="http://www.flickr.com/photos/edward_emanuel/3877046154"><img class="flickr medium" title="1st Missing Tooth" alt="1st Missing Tooth" src="http://farm3.static.flickr.com/2556/3877046154_d408f742bd.jpg" /></a></div>
					<br />
My son lost his first tooth day! </p>
<p>Photo taken 8/31/2009</p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=518</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Storm Trooper Sadie</title>
		<link>http://devicezero.com/blog/?p=510</link>
		<comments>http://devicezero.com/blog/?p=510#comments</comments>
		<pubDate>Wed, 29 Jul 2009 03:15:45 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=510</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/63ehztJ3x28&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/63ehztJ3x28&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=510</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dad 2.0</title>
		<link>http://devicezero.com/blog/?p=505</link>
		<comments>http://devicezero.com/blog/?p=505#comments</comments>
		<pubDate>Wed, 24 Jun 2009 14:08:08 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=505</guid>
		<description><![CDATA[Someone must have upgraded my Father. Not only has he joined Facebook, but he started a writing blog about his childhood. Go read his first story. Great stuff. Welcome to the internet Dad.]]></description>
			<content:encoded><![CDATA[<p>Someone must have upgraded my Father. Not only has he joined Facebook, but he started a <a href="http://www.edwardemanuel.com/">writing blog</a> about his childhood. Go read his first <a href="http://www.edwardemanuel.com/2009/06/nails-jr-and-me/">story</a>. Great stuff. Welcome to the internet Dad. </p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=505</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peanut Butter Hairball</title>
		<link>http://devicezero.com/blog/?p=498</link>
		<comments>http://devicezero.com/blog/?p=498#comments</comments>
		<pubDate>Wed, 17 Jun 2009 18:21:22 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=498</guid>
		<description><![CDATA[The following is a chat conversation I had with my wife today: Susan: oh dear Bubby ate hairy peanut butter Edward: yuuuck Susan: Lauren sent him to the toilet to throw up Edward: lol Susan: she is instructing him to make sure he flushes Edward: for real? Susan: yes dead serious Edward: does he want [...]]]></description>
			<content:encoded><![CDATA[<p>The following is a chat conversation I had with my wife today:</p>
<blockquote><p><strong>Susan</strong>: oh dear<br />
Bubby ate hairy peanut butter</p>
<p><strong>Edward</strong>: yuuuck</p>
<p><strong>Susan</strong>: Lauren sent him to the toilet to throw up</p>
<p><strong>Edward</strong>: lol</p>
<p><strong>Susan</strong>: she is instructing him to make sure he flushes</p>
<p><strong>Edward</strong>: for real?</p>
<p><strong>Susan</strong>: yes<br />
dead serious</p>
<p><strong>Edward</strong>: does he want to throw up?</p>
<p><strong>Susan</strong>: apparently he dropped his peanut butter spoon and decided it was okay and he ate it except their was a hair on it.<br />
so Bubby starts gagging<br />
Lauren sends him to the bathroom<br />
Bubby hacks around above the toilet<br />
Lauren turns on the exhaust fan because she doesn&#8217;t want the bathroom to smell of peanut butter<br />
i was messaging you and i hear Bubby from the bathroom yell &#8220;i got it!&#8221;<br />
apparently your son is part cat and can hack up a hairball<br />
cause i went into the bathroom and see the infamous hair on his fingers<br />
he had indeed hacked it up<br />
he washes his hands and gives Lauren a big hug yelling thank you<br />
apparently her advice was just the ticket when you want to hack up a hairball<br />
the only downside Lauren is convinced she smells like peanut butter now and can&#8217;t stand it
</p></blockquote>
<p>Kids&#8230; you gotta love them!</p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=498</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Little Rock Climber</title>
		<link>http://devicezero.com/blog/?p=494</link>
		<comments>http://devicezero.com/blog/?p=494#comments</comments>
		<pubDate>Fri, 12 Jun 2009 16:48:29 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=494</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/UqID1bs6znA&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/UqID1bs6znA&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=494</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wisdom of a 5 year old</title>
		<link>http://devicezero.com/blog/?p=489</link>
		<comments>http://devicezero.com/blog/?p=489#comments</comments>
		<pubDate>Mon, 18 May 2009 17:32:14 +0000</pubDate>
		<dc:creator>ej2</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Family]]></category>

		<guid isPermaLink="false">http://devicezero.com/blog/?p=489</guid>
		<description><![CDATA[Sunday, my son showed me his craft from Children&#8217;s church, a simple paper with the word &#8220;God&#8221; and a colorful star. &#8220;It a Mario star!&#8221; he informed me, &#8220;Because we should serve God and Mario!&#8221; Amen.]]></description>
			<content:encoded><![CDATA[<p>Sunday, my son showed me his craft from Children&#8217;s church, a simple paper with the word &#8220;God&#8221; and a colorful star. &#8220;It a Mario star!&#8221; he informed me, &#8220;Because we should serve God and Mario!&#8221; </p>
<p>Amen.</p>
]]></content:encoded>
			<wfw:commentRss>http://devicezero.com/blog/?feed=rss2&#038;p=489</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

