<?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>Mandarin Soda &#187; Web Development</title>
	<atom:link href="http://mandarinsoda.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://mandarinsoda.com</link>
	<description>Random Musings, Sometimes Programming.</description>
	<lastBuildDate>Tue, 13 Sep 2011 05:00:59 +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>Netflix API Authentication with the Ruby Oauth Gem</title>
		<link>http://mandarinsoda.com/2008/10/19/netflix-authentication-with-ruby-oauth/</link>
		<comments>http://mandarinsoda.com/2008/10/19/netflix-authentication-with-ruby-oauth/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 00:24:16 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=204</guid>
		<description><![CDATA[For any folks out there struggling to get the Ruby OAuth gem working with Netflix authentication, here&#8217;s a quick run down on how to get started. The 0.2.7 version of Ruby OAuth isn&#8217;t totally compatible with the Netflix authentication APIs. However, thanks to the grooviness that it is GitHub, Rob Ares graciously forked the OAuth [...]]]></description>
			<content:encoded><![CDATA[<p>For any folks out there struggling to get the Ruby OAuth gem working with Netflix authentication, here&#8217;s a quick run down on how to get started.</p>
<p>The 0.2.7 version of Ruby OAuth isn&#8217;t totally compatible with the Netflix authentication APIs.  However, thanks to the grooviness that it is <a href="http://github.com/">GitHub</a>, <a href="http://github.com/rares/oauth/tree/master">Rob Ares</a> graciously forked the OAuth gem in order to get it working.  So clone his repository and get cracking!  </p>
<p>Here&#8217;s a start:</p>
<pre>
<code>
require "oauth/consumer"
consumer = OAuth::Consumer.new(
      "developer api key",
      "developer api secret",
      {
        :site => "http://api.netflix.com",
        :request_token_url => "https://api-user.netflix.com/oauth/request_token",
        :access_token_url => "http://api.netflix.com/oauth/access_token",
        :authorize_url => "https://api-user.netflix.com/oauth/login"
      })

    request_token = consumer.get_request_token  

 request_token.authorize_url({
      <img src='http://mandarinsoda.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> auth_consumer_key => "you developer api key",
      :application_name => "application name",
      <img src='http://mandarinsoda.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> auth_callback => "optional"
    })

    access_token = request_token.get_access_token

    response = consumer.request(
      :get,
      "/users/#{access_token.response[:user_id]}",
      access_token,
      {:scheme => :query_string})
</pre>
<p></code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F19%2Fnetflix-authentication-with-ruby-oauth%2F&amp;title=Netflix+API+Authentication+with+the+Ruby+Oauth+Gem" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/10/19/netflix-authentication-with-ruby-oauth/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DataMapper Adapter for Netflix</title>
		<link>http://mandarinsoda.com/2008/10/09/datamapper-adapter-for-netflix/</link>
		<comments>http://mandarinsoda.com/2008/10/09/datamapper-adapter-for-netflix/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 19:03:28 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[datamapper]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=202</guid>
		<description><![CDATA[I&#8217;ve apparently caught the DM Adapter bug, as I&#8217;ve decided to write one to access Netflix while I finish up my MailChimp adapter. I&#8217;ll be posting as I go along, as I&#8217;ve been learning quite a bit about the inner workings of DataMapper while going through this process. Cheers.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve apparently caught the <a href="http://datamapper.rubyforge.org/DataMapper/Adapters/">DM Adapter</a> bug, as I&#8217;ve decided to write <a href="http://github.com/mandarinsoda/datamapper-netflix-adapter/tree/master">one to access Netflix</a> while I finish up my MailChimp adapter. </p>
<p>I&#8217;ll be posting as I go along, as I&#8217;ve been learning quite a bit about the inner workings of DataMapper while going through this process.  </p>
<p>Cheers.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F09%2Fdatamapper-adapter-for-netflix%2F&amp;title=DataMapper+Adapter+for+Netflix" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/10/09/datamapper-adapter-for-netflix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a DataMapper Adapter to Access MailChimp Web Services From Merb</title>
		<link>http://mandarinsoda.com/2008/10/03/writing-a-datamapper-adapter-to-access-mailchimp-web-services/</link>
		<comments>http://mandarinsoda.com/2008/10/03/writing-a-datamapper-adapter-to-access-mailchimp-web-services/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 20:52:31 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[datamapper]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[MailChimp]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=186</guid>
		<description><![CDATA[As I mentioned in my last post, I&#8217;ve started looking into writing DataMapper Adapters, using my MailChimp wrapper as an example. Thus far, I&#8217;ve been pretty impressed with the Adapter layer built into DataMapper and the possibilities this abstraction layer provides. A quick search over at GitHub will show you all the interesting things folks [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned in my last post, I&#8217;ve started looking into writing DataMapper Adapters, using my <a href="http://github.com/mandarinsoda/datamapper-mailchimp-adapter/tree/master">MailChimp wrapper as an example</a>.  Thus far, I&#8217;ve been pretty impressed with the Adapter layer built into DataMapper and the possibilities this abstraction layer provides.  A <a href="http://github.com/search?q=datamapper+adapter">quick search over at GitHub</a> will show you all the interesting things folks are doing with adapters.   </p>
<p>Anyway, here&#8217;s a synopsis of what I&#8217;ve come across thus far.  As pointed out <a href="http://merbist.com/2008/09/29/write-your-own-custom-datamapper-adapter/">in this post</a> by The Merbist, a custom adapter simply inherits from <a href="http://github.com/sam/dm-core/tree/master/lib/dm-core/adapters/abstract_adapter.rb">Abstract Adapter</a> and as such, can define a number of default Adapter methods such as create, update, delete, read_one and read_many.  You also have access to an initialization method that supplies a hash with important environment information, including any parameters relevant to your adapter that a user may have setup in a database.yml file.  This allowed me to create a MailChimp client and login <a href="http://github.com/mandarinsoda/datamapper-mailchimp-adapter/tree/master/lib/dm-mailchimp-adapter.rb#L15-20">once during class initialization</a> rather than at every request, so I got that going for me.</p>
<p>Once I had a MailChimp client setup with login information, I started getting create working in my adapter.  The create method takes a collection of resources as an option which I simply loop through and call the MailChimp listSubscribe API.  So far, so good.  I now wanted to test whether any of this would work with Merb.</p>
<p>I created a merb app:</p>
<pre>
<code>
 merb-gen app campaign
 cd campaign
</code>
</pre>
<p>and set the :use_orm parameter to datamapper in the Merb init.rb.</p>
<p>Next, I ran <code>rake dm:db:database_yaml</code> in order to generate a database.yml file to specify relevant properties for my adapter.  In my case, I needed to create an entry for my mailchimp adapter:</p>
<pre>
<code>
  adapter:  mailchimp
  database:
  username: user
  password: password
  mailing_list_id: list_id
  host: localhost
</code>
</pre>
<p>.</p>
<p>I next created a resource to test the adapter with by running <code>merb-gen resource mailings</code>.  My thinking was that one could have a User stored in a relational (or other) datastore, and that User can have many mailings or some such thing, bad naming aside.  Anyway, a cool feature of DataMapper is that you can specify any number of repositories in a database.yml with different adapters, and then specify on a resource by resource basis which repository a resource belongs to like so:</p>
<pre>
<code>
 def self.default_repository_name
      :mysql
 end
</code>
</pre>
<p>After generating my resource, I went in to add the properties MailChimp would require for the create method.  </p>
<pre>
<code>
class Mailings
  include DataMapper::Resource

  property :id, String, :serial => true, :key => true, :field => :_id
  property :first_name, String
  property :last_name, String
  property :email, String
  property :mailing_list_id, String

   def build_mail_merge()
      {"EMAIL" => self.email, "FNAME" => self.first_name, "LNAME" => self.last_name }
   end
end
</code>
</pre>
<p>.</p>
<p>I also added a callback method that is used by the adapter in order to pass mail merge arguments to MailChimp.  This seemed like a sane approach given that the MailChimp mail_merge arguments are quite dynamic.</p>
<p>With a resource firmly in place, I fired up the merb console and tested to see whether I could connect to MailChimp with it.</p>
<pre>
<code>
 m = Mailing.new
 m.first_name = 'mandarin'
 m.last_name = 'soda'
 m.email = 'msoda@disney.com'
 m.mailing_list_id = '9'
 m.create
</code>
</pre>
<p>I checked my disney email, and sure enough, I had an opt-in response from MailChimp. Victory Adapter!  I could sign users up to MailChimp via the DataMapper APIs quite quickly&#8230;.not too shabby.</p>
<p>That&#8217;s where I&#8217;m at for now&#8230;still have some things to iron out, one being that DataMapper is returning false after a successful create.  Others, of course being that I need to figure out the rest of the default Adapter methods.  Feel free to follow on GitHub if you feel so inclined.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F10%2F03%2Fwriting-a-datamapper-adapter-to-access-mailchimp-web-services%2F&amp;title=Writing+a+DataMapper+Adapter+to+Access+MailChimp+Web+Services+From+Merb" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/10/03/writing-a-datamapper-adapter-to-access-mailchimp-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a Simple MailChimp Web Service Using Merb</title>
		<link>http://mandarinsoda.com/2008/09/08/writing-a-simple-mailchimp-web-service-using-merb/</link>
		<comments>http://mandarinsoda.com/2008/09/08/writing-a-simple-mailchimp-web-service-using-merb/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 23:17:55 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MailChimp]]></category>
		<category><![CDATA[merb]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=129</guid>
		<description><![CDATA[A while back, I was asked to build some code to help keep a businesses mailing list synchronized between SalesForce.com and their campaign management tool, which I suggested should be MailChimp and not the tool they were currently using, but I digress. The project never materialized, but I figured I would build it anyway and [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, I was asked to build some code to help keep a businesses mailing list synchronized between SalesForce.com and their campaign management tool, which I suggested should be <a href="http://www.mailchimp.com/index.phtml">MailChimp</a> and not the tool they were currently using, but I digress.  The project never materialized, but I figured I would build it anyway and use it as a chance to explore <a href="http://merbivore.com/">Merb</a> a bit.</p>
<p>My thinking at the time was that a standalone &#8220;wrapper&#8221; web service made sense.  While it would have complicated application administration a bit, encapsulating the mailing list functionality in a simple service that could be called synchronously or asynchronously, as well as modified and deployed independent of core site logic, sounded reasonable.</p>
<p>So, let&#8217;s start with building a minimal Merb application to serve as a foundation:<br />
<code>merb-gen app mail_chimp_service --flat</code></p>
<p>This generates one controller, a few templates (if we want to build in some templated monitoring and for xml responses) and just enough configuration to get the Merb service started.</p>
<p>To test it out, just fire up Merb with the following command: <code>merb</code> and head to <code>http://localhost:4000</code>.</p>
<p>With a foundation in place, I started looking into my MailChimp plugin to see if I should turn it into a gem or do something simpler.  I turned to <a href="http://seattlerb.rubyforge.org/hoe/">hoe</a>, thinking that making a gem would be interesting, but then decided otherwise, as I basically didn&#8217;t feel like writing that much.    So instead, I wrote a simple chimp class to do the MailChimp API work:</p>
<pre><code>require 'xmlrpc/client'
class Chimp
  cattr_accessor :client, :auth
  def add(subscriber)
    chimp_subscribe(auth, Merb::Config[:chimp_settings]['mail_chimp']['mailing_list_id'],
                            subscriber.email, subscriber.mail_merge)
  end
  private
  def chimp_subscribe(auth, mailing_list_id, email, merge_vars,
                                email_content_type="html", double_optin=true)
    begin
      client.call("listSubscribe", auth, mailing_list_id, email,
                     merge_vars, email_content_type, double_optin)
    rescue XMLRPC::FaultException =&gt; e
      Merb.logger e.faultCode
      Merb.logger e.faultString
    end
  end
end</code></pre>
<p>This class adds users to a specific MailChimp mailing list using the MailChimp APIs.  The client and auth attributes are set in the Merb init.rb class, as they really only need to be loaded once and not initialized per each request:</p>
<pre><code>
Merb::BootLoader.after_app_loads do
    Chimp.client = XMLRPC::Client.new2('http://api.mailchimp.com/1.0/')
    Chimp.auth = XMLRPC::Client.new2('http://api.mailchimp.com/1.0/').call("login",
                         Merb::Config[:chimp_settings]['mail_chimp']['username'],
                         Merb::Config[:chimp_settings]['mail_chimp']['password'])
end
</code></pre>
<p>I&#8217;m loading the MailChimp configuration parameters in the init.rb file in the config block. I&#8217;m just loading in a yaml file with the relevant information one would presumably want externalized from the application code:</p>
<pre><code>
Merb::Config.use { |c|
 .....
 c[:chimp_settings]      = YAML.load_file(Merb.root/'mailing.yml')
}
</code></pre>
<p>I then created a simple subscriber.rb class to encapsulate user elements and wired the relevant classes together in my single controller like so:</p>
<pre><code>
require 'chimp'
require 'subscriber'
class Foo &lt; Merb::Controller
  provides <img src='http://mandarinsoda.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml

  def _template_location(action, type = nil, controller = controller_name)
    controller == "layout" ? "layout.#{action}.#{type}" : "#{action}.#{type}"
  end

  def index
    subscriber = Subscriber.new(params)
    chimp = Chimp.new
    chimp.add(subscriber)
    render false
  end
end
</code></pre>
<p>I subsquently added an index.xml.erb class to my views directory in order to render successful responses, fired up my app with the merb command and then ran a test in a separate console to ensure everything was working:</p>
<pre><code>
curl -H "Accept: text/xml" -L -d
"email=matt@mandarinsoda.com&amp;first_name=swanky&amp;last_name=mango" http://localhost:4000</code></pre>
<p>It worked &#8211; the very first time!  (joking, but it did work after a bit of tinkering).  I saw the content of my index.xml.erb and received a MailChimp opt-in email. Not too shabby for a few hours of tinkering.  I&#8217;m sure there are interesting Merb features missing as well that could make this all the more compact.  More to explore later.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F08%2Fwriting-a-simple-mailchimp-web-service-using-merb%2F&amp;title=Writing+a+Simple+MailChimp+Web+Service+Using+Merb" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/08/writing-a-simple-mailchimp-web-service-using-merb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web Site Optimization News</title>
		<link>http://mandarinsoda.com/2008/07/26/web-site-optimization-news/</link>
		<comments>http://mandarinsoda.com/2008/07/26/web-site-optimization-news/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 20:44:58 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[miscellaneous]]></category>
		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=106</guid>
		<description><![CDATA[Some interesting resources and news in the world of web site optimization recently. Good stuff for those who care about this sort of thing. I look forward to clogging up my works print queue with Velocity presentations on Monday even though printing is a bit evil.]]></description>
			<content:encoded><![CDATA[<p>Some interesting <a href="http://en.oreilly.com/velocity2008/public/schedule/proceedings">resources</a> and <a href="http://">news</a> in the world of web site optimization recently.  Good stuff for those who care about this sort of thing. I look forward to clogging up my works print queue with Velocity presentations on Monday even though printing is a bit evil.    </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F07%2F26%2Fweb-site-optimization-news%2F&amp;title=Web+Site+Optimization+News" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/07/26/web-site-optimization-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing Web Forms</title>
		<link>http://mandarinsoda.com/2008/05/28/designing-web-forms/</link>
		<comments>http://mandarinsoda.com/2008/05/28/designing-web-forms/#comments</comments>
		<pubDate>Wed, 28 May 2008 20:37:53 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Book Reviews]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Books]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=97</guid>
		<description><![CDATA[If you do anything web design or development related or just have some free time on your hands and feel like contributing to an interesting independent publisher, I highly recommend checking out Luke Wroblewski&#8217;s book on web form design. While somewhere in my subconscious I&#8217;ve definitely been annoyed by filling out forms, I hadn&#8217;t really [...]]]></description>
			<content:encoded><![CDATA[<p>If you do anything web design or development related or just have some free time on your hands and feel like contributing to an interesting independent publisher, I highly recommend checking out <a href="http://www.rosenfeldmedia.com/books/webforms/">Luke Wroblewski&#8217;s book on web form design</a>.  While somewhere in my subconscious I&#8217;ve definitely been annoyed by filling out forms, I hadn&#8217;t really realized how pervasive, disruptive and generally poorly designed most web forms are until I started digging into this book.  The sidebar stories in the book are really interesting as well.  </p>
<p><img src="http://www.rosenfeldmedia.com/i/covers/webforms-lg.gif" alt="web form design" /></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F05%2F28%2Fdesigning-web-forms%2F&amp;title=Designing+Web+Forms" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/05/28/designing-web-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Plugin for MailChimp</title>
		<link>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/</link>
		<comments>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 00:55:15 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=86</guid>
		<description><![CDATA[A plugin that beats the monkey metaphors to death: script/plugin install git://github.com/matthewjcarlson/acts_as_chimp . Let me know if it does or doesn&#8217;t work. It&#8217;s less a library then an implementation of a use case I&#8217;ve encountered a few times recently. As such, while plugins are falling out of favor a bit, I felt like a plugin [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mailchimp.com/api/"><img src='http://www.mailchimp.com/img/logo_mailchimp.gif' alt='MailChimp' class='alignnone' /></a></p>
<p>A plugin that beats the monkey metaphors to death:<br />
<code> script/plugin install git://github.com/matthewjcarlson/acts_as_chimp </code>.</p>
<p>Let me know if it does or doesn&#8217;t work.  It&#8217;s less a library then an implementation of a use case I&#8217;ve encountered a few times recently.  As such, while <a href="http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies">plugins are falling out of favor a bit</a>, I felt like a plugin made sense for what I&#8217;m doing here. If you&#8217;d prefer a gem or more detailed MailChimp interaction, there&#8217;s an excellent MailChimp gem available <a href="http://rubyforge.org/projects/ruby-mailchimp/">here</a> or you can drop me a comment as well.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F04%2F07%2Frails-plugin-for-mailchimp%2F&amp;title=Rails+Plugin+for+MailChimp" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rails and MailChimp</title>
		<link>http://mandarinsoda.com/2008/03/26/rails-and-mailchimp/</link>
		<comments>http://mandarinsoda.com/2008/03/26/rails-and-mailchimp/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 04:41:50 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MailChimp]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/2008/03/26/rails-and-mailchimp/</guid>
		<description><![CDATA[acts_as_chimp plugin underway this evening&#8230;.finished product will be here shortly. update: an early version of the plugin has been added to a github repository. Please see this post.]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.mailchimp.com/api/">acts_as_chimp</a> plugin underway this evening&#8230;.finished product will be here shortly.</p>
<p><strong>update:</strong>  an early version of the plugin has been added to a <a href="http://github.com/repositories">github repository</a>. Please see <a href="http://mandarinsoda.com/2008/04/07/rails-plugin-for-mailchimp/">this post</a>.  </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F26%2Frails-and-mailchimp%2F&amp;title=Rails+and+MailChimp" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/03/26/rails-and-mailchimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fire Eagle</title>
		<link>http://mandarinsoda.com/2008/03/09/fire-eagle/</link>
		<comments>http://mandarinsoda.com/2008/03/09/fire-eagle/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 04:03:14 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/2008/03/09/fire-eagle/</guid>
		<description><![CDATA[Location, location, location. Now this is interesting&#8230;. In some industries they say location can be everything&#8230;]]></description>
			<content:encoded><![CDATA[<p>Location, location, location.</p>
<p><a href="http://developer.yahoo.net/blogs/theater/archives/2008/03/fire_eagle_launches.html">Now this is interesting&#8230;</a>.  In some industries they say location can be everything&#8230;</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Ffire-eagle%2F&amp;title=Fire+Eagle" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/03/09/fire-eagle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Your Site Green?</title>
		<link>http://mandarinsoda.com/2008/03/09/is-your-site-green/</link>
		<comments>http://mandarinsoda.com/2008/03/09/is-your-site-green/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:53:47 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[miscellaneous]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/2008/03/09/is-your-site-green/</guid>
		<description><![CDATA[Interesting post from the High Performace Web Sites Blogs. Perhaps not surprisingly, efficient page serving is good for your users and our environment.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stevesouders.com/blog/2008/03/06/how-green-is-your-web-page/">Interesting post</a> from the High Performace Web Sites Blogs.  Perhaps not surprisingly, efficient page serving is good for your users and our environment.  </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F03%2F09%2Fis-your-site-green%2F&amp;title=Is+Your+Site+Green%3F" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/03/09/is-your-site-green/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

