<?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>gnapse.com &#187; offline</title>
	<atom:link href="http://gnapse.com/blog/tag/offline/feed/" rel="self" type="application/rss+xml" />
	<link>http://gnapse.com/blog</link>
	<description>whatever comes to my mind</description>
	<lastBuildDate>Wed, 02 May 2012 15:08:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Unit Conversion for Alfred and Java</title>
		<link>http://gnapse.com/blog/2012/02/07/unit-conversion-for-alfred/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unit-conversion-for-alfred</link>
		<comments>http://gnapse.com/blog/2012/02/07/unit-conversion-for-alfred/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 22:14:53 +0000</pubDate>
		<dc:creator>ernesto</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[alfredapp]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[unit conversion]]></category>

		<guid isPermaLink="false">http://gnapse.com/blog/?p=335</guid>
		<description><![CDATA[Have you ever tried typing unit conversion queries in Google&#8217;s search box? You&#8217;ll get something like this. Imagine if you could that offline, or even be able to have this functionality available to incorporate it in scripts or other programs as well. Imagine you could have this functionality as an extension in Mac&#8217;s AlfredApp. Introducing Metric: [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried typing unit conversion queries in Google&#8217;s search box? You&#8217;ll get something like this.</p>
<div id="attachment_336" class="wp-caption aligncenter" style="width: 552px"><a href="http://gnapse.com/blog/wp-content/uploads/2012/02/google-unit-conversion.png"><img class="size-full wp-image-336" title="Google Unit Conversion" src="http://gnapse.com/blog/wp-content/uploads/2012/02/google-unit-conversion.png" alt="Google Unit Conversion" width="542" height="293" /></a><p class="wp-caption-text">Performing unit conversion queries using Google&#39;s search box.</p></div>
<p>Imagine if you could that offline, or even be able to have this functionality available to incorporate it in scripts or other programs as well. Imagine you could have this functionality as an extension in Mac&#8217;s <a title="Alfred App" href="http://www.alfredapp.com/" target="_blank">AlfredApp</a>.</p>
<h2>Introducing Metric: A Unit Conversion Library for Java</h2>
<p>I needed this functionality to develop an extension for Alfred, the most wonderful Mac launcher, and I wanted it to work offline, without having to retrieve the results from Google or another online source. So I created a Java library that&#8217;s capable of performing unit conversion queries expressed in natural English. I called it simply <strong>Metric</strong>, made it open source, and <a href="https://github.com/gnapse/metric" target="_blank">published it on Github</a>. You can clone it, fork it, play with it or contribute back if you will. The code is fairly well documented and organized. The library includes some supporting sub-libraries that may be used independently in other projects, including a plural/singular inflector for the English language.</p>
<h2>Metric meets Alfred</h2>
<p>The original goal of developing a library like <strong>Metric</strong> was to use it as an Alfred extension. Alfred (<a href="http://www.alfredapp.com/" target="_blank">http://www.alfredapp.com/</a>) is a wonderful productivity application for Mac, much like Quicksilver or Google&#8217;s Quick Search Box, but  a little bit better in my opinion. You can grab a copy of Metric as an Alfred extension <a title="Unit Conversion extension for AlfredApp" href="http://cl.ly/340O1y0n0p3c1b2D3n30" target="_blank">here</a>. After you install this extension, you can type unit conversion queries on Alfred using <code>cv</code> as keyword.</p>
<div id="attachment_337" class="wp-caption aligncenter" style="width: 658px"><a href="http://gnapse.com/blog/wp-content/uploads/2012/02/alfred-unit-conversion.png"><img class="size-full wp-image-337" title="Alfred Unit Conversion" src="http://gnapse.com/blog/wp-content/uploads/2012/02/alfred-unit-conversion.png" alt="Unit Conversion with Alfred" width="648" height="190" /></a><p class="wp-caption-text">Performing a unit conversion query with Alfred</p></div>
<p>This Alfred extension shows the results of the conversion using Growl, but I guess if you already have a Mac chances are that you Growl installed. If not, you can get it <a title="Growl" href="http://growl.info/" target="_blank">here</a>.</p>
<h2>Links and resources</h2>
<ul>
<li><a href="https://github.com/gnapse/metric" target="_blank">Metric source code repository on Github</a></li>
<li><a href="http://cl.ly/340O1y0n0p3c1b2D3n30" target="_blank">Unit Conversion extension for AlfredApp</a></li>
<li><a href="http://www.alfredapp.com/" target="_blank">Alfred App</a> and <a href="http://growl.info/" target="_blank">Growl</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gnapse.com/blog/2012/02/07/unit-conversion-for-alfred/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy Rails API</title>
		<link>http://gnapse.com/blog/2010/04/29/easy-rails-api/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=easy-rails-api</link>
		<comments>http://gnapse.com/blog/2010/04/29/easy-rails-api/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 14:09:43 +0000</pubDate>
		<dc:creator>ernesto</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://gnapse.com/blog/?p=128</guid>
		<description><![CDATA[There&#8217;s this great tool for browsing and searching the Rails API. Give it a try at http://railsapi.com It allows you to select what version of Rails (and Ruby) to browse, and the most awesome part is that you can download a compressed package to browse it offline locally in your own computer. It includes Rails [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s this great tool for browsing and searching the Rails API. Give it a try at <a title="http://railsapi.com" href="http://railsapi.com" target="_blank">http://railsapi.com</a></p>
<p>It allows you to select what version of Rails (and Ruby) to browse, and the most awesome part is that you can download a compressed package to browse it offline locally in your own computer. It includes Rails 3 beta and Ruby 1.9.x as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://gnapse.com/blog/2010/04/29/easy-rails-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

