<?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>iamshendy &#187; Shendy&#8217;s Dev Corner</title>
	<atom:link href="http://www.iamshendy.ca/category/shendys-dev-corner/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iamshendy.ca</link>
	<description>Who you know like Shendy?</description>
	<lastBuildDate>Fri, 14 May 2010 01:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Failed to enable constraints. One or more rows  contain values violating non-null, unique, or foreign-key  constraints.</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:47:14 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/uncategorized/failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints</guid>
		<description><![CDATA[When working with a DataSet object, I got this error. 
&#8220;Failed to enable constraints. One or more rows&#160; contain values violating non-null, unique, or foreign-key&#160; constraints.&#8221;

Talk about annoying &#8211; this took me the better part of an hour and half to figure out where this error was coming from. Quite descriptive if you ask me [...]]]></description>
			<content:encoded><![CDATA[<p>When working with a DataSet object, I got this error. </p>
<blockquote><p><em>&#8220;Failed to enable constraints. One or more rows&nbsp; contain values violating non-null, unique, or foreign-key&nbsp; constraints.&#8221;</em></p>
</blockquote>
<p>Talk about annoying &#8211; this took me the better part of an hour and half to figure out where this error was coming from. Quite descriptive if you ask me &lt;rolling eyes&gt;. It&#8217;s as useful as this:</p>
<p><a href="http://www.iamshendy.ca/wp-content/Failedtoenableconstraints.Oneormorerows_9736/IMG_0012.jpg" ><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="152" alt="IMG_0012" src="http://www.iamshendy.ca/wp-content/Failedtoenableconstraints.Oneormorerows_9736/IMG_0012_thumb.jpg" width="389" border="0"></a> </p>
<p>As with any bug the more information you can get on it &#8211; the better. The code I put together thanks to a tip from <a href="http://weblogs.asp.net/rosherove/archive/2004/10/03/DataSet-hell-_2D00_-_2200_Failed-to-enable-constraints.-One-or-more-rows--contain-values_2E002E002E002E002200_.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/weblogs.asp.net');" target="_blank">Roy Osherove&#8217;s Blog</a> gets into the DataSet object to see which column is actually throwing the error.</p>
<blockquote><p>foreach( DataTable table in dataSet.Tables)<br />{<br /> if (table.HasErrors)<br /> {<br />&nbsp;&nbsp;&nbsp;&nbsp; foreach ( var error in table.GetErrors())<br />&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (error.HasErrors)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw (new Exception( error.RowError));<br />&nbsp;&nbsp;&nbsp;&nbsp; }<br /> }<br />}</p>
</blockquote>
<p>This produced a much more descriptive error that allowed me to track down the problem:</p>
<p><a href="http://www.iamshendy.ca/wp-content/Failedtoenableconstraints.Oneormorerows_9736/image.png" ><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="195" alt="image" src="http://www.iamshendy.ca/wp-content/Failedtoenableconstraints.Oneormorerows_9736/image_thumb.png" width="374" border="0"></a> </p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Permalinks (&quot;Clean&quot; URLs)</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/wordpress-permalinks-clean-urls</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/wordpress-permalinks-clean-urls#comments</comments>
		<pubDate>Sun, 08 Feb 2009 18:09:52 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/uncategorized/wordpress-permalinks-clean-urls</guid>
		<description><![CDATA[Since I started using WordPress in January/09, the whole permalinks thing has confused me &#8211; mainly because I didn&#8217;t spend the time to implement it correctly, but also partly because their documentation is confusing.
I dedicated some time today (ended up taking 10 minutes), to figure this out.
The default for WordPress URLs is http://www.iamshendy.ca?cat=10, or http://www.iamshendy.ca?p=12. [...]]]></description>
			<content:encoded><![CDATA[<p>Since I started using WordPress in January/09, the whole permalinks thing has confused me &#8211; mainly because I didn&#8217;t spend the time to implement it correctly, but also partly because their documentation is confusing.</p>
<p>I dedicated some time today (ended up taking 10 minutes), to figure this out.</p>
<p>The default for WordPress URLs is <a href="http://www.iamshendy.ca?cat=10" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.iamshendy.ca?cat=10');">http://www.iamshendy.ca?cat=10</a>, or <a href="http://www.iamshendy.ca?p=12" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.iamshendy.ca?p=12');">http://www.iamshendy.ca?p=12</a>. This doesn&#8217;t fair well for users that want to  access your site directly and can&#8217;t remember what &#8220;<em>cat</em>&#8221; is, or which number &#8220;<em>p</em>&#8221; was supposed to be set to. More importantly &#8211; it prevents search engines from <a href="http://www.seochat.com/c/a/Search-Engine-Optimization-Help/Dynamic-URLs-In-The-Eyes-Of-A-Search-Engine/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.seochat.com');" target="_blank">better indexing your content</a>. If a link within your site appears as <a href="http://www.iamshendy.ca/fitness/" >http://www.iamshendy.ca/fitness/</a> &#8211; a user will have a better chance of remembering it, and a search engine can now index the &#8216;fitness&#8217; keyword for your site.</p>
<p>With the intro out of the way &#8211; here&#8217;s a few tips to consider while following through <a href="http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite" onclick="javascript:pageTracker._trackPageview('/outbound/article/codex.wordpress.org');" target="_blank">WordPress&#8217; documentation</a></p>
<ol>
<li>Edit your Permalink Settings by accessing the &#8220;Settings&#8221; menu, and clicking &#8220;Permalinks&#8221;</li>
<li>Don&#8217;t follow the pattern of the &#8220;Common Settings&#8221; in WordPress&#8217;s Permalink Settings<br />
<a href="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image.png" ><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image_thumb.png" border="0" alt="image" width="419" height="163" /></a><br />
This was the biggest thing that was throwing me off. I had typed in</p>
<blockquote><p><a href="http://www.iamshendy.ca/category/postname" >http://www.iamshendy.ca/category/postname</a></p></blockquote>
<p>which according to their example &#8211; looks like it would work:<br />
<a href="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image_3.png" ><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image_thumb_3.png" border="0" alt="image" width="400" height="139" /></a><br />
But on fact does not &#8211; you actually have to use the <a href="http://codex.wordpress.org/Using_Permalinks#Structure_Tags" onclick="javascript:pageTracker._trackPageview('/outbound/article/codex.wordpress.org');" target="_blank">tags provided</a>.</li>
<li>Once you&#8217;ve entered your desired custom permalink &#8211; you&#8217;ll need to update your .htaccess file. This is a file that sits in the same directory as your index.php (usually the root of your site). <a href="http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29" onclick="javascript:pageTracker._trackPageview('/outbound/article/codex.wordpress.org');" target="_blank">Create this file</a>, and upload it to your ftp server. Be sure to copy and paste everything that appears in the TextArea after you save:<br />
<a href="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image_4.png" ><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://www.iamshendy.ca/wp-content/WordPressPermalinksCleanURLs_870C/image_thumb_4.png" border="0" alt="image" width="674" height="119" /></a></li>
</ol>
<p>Hope this helps you out &#8211; <a href="mailto:sean@reconception.com" target="_blank">email me</a> if you have any questions.</p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/wordpress-permalinks-clean-urls/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good Date Reference for ASP.NET (C#)</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/good-date-reference-for-aspnet-c</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/good-date-reference-for-aspnet-c#comments</comments>
		<pubDate>Tue, 03 Feb 2009 19:45:20 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/?p=173</guid>
		<description><![CDATA[http://www.codeproject.com/KB/cs/String2DateTime.aspx
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeproject.com/KB/cs/String2DateTime.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.codeproject.com');" target="_blank">http://www.codeproject.com/KB/cs/String2DateTime.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/good-date-reference-for-aspnet-c/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great tool for testing XPath queries</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/great-tool-for-testing-xpath-queries</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/great-tool-for-testing-xpath-queries#comments</comments>
		<pubDate>Mon, 26 Jan 2009 21:20:59 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/?p=140</guid>
		<description><![CDATA[Quick and Dirty &#8211; courtesty of Keith Peters @ bit101
http://www.bit-101.com/xpath/
Also &#8211; I&#8217;ve had the good fortune to see Keith speak at FITC the past couple of years. Cool dude.
Shendy.
]]></description>
			<content:encoded><![CDATA[<p>Quick and Dirty &#8211; courtesty of Keith Peters @ bit101</p>
<p><a href="http://www.bit-101.com/xpath/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.bit-101.com');" target="_blank">http://www.bit-101.com/xpath/</a></p>
<p>Also &#8211; I&#8217;ve had the good fortune to see Keith speak at <a href="http://www.fitc.ca" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.fitc.ca');" target="_blank">FITC</a> the past couple of years. Cool dude.</p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/great-tool-for-testing-xpath-queries/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Type &lt;class&gt; exists in both&#8230;</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/aspnet-type-class-exists-in-both</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/aspnet-type-class-exists-in-both#comments</comments>
		<pubDate>Tue, 13 Jan 2009 20:52:20 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/?p=83</guid>
		<description><![CDATA[Receiving a rando-error similar to the one found on a post in the ASP.NET Forums
While the solution provided in the post didn&#8217;t help me specifically, it did point me in the right direction.
I also came across another potential solution here.
In addition to the solution provided at Mark Carroll&#8217;s blog. I had to republish the site [...]]]></description>
			<content:encoded><![CDATA[<p>Receiving a rando-error similar to the one found on a <a href="http://forums.asp.net/t/980517.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/forums.asp.net');" target="_blank">post in the ASP.NET Forums</a></p>
<p>While the solution provided in the post didn&#8217;t help me specifically, it did point me in the right direction.</p>
<p>I also came across another <a href="http://blogs.mgtechgroup.com/markc/archive/2007/05/02/ASP.NET-PreviousPage-Type-exists-in-both.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.mgtechgroup.com');" target="_blank">potential solution here</a>.</p>
<p>In addition to the solution provided at <a href="http://blogs.mgtechgroup.com/markc/" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.mgtechgroup.com');" target="_blank">Mark Carroll&#8217;s blog</a>. I had to republish the site to force a recompile (I would imagine that putting a space in the web.config would have done the same thing).</p>
<p>Thanks to these guys for pointing me in the right direction.</p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/aspnet-type-class-exists-in-both/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a CData node with ASP.NET</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/creating-a-cdata-with-aspnet</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/creating-a-cdata-with-aspnet#comments</comments>
		<pubDate>Tue, 13 Jan 2009 17:46:00 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CDATA]]></category>
		<category><![CDATA[CreateCDataSection]]></category>
		<category><![CDATA[CreateTextNode]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/?p=73</guid>
		<description><![CDATA[I was trying to create a CDATA section with an XML file, and had something like this:
var pinEntrySubmitBtnURL = copyXML.CreateElement(&#8220;pinEntry_submitBtn_URL&#8221;);
var pinEntrySubmitBtnURLContent = copyXML.CreateTextNode( &#8220;&#60;![CDATA[hidden_pin.ashx]]&#62;&#8221;);
pinEntrySubmitBtnURL.AppendChild(pinEntrySubmitBtnURLContent);
copyNodes.Add( pinEntrySubmitBtnURL );
All of my intended XML data was coming out as escaped XML:
&#38;lt;![CDATA[hidden_pin.ashx]]&#38;gt;
It took me a few minutes to track this down, but eventually Intellisense gave me the answer. Turns out [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to create a CDATA section with an XML file, and had something like this:</p>
<p><span style="font-size: xx-small; font-family: Courier New;">var pinEntrySubmitBtnURL = copyXML.CreateElement(&#8220;pinEntry_submitBtn_URL&#8221;);<br />
var pinEntrySubmitBtnURLContent = copyXML.CreateTextNode( &#8220;&lt;![CDATA[hidden_pin.ashx]]&gt;&#8221;);<br />
pinEntrySubmitBtnURL.AppendChild(pinEntrySubmitBtnURLContent);<br />
copyNodes.Add( pinEntrySubmitBtnURL );</span></p>
<p>All of my intended XML data was coming out as escaped XML:</p>
<p><span style="font-family: Courier New;">&amp;lt;![CDATA[hidden_pin.ashx]]&amp;gt;</span></p>
<p>It took me a few minutes to track this down, but eventually Intellisense gave me the answer. Turns out you need to use the CreateCDataSection function instead:</p>
<p><span style="font-size: xx-small; font-family: courier new;">var pinEntrySubmitBtnURL = copyXML.CreateElement(&#8220;pinEntry_submitBtn_URL&#8221;);<br />
var pinEntrySubmitBtnURLContent = copyXML.CreateCDataSection( &#8220;hidden_pin.ashx&#8221;);<br />
pinEntrySubmitBtnURL.AppendChild(pinEntrySubmitBtnURLContent);<br />
copyNodes.Add( pinEntrySubmitBtnURL );</span></p>
<p>I spent some time searching on the net and couldn&#8217;t find any clear examples of this &#8211; so hopefully this helps you out.</p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/creating-a-cdata-with-aspnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS menus with Flash Content</title>
		<link>http://www.iamshendy.ca/shendys-dev-corner/css-menus-with-flash-content</link>
		<comments>http://www.iamshendy.ca/shendys-dev-corner/css-menus-with-flash-content#comments</comments>
		<pubDate>Wed, 07 Jan 2009 02:28:33 +0000</pubDate>
		<dc:creator>Shendy</dc:creator>
				<category><![CDATA[Shendy's Dev Corner]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.iamshendy.ca/?p=35</guid>
		<description><![CDATA[I ran into a problem with a CSS menu (Suckerfish with Joomla) not appearing over top of flash content.
If you&#8217;re running into this problem just make sure the wmode property of your embed is set to &#34;transparent&#34;.
With SWFObject:
so.addParam(&#34;wmode&#34;, &#34;transparent&#34;);
Hope that helps,
Shendy.
]]></description>
			<content:encoded><![CDATA[<p>I ran into a problem with a CSS menu (Suckerfish with <a target="_blank" href="http://www.joomla.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.joomla.org');">Joomla</a>) not appearing over top of flash content.</p>
<p>If you&#8217;re running into this problem just make sure the wmode property of your embed is set to &quot;transparent&quot;.</p>
<p>With <a target="_blank" href="http://blog.deconcept.com/swfobject/" onclick="javascript:pageTracker._trackPageview('/outbound/article/blog.deconcept.com');">SWFObject</a>:</p>
<p>so.addParam(&quot;wmode&quot;, &quot;transparent&quot;);</p>
<p>Hope that helps,</p>
<p>Shendy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamshendy.ca/shendys-dev-corner/css-menus-with-flash-content/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
