<?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>Stubbleblog &#187; quote</title>
	<atom:link href="http://www.stubbleblog.com/index.php/tag/quote/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stubbleblog.com</link>
	<description>A curious nerd.</description>
	<lastBuildDate>Mon, 02 Jan 2012 18:30:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tribute to the Unix Fortune Program</title>
		<link>http://www.stubbleblog.com/index.php/2006/09/tribute-to-the/</link>
		<comments>http://www.stubbleblog.com/index.php/2006/09/tribute-to-the/#comments</comments>
		<pubDate>Sun, 10 Sep 2006 20:31:13 +0000</pubDate>
		<dc:creator>Tony Stubblebine</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[iheartquotes]]></category>
		<category><![CDATA[joke]]></category>
		<category><![CDATA[quote]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.stubbleblog.com/wp/?p=117</guid>
		<description><![CDATA[Introducing I Heart Quotes. Unix used to have a lot of personality. RedHat would let you go through the entire installation in the language of &#8216;Redneck.&#8217; And every server had a program called &#8216;fortune&#8217; that would greet you with some manner of quote, joke, epigram, or other pithy comment. Things like this gave personality to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://iheartquotes.com/"><img src="http://iheartquotes.com/images/iheartquotes.header.png" border="0" /></a></p>
<p>Introducing <a href="http://iheartquotes.com">I Heart Quotes</a>.</p>
<p>Unix used to have a lot of personality. RedHat would let you go through the entire installation in the language of &#8216;Redneck.&#8217;<br />
And every server had a program called &#8216;fortune&#8217; that would greet you with some manner of quote, joke, epigram, or other pithy comment. Things like this gave personality to an otherwise pretty nerdy hobby.</p>
<p>At some point the source of those quotes, the fortune program, stopped showing up on servers. A combination of Linux trying to compete in the corporate world and my leaving college to also compete in the corporate world led to working on servers with less personality. The fortune program still exists, but just isn&#8217;t as prevalent. I think that&#8217;s sad.</p>
<p>So what&#8217;s a man to do? Build a <a href="http://iheartquotes.com/api/">web service on top of every fortune file I could find on the internet</a> (if you know of any that I missed, please email me). Now I (you) can get your fortune regardless of what&#8217;s installed on the server.</p>
<p>(I also built a <a href="http://iheartquotes.com/fortune/list">digg-style website and ratings</a> for the data, but that&#8217;s really beside the point.)</p>
<p>Here&#8217;s what I put in my .bash_profile to get a fortune every time I login:</p>
<pre class="brush:bash">
<code>
alias getfortune='wget --timeout=3 -O - -q'
alias fortune='getfortune http://www.iheartquotes.com/api/v1/random'
alias myfortune='getfortune http://www.iheartquotes.com/api/v1/random?source=joel_on_software+paul_graham+prog_style
myfortune
</code></pre>
<p>If you&#8217;re on a Mac you probably have curl installed instead of wget. If so use this line:</p>
<pre>alias getfortune='curl -m 3'</pre>
<p>There&#8217;s more options on the <a href="http://iheartquotes.com/api">official API page</a>, the most important is that you can choose which sources the API pulls from (make sure you include Comic Book Guy from the Simpsons: <a href="http://iheartquotes.com/fortune/rand/simpsons_cbg">simpsons_cbg</a>). The available sources are below.</p>
<p>From geek:</p>
<p><a href="http://iheartquotes.com/fortune/rand/esr">esr</a><br />
<a href="http://iheartquotes.com/fortune/rand/humorix_misc">humorix_misc</a><br />
<a href="http://iheartquotes.com/fortune/rand/humorix_stories">humorix_stories</a><br />
<a href="http://iheartquotes.com/fortune/rand/joel_on_software">joel_on_software</a><br />
<a href="http://iheartquotes.com/fortune/rand/macintosh">macintosh</a><br />
<a href="http://iheartquotes.com/fortune/rand/math">math</a><br />
<a href="http://iheartquotes.com/fortune/rand/mav_flame">mav_flame</a><br />
<a href="http://iheartquotes.com/fortune/rand/osp_rules">osp_rules</a><br />
<a href="http://iheartquotes.com/fortune/rand/paul_graham">paul_graham</a><br />
<a href="http://iheartquotes.com/fortune/rand/subversion">prog_style</a><br />
<a href="http://iheartquotes.com/fortune/rand/subversion">subversion</a></p>
<p>From general:</p>
<p><a href="http://iheartquotes.com/fortune/rand/codehappy">codehappy</a><br />
<a href="http://iheartquotes.com/fortune/rand/fortune">fortune</a><br />
<a href="http://iheartquotes.com/fortune/rand/liberty">liberty</a><br />
<a href="http://iheartquotes.com/fortune/rand/literature">literature</a><br />
<a href="http://iheartquotes.com/fortune/rand/misc">misc</a><br />
<a href="http://iheartquotes.com/fortune/rand/murphy">murphy</a><br />
<a href="http://iheartquotes.com/fortune/rand/oneliners">oneliners</a><br />
<a href="http://iheartquotes.com/fortune/rand/riddles">riddles</a><br />
<a href="http://iheartquotes.com/fortune/rand/rkba">rkba</a><br />
<a href="http://iheartquotes.com/fortune/rand/shlomif">shlomif</a><br />
<a href="http://iheartquotes.com/fortune/rand/shlomif_fav">shlomif_fav</a><br />
<a href="http://iheartquotes.com/fortune/rand/stephen_wright">stephen_wright</a></p>
<p>From pop:</p>
<p><a href="http://iheartquotes.com/fortune/rand/calvin">calvin</a><br />
<a href="http://iheartquotes.com/fortune/rand/forrestgump">forrestgump</a><br />
<a href="http://iheartquotes.com/fortune/rand/friends">friends</a><br />
<a href="http://iheartquotes.com/fortune/rand/futurama">futurama</a><br />
<a href="http://iheartquotes.com/fortune/rand/holygrail">holygrail</a><br />
<a href="http://iheartquotes.com/fortune/rand/powerpuff">powerpuff</a><br />
<a href="http://iheartquotes.com/fortune/rand/simon_garfunkel">simon_garfunkel</a><br />
<a href="http://iheartquotes.com/fortune/rand/simpsons_cbg">simpsons_cbg</a><br />
<a href="http://iheartquotes.com/fortune/rand/simpsons_chalkboard">simpsons_chalkboard</a><br />
<a href="http://iheartquotes.com/fortune/rand/simpsons_homer">simpsons_homer</a><br />
<a href="http://iheartquotes.com/fortune/rand/simpsons_ralph">simpsons_ralph</a><br />
<a href="http://iheartquotes.com/fortune/rand/south_park">south_park</a><br />
<a href="http://iheartquotes.com/fortune/rand/starwars">starwars</a><br />
<a href="http://iheartquotes.com/fortune/rand/xfiles">xfiles</a></p>
<p>From religious:</p>
<p><a href="http://iheartquotes.com/fortune/rand/bible">bible</a><br />
<a href="http://iheartquotes.com/fortune/rand/contentions">contentions</a><br />
<a href="http://iheartquotes.com/fortune/rand/osho">osho</a></p>
<p>From scifi:</p>
<p><a href="http://iheartquotes.com/fortune/rand/cryptonomicon">cryptonomicon</a><br />
<a href="http://iheartquotes.com/fortune/rand/discworld">discworld</a><br />
<a href="http://iheartquotes.com/fortune/rand/dune">dune</a><br />
<a href="http://iheartquotes.com/fortune/rand/hitchhiker">hitchhiker</a><br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://www.stubbleblog.com/index.php/2006/09/quotes-on-your/' title='Quotes On Your Phone'>Quotes On Your Phone</a></li>
<li><a href='http://www.stubbleblog.com/index.php/2010/11/i-heart-updates/' title='I Heart Updates'>I Heart Updates</a></li>
<li><a href='http://www.stubbleblog.com/index.php/2009/04/cyborg-quote-botics/' title='Cyborg Quote-botics'>Cyborg Quote-botics</a></li>
<li><a href='http://www.stubbleblog.com/index.php/2008/02/iheartquotes-is-a-robot/' title='IHeartQuotes is a Robot'>IHeartQuotes is a Robot</a></li>
<li><a href='http://www.stubbleblog.com/index.php/2006/12/using-the-sales/' title='Using the Salesforce API'>Using the Salesforce API</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.stubbleblog.com/index.php/2006/09/tribute-to-the/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.stubbleblog.com/index.php/tag/quote/feed/ ) in 0.26401 seconds, on Feb 4th, 2012 at 3:33 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 3:33 am UTC -->
