<?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>refresherate.com &#187; Ruby</title>
	<atom:link href="http://www.refresherate.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.refresherate.com</link>
	<description>An invigorating splash of web geek goodness.</description>
	<lastBuildDate>Fri, 18 Nov 2011 15:16:56 +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>Fixing Error: lib/active_support/ memoizable.rb:32: [BUG] Segmentation fault</title>
		<link>http://www.refresherate.com/2010/09/08/fixing-error-libactive_support-memoizable-rb32-bug-segmentation-fault/</link>
		<comments>http://www.refresherate.com/2010/09/08/fixing-error-libactive_support-memoizable-rb32-bug-segmentation-fault/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 18:07:15 +0000</pubDate>
		<dc:creator>Sheldon Finlay</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Server Admin]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.refresherate.com/?p=217</guid>
		<description><![CDATA[/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/memoizable.rb:32: [BUG] Segmentation fault ruby 1.8.7 (2009-04-08 patchlevel 160) [x86_64-linux] Aborted (core dumped) Here&#8217;s a fun error I kept knocking up against when trying to run migrations, rake tasks, or script/console on a server here. Before you start uninstalling gems, reinstalling ruby, etc. check and see if you are on a CPanel server. If you [...]]]></description>
			<content:encoded><![CDATA[<pre>
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/memoizable.rb:32: [BUG] Segmentation fault
ruby 1.8.7 (2009-04-08 patchlevel 160) [x86_64-linux]

Aborted (core dumped)
</pre>
<p>Here&#8217;s a fun error I kept knocking up against when trying to run migrations, rake tasks, or script/console on a server here. Before you start uninstalling gems, reinstalling ruby, etc. check and see if you are on a CPanel server. If you are, most likely shell fork bomb protection is enabled in CPanel&#8217;s WHM.  Shell fork bomb protection severely limits the amount of memory that shell users can access. Unfortunately that protection can prevent you from running legitimate processes, like rake tasks.</p>
<p>If you are the admin of the server, just log into the WHM, and disable shell fork bomb protection, then open a new shell and try your commands again. You do need to log out of the shell and open a new shell for the SFBP restriction to be lifted.</p>
<p>Of course, if you are on a shared server and not the admin, you might be out of luck. It&#8217;s doubtful that the server admin will disable this protection since it does serve a useful function, mainly preventing users from running reckless scripts that could take the whole server down. I haven&#8217;t looked into it, but there may be a way to configure CPanel to allow a higher limit, or opt-out certain users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refresherate.com/2010/09/08/fixing-error-libactive_support-memoizable-rb32-bug-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passenger Phusion/mod_rails System Tools</title>
		<link>http://www.refresherate.com/2009/02/08/passenger-phusion-aka-mod_rails-system-tools/</link>
		<comments>http://www.refresherate.com/2009/02/08/passenger-phusion-aka-mod_rails-system-tools/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 05:24:42 +0000</pubDate>
		<dc:creator>Sheldon Finlay</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Server Admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[passenger]]></category>

		<guid isPermaLink="false">http://www.refresherate.com/?p=94</guid>
		<description><![CDATA[Passenger has really become the gold standard in easy deployment of Ruby on Rails apps. It&#8217;s amazing simple to configure and quite efficient. In addition to the installation tool, there are a couple small analysis/maintenance tools that are included for giving you some insight into how Passenger is running on your system. You don&#8217;t hear [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://modrails.com">Passenger</a> has really become the gold standard in easy deployment of Ruby on Rails apps. It&#8217;s amazing simple to configure and quite efficient. In addition to the installation tool, there are a couple small analysis/maintenance tools that are included for giving you some insight into how Passenger is running on your system. You don&#8217;t hear much talk about them and I quickly overlooked them at first.</p>
<p><tt>passenger-memory-stats</tt></p>
<p>This tool allows you to see a display of the real-time memory usage for Passenger and Apache.</p>
<p><tt>passenger-status</tt></p>
<p>This tool shows you what your current passenger stats are and what apps are currently running.</p>
<p>You can read more about both of these in the <a href="http://http://www.modrails.com/documentation/Users%20guide.html#_analysis_and_system_maintenance_tools">Passenger documention</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refresherate.com/2009/02/08/passenger-phusion-aka-mod_rails-system-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scaling Rails Screencasts</title>
		<link>http://www.refresherate.com/2009/02/06/scaling-rails-screencasts/</link>
		<comments>http://www.refresherate.com/2009/02/06/scaling-rails-screencasts/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:55:43 +0000</pubDate>
		<dc:creator>Sheldon Finlay</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[scaling]]></category>

		<guid isPermaLink="false">http://www.refresherate.com/?p=81</guid>
		<description><![CDATA[It doesn&#8217;t matter if your web site gets 10 hits a day or 10 million hits a day. It&#8217;s a good coder who plans for future growth and anticipates how a site will scale as traffic and load increases. Gregg Pollock of Rails Envy has an excellent (free!) 5 part series up at RailsLab. Definitely [...]]]></description>
			<content:encoded><![CDATA[<p>It doesn&#8217;t matter if your web site gets 10 hits a day or 10 million hits a day. It&#8217;s a good coder who plans for future growth and anticipates how a site will scale as traffic and load increases. Gregg Pollock of <a href="http://www.railsenvy.com/">Rails Envy</a> has an excellent (free!) <a href="http://railslab.newrelic.com/scaling-rails">5 part series </a>up at RailsLab. Definitely worth checking out. Gregg also has a (not free) <a href="http://envycasts.com/products/scaling-ruby">Scaling Ruby</a> screencast on the <a href="http://envycasts.com/">EnvyCasts</a> web site. I haven&#8217;t watch it, but I have watched the <a href="http://envycasts.com/products/advanced-activerecord">Advanced ActiveRecord</a> screencast and it was both informative and entertaining. Gregg and Jason make this stuff fun! So check them out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refresherate.com/2009/02/06/scaling-rails-screencasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command Line Cheatsheets</title>
		<link>http://www.refresherate.com/2009/01/19/command-line-cheatsheets/</link>
		<comments>http://www.refresherate.com/2009/01/19/command-line-cheatsheets/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 02:06:08 +0000</pubDate>
		<dc:creator>Sheldon Finlay</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.refresherate.com/?p=31</guid>
		<description><![CDATA[Running with the cheatsheet theme, if you are running OS X or any is with a command line, I highly recommend installing the command line cheatsheets from errtheblog.com. They are great when you just need a quick syntax check on how to run a certain MySQL command or work with a particular library.]]></description>
			<content:encoded><![CDATA[<p>Running with the cheatsheet theme, if you are running OS X or any is with a command line, I highly recommend installing the command line cheatsheets from <a href="http://cheat.errtheblog.com/">errtheblog.com</a>. They are great when you just need a quick syntax check on how to run a certain MySQL command or work with a particular library.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refresherate.com/2009/01/19/command-line-cheatsheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

