<?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>andr3w.net &#187; rails</title>
	<atom:link href="http://andr3w.net/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://andr3w.net</link>
	<description>amateur web development...</description>
	<lastBuildDate>Fri, 20 Aug 2010 21:08:03 +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>mod_rails &amp;&amp; apache &#124;&#124; mongrel &amp;&amp; nginx</title>
		<link>http://andr3w.net/2009/04/mod_rails-apache-mongrel-nginx/</link>
		<comments>http://andr3w.net/2009/04/mod_rails-apache-mongrel-nginx/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 18:30:01 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=97</guid>
		<description><![CDATA[Switch&#8230; That&#8217;s all I have to say. Passenger/mod_rails is so much faster and more competent at serving my crappy RoR code than my hacked together mongrel/nginx scheme that I had before. My ram usage spikes much more when visitors hit the site, but never starts swapping. The increased ram usage is more than worth it [...]]]></description>
			<content:encoded><![CDATA[<p>Switch&#8230;</p>
<p>That&#8217;s all I have to say. Passenger/mod_rails is so much faster and more competent at serving my crappy RoR code than my hacked together mongrel/nginx scheme that I had before. </p>
<p>My ram usage spikes much more when visitors hit the site, but never starts swapping. The increased ram usage is more than worth it for the HUGELY increased speed that I&#8217;m seeing by the dynamic mongrel management. </p>
<p>Even better, when the visitors leave (as often happens), the ram usage settles down to the same place it did with my nginx and mongrel combo.</p>
<p>Enjoy the increased speed and stability <a href="http://amdavidson.com">AMDavidson.com</a> visitors.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/04/mod_rails-apache-mongrel-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gem issues with Passenger</title>
		<link>http://andr3w.net/2009/03/gem-issues-with-passenger/</link>
		<comments>http://andr3w.net/2009/03/gem-issues-with-passenger/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 21:25:32 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=82</guid>
		<description><![CDATA[I was ignorantly happily letting my gems be pulled in automatically on my previous server using Nginx + Mongrel_Cluster and this seemed to pose no problems. BUT! when I switched to a new host, I went with an Apache + Passenger (mod_rails) setup and my servers would start but would just offer &#8220;Error 500&#8243;. I [...]]]></description>
			<content:encoded><![CDATA[<p>I was <span style="text-decoration: line-through;">ignorantly</span> happily letting my gems be pulled in automatically on my previous server using Nginx + Mongrel_Cluster and this seemed to pose no problems.</p>
<p>BUT! when I switched to a new host, I went with an Apache + Passenger (<a title="Mod_Rails" href="http://www.modrails.com/">mod_rails</a>) setup and my servers would start but would just offer &#8220;Error 500&#8243;.</p>
<p>I checked the logs and it seemed that it wasn&#8217;t loading <a title="RedCloth" href="http://redcloth.org">RedCloth</a> so I added the following to my environment.rb file and it all worked fine!</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#008000; font-style:italic;"># config/environment.rb</span><br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span><br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'redcloth'</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/03/gem-issues-with-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>photogriffy updated to v0.2</title>
		<link>http://andr3w.net/2009/02/photogriffy-updated-to-v02/</link>
		<comments>http://andr3w.net/2009/02/photogriffy-updated-to-v02/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 23:11:03 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[site updates]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[flickraw]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[photogriffy]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=48</guid>
		<description><![CDATA[photogriffy.net was upgraged to v0.2, this is a pretty major update. I&#8217;ve changed the backend to be based entirely on the Flickr API. I was able to crank it all out with rails and the flickraw gem over the course of a few hours. There are still a lot of features I want to add [...]]]></description>
			<content:encoded><![CDATA[<p>photogriffy.net was upgraged to v0.2, this is a pretty major update. I&#8217;ve  changed the backend to be based entirely on the <a href="http://www.flickr.com/services/api/">Flickr API</a>. I was able to crank it all out with rails and the <a href="http://rubyforge.org/projects/flickraw/">flickraw</a> gem over the course of a few hours. There are still a lot of features I want to add and a bunch of formatting to do, but the site works as it stands. Rails truly is an amazing prototyping framework.</p>
<p>This is part of a larger update to the way I post my photos to the web. It&#8217;s getting a bit scattered with some photos posted to <a href="http://amdavidson.com">AMDavidson.com</a>, some to <a href="http://amdavidson.me">AMDavidson.me</a>, some to <a href="http://flickr.com/photos/amdavidson/">Flickr</a>, and even a few to <a href="http://twitpic.com">Twitpic</a> with very little planning or organization.</p>
<p>So, I&#8217;m now working towards putting everything on Flickr and then basing my other websites on that content so the content is unified between the sites and doesn&#8217;t require bouncing around the web to places unknown to see it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/02/photogriffy-updated-to-v02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql Gem + MacPorts MySQL</title>
		<link>http://andr3w.net/2009/01/mysql-gem-macports-mysql/</link>
		<comments>http://andr3w.net/2009/01/mysql-gem-macports-mysql/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 01:24:28 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=24</guid>
		<description><![CDATA[I always forget this&#8230; so this is as much a note for me as anything else. Especially because I&#8217;m basically just lifting this info from here. 1234sudo gem install mysql -- \ --with-mysql-include=/opt/local/include/mysql5 \ --with-mysql-lib=/opt/local/lib/mysql5 \ --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config Despite what the linked website says, it appears that this command works on leopard just fine&#8230; no need [...]]]></description>
			<content:encoded><![CDATA[<p>I always forget this&#8230; so this is as much a note for me as anything else.</p>
<p>Especially because I&#8217;m basically just lifting this info from <a href="http://codeintensity.blogspot.com/2007/09/installing-ruby-mysql-gem-with-macports.html">here</a>.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql <span style="color: #660033;">--</span> \<br />
<span style="color: #660033;">--with-mysql-include</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>mysql5 \<br />
<span style="color: #660033;">--with-mysql-lib</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql5 \<br />
<span style="color: #660033;">--with-mysql-config</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql_config</div></td></tr></tbody></table></div>
<p>Despite what the linked website says, it appears that this command works on leopard just fine&#8230; no need for any changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/01/mysql-gem-macports-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Nokogiri Gem On Ubuntu</title>
		<link>http://andr3w.net/2009/01/installing-nokogiri-gem-on-ubuntu/</link>
		<comments>http://andr3w.net/2009/01/installing-nokogiri-gem-on-ubuntu/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 02:22:00 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mephisto]]></category>
		<category><![CDATA[nokogiri]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=12</guid>
		<description><![CDATA[If you cannot install the nokogiri gem on ubuntu (required or recommended) for Mephisto. You have to install two other libraries first that may or may not already be installed on your computer: 1sudo apt-get install libxml2-dev libxslt1-dev Simply installing libxml-ruby or libxml1 won’t satisfy the requirements. Thanks to hightechsorcery.com for the info.]]></description>
			<content:encoded><![CDATA[<p>If you cannot install the nokogiri gem on ubuntu (required or recommended) for Mephisto.</p>
<p>You have to install two other libraries first that may or may not already be installed on your computer:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libxml2-dev libxslt1-dev</div></td></tr></tbody></table></div>
<p>Simply installing libxml-ruby or libxml1 won’t satisfy the requirements.</p>
<p>Thanks to <a href="http://hightechsorcery.com/2008/12/howto-install-nokogiri-gem-ubuntu">hightechsorcery.com</a> for the info.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/01/installing-nokogiri-gem-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>undefined method `cache_template_loading=&#8217;</title>
		<link>http://andr3w.net/2009/01/undefined-method-cache_template_loading/</link>
		<comments>http://andr3w.net/2009/01/undefined-method-cache_template_loading/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 02:17:56 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=8</guid>
		<description><![CDATA[If you have recently upgraded rails and your site seems to work but your cron jobs for acts_as_xapian no longer work, check out this Rails Commit. You have a deprecated method and may need to remove the following from your config/environments/production.rb: 1config.action_view.cache_template_loading &#160; &#160; &#160; &#160; &#160; &#160;= true]]></description>
			<content:encoded><![CDATA[<p>If you have recently upgraded rails and your site seems to work but your cron jobs for acts_as_xapian no longer work, check out this <a href="http://github.com/rails/rails/commit/83e29b9773ac113ceacb1e36c2f333d692de2573">Rails Commit</a>.</p>
<p>You have a deprecated method and may need to remove the following from your<br />
config/environments/production.rb:</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">config.<span style="color:#9900CC;">action_view</span>.<span style="color:#9900CC;">cache_template_loading</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color:#0000FF; font-weight:bold;">true</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/01/undefined-method-cache_template_loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
