<?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>Trevor Power &#187; Blacknight</title>
	<atom:link href="http://blog.trevorpower.com/index.php/tag/blacknight/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trevorpower.com</link>
	<description>Software development and other thoughts</description>
	<lastBuildDate>Wed, 16 Jun 2010 07:17:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A limitation of shared hosting and a push toward cloud computing</title>
		<link>http://blog.trevorpower.com/index.php/a-limitation-of-shared-hosting-and-a-push-toward-cloud-computing/</link>
		<comments>http://blog.trevorpower.com/index.php/a-limitation-of-shared-hosting-and-a-push-toward-cloud-computing/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 20:37:00 +0000</pubDate>
		<dc:creator>trevorpower</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ASP.Net MVC]]></category>
		<category><![CDATA[Blacknight]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[Tadmap]]></category>

		<guid isPermaLink="false">http://trevorpower.com/blog/?p=31</guid>
		<description><![CDATA[Today I ran into one of the limitations of shared hosting.

I&#8217;ve been struggling for the last few weeks to handle large files in my application. I published to the server earlier this week but with no success. All my tests failed after 10 minutes with a &#8216;Request timed out&#8217; error. I was testing with an [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.trevorpower.com%2Findex.php%2Fa-limitation-of-shared-hosting-and-a-push-toward-cloud-computing%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.trevorpower.com%2Findex.php%2Fa-limitation-of-shared-hosting-and-a-push-toward-cloud-computing%2F" height="61" width="51" /></a></div><p>Today I ran into one of the limitations of shared hosting.</p>
<p style="text-align: center;"><a href="http://1.bp.blogspot.com/_Y2LJ3akQL0w/SacMLGbra7I/AAAAAAAAAE0/bqMmRj6weho/s1600-h/ScreenShot.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5307224070724217778" class="aligncenter" style="margin-top: 0px; margin-bottom: 10px; cursor: pointer; width: 400px; height: 172px; clear: left;" src="http://1.bp.blogspot.com/_Y2LJ3akQL0w/SacMLGbra7I/AAAAAAAAAE0/bqMmRj6weho/s400/ScreenShot.png" border="0" alt="" width="400" height="172" /></a></p>
<p>I&#8217;ve been struggling for the last few weeks to handle large files in my application. I published to the server earlier this week but with no success. All my tests failed after 10 minutes with a &#8216;Request timed out&#8217; error. I was testing with an 80mb file but with a slow broadband connection (thanks to <a href="http://www.icebroadband.com">Ice</a>). I had increased the timeout and max request length for the upload handler like so in the web.config:</p>
<pre name="code" class="xml:nocontrols:nogutter" style="clear: right;">   &lt;location path="Upload.mvc/Upload"&gt;
      &lt;system.web&gt;
         &lt;httpRuntime  maxRequestLength="2097151" executionTimeout="10800" /&gt;
      &lt;/system.web&gt;
   &lt;/location&gt;</pre>
<p>I ruled out any setting that I had control over, so the next step was to talk to my hoster, <a href="http://www.blacknight.com">Blacknight</a>, to see if they could help me out. They replied saying that they could not support the uploading of large files stating that:</p>
<blockquote><p>It ties up too much system resources to upload huge files like that through asp and would cause problems for other users on the shared server.</p></blockquote>
<p>Of course they&#8217;re right and I can&#8217;t really complain but it&#8217;s bitterly disappointing none the less.</p>
<p>For the foreseeable future, a couple of file uploads a month is all I require so I don&#8217;t want to pay for more expensive hosting packages. So back to the drawing board&#8230;</p>
<p><span style="font-weight:bold;">Cloud computing</span></p>
<p>I&#8217;m already using the <a href="http://aws.amazon.com/s3/">Amazons S3</a> service for the storage of the images and I think I can upload directly from the client to S3. So I just need a high spec PC for a few minutes to process the files after the user has uploaded them. Once processed I will only ever have to deal with smaller versions or tiled sections. This looks like an ideal candidate for the <a href="http://aws.amazon.com/ec2/">Amazon Elastic Compute Cloud</a> (EC2). Where I can pay by the hour for a high spec machine.</p>
<p>I was hoping to dip my toe into some cloud computing at some point but I didn&#8217;t want to be pushed. This is going to be a lot more work than I hoped and will need some effort just to cordinate between the web server, client machine and a cloud computer.</p>
<p>I haven&#8217;t decided on the final architecture yet, just thinking out loud, but looks like a lot of fun (and hard work) ahead&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trevorpower.com/index.php/a-limitation-of-shared-hosting-and-a-push-toward-cloud-computing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASP.Net MVC on Blacknight</title>
		<link>http://blog.trevorpower.com/index.php/asp-net-mvc-on-blacknight/</link>
		<comments>http://blog.trevorpower.com/index.php/asp-net-mvc-on-blacknight/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 16:44:00 +0000</pubDate>
		<dc:creator>trevorpower</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ASP.Net MVC]]></category>
		<category><![CDATA[Blacknight]]></category>
		<category><![CDATA[Tadmap]]></category>

		<guid isPermaLink="false">http://trevorpower.com/blog/?p=23</guid>
		<description><![CDATA[Update: SP1 is now installed for ASP.Net 3.5. So now the only DLL you need to upload is &#8216;System.Web.Mvc.dll&#8217;.

I was reading a little bit about the new ASP.Net MVC stuff. I think it would be ideal for my Tadmap (image hosting) project. Before I started any major development re-work I needed to check that my hosting [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.trevorpower.com%2Findex.php%2Fasp-net-mvc-on-blacknight%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.trevorpower.com%2Findex.php%2Fasp-net-mvc-on-blacknight%2F" height="61" width="51" /></a></div><div><b>Update:</b> SP1 is now installed for ASP.Net 3.5. So now the only DLL you need to upload is &#8216;System.Web.Mvc.dll&#8217;.</div>
<p>
<div>I was reading a little bit about the new ASP.Net MVC stuff. I think it would be ideal for my <a href="http://tadmap.com/">Tadmap (image hosting)</a> project. Before I started any major development re-work I needed to check that my hosting provider, <a href="http://www.blacknight.com/">Blacknight</a>, could host it.</div>
<div></div>
<div>So I uploaded the sample MVC application. Of course it didn&#8217;t work at first but I don&#8217;t give up that easily and it is now <a href="http://trevorpower.com/">up and running</a>. I think the following steps will work for anybody else trying the same.</div>
<div></div>
<div>As Blacknight do not have SP1 installed for ASP.Net 3.5 you have to upload the new DLLs when you deploy. Simple instructions can be found here, <a href="http://www.haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx">Bin Deploying ASP.NET MVC</a>.</div>
<p>
<div></div>
<div>My windows account on Blacknight is using IIS 6.0 which does not automatically support MVC. In order to handle URLs the MVC way you will need to follow the instructions here, <a href="http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx">ASP.NET MVC on IIS 6 Walkthrough</a>. Basically, you just need to grab the code for the Global.asax.cs file and add a &#8216;.mvc&#8217; file mapping using your Blacknight control panel.</div>
<div></div>
<div>To add the file mapping, just go to the &#8216;Web&#8217; tab of your domain and add &#8216;mvc&#8217; to the ASP.Net 2 mappings. It should look like the image below and make sure that &#8216;Script Engine&#8217; is &#8216;On&#8217; and &#8216;Verify File Exists&#8217; is &#8216;Off&#8217;.</div>
<div></div>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Y2LJ3akQL0w/SXICShJw66I/AAAAAAAAAEc/h5kmd1RCtJQ/s1600-h/blacknight-howto.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 185px;" src="http://3.bp.blogspot.com/_Y2LJ3akQL0w/SXICShJw66I/AAAAAAAAAEc/h5kmd1RCtJQ/s400/blacknight-howto.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5292295029273979810" /></a>
<div></div>
<div>One small (cosmetic) problem  is that the URLs aren&#8217;t as clean as they should be because the &#8216;mvc&#8217; extension is needed. So the URL for the <i>About</i> action of the <i>Home</i> controller that should look like &#8216;<i>http://trevorpower.com/Home/About</i>&#8216; instead looks like &#8216;<i>http://trevorpower.com/Home<b>.mvc</b>/About</i>&#8216;. I have seen solutions to this problem as well but that&#8217;s for another day. Right now I have the not so small task of converting an existing ASP.Net application to an ASP.Net MVC application.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.trevorpower.com/index.php/asp-net-mvc-on-blacknight/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
