<?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>gaskell.org &#187; technical</title>
	<atom:link href="http://gaskell.org/category/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://gaskell.org</link>
	<description>picking up where teh rest leave off</description>
	<lastBuildDate>Sun, 15 Nov 2009 07:55:08 +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>Bulletproof Ajax with ASP.NET MVC</title>
		<link>http://gaskell.org/bulletproof-ajax-with-aspnet-mvc/</link>
		<comments>http://gaskell.org/bulletproof-ajax-with-aspnet-mvc/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 03:26:26 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://gaskell.org/?p=59</guid>
		<description><![CDATA[After reading the excellent Bulletproof Ajax by Jeremy Keith, I thought porting the Bulletproof Books sample application to ASP.NET MVC would be a great first attempt at building an ASP.NET MVC application. One of the main points of Bulletproof Ajax is that Ajax should be used to enhance usability and not to make Ajax a [...]]]></description>
			<content:encoded><![CDATA[<p>After reading the excellent <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2FBulletproof-Ajax-Jeremy-Keith%2Fdp%2F0321472667&#038;tag=9182-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">Bulletproof Ajax</a><img src="http://www.assoc-amazon.com/e/ir?t=9182-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> by Jeremy Keith, I thought porting the Bulletproof Books sample application to ASP.NET MVC would be a great first attempt at building an ASP.NET MVC application. One of the main points of Bulletproof Ajax is that Ajax should be used to enhance usability and not to make Ajax a requirement to access your content. <a href="http://dotnet.gaskell.org">My version</a> of the <a href="http://bulletproofajax.com/shop/">Bulletproof Books Shop</a> also makes Javascript and XMLHttpRequest support optional.</p>
<div style="margin-bottom:10px;margin-top:10px">
Keeping the site accessible to most web browsers took some extra work and consideration when building the Controllers. I decided that any HomeController actions would render html for the entire page. </div>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red43\green145\blue175;\red163\green21\blue21;}??\fs20         \cf3 public\cf0  \cf4 ActionResult\cf0  Index()\par ??        \{\par ??            ViewData.Model = \cf4 Product\cf0 .Products;\par ??            \cf3 return\cf0  View(\cf5 "Index"\cf0 );\par ??        \}\par ??\par ??        \cf3 public\cf0  \cf4 ActionResult\cf0  AddProductToCart(\cf3 string\cf0  productID, \cf3 int\cf0  quantity)\par ??        \{\par ??            \cf4 CartController\cf0  cartController = \cf3 new\cf0  \cf4 CartController\cf0 ();\par ??            cartController.AddProduct(productID, quantity);\par ??            \cf3 return\cf0  Index();\par ??        \}\par ??\par ??        \cf3 public\cf0  \cf4 ActionResult\cf0  RateProduct(\cf3 string\cf0  productID, \cf3 string\cf0  rating)\par ??        \{\par ??            \cf4 RatingController\cf0  ratingController = \cf3 new\cf0  \cf4 RatingController\cf0 ();\par ??            ratingController.RateProduct(productID, rating);\par ??            \cf3 return\cf0  Index();\par ??        \}}<br />
--></p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;13</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: #2b91af;">ActionResult</span> Index()</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;14</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;15</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ViewData.Model = <span style="color: #2b91af;">Product</span>.Products;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;16</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> View(<span style="color: #a31515;">&#8220;Index&#8221;</span>);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;17</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;18</span>&nbsp;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;19</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: #2b91af;">ActionResult</span> AddProductToCart(<span style="color: blue;">string</span> productID, <span style="color: blue;">int</span> quantity)</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;20</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;21</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">CartController</span> cartController = <span style="color: blue;">new</span> <span style="color: #2b91af;">CartController</span>();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;22</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cartController.AddProduct(productID, quantity);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;23</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> Index();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;24</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;25</span>&nbsp;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;26</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: #2b91af;">ActionResult</span> RateProduct(<span style="color: blue;">string</span> productID, <span style="color: blue;">string</span> rating)</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;27</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;28</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">RatingController</span> ratingController = <span style="color: blue;">new</span> <span style="color: #2b91af;">RatingController</span>();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;29</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ratingController.RateProduct(productID, rating);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;30</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> Index();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;31</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
</div>
<div style="margin-bottom:10px;margin-top:10px;">Controllers that refresh partial chunks of html will know how to respond to actions (add product to cart, rate a product) and render views mapped to MVC user controls. The client will make http requests to different urls based on javascript support in the browser. For example to add a product to a cart with javascript enabled, the javascript will make a post to /Cart.mvc/AddProduct and the server will response with a chunk of html. To add a product with javascript disabled the client will post to /Home.mvc/AddProductToCart and the server will respond with an entire page. The HomeController ends up forwarding the call to the appropriate controller so we&#8217;re able to avoid duplicating logic.</div>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red43\green145\blue175;\red163\green21\blue21;}??\fs20         \cf3 public\cf0  \cf4 ActionResult\cf0  DisplayCart()\par ??        \{\par ??            \cf4 Cart\cf0  cart = GetCart();\par ??            \cf3 return\cf0  View(\cf5 "Cart"\cf0 , cart);\par ??        \}\par ??\par ??        \cf3 public\cf0  \cf4 ActionResult\cf0  AddProduct(\cf3 string\cf0  productID, \cf3 int\cf0  quantity)\par ??        \{\par ??            \cf4 Cart\cf0  cart = GetCart();\par ??            \cf4 Product\cf0  product = \cf4 Product\cf0 .Products.Find(s =&gt; s.ID == productID);\par ??            cart.AddProduct(product, quantity);\par ??            SetCart(cart);\par ??            \cf3 return\cf0  View(\cf5 "Cart"\cf0 , cart);\par ??        \}}<br />
--></p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;28</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: #2b91af;">ActionResult</span> DisplayCart()</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;29</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;30</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">Cart</span> cart = GetCart();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;31</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> View(<span style="color: #a31515;">&#8220;Cart&#8221;</span>, cart);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;32</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;33</span>&nbsp;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;34</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: #2b91af;">ActionResult</span> AddProduct(<span style="color: blue;">string</span> productID, <span style="color: blue;">int</span> quantity)</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;35</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;36</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">Cart</span> cart = GetCart();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;37</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">Product</span> product = <span style="color: #2b91af;">Product</span>.Products.Find(s =&gt; s.ID == productID);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;38</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cart.AddProduct(product, quantity);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;39</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetCart(cart);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;40</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> View(<span style="color: #a31515;">&#8220;Cart&#8221;</span>, cart);</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;41</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
</div>
<div style="margin-bottom:10px;margin-top:10px">One thing I&#8217;m not sure about is state management in ASP.NET MVC, so I&#8217;m currently storing the cart and ratings in session.</div>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red43\green145\blue175;\red163\green21\blue21;}??\fs20         \cf3 private\cf0  \cf4 Rating\cf0  GetRatings()\par ??        \{\par ??            \cf4 Rating\cf0  rating = System.Web.\cf4 HttpContext\cf0 .Current.Session[\cf5 "Rating"\cf0 ] \cf3 as\cf0  \cf4 Rating\cf0 ;\par ??            \cf3 if\cf0  (rating == \cf3 null\cf0 )\par ??            \{\par ??                rating = \cf3 new\cf0  \cf4 Rating\cf0 ();\par ??            \}\par ??            \cf3 return\cf0  rating;\par ??        \}\par ??\par ??        \cf3 private\cf0  \cf3 void\cf0  SetRating(\cf4 Rating\cf0  rating)\par ??        \{\par ??            System.Web.\cf4 HttpContext\cf0 .Current.Session[\cf5 "Rating"\cf0 ] = rating;\par ??        \}}<br />
--></p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;22</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">private</span> <span style="color: #2b91af;">Rating</span> GetRatings()</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;23</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;24</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">Rating</span> rating = System.Web.<span style="color: #2b91af;">HttpContext</span>.Current.Session[<span style="color: #a31515;">"Rating"</span>] <span style="color: blue;">as</span> <span style="color: #2b91af;">Rating</span>;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;25</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (rating == <span style="color: blue;">null</span>)</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;26</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;27</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rating = <span style="color: blue;">new</span> <span style="color: #2b91af;">Rating</span>();</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;28</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;29</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> rating;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;30</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;31</span>&nbsp;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;32</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">private</span> <span style="color: blue;">void</span> SetRating(<span style="color: #2b91af;">Rating</span> rating)</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;33</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;34</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.Web.<span style="color: #2b91af;">HttpContext</span>.Current.Session[<span style="color: #a31515;">"Rating"</span>] = rating;</p>
<p style="margin: 0px;"><span style="color: #2b91af;">&nbsp;&nbsp;&nbsp;35</span>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
</div>
<div style="margin-bottom:10px;margin-top:10px">
You can download the source <a href="http://gaskell.org/upload/BulletproofShop.zip">here</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/bulletproof-ajax-with-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Getting access to MSDN downloads with the Empower ISV program</title>
		<link>http://gaskell.org/getting-access-to-msdn-downloads-with-the-empower-isv-program/</link>
		<comments>http://gaskell.org/getting-access-to-msdn-downloads-with-the-empower-isv-program/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 06:50:04 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[Empower]]></category>
		<category><![CDATA[ISV]]></category>
		<category><![CDATA[MSDN]]></category>

		<guid isPermaLink="false">http://gaskell.org/?p=58</guid>
		<description><![CDATA[Ok, so like 99% of my blog entries are about things not working quite the way I think they should and here&#8217;s another example. When linking your Passport account to your MSDN Subscription you&#8217;re asked to provide your Benefit Access Number. The number they&#8217;re looking for is your Technical ID available on Microsoft Parter Program [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so like 99% of my blog entries are about things not working quite the way I think they should and here&#8217;s another example. When linking your Passport account to your MSDN Subscription you&#8217;re asked to provide your Benefit Access Number. The number they&#8217;re looking for is your <em>Technical ID</em> available on <a target="_blank" href="https://partners.microsoft.com/partnerprogram/PartnerMembershipCenter.aspx">Microsoft Parter Program</a> site. <strong>Under Requirements &#038; Assets</strong> click <strong>Assign Contact Roles</strong>.</p>
<p>This method didn&#8217;t work for me on the day I received my MSDN shipment &#8211; I had to wait a couple days for it to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/getting-access-to-msdn-downloads-with-the-empower-isv-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free (and not so free) Windows FTP Clients</title>
		<link>http://gaskell.org/free-and-not-so-free-windows-ftp-clients/</link>
		<comments>http://gaskell.org/free-and-not-so-free-windows-ftp-clients/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 02:29:43 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[SmartFTP]]></category>

		<guid isPermaLink="false">http://gaskell.org/?p=56</guid>
		<description><![CDATA[SmartFTP started charging for their Windows FTP client so I decided to look for a suitable truly free replacement (not a lite version or one with nag screens) and FileZilla seems like the best option out there.



Filezilla isn&#8217;t quite as pretty as SmartFTP but FileZilla does have a local and remote browser similiar to SmartFTP [...]]]></description>
			<content:encoded><![CDATA[<p>SmartFTP started charging for their Windows FTP client so I decided to look for a suitable truly free replacement (not a lite version or one with nag screens) and <a target="_blank" href="http://filezilla-project.org">FileZilla</a> seems like the best option out there.
<p>
<a target="_blank" href="http://filezilla-project.org/client_screenshots.php"><img src="http://filezilla-project.org/images/screenshots/fz3_win_main-small.png" /></a>
</p>
<p>Filezilla isn&#8217;t quite as pretty as SmartFTP but FileZilla does have a local and remote browser similiar to SmartFTP &#8211; super easy to use. I&#8217;ve used it to upload and modify files on <a target="_blank" href="http://www.dreamhost.com/r.cgi">my host</a> as well as FTP files over to a WinCE device that I&#8217;m developing on &#8211; so far it&#8217;s worked great.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/free-and-not-so-free-windows-ftp-clients/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable Blocked File Protection Control in Windows Vista</title>
		<link>http://gaskell.org/disable-blocked-file-protection-control-in-windows-vista/</link>
		<comments>http://gaskell.org/disable-blocked-file-protection-control-in-windows-vista/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 04:54:30 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://gaskell.org/?p=52</guid>
		<description><![CDATA[In my neverending quest to make Vista more usable, I finally caved and took the time to figure out how to disable Blocked File Protection Control. This &#8220;feature&#8221; requires you to unblock files you download before they are usable (for the most part). This is a bad decision in my opinion &#8211; I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>In my neverending quest to make Vista more usable, I finally caved and took the time to figure out how to disable Blocked File Protection Control. This &#8220;feature&#8221; requires you to unblock files you download before they are usable (for the most part). This is a bad decision in my opinion &#8211; I decided to download a file and of course I&#8217;m going to want to work with it. I don&#8217;t want to figure how how to unblock before I can use it. What a pain &#8211; anyway enough with the rant. </p>
<p></p>
<p><img src="/upload/unblocking-files-sucks.jpg" alt="Unblocking files sucks" /></p>
<p></p>
<p>If you want to be able to use your files after you download them, you&#8217;ll need to either use the Group Policy Editor <a target="_blank" href="http://www.petri.co.il/unblock-files-windows-vista.htm">described here in as Method #3</a> or edit the registry. </p>
<p>Unfortunately I happen to be running Windows Vista Home Premium on one of my systems &#8211; this means no gpedit. The entry we need to set is:
<pre class="code"><code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments\SaveZoneInformation</code></pre>
<p> This value needs to be a DWORD set to 1. You can enter this manually or <a target="_blank" href="http://gaskell.org/upload/SaveZoneInformation.reg">download the reg file</a> and &#8220;Unblock&#8221; your last file! Be sure to close all instances of Internet Explorer or reboot your computer after making the change to your registry.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/disable-blocked-file-protection-control-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using the digg API in an ASP.NET Page</title>
		<link>http://gaskell.org/using-the-digg-api-in-an-aspnet-page/</link>
		<comments>http://gaskell.org/using-the-digg-api-in-an-aspnet-page/#comments</comments>
		<pubDate>Sat, 21 Apr 2007 05:05:22 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://gaskell.org/using-the-digg-api-in-an-aspnet-page/</guid>
		<description><![CDATA[Digg released their API yesterday &#8211; I haven&#8217;t really done much with RESTful web services because in the .net world, most of the time SOAP/WSDL is used. I thought a very basic RESTful web service project would be useful for other .net developers.
This example gets a list of all topics that digg offers. The code [...]]]></description>
			<content:encoded><![CDATA[<p>Digg <a href="http://blog.digg.com/?p=72" target="_blank">released their API yesterday</a> &#8211; I haven&#8217;t really done much with <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank">RESTful</a> web services because in the .net world, most of the time SOAP/<a href="http://en.wikipedia.org/wiki/Web_Services_Description_Language" target="_blank">WSDL</a> is used. I thought a very basic RESTful web service project would be useful for other .net developers.</p>
<p>This example gets a <a href="http://apidoc.digg.com/ListTopics" target="_blank">list of all topics</a> that digg offers. The code is pretty simple:</p>
<pre class="code">
<code>// Create the web request, change the appkey to for your applications
HttpWebRequest request = WebRequest.Create("http://services.digg.com/topics?appkey=http%3A%2F%2Fgaskell.org") as HttpWebRequest;

// won't get a response from digg if UserAgent is not set
request.UserAgent = ".net"; 

// Get response
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
{
     // Get the response stream
     StreamReader reader = new StreamReader(response.GetResponseStream());

     DataSet ds = new DataSet();
     ds.ReadXml(reader);

     this.topicsGridView.DataSource = ds.Tables[1];
     this.topicsGridView.DataBind();
}    </code>
</pre>
<p><a href='http://gaskell.org/wp-content/uploads/2007/04/digg_api_example.zip' title='Digg API Example in ASP.NET'>Download</a> the project or check out the <a href="http://dotnet.gaskell.org/Digg_API_Example" target="_blank">live demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/using-the-digg-api-in-an-aspnet-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Now with 100% more .net</title>
		<link>http://gaskell.org/now-with-100-more-net/</link>
		<comments>http://gaskell.org/now-with-100-more-net/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 03:44:48 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://gaskell.org/now-with-100-more-net/</guid>
		<description><![CDATA[I host my blog on the fantastic WordPress blog platform which typically runs on the LAMP stack. That means I can&#8217;t put up live demos of my .net posts so I created a new .net playground at http://dotnet.gaskell.org. I&#8217;ll have live examples of all of my projects as well as project downloads.
To get things started [...]]]></description>
			<content:encoded><![CDATA[<p>I host my blog on the fantastic WordPress blog platform which typically runs on the <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29">LAMP</a> stack. That means I can&#8217;t put up live demos of my .net posts so I created a new .net playground at <a href="http://dotnet.gaskell.org">http://dotnet.gaskell.org</a>. I&#8217;ll have live examples of all of my projects as well as project downloads.</p>
<p>To get things started here&#8217;s a <a target="_blank" href="http://dotnet.gaskell.org/Digg_Style_Paging">live demo</a> of the <a href="http://gaskell.org/digg-style-custom-paging-for-gridviews-in-aspnet/">digg style paging in asp.net</a> project I created.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/now-with-100-more-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digg style custom paging for GridViews in ASP.NET</title>
		<link>http://gaskell.org/digg-style-custom-paging-for-gridviews-in-aspnet/</link>
		<comments>http://gaskell.org/digg-style-custom-paging-for-gridviews-in-aspnet/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 01:09:45 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://gaskell.org/digg-style-custom-paging-for-gridviews-in-aspnet/</guid>
		<description><![CDATA[I&#8217;ve been on a bit of a digg kick lately and I like how they handle paging so I decided to create a GridView control that uses custom paging similar to digg&#8217;s. The algorithm is based on this post. As far as html output goes, this should be fairly close to the actual output on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been on a bit of a digg kick lately and I like how they handle paging so I decided to create a GridView control that uses custom paging similar to digg&#8217;s. The algorithm is based on <a href='http://www.strangerstudios.com/blog/2006/07/07/paginate-your-site-like-digg/'>this post</a>. As far as html output goes, this should be fairly close to the actual output on digg and I&#8217;m using digg&#8217;s stylesheet in the demo. </p>
<p>About the algorithm (from <a href='http://www.strangerstudios.com/sandbox/pagination/diggstyle.php'>Stranger Studios</a>):</p>
<blockquote>
<ol>
<li>The pagination object has a &#8220;previous&#8221; and &#8220;next&#8221; button which takes the user to the next page. The previous button is disabled on the first page. Similarly, the next button is disabled on the last page.</li>
<li>The pagination object will always display links to the first two pages and the last two pages of the set.</li>
<li>The pagination object will always display links to the first x (adjacents in the code) pages before and after the current page.</li>
<li>The pagination object will only show at most 5+2x links (first two + prior x + current page + next x + last two). All links not shown will be replaced by &#8230; </li>
</blockquote>
<p>A little preview:<br /><img src='http://gaskell.org/wp-content/uploads/2007/04/digg-style-paging.gif' alt='digg style paging preview' /></p>
<p>You can download the project <a href='http://gaskell.org/wp-content/uploads/2007/04/digg_style_paging.zip'>here</a>. I didn&#8217;t spend a ton of time testing this code, please leave any bug reports in the comments &#8211; Thanks!</p>
<p><strong>Update:</strong>  Changed the code a bit &#8211; paging is now handled via query string instead of posting back. Not a huge deal but the code is easier to read.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/digg-style-custom-paging-for-gridviews-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Digg It button User Control for ASP.NET</title>
		<link>http://gaskell.org/digg-it-button-user-control-for-aspnet/</link>
		<comments>http://gaskell.org/digg-it-button-user-control-for-aspnet/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 04:43:37 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://www.gaskell.org/digg-it-button-user-control-for-aspnet/</guid>
		<description><![CDATA[I came across Tuggo&#8217;s excellent diggIT plugin for WordPress and thought it&#8217;d be cool to make an ASP.NET User Control that provides similar functionality. The control is really easy to use. 

Here&#8217;s the basic tag:


&#60;uc1:DiggItButton  ID="DiggItButton"
                   [...]]]></description>
			<content:encoded><![CDATA[<p>I came across <a href="http://tuggo.org/paul/2007/02/07/diggit-100-released/" target="_blank">Tuggo&#8217;s</a> excellent diggIT plugin for WordPress and thought it&#8217;d be cool to make an ASP.NET User Control that provides similar functionality. The control is really easy to use. </p>
<p></p>
<p>Here&#8217;s the basic tag:</p>
<p></p>
<pre class="code">
<code>&lt;uc1:DiggItButton  ID="DiggItButton"
                   runat="server"
                   Url="http://gaskell.org"
                   Title="Test title"
                   Body="Test body" /&gt;</code>
</pre>
<p></p>
<p>You don&#8217;t need to set the Url, Title and Body properties in the tag, they are also available as public properties in the codebehind. The only property that is required to be set is the Url property &#8211; if you pass in the Title and/or Body, digg will pre-populate those fields. Digg also asks that you url encode your strings and this control handles that for you. Check out the code and sample page <a href="http://www.gaskell.org/wp-content/uploads/2007/04/diggit.zip">here</a>. </p>
<p></p>
<p>You can view an example of the control <a href="http://www.gifninja.com/ViewAnimatedGif.aspx?GifID=8dd7c57b-ac79-4812-9c56-e31f9150a57c" target="_blank" >here at gifninja</a>. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/digg-it-button-user-control-for-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The requested operation requires elevation in Windows Vista</title>
		<link>http://gaskell.org/the-requested-operation-requires-elevation-in-windows-vista/</link>
		<comments>http://gaskell.org/the-requested-operation-requires-elevation-in-windows-vista/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 05:02:29 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.gaskell.org/the-requested-operation-requires-elevation-in-windows-vista/</guid>
		<description><![CDATA[So I&#8217;ve been using Vista for a few weeks now and for whatever crazy reason I decided I needed to flush dns. I received this message: &#8220;The requested operation requires elevation&#8221;. Okay, to get around this go to All Programs, Accessories, right click Command Prompt and click Run as administrator. Good to go!


Update:
I&#8217;ve been running [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been using Vista for a few weeks now and for whatever crazy reason I decided I needed to <a href="http://technet2.microsoft.com/WindowsServer/en/library/a184e334-2c9f-48c4-abe7-804188200dd91033.mspx?mfr=true" target="_blank">flush dns</a>. I received this message: &#8220;The requested operation requires elevation&#8221;. Okay, to get around this go to All Programs, Accessories, right click Command Prompt and click Run as administrator. Good to go!<br />
<br />
<img src="/upload/run-as-administrator.jpg" alt="run as administrator" /></p>
<p><strong>Update:</strong><br />
I&#8217;ve been running Vista for quite some time now and finally got fed up with <a href="http://technet.microsoft.com/en-us/windowsvista/aa906021.aspx" target="_blank">User Account Control (UAC)</a>. What UAC really turns into is security by nagging so I disabled it altogether. To disable UAC open the Control Panel/User Accounts then click Turn User Account Control on or off. Uncheck the box. Click OK.</p>
<p>
<img src="/upload/control-panel-turn-off-uac.jpg" alt="turn off uac in the control panel" /><br />
<br />
<img src="/upload/turn-off-user-access-control.jpg" alt="turn off user access control" /></p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/the-requested-operation-requires-elevation-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>99</slash:comments>
		</item>
		<item>
		<title>Hello World for Ruby on Rails</title>
		<link>http://gaskell.org/hello-world-for-ruby-on-rails/</link>
		<comments>http://gaskell.org/hello-world-for-ruby-on-rails/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 05:55:03 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://www.gaskell.org/hello-world-for-ruby-on-rails/</guid>
		<description><![CDATA[I&#8217;m just getting started with Rails so I went looking for a Hello World example. Eventually I came to this post. I&#8217;m going to go over the equivalent example using the RIDE-ME IDE.
1. Create a new project. Click File &#8211; New &#8211; Project. 
2. Enter C:\ in the Location textbox. Enter HelloWorld in the project [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just getting started with Rails so I went looking for a Hello World example. Eventually I came to <a href="http://mentalized.net/journal/2006/02/06/hello_ruby_on_rails_world/">this post</a>. I&#8217;m going to go over the equivalent example using the <a href="http://www.projectrideme.com/">RIDE-ME IDE</a>.</p>
<p><strong>1.</strong> Create a new project. Click File &#8211; New &#8211; Project. <br/><br />
<strong>2.</strong> Enter <strong>C:\</strong> in the Location textbox. Enter <strong>HelloWorld</strong> in the project name. Click OK.</p>
<p><img src="http://www.gaskell.org/pics/new-rails-project.gif" alt="New Project dialog" /></p>
<p><strong>3.</strong> Click File &#8211; New &#8211; Controller. Enter <strong>Hello</strong> for the name of the Controller. Click OK. </p>
<p><img src="http://www.gaskell.org/pics/new-controller.gif" alt="New Controller dialog" /></p>
<p><strong>4.</strong> In the Project Explorer window, expand app, expand views. Right click the <strong>hello</strong> and click on Add New RHTML Page.</p>
<p><img src="http://www.gaskell.org/pics/add-new-rhtml.gif" alt="Adding a new RHTML page" /></p>
<p><strong>5.</strong> Name the file <strong>index.rhtml</strong>. Click OK.</p>
<p><img src="http://www.gaskell.org/pics/rhtml-page-hello.gif" alt="Naming the new RHTML page" /></p>
<p><strong>6.</strong> Type &#8220;hello world&#8221; in your rhtml page. Save the file.</p>
<p><strong>7.</strong> Press F5 (or click Run) and in a few seconds the web server starts and a browser window launches. Change the URL to <strong>http://localhost:3000/hello</strong>.</p>
<p><strong>8.</strong> Hello World!</p>
<p>
I hope to post more short projects as I work my way through the <a href="http://www.amazon.com/gp/redirect.html?link_code=ur2&#038;tag=emopunklyrics-20&#038;camp=1789&#038;creative=9325&#038;location=%2Fgp%2Fproduct%2F0974514055%2F">PickAxe</a> and <a href="http://www.amazon.com/gp/redirect.html?link_code=ur2&#038;tag=emopunklyrics-20&#038;camp=1789&#038;creative=9325&#038;location=%2Fgp%2Fproduct%2F097669400X%2F">Agile Web Development with Rails</a> books.</p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/hello-world-for-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.366 seconds -->
