<?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"
	>

<channel>
	<title>HappyCodr</title>
	<atom:link href="http://happycodr.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://happycodr.com</link>
	<description>Just another Rails Weblog</description>
	<pubDate>Sat, 24 May 2008 23:28:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Rapleaf and Rails 1.2.6</title>
		<link>http://happycodr.com/2008/05/22/rapleaf-and-rails-126/</link>
		<comments>http://happycodr.com/2008/05/22/rapleaf-and-rails-126/#comments</comments>
		<pubDate>Thu, 22 May 2008 21:47:09 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=19</guid>
		<description><![CDATA[Unfortunately rails 1.2.6 doesn&#8217;t have support for ActiveResource, so I was forced to write my own Rapleaf integration model instead of simply using REST.
class Rapleaf &#60; ActiveRecord::Base
&#160; def self.grab_contacts&#40;login, password&#41;
&#160; &#160; response = &#34;&#34;
&#160; &#160; http = Net::HTTP.new&#40;&#34;api.rapleaf.com&#34;, 443&#41;
&#160; &#160; http.use_ssl = true
&#160; &#160; response = http.start do &#124;http&#124;
&#160; &#160; &#160; req = Net::HTTP::Get.new&#40;&#34;/v2/abook?login=#{login}&#38;password=#{password}&#34;,
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately rails 1.2.6 doesn&#8217;t have support for ActiveResource, so I was forced to write my own Rapleaf integration model instead of simply using REST.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">class</span> Rapleaf &lt; <span class="re2">ActiveRecord::Base</span></p>
<p>&nbsp; <span class="kw1">def</span> <span class="kw2">self</span>.<span class="me1">grab_contacts</span><span class="br0">&#40;</span>login, password<span class="br0">&#41;</span><br />
&nbsp; &nbsp; response = <span class="st0">&quot;&quot;</span><br />
&nbsp; &nbsp; http = <span class="re2">Net::HTTP</span>.<span class="me1">new</span><span class="br0">&#40;</span><span class="st0">&quot;api.rapleaf.com&quot;</span>, <span class="nu0">443</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; http.<span class="me1">use_ssl</span> = <span class="kw2">true</span><br />
&nbsp; &nbsp; response = http.<span class="me1">start</span> <span class="kw1">do</span> |http|<br />
&nbsp; &nbsp; &nbsp; req = <span class="re2">Net::HTTP::Get</span>.<span class="me1">new</span><span class="br0">&#40;</span><span class="st0">&quot;/v2/abook?login=#{login}&amp;password=#{password}&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><span class="st0">&#8216;Authorization&#8217;</span> =&gt; <span class="st0">&#8216;your_key&#8217;</span><span class="br0">&#125;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; http.<span class="me1">request</span><span class="br0">&#40;</span>req<span class="br0">&#41;</span>.<span class="me1">body</span><br />
&nbsp; &nbsp; <span class="kw1">end</span><br />
&nbsp; &nbsp; original = <span class="kw4">XmlSimple</span>.<span class="me1">xml_in</span><span class="br0">&#40;</span>response, <span class="br0">&#123;</span> <span class="st0">&#8216;ForceArray&#8217;</span> =&gt; <span class="kw2">false</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; contacts = original<span class="br0">&#91;</span><span class="st0">&#8216;contact&#8217;</span><span class="br0">&#93;</span><br />
&nbsp; <span class="kw1">end</span></p>
<p><span class="kw1">end</span></div>
<p><br/><br />
Then in my view I just did this:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;% <span class="re1">@contacts</span>.<span class="me1">each</span> <span class="kw1">do</span> |contact| %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%= contact<span class="br0">&#91;</span><span class="st0">&#8216;email&#8217;</span><span class="br0">&#93;</span> %&gt; &lt;%= contact<span class="br0">&#91;</span><span class="st0">&#8216;name&#8217;</span><span class="br0">&#93;</span> %&gt;<br />
&lt;% <span class="kw1">end</span> %&gt;</div>
<p><br/><br />
Perhaps I&#8217;ll make this into a plugin, but I&#8217;m not sure it&#8217;s worth the effort&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/22/rapleaf-and-rails-126/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mod_Rails</title>
		<link>http://happycodr.com/2008/05/21/mod_rails/</link>
		<comments>http://happycodr.com/2008/05/21/mod_rails/#comments</comments>
		<pubDate>Wed, 21 May 2008 13:40:30 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=18</guid>
		<description><![CDATA[&#8220;I was initially skeptical about mod_rails. The developers had the cojones to start promoting it weeks before it was ready, and they managed to generate a lot of hype around it before anyone had used it.&#8221; nubyonrails.com
]]></description>
			<content:encoded><![CDATA[<p>&#8220;I was initially skeptical about mod_rails. The developers had the cojones to start promoting it weeks before it was ready, and they managed to generate a lot of hype around it before anyone had used it.&#8221; <a href="http://nubyonrails.com/articles/ask-your-doctor-about-mod_rails">nubyonrails.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/21/mod_rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hulu</title>
		<link>http://happycodr.com/2008/05/11/hulu/</link>
		<comments>http://happycodr.com/2008/05/11/hulu/#comments</comments>
		<pubDate>Sun, 11 May 2008 22:29:46 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[hulu]]></category>

		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=17</guid>
		<description><![CDATA[Hulu launched in January and is probably one of the best new Rails sites out there, I use it every day. hulu.com
]]></description>
			<content:encoded><![CDATA[<p>Hulu launched in January and is probably one of the best new Rails sites out there, I use it every day. <a href="http://www.hulu.com/">hulu.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/hulu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Evolution</title>
		<link>http://happycodr.com/2008/05/11/evolution/</link>
		<comments>http://happycodr.com/2008/05/11/evolution/#comments</comments>
		<pubDate>Sun, 11 May 2008 22:23:37 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[amazon]]></category>

		<category><![CDATA[ec2]]></category>

		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=16</guid>
		<description><![CDATA[Check out this evolution of a Rails project on Amazon&#8217;s Elastic Compute Cloud over the course of 1 year, written by Geezeo&#8217;s star system administrator. elwoodicious.com
]]></description>
			<content:encoded><![CDATA[<p>Check out this evolution of a Rails project on Amazon&#8217;s Elastic Compute Cloud over the course of 1 year, written by Geezeo&#8217;s star system administrator. <a href="http://elwoodicious.com/2008/05/02/evolving-services-on-ec2/">elwoodicious.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/evolution/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iChat Status</title>
		<link>http://happycodr.com/2008/05/11/ichat-status/</link>
		<comments>http://happycodr.com/2008/05/11/ichat-status/#comments</comments>
		<pubDate>Sun, 11 May 2008 22:19:22 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[ichat]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=15</guid>
		<description><![CDATA[Update Your Friends iChat Status With A Twitter Direct Message, Simply Because You Can&#8230; railstips.org
]]></description>
			<content:encoded><![CDATA[<p>Update Your Friends iChat Status With A Twitter Direct Message, Simply Because You Can&#8230; <a href="http://railstips.org/2008/5/2/update-your-friends-ichat-status-with-a-twitter-direct-message-simply-because-you-can">railstips.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/ichat-status/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Case Against Haml</title>
		<link>http://happycodr.com/2008/05/11/the-case-against-haml/</link>
		<comments>http://happycodr.com/2008/05/11/the-case-against-haml/#comments</comments>
		<pubDate>Sun, 11 May 2008 15:49:44 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[Rants]]></category>

		<category><![CDATA[haml]]></category>

		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=13</guid>
		<description><![CDATA[
Haml seems to be the (not so) new hawtness in the rails world. I&#8217;ve had some developers who work for me love it and others who hate it. I&#8217;m part of the latter group, for two main reasons.
First and foremost, Haml adds a learning curve to your development team. Granted, it&#8217;s not a huge learning [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://happycodr.com/wp-content/uploads/2008/05/haml.jpg" alt="" title="haml" width="470" height="175" style="float:none;" /></p>
<p>Haml seems to be the (not so) new hawtness in the rails world. I&#8217;ve had some developers who work for me love it and others who hate it. I&#8217;m part of the latter group, for two main reasons.</p>
<p>First and foremost, Haml adds a learning curve to your development team. Granted, it&#8217;s not a huge learning curve, but it&#8217;s a learning curve nonetheless. The problem in this regard is that if you don&#8217;t spend a lot of time writing views, going back to edit old Haml code is very difficult because people tend not to &#8220;know it by heart&#8221; like they do HTML. So the learning curve never really goes away unless you&#8217;re constantly writing Haml code. The simple fact is that most developers have been writing HTML code for years and are intimately familiar with it, adding a layer above this is going to slow them down. Also, when new developers enter the organization, if they don&#8217;t already know Haml, they will have to spend time learning it instead of hitting the ground running. </p>
<p>Second, anytime you have to render Haml into RHTML, you&#8217;re taking a performance hit. Here is an excerpt from the <a href="http://haml.hamptoncatlin.com/release-notes">Haml release notes</a>. &#8220;My benchmarking seems to show that Haml is now only 5% to 12% slower than ERB when run through ActionView.&#8221;</p>
<p>Yes, Haml makes pretty views, but is it really worth it to sacrifice work performance and site performance for pretty views that the end user will never even know about? Me thinks not.</p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/the-case-against-haml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GitHub Gem</title>
		<link>http://happycodr.com/2008/05/11/github-gem/</link>
		<comments>http://happycodr.com/2008/05/11/github-gem/#comments</comments>
		<pubDate>Sun, 11 May 2008 13:54:27 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=12</guid>
		<description><![CDATA[Err the Blog wrote a great post on ways to use the GitHub gem. errtheblog.com
]]></description>
			<content:encoded><![CDATA[<p>Err the Blog wrote a great post on ways to use the GitHub gem. <a href="http://errtheblog.com/posts/89-huba-huba">errtheblog.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/github-gem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails Brain</title>
		<link>http://happycodr.com/2008/05/11/rails-brain/</link>
		<comments>http://happycodr.com/2008/05/11/rails-brain/#comments</comments>
		<pubDate>Sun, 11 May 2008 07:19:45 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Asides]]></category>

		<category><![CDATA[documentation]]></category>

		<category><![CDATA[railsbrain]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=9</guid>
		<description><![CDATA[My favorite rails documentation site is by far RailsBrain. You can view the docs online or download them to your mac and run the RailsBrain application natively. railsbrain.com/
]]></description>
			<content:encoded><![CDATA[<p>My favorite rails documentation site is by far RailsBrain. You can view the docs online or download them to your mac and run the RailsBrain application natively. <a href="http://www.railsbrain.com/">railsbrain.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/rails-brain/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Boost Textmate performance by excluding heavy files from your project</title>
		<link>http://happycodr.com/2008/05/11/boost-textmate-performance-by-excluding-heavy-files-from-your-project/</link>
		<comments>http://happycodr.com/2008/05/11/boost-textmate-performance-by-excluding-heavy-files-from-your-project/#comments</comments>
		<pubDate>Sun, 11 May 2008 06:29:30 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[performance]]></category>

		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=6</guid>
		<description><![CDATA[Textmate has been dogging me lately, to the point that I couldn&#8217;t take it anymore. After talking with other developers and exhaustive google searches, I found out that Textmate doesn&#8217;t like large files. So, with a little hack that my boy Kyle showed me, I think I may have fixed the problem.

I opened up my [...]]]></description>
			<content:encoded><![CDATA[<p>Textmate has been dogging me lately, to the point that I couldn&#8217;t take it anymore. After talking with other developers and exhaustive google searches, I found out that Textmate doesn&#8217;t like large files. So, with a little hack that my boy <a href="https://www.geezeo.com/profile/kdaigle">Kyle</a> showed me, I think I may have fixed the problem.</p>
<p><img src="http://happycodr.com/wp-content/uploads/2008/05/textmate_preferences.jpg" alt="" title="textmate_preferences" width="470" height="264" style="float:none;" /></p>
<p>I opened up my Textmate preferences, clicked on Advanced, then clicked on Folder References and added my log directory to the list of folders to be excluded from the file browser in Textmate. The problem is that I have some large (5MB and up) log files in my log directory, which Textmate was choking on. I also added and vendor/rails to the list as well for good measure. After doing this, I restarted Textmate and it was like night and day with performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/boost-textmate-performance-by-excluding-heavy-files-from-your-project/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HappyCodr is back&#8230; as a blog</title>
		<link>http://happycodr.com/2008/05/11/happycodr-is-back-as-a-blog/</link>
		<comments>http://happycodr.com/2008/05/11/happycodr-is-back-as-a-blog/#comments</comments>
		<pubDate>Sun, 11 May 2008 05:26:55 +0000</pubDate>
		<dc:creator>Sonny Parlin</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[happycodr]]></category>

		<guid isPermaLink="false">http://happycodr.com/?p=4</guid>
		<description><![CDATA[I&#8217;m excited to bring back HappyCodr is a rails blog! The Happycodr database has been moved to Working With Rails. You can browse all sites here and there is a showcase here.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m excited to bring back HappyCodr is a rails blog! The Happycodr database has been moved to <a href="http://www.workingwithrails.com" style="text-decoration:underline;">Working With Rails</a>. You can browse all sites <a href="http://www.workingwithrails.com/browse/sites"  style="text-decoration:underline;">here</a> and there is a showcase <a href="http://www.workingwithrails.com/browse/sites/showcase"  style="text-decoration:underline;">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://happycodr.com/2008/05/11/happycodr-is-back-as-a-blog/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
