<?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>Don Kitchen &#187; programming</title>
	<atom:link href="http://www.donkitchen.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.donkitchen.com</link>
	<description>family, kids, tech, and more...</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:09:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Web applications are now helping you ditch your mouse!</title>
		<link>http://www.donkitchen.com/2012/02/02/web-applications-are-now-helping-you-ditch-your-mouse/</link>
		<comments>http://www.donkitchen.com/2012/02/02/web-applications-are-now-helping-you-ditch-your-mouse/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 13:09:05 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[hot key]]></category>
		<category><![CDATA[keyboard shortcut]]></category>
		<category><![CDATA[web applications]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=468</guid>
		<description><![CDATA[Being a heavy keyboard only user in many instances and having written desktop applications that focus heavily on keyboard tab order, hot keys, etc., I really enjoyed reading Scott Hansleman&#8217;s latest blog post about the web being the new terminal and how many web applications now are building in support for keyboard shortcuts and hot [...]]]></description>
			<content:encoded><![CDATA[<p>Being a heavy keyboard only user in many instances and having written desktop applications that focus heavily on keyboard <a href="http://en.wikipedia.org/wiki/Tab_order" target="_blank">tab order</a>, <a href="http://en.wikipedia.org/wiki/Hot_key" target="_blank">hot keys</a>, etc., I really enjoyed reading Scott Hansleman&#8217;s <a href="http://www.hanselman.com/blog/TheWebIsTheNewTerminalAreYouUsingTheWebsKeyboardShortcutsAndHotkeys.aspx" target="_blank">latest blog post</a> about the web being the new terminal and how many web applications now are building in support for keyboard shortcuts and hot keys.  I definitely see this being a trend that will continue to gain popularity, enabling people to be much more efficient while using web applications that are part of their daily lives (like <a href="http://www.gmail.com" target="_blank">Gmail)</a>.</p>
<p>Take for example all of the keyboard shortcuts that you could be using today in Gmail while reading your mail.</p>
<p><a href="http://www.donkitchen.com/wp-content/uploads/2012/02/gmail_1.png"><img class="alignnone size-medium wp-image-469" title="Gmail Keyboard Shortcuts" src="http://www.donkitchen.com/wp-content/uploads/2012/02/gmail_1-300x256.png" alt="" width="300" height="256" /></a></p>
<p>I&#8217;ve known about a few of these and have tinkered with them in the past.  Seeing just how much you can do with it and having spent a little more time on it recently, I am definitely going to make an effort to use the keyboard as much as possible from now on in Gmail.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2012/02/02/web-applications-are-now-helping-you-ditch-your-mouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using HTML5 Web Storage in ASP.NET</title>
		<link>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/</link>
		<comments>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:57:14 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[local storage]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=464</guid>
		<description><![CDATA[This article does a great job at showing you a simple example of how to use local browser web storage in conjunction with ASP.NET web methods to save and retrieve the data from a server side database.  Even if you aren&#8217;t interested in using this functionality in an application you have now, it&#8217;s worth reading [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnetslackers.com/articles/aspnet/Using-HTML5-Web-Storage-in-ASP-NET.aspx#s6-passing-data-from-web-storage-to-server" target="_blank">This article</a> does a great job at showing you a simple example of how to use local browser web storage in conjunction with ASP.NET web methods to save and retrieve the data from a server side database.  Even if you aren&#8217;t interested in using this functionality in an application you have now, it&#8217;s worth reading to know what HTML5 brings to the table as far as storing your data down at the client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the root part of a domain in .NET</title>
		<link>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/</link>
		<comments>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 19:32:20 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=429</guid>
		<description><![CDATA[Need to get the .com, .us, .biz, etc. part of the domain name in .NET? Here&#8217;s how: Dim root As String root = Right&#40;Request.Url.Host, &#40;Request.Url.Host.Length&#41; - InStrRev&#40;Request.Url.Host, &#34;.&#34;&#41;&#41;]]></description>
			<content:encoded><![CDATA[<p>Need to get the .com, .us, .biz, etc. part of the domain name in .NET?</p>
<p>Here&#8217;s how:</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #0600FF;">Dim</span> root <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
root <span style="color: #008000;">=</span> <span style="color: #0600FF;">Right</span><span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>, <span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">-</span> <span style="color: #0600FF;">InStrRev</span><span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>, <span style="color: #808080;">&quot;.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Code Metrics Viewer</title>
		<link>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/</link>
		<comments>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 13:09:15 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[code metrics]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=423</guid>
		<description><![CDATA[What is Code Metrics Viewer? &#8211; Matthias Friedrich highlights his Visual Studio 2010 Code Metrics Viewer extension which plugs into VS 2010 Professional and uses the Code Metrics Power Tool to provide code metrics information to the IDE. Matthias is blogging a number of posts on this project blog which look at the various features [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codemetricsviewer.wordpress.com/2011/06/26/what-is-code-metrics-viewer/" target="_blank">What is Code Metrics Viewer?</a> &#8211; Matthias Friedrich highlights his Visual Studio 2010 Code Metrics Viewer extension which plugs into VS 2010 Professional and uses the Code Metrics Power Tool to provide code metrics information to the IDE. Matthias is blogging a number of posts on this project blog which look at the various features of the viewer and I encourage you to check those other posts out too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax-based data loading using jQuery in ASP.NET</title>
		<link>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/</link>
		<comments>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:36:05 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=421</guid>
		<description><![CDATA[Great article to check out! Ajax-based data loading using jQuery.load() function in ASP.NET &#8211; Hajan Selmani takes a back to basics look at using jQuery to load partial chunks of HTML from a page using Ajax and insert them into the current page, providing a nice way of lighting up a web application with an [...]]]></description>
			<content:encoded><![CDATA[<p>Great article to check out!</p>
<p><a href="http://weblogs.asp.net/hajan/archive/2011/06/27/ajax-based-data-loading-using-jquery-load-function-in-asp-net.aspx" target="_blank">Ajax-based data loading using jQuery.load() function in ASP.NET</a> &#8211; Hajan Selmani takes a back to basics look at using jQuery to load partial chunks of HTML from a page using Ajax and insert them into the current page, providing a nice way of lighting up a web application with an ‘Ajax’ feel whilst easily maintaining non-ajax support.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Microsoft Kinect SDK has arrived!</title>
		<link>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/</link>
		<comments>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 11:10:48 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=416</guid>
		<description><![CDATA[The official Microsoft Kinect SDK beta is now out and available for download! Covered by Channel Nine Live Media, Microsoft Scientist Anoop Gupta made the announcement himself that after the long wait, users may now go to the official SDK website to download the latest software development kit for the Kinect camera. Here are the features that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Microsoft Kinect" src="http://www.kinecthacks.com/wp-content/uploads/2011/02/xbox360.jpg" alt="" width="460" height="345" /></p>
<p>The official <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Microsoft </a><strong><a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect</a> SDK beta is now out and available for download</strong>! Covered by Channel Nine Live Media, Microsoft Scientist Anoop Gupta made the announcement himself that after the long wait, users may now go to the <a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/default.aspx">official SDK website</a> to download the latest software development kit for the Kinect camera.</p>
<p>Here are the features that will come with the <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect </a>SDK (taken from Microsoft SDK website):</p>
<blockquote><p><em>“The Kinect for Windows SDK beta is a programming toolkit for application developers. It enables the academic and enthusiast communities easy access to the capabilities offered by the Microsoft Kinect device connected to computers running the Windows 7 operating system.</em></p>
<p><em>The Kinect for Windows SDK beta includes drivers, rich APIs for raw sensor streams and human motion tracking, installation documents, and resource materials. It provides Kinect capabilities to developers who build applications with C++, C#, or Visual Basic by using Microsoft Visual Studio 2010.</em></p>
<p><em><strong>Raw sensor streams</strong></em></p>
<p><em>Access to raw data streams from the depth sensor, color camera sensor, and four-element microphone array enables developers to build upon the low-level streams that are generated by the Kinect sensor.</em></p>
<p><em><strong>Skeletal tracking</strong></em></p>
<p><em>The capability to track the skeleton image of one or two people moving within the Kinect field of view make it easy to create gesture-driven applications.</em></p>
<p><em><strong>Advanced audio capabilities</strong></em></p>
<p><em>Audio processing capabilities include sophisticated acoustic noise suppression and echo cancellation, beam formation to identify the current sound source, and integration with the Windows speech recognition API.</em></p>
<p><em><strong>Sample code and documentation</strong></em></p>
<p><em>The SDK includes more than 100 pages of technical documentation. In addition to built-in help files, the documentation includes detailed walkthroughs for most samples provided with the SDK.</em></p>
<p><em><strong>Easy installation</strong></em></p>
<p><em>The SDK installs quickly, requires no complex configuration, and the complete installer size is less than 100 MB. Developers can get up and running in just a few minutes with a standard standalone Kinect sensor unit (widely available at retail outlets).</em></p>
<p><em>This SDK is designed for non-commercial purposes only; a commercial version is expected to be available at a later date.”</em></p></blockquote>
<p>Additional details about the SDK is that it is currently in beta, meaning it is not yet the actual finished product. Rather, Microsoft wants the opinion of the Kinect hackers/developers in finalizing the product. By keeping it in beta, Microsoft will then ask users to give their feedback concerning the SDK with the eventual hope of releaseing a Kinect SDK built for and with Kinect hackers.</p>
<p>There is also a commercial version coming out. Details are not yet final as to what the difference would be between the two versions of the <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect</a>.</p>
<p>Source: <a href="http://www.kinecthacks.com/" target="_blank">kinecthacks.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Web Standards Update adds HTML5 and CSS3 support</title>
		<link>http://www.donkitchen.com/2011/06/16/visual-studio-2010-web-standards-update-adds-html5-and-css3-support/</link>
		<comments>http://www.donkitchen.com/2011/06/16/visual-studio-2010-web-standards-update-adds-html5-and-css3-support/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 17:28:57 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=414</guid>
		<description><![CDATA[Yay!! Microsoft has released a Web Standards Update for Visual Studio 2010 that adds full support for HTML5, CSS3 and new Javascript features like Geolocation and local storage.  Scott Hanselman has a good write-up on this update in this blog post.  There you can see some more detail about what exactly it brings to the [...]]]></description>
			<content:encoded><![CDATA[<p>Yay!! Microsoft has released a Web Standards Update for Visual Studio 2010 that adds full support for HTML5, CSS3 and new Javascript features like Geolocation and local storage.  <a href="http://www.hanselman.com/blog/" target="_blank">Scott Hanselman</a> has a good write-up on this update in <a href="http://www.hanselman.com/blog/AnnouncingTheWebStandardsUpdateHTML5SupportForTheVisualStudio2010Editor.aspx" target="_blank">this blog post</a>.  There you can see some more detail about what exactly it brings to the VS.NET IDE, etc.  Or, if you want to skip all that and go right to the download, you can get it <a href="http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83" target="_blank">here</a>.  At this point in time the <a href="http://en.wikipedia.org/wiki/Html5" target="_blank">HTML5</a> <a href="http://dev.w3.org/html5/spec/Overview.html" target="_blank">standard</a> is still evolving. Taking that into consideration, Microsoft plans to provide additional updates every quarter or so to keep up with new features, changes to the draft, etc.</p>
<p>By the way, if you still aren&#8217;t familiar with all of the cool things that HTML5 brings to the table you should <strong>definitely </strong>check out this free online book, <em><a href="http://diveintohtml5.org/" target="_blank">Dive Into HTML5</a></em>, by Mark Pilgrim.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/16/visual-studio-2010-web-standards-update-adds-html5-and-css3-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial for getting started with ASP.NET, WCF and jQuery</title>
		<link>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/</link>
		<comments>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 15:22:44 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[offline]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=412</guid>
		<description><![CDATA[I have been doing some work lately with jQuery, WCF, HTML5 and ASP.NET and it&#8217;s been actually pretty fun challenging and fun. I&#8217;ve gotten to tinker with quite a few new technologies that I hadn&#8217;t used before and really got to sink my teeth into jQuery and some of the cool new features that HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing some work lately with jQuery, WCF, HTML5 and ASP.NET and it&#8217;s been actually pretty fun challenging and fun.  I&#8217;ve gotten to tinker with quite a few new technologies that I hadn&#8217;t used before and really got to sink my teeth into jQuery and some of the cool new features that HTML5 has to offer (like local storage and offline capabilities).</p>
<p>When starting out with my recent project I had to pull from various resources to learn what these tools were capable of and how I could fit them all together.  And while it doesn&#8217;t get into the HTML5 aspects of my project <a title="Create a Simple Task List Using ASP.NET, WCF, and jQuery, Part 1" href="http://www.devproconnections.com/article/aspnet2/create-a-simple-task-list-using-asp-net-wcf-and-jquery-part-1-129917" target="_blank">this article</a> on creating a simple task list with ASP.NET, WCF and jQuery would have been very helpful to me in the beginning.</p>
<p>While the article is only Part 1 in a series, I think it will get you going in the right direction and will show you some of the power that you have on the client with the new jQuery data templates.  I must say that with the introduction of these templates you can truly offload a large amount of your logic down to the client which will provide for a much better (and faster) user experience.</p>
<p>Anyway, check out the article.  It&#8217;s short, to the point and offers the source code as a download too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple WordPress Page Redirect Hack</title>
		<link>http://www.donkitchen.com/2011/05/23/simple-wordpress-page-redirect-hack/</link>
		<comments>http://www.donkitchen.com/2011/05/23/simple-wordpress-page-redirect-hack/#comments</comments>
		<pubDate>Mon, 23 May 2011 22:27:08 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=406</guid>
		<description><![CDATA[I recently was looking for a way to setup a WordPress Page that actually was just a link/placeholder for an external site. This allows me to have my external page be automatically part of a theme&#8217;s navigation, etc. The solution I used is actually pretty simple and allows for an unlimited number of instances of [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was looking for a way to setup a WordPress Page that actually was just a link/placeholder for an external site.  This allows me to have my external page be automatically part of a theme&#8217;s navigation, etc.  The solution I used is actually pretty simple and allows for an unlimited number of instances of these &#8220;redirect pages&#8221; without having to use any external plug-ins.</p>
<p>First you need to setup a simple PHP file that will serve as a template for your new page.  Let&#8217;s say for example you have a club that you want to add as part of your navigation.  Create a file called Club.php and put the following code in it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Club
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: http://www.myclubsite.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Then upload the file you created (Club.php) into /wp-content/themes/<i>yourthemename</i>/ where <i>yourthemename</i> is the name of the active theme for your site.</p>
<p>The final step is to create a new Page with the name that you want to show up in your navigation &#8220;My Club&#8221; based on the template that you just uploaded.  You will see this template under the Template drop down menu in the page administration interface along with &#8220;Default Template&#8221;, etc.</p>
<p>Publish and you have a page that automatically redirects to whatever the URL you specified in your PHP template file.  I create a separate one of these for any of these &#8220;redirect pages&#8221; that I want to setup.</p>
<p>It&#8217;s easy and it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/05/23/simple-wordpress-page-redirect-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename an email attachment before sending in .NET</title>
		<link>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/</link>
		<comments>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 16:12:27 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=392</guid>
		<description><![CDATA[I recently had the need to send an email with a file attachment from disk. The problem I faced was that the filename was not very user friendly at all. What I didn&#8217;t want to do however was rename the file on disk, or create another copy of the file with a more generic name, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the need to send an email with a file attachment from disk.  The problem I faced was that the filename was not very user friendly at all.  What I didn&#8217;t want to do however was rename the file on disk, or create another copy of the file with a more generic name, that could create conflicts with other users in the system.</p>
<p>I was happy to find that you can simply change the attachment&#8217;s file name after you create it based on the file on disk.  So my original file, <em>2073B129-6DFF-4088-A785-C9CD8B1AADBF.pdf,</em> could appear as <em>Agreement.pdf</em> to the recipient of the email.  Much better, don&#8217;t you think?</p>
<p>And here&#8217;s how I did it:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">Attachment attachment<span style="color: #008000;">;</span>
attachment <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Attachment<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;2073B129-6DFF-4088-A785-C9CD8B1AADBF.pdf&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
attachment<span style="color: #008000;">.</span><span style="color: #0000FF;">ContentDisposition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">FileName</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Agreement.pdf&quot;</span><span style="color: #008000;">;</span>
MailMessage<span style="color: #008000;">.</span><span style="color: #0000FF;">Attachments</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>attachment<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>There&#8217;s obviously more to the code related to creating the message, etc.  But this is what you need if you want to give the attachment a different file name.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

