<?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>Nobody Listens Anyway &#187; gem</title>
	<atom:link href="http://www.justinball.com/tag/gem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinball.com</link>
	<description>Life is an optimization issue</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
		<item>
		<title>River &#8211; Amazon Wishlist Gem</title>
		<link>http://www.justinball.com/2009/10/30/river-amazon-wishlist-gem/</link>
		<comments>http://www.justinball.com/2009/10/30/river-amazon-wishlist-gem/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 16:01:43 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[amazon wishlist]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[river]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1182</guid>
		<description><![CDATA[One more post on Amazon Wishlist code.  As another follow up to my post on Amazon Wishlist RSS, Ruby and Signing/Authenticating your Requests and the site I built to run the code My Amazon Feeds (post here) I've created a gem to contain all the code.  Get it by running 

  sudo [...]]]></description>
			<content:encoded><![CDATA[<p>One more post on Amazon Wishlist code.  As another follow up to my post on <a href="http://www.justinball.com/2009/09/02/amazon-ruby-and-signing_authenticating-your-requests/">Amazon Wishlist RSS, Ruby and Signing/Authenticating your Requests</a> and the site I built to run the code <a href="http://www.my-amazon-feeds.com">My Amazon Feeds</a> (<a href="http://www.justinball.com/2009/10/26/amazon-wishlist-rss/">post here</a>) I've created a gem to contain all the code.  Get it by running </p>
<pre>
  sudo gem install river
</pre>
<p>It's a pretty simple gem so working with the code is also pretty easy to do:</p>
<pre class="ruby">&nbsp;
am = AmazonRequest.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>amazon_access_key_id, amazon_secret_access_key, ecs_to_rss_wishlist, amazon_associate_tag<span style="color:#006600; font-weight:bold;">&#41;</span>
results = am.<span style="color:#9900CC;">get_amazon_feeds</span><span style="color:#006600; font-weight:bold;">&#40;</span>username<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># username needs to be the user's Amazon email</span>
feeds = results.<span style="color:#9900CC;">collect</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |result| OpenStruct.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:url</span> =&gt; result, <span style="color:#ff3333; font-weight:bold;">:title</span> =&gt; <span style="color:#996600;">'Amazon Wishlist'</span>, <span style="color:#ff3333; font-weight:bold;">:name</span> =&gt; <span style="color:#996600;">'wishlist'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;</pre>
<p>Get amazon_access_key_id and amazon_secret_access_key from your AWS console. The amazon_associate_tag parameter is optional.  Throw it in there if you want your Amazon associate information in the feed.  May as well <img src='http://www.justinball.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>The one parameter that might be confusing is 'ecs_to_rss_wishlist'.  This value is a url where the xslt transform lives.  This has to be a public url.  I've included a version in the gem.  To get it into your Rails application you'll need to add this to the Rakefile in the root of your app:</p>
<pre class="ruby">&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'river/tasks'</span>
&nbsp;</pre>
<p>Then sync the file into your app:</p>
<pre>
rake river:sync
</pre>
<p>After that you'll find the file in the public directory and you'll be able to access it with something like http://www.example.com/ecs_to_rss_wishlist.xslt</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/10/30/river-amazon-wishlist-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disguise your Rails Application</title>
		<link>http://www.justinball.com/2009/06/12/disguise-your-rails-application/</link>
		<comments>http://www.justinball.com/2009/06/12/disguise-your-rails-application/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 06:30:44 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[disguise]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[theming skin]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1034</guid>
		<description><![CDATA[I spent quite a while trying to figure out how to theme my Ruby on Rails applications.  Turns out after you build a piece of software people want to use it to do other stuff.  Go figure.
I really like how simple it is to skin a Wordpress site so I stole borrowed some [...]]]></description>
			<content:encoded><![CDATA[<p>I spent quite a while trying to figure out how to theme my Ruby on Rails applications.  Turns out after you build a piece of software people want to use it to do other stuff.  Go figure.</p>
<p>I really like how simple it is to skin a Wordpress site so I <del datetime="2009-06-07T05:49:50+00:00">stole</del> borrowed some ideas.</p>
<p>From all of my research and effort and late night I give you disguise the ruby gem that makes it simple to skin your Rails application and impress everyone (ok maybe your mom).</p>
<p>Disguise makes it possible to generate a theme for your Rails website, set the current 'theme' using an admin interface or change the theme based on the current url.</p>
<p>Install the gem:</p>
<pre class="ruby">&nbsp;
  sudo gem install disguise
&nbsp;</pre>
<p>or get the source code at:<br />
<a href="http://github.com/jbasdf/disguise/tree/master">http://github.com/jbasdf/disguise/tree/master</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/06/12/disguise-your-rails-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Babelphish &#8211; yml Translation Made Simple</title>
		<link>http://www.justinball.com/2009/05/19/babelphish-yml-translation-made-simple/</link>
		<comments>http://www.justinball.com/2009/05/19/babelphish-yml-translation-made-simple/#comments</comments>
		<pubDate>Tue, 19 May 2009 23:16:01 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[babelphish]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1016</guid>
		<description><![CDATA[You've just finished version one of your most excellent, million dollar application.  You've built it the right way.  All of your application' strings live in the en.yml file neatly tucked into the locales directory patiently waiting for the day when you hit it big, go international and hire a expensive fancy firm to [...]]]></description>
			<content:encoded><![CDATA[<p>You've just finished version one of your most excellent, million dollar application.  You've built it the right way.  All of your application' strings live in the en.yml file neatly tucked into the locales directory patiently waiting for the day when you hit it big, go international and hire a <strike>expensive</strike> fancy firm to translate your application for the next big market.</p>
<p>Why wait?  Impress your friends, your family, and the ladies right now.  Today.  In just seconds.</p>
<p>With Google Translate and some gem magic your application can now impress your investors in 41 languages.  Win friends and influence people in just three simple steps:</p>
<pre>
sudo gem install ya2yaml

sudo gem install babelphish 

babelphish -y ./locales/en.yml -o
</pre>
<p>Viola!  Your application now has a yml file for every language Google supports.  -y gives the path to your source file.   Feel free to start with other languages es.yml, jp.yml, etc all work just fine.  -o means overwrite the files in the directory.  If you have already paid someone a lot of money to translate your application I don't recommend using that option.</p>
<p><a href="http://github.com/jbasdf/babelphish/tree/master">In case you think I suck as a programmer feel free to go fork it.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/05/19/babelphish-yml-translation-made-simple/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CMS Lite Gem</title>
		<link>http://www.justinball.com/2009/05/08/cms-lite-gem/</link>
		<comments>http://www.justinball.com/2009/05/08/cms-lite-gem/#comments</comments>
		<pubDate>Fri, 08 May 2009 06:54:40 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[gem]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=1005</guid>
		<description><![CDATA[A pretty common problem when developing a Rails application or any web application for that matter is how to deal with content.  I've often run into situations where the content development team is familiar with html and can produce reasonable content + markup.  Since you are going to go to all the effort [...]]]></description>
			<content:encoded><![CDATA[<p>A pretty common problem when developing a Rails application or any web application for that matter is how to deal with content.  I've often run into situations where the content development team is familiar with html and can produce reasonable content + markup.  Since you are going to go to all the effort and spend all the money search engine optimization (SEO) in the form of reasonable urls would be nice as well.</p>
<p>Enter CMS Lite.</p>
<p>I've just finished up a gem that makes it simple to keep the content out of the app directory and thus ensure your content developers don't have to worry about messing up code.  (You can however use Ruby code in the content pages).</p>
<p>CMS Lite is a gem built specifically for a Rails application.  You can find the code and instructions on usage here:<br />
<a href="http://github.com/jbasdf/cms_lite/tree/master">http://github.com/jbasdf/cms_lite/tree/master</a> or install the gem:<br />
sudo gem install jbasdf-cms-lite</p>
<p>I'm hoping to have a rubyforge project soon which will mean you will be able to install the gem this way:<br />
sudo gem install cms-lite</p>
<p>Just give me a few days and I'll update the post when that happens.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2009/05/08/cms-lite-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
