<?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>InstaCarma Blog &#187; ruby</title>
	<atom:link href="http://instacarma.com/blog/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Sat, 04 Sep 2010 16:06:42 +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>RailsCarma &#8212; Partnership Opportunity</title>
		<link>http://instacarma.com/blog/company-updates/railscarma-partnership-opportunity/</link>
		<comments>http://instacarma.com/blog/company-updates/railscarma-partnership-opportunity/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 16:37:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company Updates]]></category>
		<category><![CDATA[offshore]]></category>
		<category><![CDATA[outsourced]]></category>
		<category><![CDATA[partner]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1088</guid>
		<description><![CDATA[As you all might be knowing, we had launched a new service offering under the brand name RailsCarma few weeks back. RailsCarma specializes in offshore Ruby On Rails Development. You can read more about it here. You can contact us at sales@railscarma.com for any of your Ruby On Rails related needs. We can work out [...]]]></description>
			<content:encoded><![CDATA[<p>As you all might be knowing, we had launched a new service offering under the brand name <a href="http://railscarma.com">RailsCarma</a> few weeks back.<br />
RailsCarma specializes in <strong>offshore Ruby On Rails Development</strong>. You can read more about it <a href="http://instacarma.com/blog/company-updates/railscarma-outsourced-ruby-on-rails-development/">here</a>.</p>
<p>You can contact us at sales@railscarma.com for any of your Ruby On Rails related needs. We can work out a deal on an hourly, monthly or on a per project basis.</p>
<p>Besides this, we are also offering a couple of partnership opportunities as given below : </p>
<p>A. <strong>White-label partnership</strong></p>
<p>RailsCarma services can be <strong>resold by you under your own brand</strong>. Through this initiative, we aim to make it possible for you to easily add Ruby on Rails web development, which has huge demand right now, to your portfolio of services. With our services and your user base, we can both profit.</p>
<p>B. <strong>Become an affiliate</strong></p>
<p>If anyone you know has any Ruby On Rails related requirements then you could forward them to us. We can work together on a <strong>profit sharing</strong> basis on such projects.</p>
<p>Let us know if you are interested or if you have any queries. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/company-updates/railscarma-partnership-opportunity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RailsCarma &#8211; Outsourced Ruby On Rails Development</title>
		<link>http://instacarma.com/blog/company-updates/railscarma-outsourced-ruby-on-rails-development/</link>
		<comments>http://instacarma.com/blog/company-updates/railscarma-outsourced-ruby-on-rails-development/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 19:37:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company Updates]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railscarma]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1032</guid>
		<description><![CDATA[InstaCarma launched a new service offering under the brand name &#8216;RailsCarma&#8217; recently. RailsCarma (http://railscarma.com) specializes in Outsourced Ruby On Rails Development. With this venture we aim to provide an end-to-end solution which includes development, deployment, monitoring and management, including scaling support. We have been associated with the internet services industry for close to 7 years [...]]]></description>
			<content:encoded><![CDATA[<p> InstaCarma launched a new service offering under the brand  name &#8216;RailsCarma&#8217; recently. <a href="http://railscarma.com">RailsCarma</a> (http://railscarma.com) specializes in <strong>Outsourced Ruby On Rails Development</strong>. With this venture we aim to provide an  end-to-end solution which includes development, deployment,  monitoring and  management, including scaling support.</p>
<p>We have been associated with   the internet services industry for close to 7 years now, providing <strong>technical support </strong>and <strong>server management</strong> services to web hosting companies and datacenters across the globe. Having started providing support services to <strong>Ruby On Rails</strong> hosting companies way back in 2006 when it was the very beginning of RoR  which is now one of the most sought after web development platforms, it was a logical step for us to venture into this area.</p>
<p>One of our major turning points was hiring<strong> Neeraj Chowdhary</strong>, who now heads project delivery at our organization. Neeraj is one of the best in the industry with extensive experience in Ruby on Rails and agile development. He has been in this industry since the very beginning and his profile boasts of some extra-ordinary projects. Soon after he was hired we started receiving some great feedback from our projects and we knew we had a special thing going. We then went about integrating the development wing with our already established Ruby on Rails server management and support division, and this became <strong>RailsCarma</strong>.</p>
<p>We are looking forward to enter strategic partnerships with hosting and development companies.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/company-updates/railscarma-outsourced-ruby-on-rails-development/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>FastCGI : 500 internal server error</title>
		<link>http://instacarma.com/blog/technical/fastcgi-500-internal-server-error/</link>
		<comments>http://instacarma.com/blog/technical/fastcgi-500-internal-server-error/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 17:47:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=438</guid>
		<description><![CDATA[Issue : The site was throwing up &#8217;500 internal server error&#8217; and the following error appeared in the apache error logs. FastCGI: incomplete headers (0 bytes) received from server &#8220;/home/httpd/vhosts/default/fcgi-bin/phpfcgi&#8221; Fix : If you are getting  this error then it means that no headers are being returned when a request gets through to dispatch.fcgi Possible [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue :</strong></p>
<p>The site was throwing up &#8217;500 internal server error&#8217; and the following error appeared in the apache error logs.</p>
<p><em>FastCGI: incomplete headers (0 bytes) received from server &#8220;/home/httpd/vhosts/default/fcgi-bin/phpfcgi&#8221;</em></p>
<p><strong>Fix :</strong></p>
<p>If you are getting  this error then it means that no headers are being returned when a request gets through to dispatch.fcgi</p>
<p>Possible reasons (and solutions) for this error are:</p>
<p><strong>Session files are not configured correctly</strong> &#8211; This usually happens when moving between different server types. Delete the sessions in your <em>/tmp</em> folder. Execute the following command  and try again.</p>
<blockquote><p>killall -usr1 dispatch.fcgi</p></blockquote>
<p><strong>Missing AddHandler &#8211; </strong>The error occurs when the AddHandler given below is missing from httpd.conf AND and the user doesn&#8217;t have it in his app&#8217;s <em>.htaccess</em> either.</p>
<blockquote>
<pre>AddHandler fastcgi-script .fcgi</pre>
</blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/fastcgi-500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: SystemExit</title>
		<link>http://instacarma.com/blog/technical/error-systemexit/</link>
		<comments>http://instacarma.com/blog/technical/error-systemexit/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 17:38:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=431</guid>
		<description><![CDATA[Error : SystemExit (Define INLINEDIR or HOME in your environment and try again): /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.7.0/lib/inline.rb:93:in `abort&#8217; Fix : Add the following line in the environment.rb file : ENV['HOME'] = &#8216;/home/username&#8217;]]></description>
			<content:encoded><![CDATA[<p><strong>Error : </strong></p>
<p>SystemExit (Define INLINEDIR or HOME in your environment and try again):<br />
/usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.7.0/lib/inline.rb:93:in `abort&#8217;</p>
<p><strong>Fix :</strong></p>
<p>Add the following line in the environment.rb file :</p>
<p>ENV['HOME'] = &#8216;/home/username&#8217;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/error-systemexit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with outdated RubyGems</title>
		<link>http://instacarma.com/blog/technical/problem-with-outdated-rubygems/</link>
		<comments>http://instacarma.com/blog/technical/problem-with-outdated-rubygems/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:30:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=404</guid>
		<description><![CDATA[Error : Rails requires RubyGems &#62;= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again . Fix : As it is clear from the error message, updating the RubyGems will resolve this issue. Reinstall the ruby gems using the following commands: gem install rubygems-update update_rubygems]]></description>
			<content:encoded><![CDATA[<p><strong>Error :</strong></p>
<p><em>Rails requires RubyGems &gt;= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again .</em></p>
<p><strong>Fix :</strong></p>
<p>As it is clear from the error message, updating the RubyGems will resolve this issue.<br />
Reinstall the ruby gems using the following commands:</p>
<blockquote><p>gem install rubygems-update<br />
update_rubygems</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/problem-with-outdated-rubygems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error : Gem::SourceIndex#search</title>
		<link>http://instacarma.com/blog/technical/error-gemsourceindexsearch/</link>
		<comments>http://instacarma.com/blog/technical/error-gemsourceindexsearch/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:26:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=401</guid>
		<description><![CDATA[Error : boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated Fix : There is a call to Gem Source Index in  boot.rb: &#8216;Gem.cache.search&#8217; Just replace &#8216;search&#8217; with &#8216;find_name&#8217; . It should look something like this : rails_gem = Gem.cache.find_name(`rails&#8217;,&#8221;=#{rails_gem_version}.0&#8243;).sort_by { &#124;g&#124; g.version.version}.last]]></description>
			<content:encoded><![CDATA[<p><strong>Error :</strong></p>
<p><em>boot.rb:20:Warning: Gem::SourceIndex#search support for String<br />
patterns is deprecated<br />
</em><br />
<strong>Fix</strong> :</p>
<p>There is a call to <em>Gem Source Index</em> in  boot.rb:</p>
<p>&#8216;Gem.cache.search&#8217;</p>
<p>Just replace &#8216;search&#8217; with &#8216;find_name&#8217; .</p>
<p>It should look something like this :</p>
<p>rails_gem = Gem.cache.find_name(`rails&#8217;,&#8221;=#{rails_gem_version}.0&#8243;).sort_by { |g| g.version.version}.last</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/error-gemsourceindexsearch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error while installing RubyGems</title>
		<link>http://instacarma.com/blog/technical/error-while-installing-rubygems/</link>
		<comments>http://instacarma.com/blog/technical/error-while-installing-rubygems/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:22:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=398</guid>
		<description><![CDATA[Error : /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require&#8217;: no such file to load &#8212; zlib (LoadError) Fix : Ruby-zlib should be built into Ruby 1.8 Build ruby-zlib manually. wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz tar xvzf ruby-zlib-0.6.0.tar.gz cd ruby-zlib-0.6.0 ruby extconf.rb make make install Now, reinstall Ruby Gems from source.]]></description>
			<content:encoded><![CDATA[<p><strong>Error</strong> :<br />
<em><br />
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require&#8217;: no such file to load &#8212; zlib (LoadError)</em></p>
<p><strong>Fix</strong> :</p>
<p>Ruby-zlib should be built into Ruby 1.8<br />
Build ruby-zlib manually.</p>
<blockquote><p>wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz<br />
tar xvzf ruby-zlib-0.6.0.tar.gz<br />
cd ruby-zlib-0.6.0<br />
ruby extconf.rb<br />
make<br />
make install</p></blockquote>
<p>Now, reinstall Ruby Gems from source.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/error-while-installing-rubygems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Oniguruma and textpow</title>
		<link>http://instacarma.com/blog/technical/installing-oniguruma-and-textpow/</link>
		<comments>http://instacarma.com/blog/technical/installing-oniguruma-and-textpow/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 01:25:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=395</guid>
		<description><![CDATA[Issue : Sometimes, simply installing Oniguruma gem using gem install might not work well. Fix: To get around this , do the following : wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.1.tar.gz tar -zxvf onig-5.9.1.tar.gz cd onig-5.9.1 ./configure Now , you can install the gems using : gem install oniguruma gem install textpow]]></description>
			<content:encoded><![CDATA[<p><strong>Issue :</strong></p>
<p>Sometimes, simply installing <em>Oniguruma</em> gem using <em>gem install</em> might not work well.</p>
<p><strong>Fix: </strong></p>
<p>To get around this , do the following :</p>
<blockquote><p><code>wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.1.tar.gz<br />
tar -zxvf onig-5.9.1.tar.gz<br />
cd onig-5.9.1<br />
./configure<br />
</code></p></blockquote>
<p>Now , you can install the gems using :</p>
<blockquote><p><code>gem install oniguruma<br />
gem install textpow</code></p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/installing-oniguruma-and-textpow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger (a.k.a Mod_Rails)</title>
		<link>http://instacarma.com/blog/technical/phusion-passenger-aka-mod_rails/</link>
		<comments>http://instacarma.com/blog/technical/phusion-passenger-aka-mod_rails/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 16:32:39 +0000</pubDate>
		<dc:creator>Tech</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=182</guid>
		<description><![CDATA[Have you ever come across a term called Mod_rails or passenger while visiting a ruby on rails site ? What is mod_rails ? Mod_rails is an Apache module that enables the Ruby on Rails application to work with Apache for delivering high performance. Various tests have proven that passenger apps are faster,reliable and robust when [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever come across a term called <strong>Mod_rails</strong> or <strong>passenge</strong>r while visiting a ruby on rails site ?<br />
<strong><br />
What is mod_rails ?</strong></p>
<p>Mod_rails is an Apache module that enables the Ruby on Rails application to work with Apache for delivering high performance. Various tests have proven that passenger apps are faster,reliable and robust when compared to FastCGI/Mongrel served apps.</p>
<p><strong>How passenger apps provide higher performance than a Mongrel/FastCGI application ?</strong></p>
<p>Passenger with Ruby Enterprise edition is significantly better in terms of Virtual Memory Size and there by offers a much more stable performance than its competitors. Moreover passenger process get spawned only when a hit comes for a particular URL and it dies after a sometime.</p>
<p><strong>How to enable passenger of an application and how to restart it ?</strong></p>
<p>Its simple.. Just add the following code to the vhost settings of the domain</p>
<p>RailsBaseURI /</p>
<p>and for restarting passenger just create a file called restart.txt under the tmp directory of the application.. like this</p>
<blockquote><p>#[yourapp] touch tmp/restart.txt</p></blockquote>
<p>*    In the newer version of passenger the restart.txt file doesn&#8217;t get removed. Instead , the passenger checks the time stamp of the restart.txt and restarts automatically.</p>
<p><strong>Is Mod_rails a right choice for shared hosting environment ?</strong></p>
<p>YES, as we all know mod_rails instances die after a while , saves a lot of memory when compared to mongrel which stay running forever. Also, an improved architectural framework for passenger manages the VM utilization effectively.<br />
<strong><br />
Why Ruby Enterprise Edition for Passenger ?</strong></p>
<p>Ruby enterprise edition is a server oriented version of ruby interpreter and it has  advanced memory management features than ordinary Ruby interpreter.</p>
<p><strong>How Apache recognizes passenger ?</strong></p>
<p>We need to load the passenger module by manually including it in the Apache config file.</p>
<p>Add the following lines</p>
<blockquote><p>LoadModule passenger_module /opt/rubyenterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/passenger-2.1.3/ext/apache2/mod_passenger.so</p></blockquote>
<blockquote><p>PassengerRoot /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/passenger-2.1.3</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://instacarma.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://instacarma.com/blog/technical/phusion-passenger-aka-mod_rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
