<?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>Prateek Dayal &#187; mongrel</title>
	<atom:link href="http://www.prateekdayal.net/category/mongrel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prateekdayal.net</link>
	<description>Ruby on Rails + Web 2.0 + Life :)</description>
	<lastBuildDate>Fri, 20 May 2011 16:13:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Hosting Review : VpsFarm.com</title>
		<link>http://www.prateekdayal.net/2008/05/13/hosting-review-vpsfarmcom/</link>
		<comments>http://www.prateekdayal.net/2008/05/13/hosting-review-vpsfarmcom/#comments</comments>
		<pubDate>Tue, 13 May 2008 20:11:08 +0000</pubDate>
		<dc:creator>Prateek Dayal</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vpsfarm]]></category>
		<category><![CDATA[vpsfarm.com]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://prateekdayal.net/blog/?p=67</guid>
		<description><![CDATA[I had written sometime back about why shared hosting is bad for your startup and recommended VPS hosting for any serious web venture. Today, as promised in that post, I am writing a review of VPSFarm.com. VPSFarm is based out of US and while researching for VPS provieders, I found them to be pretty good. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="http://www.vpsfarm.com/vpsfarm/images/vpsFarm-logo.gif" alt="" width="382" height="121" /></p>
<p>I had written sometime back about why <a href="http://prateekdayal.net/blog/2008/04/16/why-shared-hosting-is-bad-for-your-startup/" >shared hosting is bad</a> for your startup and recommended VPS hosting for any serious web venture. Today, as promised in that post, I am writing a review of <a href="http://vpsfarm.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/vpsfarm.com');">VPSFarm.com</a>. VPSFarm is based out of US and while researching for VPS provieders, I found them to be pretty good. I considered slicehost and other popular VPS choices as well as some cheap dedicated boxes from layeredtech.com etc. This is what I did not like about them</p>
<ul>
<li>Most VPS providers take some time to setup your VPS. This should be mostly fine but there is a delay nevertheless</li>
<li>Providers like Slicehost etc have a waiting time before you can get your VPS. I think after signing up, it took a few weeks before I got an email.</li>
<li>Cheap dedicated boxes have older processors which may be ok for you but I was not so sure about that. Another thing is that they have a regular hard drive and no <a href="http://en.wikipedia.org/wiki/Redundant_array_of_independent_disks" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');">RAID</a> protection. Even with backups, I think its good to have RAID so that your server does not go down with a drive failure.</li>
<li>I found the RAM being offered everywhere else to be almost half for the same price.</li>
</ul>
<p><!--adsense--></p>
<p>I did not find many reviews of VPSFarm when I was trying to signup and I already had not so great experience with two providers before so I was a little concerned. However I went through their docs online and finally ordered. Somethings that I really liked about them then were</p>
<ul>
<li><span style="color: #000000;">Xen based Virtual Private Servers (from my research I found out that xen is the preferred way)</span></li>
<li>No setup time or fees or annual contracts (pay every month by paypal)</li>
<li>Choice of operating systems (I picked debian as ubuntu was and is still missing)</li>
<li>You can install/reboot/halt VPS using a web based control panel</li>
<li>Bandwidth is unmetered (speed depends on your plan) and RAM/price ratio is awesome</li>
<li>RAID 10 for storage</li>
</ul>
<p>Something that may be of concern to some people are</p>
<ul>
<li>Only one IP address assigned. As far as I know, you cannot currently buy more. This is ok in general but not good  if you want to host DNS. I however recommend <a href="http://prateekdayal.net/blog/2008/04/15/how-to-outsource-on-small-budget/" >outsourcing</a> DNS and emai.</li>
<li>Its not possible to move to a higher or lower plan without some kind of downtime or manually setting up the new VPS. If you are ok with downtime however, they would help you move.</li>
</ul>
<p>So far (last 8 months) my experience with VPSFarm has been awesome. Only once my VPS went down for some 20 minutes but I got an email from them immediately and the issue was fixed. There was once a network outage but it was automatically restored in a minute.  I started out with XEN 1024 plan and I am currently on XEN 2048 plan.</p>
<p><!--adsense--></p>
<p>Do give VPSFarm a try and let us all know your experience too.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.prateekdayal.net%2F2008%2F05%2F13%2Fhosting-review-vpsfarmcom%2F';
  addthis_title  = 'Hosting+Review+%3A+VpsFarm.com';
  addthis_pub    = 'prateek';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.prateekdayal.net/2008/05/13/hosting-review-vpsfarmcom/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Active record validation with mongrel_upload_progress</title>
		<link>http://www.prateekdayal.net/2007/08/19/active-record-validation-with-mongrel_upload_progress/</link>
		<comments>http://www.prateekdayal.net/2007/08/19/active-record-validation-with-mongrel_upload_progress/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 15:38:21 +0000</pubDate>
		<dc:creator>Prateek Dayal</dc:creator>
				<category><![CDATA[activerecord]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[upload_progress]]></category>

		<guid isPermaLink="false">http://prateekdayal.net/blog/?p=10</guid>
		<description><![CDATA[The active record validation is finally working with mongrel_upload_progress &#8230; yayee. To read more about what the issue was, follow this post I will try to explain my setup and then the solution to the problem I am trying to watch /song/upload with mongrel_upload_progress plugin. Inside /song/upload, I save the song if the validation passes [...]]]></description>
			<content:encoded><![CDATA[<p>The active record validation is finally working with mongrel_upload_progress &#8230; yayee. To read more about what the issue was, follow <a href="http://prateekdayal.net/blog/?p=5" >this post</a></p>
<p>I will try to explain my setup and then the solution to the problem</p>
<p>I am trying to watch /song/upload with mongrel_upload_progress plugin. Inside /song/upload, I save the song if the validation passes (such as file size, title present etc) otherwise I want to display some errors on the upload page. The problem is that since the page is not reloaded, the  <code> &lt;%=error_messages_for :song %&gt; </code>  does not work.</p>
<p>I employed a simple solution to fix this. I put <code> &lt;%= error_messages_for :song %&gt;  </code> in a div like this</p>
<p><code>  &lt;div id="err_msg" &gt;&lt;%="error_messages_for"&gt;&lt;/div&gt;</code></p>
<p>and in the song_controller/upload method, if the validation fails, I do the following</p>
<p><code><br />
responds_to_parent do # execute the redirect in the main window<br />
  render :update do |page|<br />
    page[:err_msg].replace_html(error_messages_for("song"))<br />
  end<br />
end<br />
</code></p>
<p>This displays the error messages for the upload even without the page being refreshed.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.prateekdayal.net%2F2007%2F08%2F19%2Factive-record-validation-with-mongrel_upload_progress%2F';
  addthis_title  = 'Active+record+validation+with+mongrel_upload_progress';
  addthis_pub    = 'prateek';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.prateekdayal.net/2007/08/19/active-record-validation-with-mongrel_upload_progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active record and Mongrel Upload Progress Plugin</title>
		<link>http://www.prateekdayal.net/2007/07/24/active-record-and-mongrel-upload-progress-plugin/</link>
		<comments>http://www.prateekdayal.net/2007/07/24/active-record-and-mongrel-upload-progress-plugin/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 05:12:13 +0000</pubDate>
		<dc:creator>Prateek Dayal</dc:creator>
				<category><![CDATA[mongrel]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[upload_progress]]></category>

		<guid isPermaLink="false">http://prateekdayal.net/blog/?p=5</guid>
		<description><![CDATA[Muziboo is a pretty upload intensive website. Also there is the issue of resampling the MP3 file so that the flash player plays it well (Frequencies not multiple of 11025 Hz are &#8216;chipmunked&#8217; in flash). I started looking into the mongrel_upload_progress plugin yesterday and found this demo to get me started. It works fine and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://muziboo.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/muziboo.com');">Muziboo</a> is a pretty upload intensive website. Also there is the issue of  resampling the MP3 file so that  the flash player plays it well (Frequencies not multiple of 11025 Hz are &#8216;chipmunked&#8217; in flash). I started looking into the mongrel_upload_progress plugin yesterday and found <a href="http://itblog.mcgeecorp.com/2007/5/15/mongrel-upload-progress-demo" onclick="javascript:pageTracker._trackPageview('/outbound/article/itblog.mcgeecorp.com');">this</a> demo to get me started. It works fine and I could successfully integrate it with my upload page.</p>
<p>However there is an issue. What happens if there is an activerecord validation error. In that case the error messages have to be shown back on the upload page. This is something that I have not been able to figure out yet. The upload controller uses a <em>responds_to_parent </em>function and I don&#8217;t understand it fully yet. If I do not reload the page, the page won&#8217;t stop polling mongrel for upload progress. If I do reload the page, the error messages go away :(</p>
<p>I will try to figure this out soon and will post the progress here &#8230;</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.prateekdayal.net%2F2007%2F07%2F24%2Factive-record-and-mongrel-upload-progress-plugin%2F';
  addthis_title  = 'Active+record+and+Mongrel+Upload+Progress+Plugin';
  addthis_pub    = 'prateek';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.prateekdayal.net/2007/07/24/active-record-and-mongrel-upload-progress-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

