<?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>Eric S. Davis</title>
	<atom:link href="http://www.ericsdavis.net/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericsdavis.net</link>
	<description></description>
	<lastBuildDate>Tue, 23 Mar 2010 15:08:28 +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>SQL Injection I Can Support</title>
		<link>http://www.ericsdavis.net/index.php/2010/03/23/sql-injection-i-can-support/</link>
		<comments>http://www.ericsdavis.net/index.php/2010/03/23/sql-injection-i-can-support/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 15:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=229</guid>
		<description><![CDATA[As much as I hate SQL injection, this is actually a use for it I could kinda support: http://gizmodo.com/5498412/sql-injection-license-plate-hopes-to-foil-euro-traffic-cameras Fighting Big Brother! Love it. Ha!]]></description>
			<content:encoded><![CDATA[<p>As much as I hate SQL injection, this is actually a use for it I could kinda support:</p>
<p><a href="http://gizmodo.com/5498412/sql-injection-license-plate-hopes-to-foil-euro-traffic-cameras" target="_blank">http://gizmodo.com/5498412/sql-injection-license-plate-hopes-to-foil-euro-traffic-cameras</a></p>
<p>Fighting Big Brother! Love it. Ha!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2010/03/23/sql-injection-i-can-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices for Avoiding SQL Injection Attacks</title>
		<link>http://www.ericsdavis.net/index.php/2009/09/15/best-practices-for-avoiding-sql-injection-attacks/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/09/15/best-practices-for-avoiding-sql-injection-attacks/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 14:23:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Development]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=221</guid>
		<description><![CDATA[A friend of mine recently brought this helpful link to my attention. It&#8217;s a very useful (and somewhat comical) listing of best practices for preventing SQL Injection attacks for various web programming languages. Thanks Sean!]]></description>
			<content:encoded><![CDATA[<p>A friend of mine recently brought this helpful <a title="Bobby Tables" href="http://bobby-tables.com/" target="_blank">link</a> to my attention. It&#8217;s a very useful (and somewhat comical) listing of best practices for preventing SQL Injection attacks for various web programming languages. Thanks <a title="Sean McCarthy" href="http://scmccart.wordpress.com/" target="_blank">Sean</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/09/15/best-practices-for-avoiding-sql-injection-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Box Model</title>
		<link>http://www.ericsdavis.net/index.php/2009/06/03/css-box-model/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/06/03/css-box-model/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 16:07:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Design]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=216</guid>
		<description><![CDATA[One of my co-workers pointed out this a useful reference on the CSS Box Model:  http://css-tricks.com/the-css-box-model/ This is extremely helpful for figuring out how to get CSS web design elements positioned and spaced exactly like you want. Thanks for the heads-up, Trent!]]></description>
			<content:encoded><![CDATA[<p>One of my co-workers pointed out this a useful reference on the CSS Box Model:  <a href="http://css-tricks.com/the-css-box-model/">http://css-tricks.com/the-css-box-model/</a></p>
<p>This is extremely helpful for figuring out how to get CSS web design elements positioned and spaced exactly like you want.</p>
<p>Thanks for the heads-up, Trent!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/06/03/css-box-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring IIS FTP and Windows Firewall for Passive Connections</title>
		<link>http://www.ericsdavis.net/index.php/2009/05/07/configuring-iis-ftp-and-windows-firewall-for-passive-connections/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/05/07/configuring-iis-ftp-and-windows-firewall-for-passive-connections/#comments</comments>
		<pubDate>Thu, 07 May 2009 17:31:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=193</guid>
		<description><![CDATA[The FTP Server included in the Microsoft Server OS is a bit limited. Only direct connections are enabled by default. To allow passive FTP connections to your server you have to do some manual configuration of the IIS metabase, Windows Firewall (if enabled), and any hardware firewall that you may have in place. Unfortunately, in [...]]]></description>
			<content:encoded><![CDATA[<p>The FTP Server included in the Microsoft Server OS is a bit limited. Only direct connections are enabled by default. To allow passive FTP connections to your server you have to do some manual configuration of the IIS metabase, Windows Firewall (if enabled), and any hardware firewall that you may have in place.</p>
<p>Unfortunately, in order to configure your FTP server to utilize passive connections you have to manually change the IIS Metabase. There isn&#8217;t any user-friendly IIS Manager checkbox or anything you can just click to make it happen. The easiest tool to use to browse and edit the IIS Metabase is Microsoft&#8217;s Metabase Explorer which is included in the <a href="http://support.microsoft.com/kb/840671" target="_blank">IIS 6.0 Resouce Kit</a>.</p>
<p>To enable passive FTP connections and set the port range, do the following:</p>
<blockquote><p>1. Install the IIS Resource Kit on your server and open the IIS Metabase utility</p>
<p>2. Browse to [ServerName] (local) -&gt; LM -&gt; MSFTPSVC</p>
<p>3. Right-click on MSFTPSVC and create a new string record entry (New -&gt; String Record)</p>
<p>4. Choose PassivePortRange as the Record Name or Identifier and String for the Data Type</p>
<p>5. Enter the range of ports you would like the FTP Server to use for passive connections; i.e. 5500-5525</p>
<p>6. Close the Metabase Explorer and bounce the IIS services or reboot the server to make sure the changes are put into effect</p></blockquote>
<p>If your server is also running Windows Firewall, you will also have to allow incoming connections via the port range you specified for your passive connections. This is truly a pain since there isn&#8217;t a nice and easy way to define a firewall rule for a range of ports in the Windows Firewall admin utility. You have to enter a rule for each port in the range individually &#8211; ugh. But with the use of a simple script, you can automate this process. I originally found this info on <a href="http://eedle.typepad.com/eedle/2009/02/open-a-range-of-ports-on-windows-firewall.html" target="_blank">David Eedle&#8217;s site</a> and wanted to pass it on.</p>
<p>The following will add a Windows Firewall rule for each of the specified ports &#8211; 5500 thru 5525 &#8211; and name them &#8220;Passive FTP [port#]&#8221;</p>
<blockquote><p>FOR /L %I IN (5500,1,5525) DO netsh firewall add portopening TCP %I &#8220;Passive FTP&#8221; %I</p></blockquote>
<p>The last step is remembering to also open up the same TCP port range on any hardware firewall / router you may have in place; all pointing to the internal IP address of your FTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/05/07/configuring-iis-ftp-and-windows-firewall-for-passive-connections/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Expressions for Fun and Profit</title>
		<link>http://www.ericsdavis.net/index.php/2009/05/04/using-expressions-for-fun-and-profit/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/05/04/using-expressions-for-fun-and-profit/#comments</comments>
		<pubDate>Mon, 04 May 2009 23:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Expressions]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=196</guid>
		<description><![CDATA[A co-worker put together a great post explaining how you can use the System.Expressions library and lambda expressions in C# to create dynamic functions that are compiled and cached at run time. This technique can be used in place of reflection. This is some good stuff &#8211; thanks Sean. http://scmccart.wordpress.com/2009/05/04/using-expressions-for-fun-and-profit/]]></description>
			<content:encoded><![CDATA[<p>A co-worker put together a great post explaining how you can use the System.Expressions library and lambda expressions in C# to create dynamic functions that are compiled and cached at run time. This technique can be used in place of reflection. This is some good stuff &#8211; thanks Sean.</p>
<p><a href="http://scmccart.wordpress.com/2009/05/04/using-expressions-for-fun-and-profit/" target="_blank">http://scmccart.wordpress.com/2009/05/04/using-expressions-for-fun-and-profit/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/05/04/using-expressions-for-fun-and-profit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Table Layouts vs. Div Layouts</title>
		<link>http://www.ericsdavis.net/index.php/2009/04/09/table-layouts-vs-div-layouts/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/04/09/table-layouts-vs-div-layouts/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 18:00:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Development]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=189</guid>
		<description><![CDATA[This is a very good article discussing the age-old tables vs. divs web structure debate. A lot of good comparisons, code examples, and best practices are included. Check it out: http://www.smashingmagazine.com/2009/04/08/from-table-hell-to-div-hell/]]></description>
			<content:encoded><![CDATA[<p>This is a very good article discussing the age-old tables vs. divs web structure debate. A lot of good comparisons, code examples, and best practices are included. Check it out:</p>
<p><a href="http://www.smashingmagazine.com/2009/04/08/from-table-hell-to-div-hell/" target="_blank">http://www.smashingmagazine.com/2009/04/08/from-table-hell-to-div-hell/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/04/09/table-layouts-vs-div-layouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Developer Cheat Sheets</title>
		<link>http://www.ericsdavis.net/index.php/2009/03/20/web-developer-cheat-sheets/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/03/20/web-developer-cheat-sheets/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 19:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Development]]></category>
		<category><![CDATA[cheat sheets]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=182</guid>
		<description><![CDATA[Good post directing to a couple of good developer cheat sheet sites: http://www.trentjones.net/index.php/2009/03/cs/]]></description>
			<content:encoded><![CDATA[<p>Good post directing to a couple of good developer cheat sheet sites:</p>
<p><a href="http://www.trentjones.net/index.php/2009/03/cs/" target="_blank">http://www.trentjones.net/index.php/2009/03/cs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/03/20/web-developer-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thirty Free Image Resources on the Web</title>
		<link>http://www.ericsdavis.net/index.php/2009/03/20/thirty-free-image-resources-on-the-web/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/03/20/thirty-free-image-resources-on-the-web/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 17:02:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Design]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=175</guid>
		<description><![CDATA[Can never have too many good free image resources&#8230; http://websearch.about.com//od/bestwebsites/tp/free-images.htm]]></description>
			<content:encoded><![CDATA[<p>Can never have too many good free image resources&#8230;</p>
<p><a href="http://websearch.about.com//od/bestwebsites/tp/free-images.htm" target="_blank">http://websearch.about.com//od/bestwebsites/tp/free-images.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/03/20/thirty-free-image-resources-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entity Framework and Primary Key Inference</title>
		<link>http://www.ericsdavis.net/index.php/2009/03/14/entity-framework-and-primary-key-inference/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/03/14/entity-framework-and-primary-key-inference/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 18:22:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=144</guid>
		<description><![CDATA[For whatever reason there may come a time when you want to add a database table to your Entity Framework data model that doesn&#8217;t have a primary key defined. Don&#8217;t ask me why you would want to do that, but maybe you didn&#8217;t design the database and maybe you don&#8217;t have the authority to change [...]]]></description>
			<content:encoded><![CDATA[<p>For whatever reason there may come a time when you want to add a database table to your Entity Framework data model that doesn&#8217;t have a primary key defined. Don&#8217;t ask me why you would want to do that, but maybe you didn&#8217;t design the database and maybe you don&#8217;t have the authority to change it. Trust me, it can happen.</p>
<p>When the model generation tool analyzes your database and generates the model you may see a warning message similar to the following:</p>
<blockquote><p>The table/view &#8216;[TABLE NAME]&#8216; does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.</p></blockquote>
<p>Since there is no primary key assigned to this table, the model generation tool does its best to figure out what it thinks the key should be based upon the table definition and the data that is currently in the table. The bigger issue here is that there is no primary key constraint defined either. If there is no primary key constraint, you can&#8217;t guarantee that future data changes won&#8217;t violate the primary key definition that was inferred by the modeling tool. So, the entity set is created in a read-only mode; no record inserts, updates, or deletions will be allowed for this table.</p>
<p>If you are certain that there will never be a situation where data added to or updated in this particular table would violate the inferred key constraint, you can manually remove the read-only configuration in the model by executing the following steps:</p>
<ol>
<li>Close the model designer in Visual Studio if it is still open and re-open the <b>.edmx</b> file in an XML editor</li>
<li>Find the <strong>edmx:StorageModels</strong> -&gt; <strong>Schema</strong> -&gt; <strong>Entity Container</strong> -&gt; <strong>EntitySet</strong> element that refers to the table in question</li>
<li>On the <strong>EntitySet</strong> element, rename the <strong>store:Schema</strong> attribute to <strong>Schema</strong></li>
<li>Remove the <strong>store:Name</strong> attribute altogether</li>
<li>Remove the opening and closing <strong>DefiningQuery</strong> tags and everything in between them</li>
<li>Save and close the <b>.edmx</b> file</li>
</ol>
<p>You should now be able to make changes to your table data via the data context and entity classes.</p>
<p><u>Note</u>: You will have to repeat these steps if you ever refresh your model from the database since your changes will be overwritten.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/03/14/entity-framework-and-primary-key-inference/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New Useful AJAX And JavaScript Techniques</title>
		<link>http://www.ericsdavis.net/index.php/2009/03/09/new-useful-ajax-and-javascript-techniques/</link>
		<comments>http://www.ericsdavis.net/index.php/2009/03/09/new-useful-ajax-and-javascript-techniques/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:26:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Development]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.ericsdavis.net/?p=137</guid>
		<description><![CDATA[Great article providing a number of links to AJAX &#038; Javascript tutorials and technique demos. http://www.smashingmagazine.com/2009/03/08/70-new-useful-ajax-and-javascript-techniques/]]></description>
			<content:encoded><![CDATA[<p>Great article providing a number of links to AJAX &#038; Javascript tutorials and technique demos.</p>
<p><a href="http://www.smashingmagazine.com/2009/03/08/70-new-useful-ajax-and-javascript-techniques/" target="_blank">http://www.smashingmagazine.com/2009/03/08/70-new-useful-ajax-and-javascript-techniques/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericsdavis.net/index.php/2009/03/09/new-useful-ajax-and-javascript-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

