<?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>SpikedSoftware</title>
	<atom:link href="http://www.spikedsoftware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spikedsoftware.com</link>
	<description>The ramblings of a grumpy software developer.</description>
	<lastBuildDate>Tue, 21 Feb 2012 15:41:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Visual Studio 2010 jQuery Intellisense</title>
		<link>http://www.spikedsoftware.com/2012/02/21/visual-studio-2010-jquery-intellisense/</link>
		<comments>http://www.spikedsoftware.com/2012/02/21/visual-studio-2010-jquery-intellisense/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:41:19 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=45</guid>
		<description><![CDATA[To get decent intellisense (or any, for that matter) in individual script files using Visual Studio 2010, it&#8217;s as simple as adding a reference at the top of your javascript file. /// &#60;reference path=&#34;../jquery-1.7.1.js&#34;&#62;]]></description>
			<content:encoded><![CDATA[<p>To get decent intellisense (or any, for that matter) in individual script files using Visual Studio 2010, it&#8217;s as simple as adding a reference at the top of your javascript file.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/// &lt;reference path=&quot;../jquery-1.7.1.js&quot;&gt;</span></pre></div></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2012%2F02%2F21%2Fvisual-studio-2010-jquery-intellisense%2F&amp;title=Visual%20Studio%202010%20jQuery%20Intellisense" id="wpa2a_2"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2012/02/21/visual-studio-2010-jquery-intellisense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC &amp; &lt;text&gt; Gotchas</title>
		<link>http://www.spikedsoftware.com/2011/09/26/mvc-text-gotchas/</link>
		<comments>http://www.spikedsoftware.com/2011/09/26/mvc-text-gotchas/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:29:47 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=38</guid>
		<description><![CDATA[Noticed a few of this lurking around in my teams code base recently, very easy to go unnoticed. Without HTML Validation, anyway. @helper MyHelper(string foo) {     //Good     @foo     //Not &#8216;bad&#8217;, just not required as the @foo will just render out. &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/09/26/mvc-text-gotchas/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Noticed a few of this lurking around in my teams code base recently, very easy to go unnoticed. Without HTML Validation, anyway.</p>
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt;">
<div style="background: #ddd; max-height: 300px; overflow: auto;">
<ol style="background: #ffffff; margin: 0 0 0 2.5em; padding: 0 0 0 5px;">
<li><span style="background: #ffff00;">@helper </span>MyHelper(<span style="color: #0000ff;">string</span> foo)</li>
<li style="background: #f3f3f3;">{</li>
<li>    <span style="color: #008000;">//Good </span></li>
<li style="background: #f3f3f3;">    <span style="background: #ffff00;">@</span>foo</li>
<li style="background: #f3f3f3;">    <span style="color: #008000;">//Not &#8216;bad&#8217;, just not required as the @foo will just render out. &lt;text&gt;&lt;/text&gt; is only needed when Razor can&#8217;t auto-detect</span></li>
<li>    <span style="background: #ffff00;">&lt;text&gt;@</span>foo<span style="background: #ffff00;">&lt;/text&gt;</span></li>
<li style="background: #f3f3f3;">}</li>
<li style="background: #f3f3f3;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></li>
<li>    <span style="background: #ffff00;">@*</span><span style="color: #006400;"> Good </span><span style="background: #ffff00;">*@</span></li>
<li style="background: #f3f3f3;">    <span style="background: #ffff00;">@</span>MyHelper(<span style="color: #a31515;">&#8220;Some Nice Message&#8221;</span>)</li>
<li style="background: #f3f3f3;">    <span style="background: #ffff00;">@*</span><span style="color: #006400;">Bad &#8211; The &lt;text&gt;&lt;/text&gt; gets rendered as HTML to the browser</span><span style="background: #ffff00;">*@</span></li>
<li>    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">text</span><span style="color: #0000ff;">&gt;</span><span style="background: #ffff00;">@</span>MyHelper(<span style="color: #a31515;">&#8220;Some Nice Message&#8221;</span>)<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">text</span><span style="color: #0000ff;">&gt;</span></li>
<li style="background: #f3f3f3;"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></li>
</ol>
</div>
</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F09%2F26%2Fmvc-text-gotchas%2F&amp;title=MVC%20%26%23038%3B%20%26lt%3Btext%26gt%3B%20Gotchas" id="wpa2a_4"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/09/26/mvc-text-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dotLess CSS with .NET 4.0 &amp; MVC3 Setup</title>
		<link>http://www.spikedsoftware.com/2011/07/22/dotless-css-with-net-4-0-mvc3-setup/</link>
		<comments>http://www.spikedsoftware.com/2011/07/22/dotless-css-with-net-4-0-mvc3-setup/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 12:27:03 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=31</guid>
		<description><![CDATA[Very simple. Download dotLess.Core from here&#8230; http://www.dotlesscss.org/ Inside your MVC3 project, open the web.config (not the web.config inside your Views folder). Find a section that looks like this, we want to add to the end of it. &#60;pages&#62; &#60;namespaces&#62; &#60;add namespace=&#34;System.Web.Helpers&#34; &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/07/22/dotless-css-with-net-4-0-mvc3-setup/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Very simple. Download dotLess.Core from here&#8230; <a href="http://www.dotlesscss.org/">http://www.dotlesscss.org/</a></p>
<p>Inside your MVC3 project, open the web.config (<em><strong>not</strong></em> the web.config inside your Views folder).</p>
<p>Find a section that looks like this, we want to add to the end of it.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pages<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;namespaces<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.Helpers&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.Mvc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.Mvc.Ajax&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.Mvc.Html&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.Routing&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;System.Web.WebPages&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/namespaces<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pages<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Add these lines, after the closing <strong>pages</strong> tag.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;httpHandlers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;dotless.Core.LessCssHttpHandler,dotless.Core&quot;</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;*.css&quot;</span> <span style="color: #000066;">verb</span>=<span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/httpHandlers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>I have it set there, to process all CSS files. So I don&#8217;t have to mess around with .less files in VS 2010.</p>
<p>Now, put some test content into any of your projects CSS files&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@brand_color: #4D926F;</span>
&nbsp;
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@brand_color;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@brand_color;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Browse that file on your web server, and it should have executed correctly and your #header and h2 class have the relevant colour assigned to them.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F07%2F22%2Fdotless-css-with-net-4-0-mvc3-setup%2F&amp;title=dotLess%20CSS%20with%20.NET%204.0%20%26%23038%3B%20MVC3%20Setup" id="wpa2a_6"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/07/22/dotless-css-with-net-4-0-mvc3-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion Externals &#8211; Specific Revision</title>
		<link>http://www.spikedsoftware.com/2011/03/04/subversion-externals-specific-revision/</link>
		<comments>http://www.spikedsoftware.com/2011/03/04/subversion-externals-specific-revision/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 09:52:02 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=26</guid>
		<description><![CDATA[Recently, i needed to change one of my externally loaded projects in SVN to a specific revision, turns out this is very easy. Normally, an svn:external could look something like this&#8230; ^/trunk/MySolution/MyProject MyProject To get the MyProject folder at a &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/03/04/subversion-externals-specific-revision/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Recently, i needed to change one of my externally loaded projects in SVN to a specific revision, turns out this is very easy.</p>
<p>Normally, an svn:external could look something like this&#8230;</p>
<p>^/trunk/MySolution/MyProject MyProject</p>
<p>To get the MyProject folder at a specific revision, you just need to add @&lt;RevisionNo&gt;.</p>
<p>^/trunk/MySolution/MyProject@1234 MyProject</p>
<p>Will check out the copy of MyProject at revision 1234.</p>
<p>Fantastic.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F03%2F04%2Fsubversion-externals-specific-revision%2F&amp;title=Subversion%20Externals%20%26%238211%3B%20Specific%20Revision" id="wpa2a_8"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/03/04/subversion-externals-specific-revision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux/Unix Watch command</title>
		<link>http://www.spikedsoftware.com/2011/03/03/linuxunix-watch-command/</link>
		<comments>http://www.spikedsoftware.com/2011/03/03/linuxunix-watch-command/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 18:08:43 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=24</guid>
		<description><![CDATA[Got a log file? Want to have a nearly-live stream of it into a console window? Simples. # watch tail -n30 server.log Change 30, to however many lines you want to show, and Server.log to the file you want to &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/03/03/linuxunix-watch-command/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Got a log file? Want to have a nearly-live stream of it into a console window? Simples.</p>
<pre># watch tail -n30 server.log</pre>
<p>Change 30, to however many lines you want to show, and Server.log to the file you want to view. By default <strong>watch </strong>updates every 2 seconds.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F03%2F03%2Flinuxunix-watch-command%2F&amp;title=Linux%2FUnix%20Watch%20command" id="wpa2a_10"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/03/03/linuxunix-watch-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amazon AWS Vs. Cloud VPS</title>
		<link>http://www.spikedsoftware.com/2011/03/03/amazon-aws-vs-cloud-vps/</link>
		<comments>http://www.spikedsoftware.com/2011/03/03/amazon-aws-vs-cloud-vps/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 17:48:03 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=22</guid>
		<description><![CDATA[I&#8217;ve been swapping servers for yonks, always trying to make my outgoings less and less. I recently moved back to a VPS from a Dedicated Box, because i wasn&#8217;t utilizing the power available and it wasn&#8217;t worth the price i &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/03/03/amazon-aws-vs-cloud-vps/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been swapping servers for yonks, always trying to make my outgoings less and less. I recently moved back to a VPS from a Dedicated Box, because i wasn&#8217;t utilizing the power available and it wasn&#8217;t worth the price i was paying for it.</p>
<p>So on my hunt, i found the cheapest VPS hosting company around, which did exactly what i wanted. As I build a lot of websites/applications, I like to have the ability to create a new machine, let the customer play, then kill it. With as little fuss as possible.</p>
<p>Obviously, when I had a dedicated box this was easy. Clone a VM, job done. Very few (reasonably priced) companies have this functionality and it does seem mostly geared at big companies with lots of money to spend. I am not a big company nor do i have lots of money to spend.</p>
<p>Along came VPS247, based on the UK. Their prices were reasonable, and the product was fairly flexible. You could buy extra &#8216;blocks&#8217;. For example, buying a Single Block would give you 256MB Ram, 1 CPU and 250gb Bandwidth all for a fiver. That&#8217;s a fantastic deal. Good luck running anything that requires a database on that however. So, 2 blocks then. 512MB Ram, 1 CPU, 500GB Bandwidth. Would have liked more ram but 512MB will do. That&#8217;ll be a grand total of £10 a month (before VAT, so £12 all in), which is fantastic. I&#8217;ve been paying ~£50 for too long for essentially this service.</p>
<p>I could have bought another block, which would have given me 768MB of ram, but also extra disk space, extra bandwidth. All of which I don&#8217;t want, which I&#8217;m obviously paying a premium for. I know it&#8217;s only £5, but I don&#8217;t need it that bad. I don&#8217;t like paying for stuff I don&#8217;t use.</p>
<p>So I signed up with VPS247, migrated my entire server to them (this website included), very easy, very simple. Job done.</p>
<p>Then my server went offline, for 27 hours. Randomly. VPS247 had a DDOS attack and it took my server out. Was there any hint of an apology, or compensation? Not a little bit. Time to move onto another host then, one I can trust a little more. It became immediately obvious why this service was so cheap. I should have known better, buy cheap, buy twice.</p>
<p>Once the server was back up and stabilized again, I decided I would move over to someone else. That&#8217;s where Amazon came into it&#8230;</p>
<p>I always considered Amazon&#8217;s hosting a bit of a joke (so very, very, wrong). Amazon sell stuff, and take 8 months to deliver it. Surely they can&#8217;t be in the hosting game? Or if they are, they can&#8217;t be doing very well&#8230;</p>
<p>Turns out, they&#8217;re pretty good. You could say, established. You essentially get a VMWare Server-esque control centre, where you do all your config for your machines (instances), and anything else you require from Amazon. These guys aren&#8217;t just doing Virtual Machines, they are doing online Storage, DNS, Database servers, you name it. And with data-centres all over the world, I was very impressed.</p>
<p>As soon as I found out how impressive it was, I headed on over, and started to read up about it. It confused the living shit out of me. There was so much information (good information), but the best bit, their pricing model.</p>
<p>You pay for exactly what you use. You have 5 Virtual Machines Turned Off? You don&#8217;t pay for them. Turn them on, and pay by the hour. Turn them on and off at your will. Great idea, if you need power-house to number crunch once or twice a week, only use it for that, then only pay for that usage.</p>
<p>Check out their page for the full details, but the EC2 Hosting is immense. With a range of instance types, ranging from Micro, right upto a &#8216;High-Memory Quadruple Extra Large Instance&#8217;. Stupidly long name, but sums it up.</p>
<p>The Micro server has the following specs.</p>
<p>613MB Ram</p>
<p>1 ECU (Burstable upto 2, this is your processor, Amazon calculate CPU power into ECU Units)</p>
<p>32Bit or 64Bit OS</p>
<p>That&#8217;s it, that&#8217;s the spec. You pay for Ram and CPU. The servers rapidly get more powerful, but the Micro one will suit me fine. Only when you create an instance, do you get IP&#8217;s, Disk Space, etc.</p>
<p>That&#8217;s the other thing, you have a look at the extensive collection of pre-built AMI&#8217;s (Amazon&#8217;s Images) that you can just deploy to your server, and tell me anyone else has something like this.</p>
<p>With EC2, using a Micro Server, you get a &#8216;free tier allowance&#8217;. Which only lasts for a year, but gives you lots of free goodies. For example, 30GB of bandwidth (15in, 15out). Which is enough to last me a month!</p>
<p>There is still, another thing. EC2 have 3 types of instances. On-Demand, Reserved and Spot.</p>
<p><strong>On-Demand</strong>, you pay per hour, at a rate of X.</p>
<p><strong>Reserved</strong>, you pay a large chunk up front, end reserve your instance for 1/3years. You can make good savings here.</p>
<p><strong>Spot</strong>, you bid for the server. For example, an On-Demand Micro Instance, is $0.025 an hour. With a spot instance, you can pay alot less than this. At the time of writing this article, i&#8217;m paying $0.009 per hour.</p>
<p>I&#8217;ve gone completely against advice, and I&#8217;m using Spot. I&#8217;ve set a maximum price, of $0.025 an hour, if/when the price exceeds this, my instance will be deleted. Why did I do this?</p>
<p>Well, the data i care about, is stored on a seperate drive, so if the machine goes, it&#8217;s a 5 minute job to replace it. But the biggest reason, it&#8217;s over <strong>50%</strong> cheaper. Buy my current estimates, this server will cost me $9 a month. Which is £5.50 in the current market.</p>
<p>I don&#8217;t recommend using Spot for anything you care about (and don&#8217;t have backups), but it&#8217;s an amazing idea. The chances of my Spot being deleted are slim, looking at the last 3 months of bid pricing, it&#8217;s ranged between $0.008 and $0.015, which is still far less than the $0.025 you pay for the on-demand instance.</p>
<p>But what I do recommend, is Amazon and their hosting. Truly amazing, and incredibly flexible.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F03%2F03%2Famazon-aws-vs-cloud-vps%2F&amp;title=Amazon%20AWS%20Vs.%20Cloud%20VPS" id="wpa2a_12"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/03/03/amazon-aws-vs-cloud-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Pie, Instant CSS3 for IE6, 7 and 8.</title>
		<link>http://www.spikedsoftware.com/2011/03/02/css3-pie-instant-css3-for-ie6-ie7-ie8/</link>
		<comments>http://www.spikedsoftware.com/2011/03/02/css3-pie-instant-css3-for-ie6-ie7-ie8/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 00:13:03 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=10</guid>
		<description><![CDATA[﻿Reading an article on my commute home this evening about CSS3 and how many super-cool features it had and that it was a shame more developers weren&#8217;t using it, purely because of IE6/7/8 and their lack of implementation. Now fair &#8230;<p class="read-more"><a href="http://www.spikedsoftware.com/2011/03/02/css3-pie-instant-css3-for-ie6-ie7-ie8/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>﻿Reading an article on my commute home this evening about CSS3 and how many super-cool features it had and that it was a shame more developers weren&#8217;t using it, purely because of IE6/7/8 and their lack of implementation. Now fair enough, it&#8217;s not 6&#8242;s fault, or 7&#8242;s really, but Microsoft should have implemented this stuff into 8. Either way, they didn&#8217;t.</p>
<p>A lot of developers (myself included) refused to use CSS3 because of the lack of support. What is the point in burning several hours/days/weeks(/months in IE6&#8242;s case) implementing stuff for the smaller portion of browsers? Yes it might look amazing, but if 80% of your visits are Internet Explorer users, you&#8217;ve wasted your time. Until now, or at least July 2010.</p>
<p>Jason Johnston over at css3pie.com has been working hard on a CSS &#8216;script&#8217; for IE 6, 7 and 8 which helps implement the missing features. There are two versions, a .htc file (best) and a .js file. The JS file does the same job, however it does it once the page has finished, so you will see a flicker between a square box and a rounded box. The htc file, will be loaded and processed during render, in turn minimizing any flicker. Check out <a title="CSS3 Pie" href="http://www.css3pie.com">css3pie</a> for more information.</p>
<p>Let us see just how easy it is to use. I have a paragraph tag and i would like it to have a red rounded corner border and a drop shadow. This should be fun.</p>
<p>Simple html page, see markup below. All should be fairly clear and obvious.</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;CSS Pie, can IE really work in a reasonable manor?&lt;/title&gt;
	&lt;style type="text/css"&gt;
	p
	{
		border: 1px solid red;
		width: 150px;
		padding: 5px;
                background: white;

		/*Rounded Corners*/
		-webkit-border-radius: 8px;
		-moz-border-radius: 8px;
		border-radius: 8px;

		/*Drop Shadow*/
		-webkit-box-shadow: black 0px 5px 6px;
		-moz-box-shadow: black 0px 5px 6px;
		box-shadow: black 0px 5px 6px;
	}
	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;p&gt;Will this paragraph, be inside a nice rounded cornered box, with a bit of drop shadow? You bet, in everything except IE.&lt;/p&gt;

	&lt;p&gt;This paragraph however, will be pretty (ish) in every browser from IE6 and up. Awesome.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Now, let&#8217;s run it in IE and Chrome, see which one fails.</p>
<p><a href="http://www.spikedsoftware.com/wp-content/uploads/2011/03/Comparison.png"><img class="aligncenter size-medium wp-image-12" title="IE 8 &amp; Chrome Comparison" src="http://www.spikedsoftware.com/wp-content/uploads/2011/03/Comparison-300x215.png" alt="" width="300" height="215" /></a></p>
<p>As you can see, IE has clearly failed, because it hasn&#8217;t implemented the CSS3 rounded corners or drop shadow. This is where CSS3Pie shines through. Let&#8217;s add one line into the end of the <strong>p</strong> CSS rule in. Which will make it appear like so&#8230;</p>
<pre>	p
	{
		border: 1px solid red;
		width: 150px;
		padding: 5px;
                background: white;

		/*Rounded Corners*/
		-webkit-border-radius: 8px;
		-moz-border-radius: 8px;
		border-radius: 8px;

		/*Drop Shadow*/
		-webkit-box-shadow: black 0px 5px 6px;
		-moz-box-shadow: black 0px 5px 6px;
		box-shadow: black 0px 5px 6px;                

		/*IE Specific*/
		behavior: url(PIE.htc);
	}</pre>
<p>Notice the &#8216;behavior&#8217; rule. This is what tells IE to go and run this script, which will process what it needs to. Now if we re-fresh our page, we can see that IE and Chrome are on a level pegging, both displaying nice rounded boxes, both with a drop shadow on them.</p>
<p><a href="http://www.spikedsoftware.com/wp-content/uploads/2011/03/Comparison-after.png"><img class="aligncenter size-medium wp-image-20" title="IE8 &amp; Chrome Comparison (With CSS3Pie)" src="http://www.spikedsoftware.com/wp-content/uploads/2011/03/Comparison-after-300x215.png" alt="" width="300" height="215" /></a>Et voila. Amazingly simple, amazingly easy.</p>
<p>Mega kudos goes out to css3pie.com, go over there and download it already.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F03%2F02%2Fcss3-pie-instant-css3-for-ie6-ie7-ie8%2F&amp;title=CSS3%20Pie%2C%20Instant%20CSS3%20for%20IE6%2C%207%20and%208." id="wpa2a_14"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/03/02/css3-pie-instant-css3-for-ie6-ie7-ie8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back online!</title>
		<link>http://www.spikedsoftware.com/2011/03/01/back-online/</link>
		<comments>http://www.spikedsoftware.com/2011/03/01/back-online/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 23:15:15 +0000</pubDate>
		<dc:creator>Dean Thomas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.spikedsoftware.com/?p=6</guid>
		<description><![CDATA[SpikedSoftware is back online and running! After a recent move from a dedicated server (far too much money!), now running on a temporary VPS with an eye on Amazon&#8217;s EC2 which comes with free micro server usage. Interesting.]]></description>
			<content:encoded><![CDATA[<p>SpikedSoftware is back online and running! After a recent move from a dedicated server (far too much money!), now running on a temporary VPS with an eye on Amazon&#8217;s EC2 which comes with free micro server usage. Interesting.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.spikedsoftware.com%2F2011%2F03%2F01%2Fback-online%2F&amp;title=Back%20online%21" id="wpa2a_16"><img src="http://www.spikedsoftware.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.spikedsoftware.com/2011/03/01/back-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

