<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>require 'mwhuss' : </title>
    <link>http://mwhuss.com/articles.rss</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>if awesome?</description>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/mwhuss" /><feedburner:info uri="mwhuss" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>Nezumi - The iPhone app for Heroku</title>
      <description>&lt;center&gt;&lt;img src="http://mwhuss.com/images/nezumi/app-store-large.png" alt="Nezumi" width="200" height="200"/&gt;&lt;/center&gt;
&lt;br /&gt;

I am proud to announce something I've been working on the past few weeks. Nezumi lets you administer your Ruby apps hosted on Heroku.
&lt;br /&gt;&lt;br /&gt;

&lt;center&gt;&lt;img src="http://mwhuss.com/images/nezumi/primary.png" alt="weretwoguys" /&gt;&lt;/center&gt;

&lt;br /&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://nezumiapp.com"&gt;http://nezumiapp.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="http://twitter.com/nezumiapp"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="itms://itunes.apple.com/us/app/nezumi/id346715875?mt=8"&gt;App Store&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=wTmmcDNqGfM:VRqGq8wupMQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=wTmmcDNqGfM:VRqGq8wupMQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?i=wTmmcDNqGfM:VRqGq8wupMQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mwhuss/~4/wTmmcDNqGfM" height="1" width="1"/&gt;</description>
      <pubDate>Sat, 26 Dec 2009 18:17:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:f8eff506-0901-4fc5-9d77-5e8578d4f58e</guid>
      <author>mwhuss@gmail.com (Marshall Huss)</author>
      <comments>http://mwhuss.com/2009/12/26/nezumi-the-iphone-app-to-for-heroku#comments</comments>
      <category>Ruby</category>
      <category>Mac</category>
      <trackback:ping>http://mwhuss.com/trackbacks?article_id=10</trackback:ping>
      <link>http://feedproxy.google.com/~r/mwhuss/~3/wTmmcDNqGfM/nezumi-the-iphone-app-to-for-heroku</link>
    <feedburner:origLink>http://mwhuss.com/2009/12/26/nezumi-the-iphone-app-to-for-heroku</feedburner:origLink></item>
    <item>
      <title>Static Sites on Heroku in Two Lines</title>
      <description>&lt;p&gt;Sometimes you just have a static website with one or a couple pages. You might even have a shared hosting plan or even a VPS but who wants to go through the hassle of that when you could use &lt;a href="http://heroku.com"&gt;Heroku&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;Here is a simple way to host your static site and cache it on Heroku using a &lt;a href="http://rack.rubyforge.org/"&gt;Rack&lt;/a&gt; app.&lt;/p&gt;

&lt;p&gt;Here is how your folder should be organized:&lt;/p&gt;

&lt;script src="http://gist.github.com/255731.js"&gt;&lt;/script&gt;

&lt;p&gt;In the config.ru file add the following:&lt;/p&gt;

&lt;script src="http://gist.github.com/255725.js?file=Rack+App+on+Heroku"&gt;&lt;/script&gt;

&lt;p&gt;This assumes that your template uses relative references to the images and stylesheets. Go ahead and deploy the app, if you are not sure how to deploy to Heroku check out their &lt;a href="http://docs.heroku.com/quickstart"&gt;quickstart guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now since Heroku uses a &lt;a href="http://docs.heroku.com/http-caching"&gt;HTTP Accelerator&lt;/a&gt; we should take advantage of it. If you noticed in the config.ru file we set the Cache-Control header to 86400 seconds (24 hours). This tells the accelerator to go ahead and cache the page. The accelerator already caches any Rack::File for 12 hours as well meaning all your stylesheets and images will also be cached.&lt;/p&gt;

&lt;p&gt;To confirm it's working, let's take a look at the HTTP headers returned from your site. The Age header indicated that it's being served from the HTTP cache.&lt;/p&gt;

&lt;script src="http://gist.github.com/255732.js?file=nezumiapp.com+curl"&gt;&lt;/script&gt;

&lt;p&gt;And there you go, a static site being served in Heroku's cloud completely cached and for free.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=xzRj4hKnD74:O3XBhf2K6PE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=xzRj4hKnD74:O3XBhf2K6PE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?i=xzRj4hKnD74:O3XBhf2K6PE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mwhuss/~4/xzRj4hKnD74" height="1" width="1"/&gt;</description>
      <pubDate>Sun, 13 Dec 2009 18:39:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:49b17f1a-2693-43ca-82ed-96b06d5c1721</guid>
      <author>mwhuss@gmail.com (Marshall Huss)</author>
      <comments>http://mwhuss.com/2009/12/13/static-sites-on-heroku-in-two-lines#comments</comments>
      <category>Ruby</category>
      <trackback:ping>http://mwhuss.com/trackbacks?article_id=9</trackback:ping>
      <link>http://feedproxy.google.com/~r/mwhuss/~3/xzRj4hKnD74/static-sites-on-heroku-in-two-lines</link>
    <feedburner:origLink>http://mwhuss.com/2009/12/13/static-sites-on-heroku-in-two-lines</feedburner:origLink></item>
    <item>
      <title>HTTP Proxy Support in ActiveResource</title>
      <description>&lt;p&gt;For those of you stuck in the corporate world who are forced behind a &lt;a href="http://en.wikipedia.org/wiki/Http_proxy"&gt;proxy server&lt;/a&gt; you have probably felt the pain from lack of proxy support in the Ruby world. There are many libraries that don't yet support proxies and until recently &lt;a href="http://api.rubyonrails.org/classes/ActiveResource/Base.html"&gt;ActiveResource&lt;/a&gt; was one of them. In August the Rails community and &lt;a href="http://railsbridge.org/"&gt;RailsBridge&lt;/a&gt; hosted the first Rails &lt;a href="http://weblog.rubyonrails.org/2009/7/28/rails-bugmash"&gt;BugMash&lt;/a&gt; where, according to the Rails Weblog, there were over &lt;a href="http://weblog.rubyonrails.org/2009/8/13/what-s-new-in-edge-rails-the-bugmash-edition"&gt;300 commits&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Luckily I was able to find some time during the event to create a patch which added&amp;nbsp;&lt;a href="http://github.com/rails/rails/commit/791c3880393c671c3b101ea9b12836070df7a64d"&gt;proxy support to ActiveResource&lt;/a&gt;.&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "&gt;Working in a corporate environment and not having baked in proxy support had caused me much pain in the past, hopefully, this patch will help others avoid those pains.&lt;/p&gt;


&lt;p&gt;&amp;nbsp;It is really easy to set the proxy for your ActiveResource model...&lt;/p&gt;
&lt;script src="http://gist.github.com/223092.js"&gt;&lt;/script&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=jh8UIveB8Oo:eaoVEcqleV0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=jh8UIveB8Oo:eaoVEcqleV0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?i=jh8UIveB8Oo:eaoVEcqleV0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mwhuss/~4/jh8UIveB8Oo" height="1" width="1"/&gt;</description>
      <pubDate>Sat, 31 Oct 2009 09:53:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:03a8ccdd-cf95-45c2-b61e-b089be20efcb</guid>
      <author>mwhuss@gmail.com (Marshall Huss)</author>
      <comments>http://mwhuss.com/2009/10/31/http-proxy-support-in-activeresource#comments</comments>
      <category>Rails</category>
      <category>rails</category>
      <category>activeresource</category>
      <category>bugmash</category>
      <category>proxy</category>
      <trackback:ping>http://mwhuss.com/trackbacks?article_id=3</trackback:ping>
      <link>http://feedproxy.google.com/~r/mwhuss/~3/jh8UIveB8Oo/http-proxy-support-in-activeresource</link>
    <feedburner:origLink>http://mwhuss.com/2009/10/31/http-proxy-support-in-activeresource</feedburner:origLink></item>
    <item>
      <title>Scribbish</title>
      <description>&lt;p&gt;Yea, I&amp;#8217;m using &lt;a href="http://quotedprintable.com/pages/scribbish"&gt;scribbish&lt;/a&gt; just like everyone else on the &lt;a href="http://xkcd.com/181/"&gt;intertubes&lt;/a&gt;. Big whoop, wanna &lt;a href="http://bigwhoopwannafightaboutit.ytmnd.com/"&gt;fight about it&lt;/a&gt;?&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=9RJ_KlWtEyw:x1dMQayzDFQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mwhuss?a=9RJ_KlWtEyw:x1dMQayzDFQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mwhuss?i=9RJ_KlWtEyw:x1dMQayzDFQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mwhuss/~4/9RJ_KlWtEyw" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 03 Sep 2009 18:38:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:10552581-7ab7-41ce-b806-bfcfe440e3e6</guid>
      <author>mwhuss@gmail.com (Marshall Huss)</author>
      <comments>http://mwhuss.com/2009/09/03/scribbish#comments</comments>
      <trackback:ping>http://mwhuss.com/trackbacks?article_id=1</trackback:ping>
      <link>http://feedproxy.google.com/~r/mwhuss/~3/9RJ_KlWtEyw/scribbish</link>
    <feedburner:origLink>http://mwhuss.com/2009/09/03/scribbish</feedburner:origLink></item>
  </channel>
</rss>

