<?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>Eufuckingreka</title>
	<atom:link href="http://eufuckingreka.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eufuckingreka.wordpress.com</link>
	<description>When &#34;Eureka&#34; just doesn&#039;t quite capture your enthusiam.</description>
	<lastBuildDate>Mon, 30 Jan 2012 02:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='eufuckingreka.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Eufuckingreka</title>
		<link>http://eufuckingreka.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://eufuckingreka.wordpress.com/osd.xml" title="Eufuckingreka" />
	<atom:link rel='hub' href='http://eufuckingreka.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Bulk Resizing Images in Windows 7</title>
		<link>http://eufuckingreka.wordpress.com/2012/01/30/bulk-resizing-images-in-windows-7/</link>
		<comments>http://eufuckingreka.wordpress.com/2012/01/30/bulk-resizing-images-in-windows-7/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 01:58:08 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Digital Camera]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[Windows Live Photo Gallery]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=143</guid>
		<description><![CDATA[This evening my father had the need to do a mass resize of hundreds of images for his work.  He was on the verge of having an employee go out and retake photos with more antiquated camera settings, when I intervened and told him I would take a look.  I had assumed I would be downloading [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=143&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This evening my father had the need to do a mass resize of hundreds of images for his work.  He was on the verge of having an employee go out and retake photos with more antiquated camera settings, when I intervened and told him I would take a look.  I had assumed I would be downloading some kind of freeware or exploiting a plug-in with Gimp, but it turns out thanks to the Windows Live Photo Gallery already installed on my Windows 7 laptop, I had everything I needed to do resize entire folders worth of images.</p>
<p>A great big hat tip to Rob Margel who wrote up the instructions on how to do it in 2009&#8230; for his own father!</p>
<p><a href="http://blogs.msdn.com/b/robmar/archive/2009/08/18/bulk-resizing-images-using-windows-live-photo-gallery-in-5-simple-steps.aspx">Bulk Resizing Images Using Windows Live Photo Gallery in 5 Simple Steps</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=143&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2012/01/30/bulk-resizing-images-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>Entity Framework: Verify that the FunctionImport name is unique.</title>
		<link>http://eufuckingreka.wordpress.com/2012/01/27/entity-framework-verify-that-the-functionimport-name-is-unique/</link>
		<comments>http://eufuckingreka.wordpress.com/2012/01/27/entity-framework-verify-that-the-functionimport-name-is-unique/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 22:16:53 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=138</guid>
		<description><![CDATA[Had to look this one up twice now, so time to blog it! A Stored Procedure of ours accidently got deleted when we ran an Update Model from Database&#8230; through our Entities.edmx file. I updated again and added the Stored Procedure back in. However, when I went to add the related Add Function Import&#8230; I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=138&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Had to look this one up twice now, so time to blog it!</em></p>
<p>A Stored Procedure of ours accidently got deleted when we ran an <strong>Update Model from Database&#8230;</strong> through our Entities.edmx file. I updated again and added the Stored Procedure back in. However, when I went to add the related <strong>Add Function Import&#8230;</strong> I got the following error message:</p>
<blockquote><p><em><strong>Verify that the FunctionImport name is unique.<br />
</strong></em><br />
<a href="http://eufuckingreka.files.wordpress.com/2012/01/addfunctionimport.png"><img class="alignnone size-full wp-image-139" title="AddFunctionImport" src="http://eufuckingreka.files.wordpress.com/2012/01/addfunctionimport.png?w=450&#038;h=536" alt="" width="450" height="536" /></a></p></blockquote>
<p>&nbsp;</p>
<p>Although the Stored Procedure was accidentally removed, its related Function Import was still there. What I had to do was in my <strong>Model Browser</strong>, I expanded <strong>EntityContainer:Entities-&gt;Function Imports</strong>. Then I right clicked on the old Function Import and selected <strong>Delete</strong>.</p>
<p><a href="http://eufuckingreka.files.wordpress.com/2012/01/modelbrowser.png"><img class="alignnone size-full wp-image-140" title="ModelBrowser" src="http://eufuckingreka.files.wordpress.com/2012/01/modelbrowser.png?w=450&#038;h=322" alt="" width="450" height="322" /></a></p>
<p>After that, when I went back to add my Function Import, all was well.</p>
<p>Hat Tip <a href="http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/d72e93c5-f00e-4af2-a728-0a4a70ecfd38/" target="_blank">Verify that the FunctionImport name is unique. </a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=138&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2012/01/27/entity-framework-verify-that-the-functionimport-name-is-unique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>

		<media:content url="http://eufuckingreka.files.wordpress.com/2012/01/addfunctionimport.png" medium="image">
			<media:title type="html">AddFunctionImport</media:title>
		</media:content>

		<media:content url="http://eufuckingreka.files.wordpress.com/2012/01/modelbrowser.png" medium="image">
			<media:title type="html">ModelBrowser</media:title>
		</media:content>
	</item>
		<item>
		<title>AddDays in a LINQ Lambda Expression</title>
		<link>http://eufuckingreka.wordpress.com/2012/01/25/adddays-in-a-linq-lambda-expression/</link>
		<comments>http://eufuckingreka.wordpress.com/2012/01/25/adddays-in-a-linq-lambda-expression/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 16:40:24 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=106</guid>
		<description><![CDATA[Using Entity Framework 4, we were trying to run a lambda expression that added an integer field from one table to a DateTime field in another related table. Got this error message: LINQ entities does not recognize the method System.DateTime.AddDays Cannot be translated into a stored expression What we had to do was use the System.Data.Objects.EntityFunctions.AddDays [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=106&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using Entity Framework 4, we were trying to run a lambda expression that added an integer field from one table to a DateTime field in another related table.</p>
<p><pre class="brush: java;">
.FindMany&lt;Object1&gt;(object1=&gt; object1.DateCompleted.AddDays(object1.object2.NumberOfDays)  &lt;= System.DateTime.Now)
</pre></p>
<p>Got this error message:</p>
<blockquote><p>LINQ entities does not recognize the method System.DateTime.AddDays Cannot be translated into a stored expression</p></blockquote>
<p>What we had to do was use the System.Data.Objects.EntityFunctions.AddDays function instead.  See <a href="http://msdn.microsoft.com/en-us/library/dd412479.aspx" target="_blank">﻿Entity Functions - Add Days</a></p>
<p><pre class="brush: java;">
.FindMany&lt;Object1&gt;(object1=&gt; System.Data.Objects.EntityFunctions.AddDays(object1.DateCompleted, object1.objecto2.NumberOfDays)  &lt;= System.DateTime.Now)
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=106&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2012/01/25/adddays-in-a-linq-lambda-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>Internet Explorer 7 and 8 &#8211; Unable to Download Files Over SSL Connection</title>
		<link>http://eufuckingreka.wordpress.com/2012/01/25/internet-explorer-7-and-8-unable-to-download-files-over-ssl-connection/</link>
		<comments>http://eufuckingreka.wordpress.com/2012/01/25/internet-explorer-7-and-8-unable-to-download-files-over-ssl-connection/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 16:28:59 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Qualtrax]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=130</guid>
		<description><![CDATA[We recently installed Qualtrax on a new IIS 7 server and put it under the scope of a SSL certification so users had to access the site through the https:// protocol.  When they tried to use the Automatic File Transfer tool, however, they were getting the following error: Internet Explorer cannont download AutoFileTransfer.aspx from &#8230; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=130&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We recently installed Qualtrax on a new IIS 7 server and put it under the scope of a SSL certification so users had to access the site through the https:// protocol.  When they tried to use the Automatic File Transfer tool, however, they were getting the following error:</p></blockquote>
<p><a href="http://eufuckingreka.files.wordpress.com/2012/01/automaticfiletransfermessage.png"><img class="alignnone size-full wp-image-131" title="AutomaticFileTransferMessage" src="http://eufuckingreka.files.wordpress.com/2012/01/automaticfiletransfermessage.png?w=450&#038;h=205" alt="" width="450" height="205" /></a></p>
<blockquote><p>Internet Explorer cannont download AutoFileTransfer.aspx from &#8230;</p>
<p>Internet Explorer was not able to open this Internet site.  The requested site is either unavailable or not found.</p>
<p>&nbsp;</p></blockquote>
<p>This problem actually isn&#8217;t confined to Qualtrax.  As behind the scenese, when you are using the Automatic File Transfer tool, Qualtrax sends you a file in a proprietary format (Extension .qtxxml) which the Automatic File Transfer tool on the client machine will process.</p>
<p>First I made sure that the .qtxxml extension was included in my valid MIME types on the Internet Information Services 7.0 on my web server.  That didn&#8217;t fix the issue, so some research was in order and this Microsoft Knowledgebase Article explained the behavior:</p>
<p><a href="http://support.microsoft.com/kb/323308" target="_blank">Internet Explorer file downloads over SSL do not work with the cache control headers</a></p>
<p>When files are sent down through an SSL connection to Internet Explorer with the  &#8220;Cache-control:no-store&#8221; or &#8220;Cache-control:no-cache&#8221; header, the issue occurs.  Internet Explorer acts like the site isn&#8217;t even there.  </p>
<p>I found a couple of fixes.<br />
1) You can do the registry update suggested in the Knowledgebase article.<br />
2) You can use Firefox or Chrome<br />
3) Upgrade Internet Explorer to version 9.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=130&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2012/01/25/internet-explorer-7-and-8-unable-to-download-files-over-ssl-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>

		<media:content url="http://eufuckingreka.files.wordpress.com/2012/01/automaticfiletransfermessage.png" medium="image">
			<media:title type="html">AutomaticFileTransferMessage</media:title>
		</media:content>
	</item>
		<item>
		<title>The relationship could not be changed because one or more of the foreign-key properties is non-nullable.</title>
		<link>http://eufuckingreka.wordpress.com/2012/01/25/the-relationship-could-not-be-changed-because-one-or-more-of-the-foreign-key-properties-is-non-nullable/</link>
		<comments>http://eufuckingreka.wordpress.com/2012/01/25/the-relationship-could-not-be-changed-because-one-or-more-of-the-foreign-key-properties-is-non-nullable/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 15:57:28 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=125</guid>
		<description><![CDATA[I&#8217;ve run across this in my MVC/Entity Framework code a couple of times.  Figure I better document the solution here so it is easy to find. Hat Tip to the EF 4: Removing child object from collection does not delete it &#8211; why? article on StackOverflow. Basically, I had some child objects off of a parent that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=125&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run across this in my MVC/Entity Framework code a couple of times.  Figure I better document the solution here so it is easy to find. Hat Tip to the <a href="http://stackoverflow.com/questions/2554696/ef-4-removing-child-object-from-collection-does-not-delete-it-why" target="_blank">EF 4: Removing child object from collection does not delete it &#8211; why?</a> article on StackOverflow.</p>
<p>Basically, I had some child objects off of a parent that I wanted to clear off or remove before saving them fresh. When I did:</p>
<p><pre class="brush: plain;">
ParentObject.ChildObjects.Clear();
</pre></p>
<p>I was getting the following error:</p>
<blockquote><p>System.InvalidOperationException occurred Message=The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If the foreign-key does not support null values, a new relationship must be defined, the foreign-key property must be assigned another non-null value, or the unrelated object must be deleted.</p></blockquote>
<p>What is going on is the Clear and Remove method remove the <em>Relationship</em>. They don&#8217;t remove the Child Object itself&#8230;and when the relationship is removed, the Child Object looks orphaned and has a Foreign Key issue.</p>
<p>So what you have to do is Delete the child object from your Object Context. To avoid Enumeration errors, I make a seperate list and remove it that way.</p>
<p><pre class="brush: plain;">
            List&lt;ChildObject&gt; children = ParentObject.ChildObjects.ToList();
            for (int i = 0; i &lt; children.Count; i++)
            {
                try
                {
                    //Delete the Child Object from your ObjectContext
                    //(We have a wrapper function to do that
                    dataAccessor.Delete(children[i]);
                }
                catch
                {

                }
            }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=125&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2012/01/25/the-relationship-could-not-be-changed-because-one-or-more-of-the-foreign-key-properties-is-non-nullable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>Execution of user code in the .NET Framework is disabled. Enable &#8220;clr enabled&#8221; configuration option.</title>
		<link>http://eufuckingreka.wordpress.com/2011/11/17/execution-of-user-code-in-the-net-framework-is-disabled-enable-clr-enabled-configuration-option/</link>
		<comments>http://eufuckingreka.wordpress.com/2011/11/17/execution-of-user-code-in-the-net-framework-is-disabled-enable-clr-enabled-configuration-option/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 17:45:48 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=121</guid>
		<description><![CDATA[In working in an MVC application in .NET Framework 4.0, I received the following error: Execution of user code in the .NET Framework is disabled. Enable &#8220;clr enabled&#8221; configuration option. It seemed like the solution to this error would be found within the application code, but it was actually resolved in the SQL Server 2008 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=121&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In working in an MVC application in .NET Framework 4.0, I received the following error:</p>
<blockquote><p>Execution of user code in the .NET Framework is disabled. Enable &#8220;clr enabled&#8221; configuration option.</p></blockquote>
<p>It seemed like the solution to this error would be found within the application code, but it was actually resolved in the SQL Server 2008 database.  In the SQL Server Management Studio, I started a new Query for my database and ran the following:</p>
<p>sp_configure &#8216;clr enabled&#8217;, 1<br />
go<br />
RECONFIGURE<br />
GO</p>
<p>After that, all worked well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=121&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2011/11/17/execution-of-user-code-in-the-net-framework-is-disabled-enable-clr-enabled-configuration-option/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Stored Procedures Links &#8211; Executing Dynamic SQL, Working with Temp Tables</title>
		<link>http://eufuckingreka.wordpress.com/2011/09/17/sql-server-stored-procedures-links-executing-dynamic-sql-working-with-temp-tables/</link>
		<comments>http://eufuckingreka.wordpress.com/2011/09/17/sql-server-stored-procedures-links-executing-dynamic-sql-working-with-temp-tables/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 02:28:08 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=119</guid>
		<description><![CDATA[I wanted to run some dynamically generated SQL in a User Defined Function in SQL Server.  I ended up having to move to a Stored Procedure to take advantage of EXEC, but below are links to articles that really helped me out along the way. 1) Using EXEC To Run on Dynamic SQL http://www.4guysfromrolla.com/webtech/020600-1.shtml Note: EXEC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=119&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to run some dynamically generated SQL in a User Defined Function in SQL Server.  I ended up having to move to a Stored Procedure to take advantage of EXEC, but below are links to articles that really helped me out along the way.</p>
<p><strong>1) Using EXEC To Run on Dynamic SQL<br />
</strong><a href="http://www.4guysfromrolla.com/webtech/020600-1.shtml">http://www.4guysfromrolla.com/webtech/020600-1.shtml</a><br />
Note: EXEC can&#8217;t be used in User Defined Functions</p>
<p><strong>2) How t0 Insert Data From Dynamic SQL into a Cursor<br />
</strong>Define the cursor in your SQL code (ie &#8216;Declare  users_cursor CURSOR FOR SELECT userId FROM users&#8217; )<br />
<a href="http://stackoverflow.com/questions/1045880/using-a-cursor-with-dynamic-sql-in-a-stored-procedure">http://stackoverflow.com/questions/1045880/using-a-cursor-with-dynamic-sql-in-a-stored-procedure</a></p>
<p><strong>3) Returning a Table from a Stored Procedure</strong><br />
<a href="http://stackoverflow.com/questions/1443663/how-to-return-temporary-table-from-stored-procedure">http://stackoverflow.com/questions/1443663/how-to-return-temporary-table-from-stored-procedure</a></p>
<p><strong>4) Selecting Data from a Stored Procedure Table in a User Defined Function</strong><br />
I used the INSERT author_sales EXECUTE get_author_sales  from the Comments<br />
<a href="http://stackoverflow.com/questions/653714/how-to-select-into-temp-table-from-stored-procedure">http://stackoverflow.com/questions/653714/how-to-select-into-temp-table-from-stored-procedure</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=119&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2011/09/17/sql-server-stored-procedures-links-executing-dynamic-sql-working-with-temp-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>XP -&gt; LinkSys Connection</title>
		<link>http://eufuckingreka.wordpress.com/2009/12/21/xp-linksys-connection/</link>
		<comments>http://eufuckingreka.wordpress.com/2009/12/21/xp-linksys-connection/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:54:07 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=95</guid>
		<description><![CDATA[Last night Ryan and I were trying to watch a movie, but we had so many people using our wireless connection, we didn&#8217;t have ample bandwidth. So we connected to our LinkSys router and added a password to our connection. When the movie was done, we changed it back to an unsecure connection so our [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=95&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last night <a href="http://ideonexus.com" target="_blank">Ryan</a> and I were trying to watch a movie, but we had so many people using our wireless connection, we didn&#8217;t have ample bandwidth.  So we connected to our LinkSys router and added a password to our connection.  When the movie was done, we changed it back to an unsecure connection so our neighborhood kids could reconnect from their various homes.</p>
<p>This morning the XP machines were plagued with sporadic connections.  When we tried to connect to our wireless network, it would sit there trying to refresh the IP Address.  &#8220;Waiting for the network&#8221; it would tell me or &#8220;Acquiring IP Address&#8221;.</p>
<p><a href="http://eufuckingreka.files.wordpress.com/2009/12/connectingtolinksys.jpg"><img class="alignnone size-full wp-image-96" title="ConnectingToLinkSys" src="http://eufuckingreka.files.wordpress.com/2009/12/connectingtolinksys.jpg?w=450" alt=""   /></a></p>
<p>It would look like it would never connect, but in reality it did.  While the Wireless Network Connection window was still toiling, I could pull up websites and accomplish work.  After a while the connection would drop.  I would go <strong>View Available Wireless Networks</strong> again and watch it flounder to connect.  Meanwhile I would refresh my web browser and continue my work.</p>
<p>I was finally able to eradicate the issue completely thanks to <a href="http://www.eggheadcafe.com/software/aspnet/29852662/shows-as-not-connected-bu.aspx" target="_blank">a post by Dell Bo on eggheadcafe.com</a>.  An excerpt:</p>
<blockquote>
<pre>1. Right click the windows wireless network in the system tray, click "<strong>View
Available Wireless Networks</strong>" and then click "<strong>Change Advanced Settings</strong>"
(bottom right corner of the Window).

2. Click the "<strong>Wireless Networks</strong>" tab and <strong>remove</strong> the wireless network from
the Preferred networks list and reboot the machine.

3. Re-connect to the wireless network.

After re-connecting the issue was resolved.

Hope this helps someone.</pre>
</blockquote>
<p>A quick screenshot of the <strong>Remove</strong> button referred to above:</p>
<pre><a href="http://eufuckingreka.files.wordpress.com/2009/12/removewirelessconnection.jpg"><img title="RemoveWirelessConnection" src="http://eufuckingreka.files.wordpress.com/2009/12/removewirelessconnection.jpg?w=367&#038;h=448" alt="" width="367" height="448" /></a></pre>
<p>Note: I did not have to reboot the machine in Step 2.  I merely reconnected and all was well.  Dell Bo hoped that the advice would help someone.  It helped me!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=95&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2009/12/21/xp-linksys-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>

		<media:content url="http://eufuckingreka.files.wordpress.com/2009/12/connectingtolinksys.jpg" medium="image">
			<media:title type="html">ConnectingToLinkSys</media:title>
		</media:content>

		<media:content url="http://eufuckingreka.files.wordpress.com/2009/12/removewirelessconnection.jpg" medium="image">
			<media:title type="html">RemoveWirelessConnection</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing STOP: c0000218 {Registry FIle Failure} Blue Screen</title>
		<link>http://eufuckingreka.wordpress.com/2009/11/20/fixing-stop-c0000218-registry-file-failure-blue-screen/</link>
		<comments>http://eufuckingreka.wordpress.com/2009/11/20/fixing-stop-c0000218-registry-file-failure-blue-screen/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:11:07 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=92</guid>
		<description><![CDATA[Today we had a kid from our Computer Literacy class surface with a broken Dell Latitude D610. Windows would not load up and any of the Safe Mode options (Safe Mode, Safe Mode with Networking, Safe Mode with Command Prompt, etc). produced the same sad blue screen error: STOP: c0000218 {Registry FIle Failure} The registry [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=92&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today we had a kid from our Computer Literacy class surface with a broken Dell Latitude D610.  Windows would not load up and any of the Safe Mode options (Safe Mode, Safe Mode with Networking, Safe Mode with Command Prompt, etc). produced the same sad blue screen error:</p>
<blockquote><p>STOP: c0000218 {Registry FIle Failure}<br />
The registry cannot load the hive (file):<br />
\SystemRoot\System32\Config\SOFTWARE<br />
or its log or alternate<br />
It is corrupt, absent, or not writable</p></blockquote>
<p>I quickly found a very helpful Microsoft Knowledge Base article and I wanted to document so I can find it again easily.<br />
<strong>How to recover from a corrupted registry that prevents Windows XP from starting</strong></p>
<p>http://support.microsoft.com/kb/307545</p>
<p>The HARDEST part was finding a Windows XP disk, but we finally found one and soon we were able to follow the instructions.  During which, we also had to follow this article:</p>
<p><strong>How to gain access to the System Volume Information folder</strong></p>
<p>http://support.microsoft.com/kb/309531/</p>
<p>Finally so I don&#8217;t lose the link, this one looks like it might come in handy one day:</p>
<p><strong>How to obtain Windows XP Setup disks for a floppy boot installation</strong></p>
<p>http://support.microsoft.com/kb/310994/</p>
<p>Now the kid&#8217;s computer is up and running again and all are happy!  Especially me&#8211; following these steps taught me more about the registry and the built-in restore points.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=92&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2009/11/20/fixing-stop-c0000218-registry-file-failure-blue-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
		<item>
		<title>VB.NET &#8211; Trimming Null Characters</title>
		<link>http://eufuckingreka.wordpress.com/2009/11/02/vb-net-trimming-null-characters/</link>
		<comments>http://eufuckingreka.wordpress.com/2009/11/02/vb-net-trimming-null-characters/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 01:41:27 +0000</pubDate>
		<dc:creator>tgaw</dc:creator>
				<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://eufuckingreka.wordpress.com/?p=84</guid>
		<description><![CDATA[A while back, I wrote about reading data from a TCP/IP Stream from a VB.NET application. Since that article, our parameters have changed slightly. Now, we are reading a continuous TCP/IP stream, one that is filled with extra spaces and blank characters. It seemed simple enough to fix. Trim(), right? Well, to my dismay, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=84&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A while back, I wrote about <a href="http://eufuckingreka.wordpress.com/2009/07/09/vb-net-pasting-data-from-a-tcpip-stream-into-a-web-page/" target="_blank">reading data from a TCP/IP Stream from a VB.NET application</a>.  Since that article, our parameters have changed slightly.  Now, we are reading a continuous TCP/IP stream, one that is filled with extra spaces and blank characters.  It seemed simple enough to fix.  Trim(), right?</p>
<p>Well, to my dismay, I saw that my &#8220;trimmed&#8221; strings were still filled with spaces.  In fact, they were identical to the untrimmed version.  What gives?</p>
<p><strong>Untrimmed String<br />
</strong>&#8220;500 G&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;</p>
<p><strong>Trimmed String<br />
</strong>&#8220;500 G&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;</p>
<p>It turns out there is a Null Character (Chr(0)) in there at the end.</p>
<p>What I had to do is first <em>replace</em> Chr(0) with an empty string and <em>then</em> I could trim.  Reversing the order of operations (trimming first and then replacing the Chr(0)) did not work.  Code to reproduce and correct the problem is below:</p>
<p><pre class="brush: vb;">
Dim strTemp as String
strTemp = &quot;Test     &quot; + Chr(0)

strTemp = strTemp.Trim()
'-- Uh oh-- that above call was USELESS strTemp is still &quot;Test     &quot; + Chr(0)

strTemp = strTemp.Replace(Chr(0), &quot;&quot;)
'-- Getting closer - strTemp is now &quot;Test     &quot;

strTemp = strTemp.Trim()
'-- And now we are where we want to be-- strTemp is now &quot;Test&quot;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eufuckingreka.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eufuckingreka.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eufuckingreka.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eufuckingreka.wordpress.com&amp;blog=8022770&amp;post=84&amp;subd=eufuckingreka&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eufuckingreka.wordpress.com/2009/11/02/vb-net-trimming-null-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61b9d242da974dfa6fb67bc836833ac6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tgaw</media:title>
		</media:content>
	</item>
	</channel>
</rss>
