<?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>Adam Carter&#187; Adam Carter</title>
	<atom:link href="http://adam-carter.com/feed" rel="self" type="application/rss+xml" />
	<link>http://adam-carter.com</link>
	<description>Documenting the misadventures of yours truly.</description>
	<lastBuildDate>Tue, 13 Jul 2010 14:42:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Row not found or changed &amp; LINQ</title>
		<link>http://adam-carter.com/posts/188</link>
		<comments>http://adam-carter.com/posts/188#comments</comments>
		<pubDate>Mon, 12 Jul 2010 22:01:56 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=188</guid>
		<description><![CDATA[This is a particularly well-known error (see here, here, and here), but this is the second time that I&#8217;ve had to do a search on this error so I thought that I&#8217;d post it here so that I can find it more quickly. Anyway, when this error occurs, make sure that the NULL types in [...]]]></description>
			<content:encoded><![CDATA[<p>
This is a particularly well-known error (see <a href="http://forums.asp.net/p/1016914/1368781.aspx">here</a>, <a href="http://stackoverflow.com/questions/45045/what-can-i-do-to-resolve-a-row-not-found-or-changed-exception-in-linq-to-sql-on">here</a>, and <a href="http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/c672c8ee-bf2a-41b4-bb8b-aa76cc5d9b95">here</a>), but this is the second time that I&#8217;ve had to do a search on this error so I thought that I&#8217;d post it here so that I can find it more quickly.  Anyway, when this error occurs, make sure that the NULL types in the LINQ dbml file match your SQL schema NULL types.  Mismatches between the two seem to be a common cause of this error.
</p>
<p>
<br />
&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/188/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SaveFileDialog Error When Debugging Silverlight Applications</title>
		<link>http://adam-carter.com/posts/173</link>
		<comments>http://adam-carter.com/posts/173#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:29:55 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=173</guid>
		<description><![CDATA[If you&#8217;re having difficulties debugging a section of code that uses the SafeFileDialog.ShowDialog() method, the reason is that Silverlight requires that the ShowDialog() method be called from a user-generated action. For whatever reason, entering into debug mode makes Silverlight think that you are not responding to a user-action, even when you are. To work around [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re having difficulties debugging a section of code that uses the SafeFileDialog.ShowDialog() method, the reason is that Silverlight requires that the ShowDialog() method be called from a user-generated action.  For whatever reason, entering into debug mode makes Silverlight think that you are not responding to a user-action, even when you are.  To work around this, simply place the breakpoint <strong><em>after</em></strong> you call the ShowDialog() method.</p>
<p>&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/173/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Default Layout when Using Zend Framework</title>
		<link>http://adam-carter.com/posts/167</link>
		<comments>http://adam-carter.com/posts/167#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:27:49 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=167</guid>
		<description><![CDATA[Quick Tip: If you want to change the default layout script in your Zend Framework MVC application, you can do one of the following: // Within controller $this-&#62;_helper_layout-&#62;setLayout('other-layout') //other-layout.phtml //Within view script layout()-&#62;setLayout('other-layout'); ?&#62; Thanks to Andrew at the StackOverflow forums. &#8211;Adam]]></description>
			<content:encoded><![CDATA[<p>Quick Tip: If you want to change the default layout script in your Zend Framework MVC application, you can do one of the following:</p>
<pre class="code">// Within controller
$this-&gt;_helper_layout-&gt;setLayout('other-layout') //other-layout.phtml

//Within view script
layout()-&gt;setLayout('other-layout'); ?&gt;
</pre>
<p>Thanks to Andrew at the <a href="http://stackoverflow.com/questions/1615956/how-to-switch-layout-files-in-zend-framework">StackOverflow forums</a>.</p>
<p>&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/167/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extending a UserControl in Silverlight</title>
		<link>http://adam-carter.com/posts/162</link>
		<comments>http://adam-carter.com/posts/162#comments</comments>
		<pubDate>Mon, 31 May 2010 17:10:53 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=162</guid>
		<description><![CDATA[In a current project that I&#8217;m working on, I needed to extend a UserControl to add some additional specialized functionality. This is very easy to do if all you need is to extend code, but it becomes much more difficult if you want to extend it via a XAML/C# UserControl. After much web searching, I [...]]]></description>
			<content:encoded><![CDATA[<p>In a current project that I&#8217;m working on, I needed to extend a UserControl to add some additional specialized functionality.  This is very easy to do if all you need is to extend code, but it becomes much more difficult if you want to extend it via a XAML/C# UserControl.  After <em>much</em> web searching, I found a very simple and elegant solution, thanks to <a href="http://blog.peterlesliemorris.com/archive/2009/07/23/partial-declarations-of-must-not-specify-different-base-classes.aspx">this site</a>.  Basically, all you have to do is modify the root element of your extended file as follows:</p>
<pre class="code">&lt;local:SomeBaseTypeYouWantToUse
    x:Class="MyApp.MyControl"
    xmlns:local="clr-namespace:NameSpace.To.Your.BaseClass"
/&gt;
</pre>
<p>Where SomeBaseTypeYouWantToUse is the class that you&#8217;d like to extend.  Simple!</p>
<p>&#8211;Adam</p>
<p><strong>Update (6/3/2010):</strong>I ran into some weird problems with this hack that I was unable to resolve.  If anyone ends up reading this, please let me know if this worked correctly for your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/162/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Document Root to Point to a Network Share With Windows/Apache</title>
		<link>http://adam-carter.com/posts/158</link>
		<comments>http://adam-carter.com/posts/158#comments</comments>
		<pubDate>Sun, 30 May 2010 22:01:10 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://adam-carter.com/posts/158</guid>
		<description><![CDATA[Quick tip: If you’re wanting to have your Apache document root point to a network share in Windows, here’s what you have to do: Change your DocumentRoot to the network share (drive remapping doesn’t seem to work).&#160; Example: DocumentRoot “//path/to/share” Make sure to update the DocumentRoot path in your &#60;Directory&#62; config Edit the Apache service [...]]]></description>
			<content:encoded><![CDATA[<p>Quick tip: If you’re wanting to have your Apache document root point to a network share in Windows, here’s what you have to do:</p>
<ol>
<li>Change your DocumentRoot to the network share (drive remapping doesn’t seem to work).&#160; Example: DocumentRoot “//path/to/share”</li>
<li>Make sure to update the DocumentRoot path in your &lt;Directory&gt; config</li>
<li>Edit the Apache service</li>
<ol>
<li>On the “Log On&#8217;” tab, click the “Browse” button next to the “This account” radio button.</li>
<li>Type in an account name that has access privileges to the network share and click “OK”</li>
<li>Enter the correct password for the user</li>
</ol>
<li>Restart Apache and LOL your way to the bank.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/158/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Vanity Search</title>
		<link>http://adam-carter.com/posts/149</link>
		<comments>http://adam-carter.com/posts/149#comments</comments>
		<pubDate>Fri, 05 Mar 2010 22:27:51 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=149</guid>
		<description><![CDATA[From time to time, everyone is prone to perform a vanity search or two. Because I have a somewhat generic name (currently, Adam ranks at #72, Carter is #40), web searching always returns an interesting variety of results. Movie stars, a character in a British television series, an Elvis impersonator, and I all share the [...]]]></description>
			<content:encoded><![CDATA[<p>
From time to time, everyone is prone to perform a vanity search or two.  Because I have a somewhat generic name (currently, Adam ranks at #72, Carter is #40), web searching always returns an interesting variety of results.  Movie stars, a character in a British television series, an Elvis impersonator, and I all share the name &#8220;Adam Carter.&#8221;   But what about adding a slight twist to your typical vanity search?
</p>
<p>
Rather than using my real name, I decided to do a search on one of my most commonly used Internet pseudo-names.  Surprisingly, what came back was almost all me.  In fact, the only non-me entry was for an entry in &#8220;Urban Dictionary&#8221; that, unsurprisingly, was not very flattering.  Perhaps I angered this person and this was his or her revenge.  Anyway, this ordeal got me thinking.
</p>
<p>
Unlike most others of my generation, I prefer to keep my online activity private from unknown onlookers.  For example, I don&#8217;t use my real name for Facebook and Twitter.  Yet, since the early days of the Internet, I&#8217;ve continually used the same pseudo-name for many of my activities.  In some cases, my real name is even tied to my pseudo-name (oops!).  Searching on this pseudo-name will provide you with several forum posts, lists of games that I&#8217;ve played, and even coding projects that I&#8217;ve been affiliated with.  When I think about it, searching my pseudo-name provides a better picture of my life than my real name!  Maybe I should start protecting my pseudo-name as much as I do for my real name.
</p>
<p>
For anyone that reads this, what does doing a vanity search on your Internet pseudo-name return?
</p>
<p>
&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3 and MySQL: A connection attempt failed because the connected party did not properly respond after a period of time&#8230;</title>
		<link>http://adam-carter.com/posts/144</link>
		<comments>http://adam-carter.com/posts/144#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:13:20 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=144</guid>
		<description><![CDATA[Having difficulty connecting to MySQL through PHP 5.3.x? Know that MySQL and PHP are properly configured? Using Windows Vista / 7? The problem may very well be that you&#8217;re connecting to &#8216;localhost.&#8217; According to Joe Bedan, simply changing &#8216;localhost&#8217; to &#8217;127.0.0.7&#8242; will fix the problem, and he&#8217;s right! According to another forum post, this is [...]]]></description>
			<content:encoded><![CDATA[<p>
Having difficulty connecting to MySQL through PHP 5.3.x?  Know that MySQL and PHP are properly configured?  Using Windows Vista / 7?  The problem may very well be that you&#8217;re connecting to &#8216;localhost.&#8217;  According to <a href="http://forums.mysql.com/read.php?52,294772,295149#msg-295149">Joe Bedan</a>, simply changing &#8216;localhost&#8217; to &#8217;127.0.0.7&#8242; will fix the problem, and he&#8217;s right!
</p>
<p>
According to <a href="http://forums.mysql.com/read.php?52,294772,294803#msg-294803">another forum post</a>, this is because Vista/7 does some goofy stuff with the &#8216;localhost&#8217; alias.  This person suggests that modifying the C:\Windows\System32\drivers\etc\hosts file to contain the line  &#8217;127.0.0.1 localhost&#8217; will fix the problem (make sure to do this as an administrator!).  Unfortunately, this wasn&#8217;t the case for me.  However, it&#8217;s worth a shot for anyone experiencing this problem.
</p>
<p>
<br />
&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/144/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canceling AutoPostBack for Asp.Net DropDownList</title>
		<link>http://adam-carter.com/posts/140</link>
		<comments>http://adam-carter.com/posts/140#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:28:37 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=140</guid>
		<description><![CDATA[In my most recent project, I decided to prompt the user before doing a post back when a DropDownList changed. In order to do so, you need to add an &#8220;onchange&#8221; event to your DropDownList. It should look something like: onclick="if(!SomeFunction(this)) return false;" Some Notes: &#8220;SomeFunction&#8221; is a javascript function that returns true or false [...]]]></description>
			<content:encoded><![CDATA[<p>In my most recent project, I decided to prompt the user before doing a post back when a DropDownList changed.  In order to do so, you need to add an &#8220;onchange&#8221; event to your DropDownList.  It should look something like:</p>
<pre>
onclick="if(!SomeFunction(this)) return false;"
</pre>
<p>Some Notes:</p>
<ul>
<li>&#8220;SomeFunction&#8221; is a javascript function that returns true or false based on your criteria.</li>
<li>On first inspection, I thougth that I could just call the funciton without wrapping it in what apppears to be a useless IF statement.  However, for whatever reason, this IF statement is necessary to cancel the automatic postback.
</li>
</ul>
<p>Reference: <a href="http://forums.asp.net/p/1475520/3432980.aspx">http://forums.asp.net/p/1475520/3432980.aspx</a></p>
<p>&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/140/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recognizing Network Cards During Windows Home Server Restores</title>
		<link>http://adam-carter.com/posts/136</link>
		<comments>http://adam-carter.com/posts/136#comments</comments>
		<pubDate>Tue, 22 Dec 2009 03:48:26 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=136</guid>
		<description><![CDATA[If you attempt to restore a PC on your Windows Home Server network only to discover that the WHS restore CD doesn&#8217;t recognize your network card, here&#8217;s an easy fix. All you have to do is put the network driver for Windows XP onto the root level of a flash drive and have the WSH [...]]]></description>
			<content:encoded><![CDATA[<p>If you attempt to restore a PC on your Windows Home Server network only to discover that the WHS restore CD doesn&#8217;t recognize your network card, here&#8217;s an easy fix.  All you have to do is put the network driver for Windows XP onto the root level of a flash drive and have the WSH wizard &#8220;search&#8221; for additional drivers.
</p>
<p>  If you read the WHS help wizard, you&#8217;re lead to believe that all you have to do is copy some magical &#8220;Windows Home Sever Restore Drivers&#8221; folder onto your flash drive.  What the help doesn&#8217;t tell you is that this only works if your PC is running XP.  The reason behind this is that the WHS restore wizard is based on a 32-bit OS (I&#8217;m assuming XP or Server 2003).  Therefore, Vista/7 drivers (either 32 or 64 bit) won&#8217;t be recognized during the restore process.  </p>
<p>&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/136/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Home Server Restore Error</title>
		<link>http://adam-carter.com/posts/127</link>
		<comments>http://adam-carter.com/posts/127#comments</comments>
		<pubDate>Tue, 23 Jun 2009 15:50:08 +0000</pubDate>
		<dc:creator>acarter</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[whs]]></category>

		<guid isPermaLink="false">http://adam-carter.com/?p=127</guid>
		<description><![CDATA[For the last month or so, I&#8217;ve been using my gaming box as my development machine. With that role come tons of background services which, in turn, eat up memory that could otherwise be used to play games. Luckily, I have Windows Home Server and made a backup prior to the computer&#8217;s transformation. However, whenever [...]]]></description>
			<content:encoded><![CDATA[<p>
For the last month or so, I&#8217;ve been using my gaming box as my development machine.  With that role come tons of background services which, in turn, eat up memory that could otherwise be used to play games.  Luckily, I have Windows Home Server and made a backup prior to the computer&#8217;s transformation.  However, whenever I attempted to restore the machine using the WHS restore disk, I kept getting a non-descriptive error on the &#8220;Enter your WHS password&#8221; screen.  After some digging (sorry, lost the link), I found that WHS doesn&#8217;t play nice with some DHCP-enabled routers.  As a workaround, I did the following:
</p>
<ol>
<li>Start up the machine to be restored</li>
<li>Work through the WHS restore process as normal</li>
<li>Upon failing, unplug the router</li>
<li>Click the back button in the WHS restore wizard</li>
<li>Continue the restore process</li>
</ol>
<p>
&#8211;Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://adam-carter.com/posts/127/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
