<?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>:Running Down the Way Up &#187; ruby</title>
	<atom:link href="http://johncavacas.com/blog/categories/programming/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://johncavacas.com/blog</link>
	<description>Insert blog description here</description>
	<lastBuildDate>Sat, 04 Jul 2009 22:34:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google geoservice</title>
		<link>http://johncavacas.com/blog/2006/07/30/google-geoservice/</link>
		<comments>http://johncavacas.com/blog/2006/07/30/google-geoservice/#comments</comments>
		<pubDate>Mon, 31 Jul 2006 01:54:46 +0000</pubDate>
		<dc:creator>jc</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://johncavacas.com/blog/2006/07/30/google-geoservice/</guid>
		<description><![CDATA[This is likelly old news to some, but Google Maps has an API that can return location coordinates. I&#8217;ve always wanted to know what the longitude and latitude of my house is, and short of going out and getting a GPS device, I hadn&#8217;t really tried to figure it out (yes i am lazy, or [...]]]></description>
			<content:encoded><![CDATA[<p>This is likelly old news to some, but Google Maps has an API that can <a href="http://www.google.com/apis/maps/documentation/#Geocoding_Examples">return location coordinates.</a> I&#8217;ve always wanted to know what the longitude and latitude of my house is, and short of going out and getting a GPS device, I hadn&#8217;t really tried to figure it out (yes i am lazy, or rather just too busy <img src='http://johncavacas.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). Well today I did, and i also wanted to have a quick command line way to find other locations. The Google API has a <a href="http://en.wikipedia.org/wiki/REST">REST</a> <a href="http://www.google.com/apis/maps/documentation/#Geocoding_HTTP_Request">HTTP interface</a>. One easy way to call this, is to use wget. But I wanted Ruby. So i wrote a little script which at its core has:</p>
<p>open(&#8216;http://maps.google.com/maps/geo?q=&#8217; + q + &#8216;&#038;output=&#8217; + format + &#8216;&#038;key=&#8217; + key) {|f|<br />
f.each_line {|line|<br />
result = line.split(&#8216;,&#8217;)<br />
}<br />
}</p>
<p>The output option is nice. I default to &#8216;csv&#8217; which ruby handles easely since I am only interested in the longitude and latitude, but you can get XML and <a href="http://en.wikipedia.org/wiki/JSON">JSON</a>.</p>
<p>The rest of the script is just picking up command line options and output. Which by the way, it looks like Ruby could really use a nice command line options interface. It has 2, but it would be nice to have something built in that is stupid simple. <a href="http://www.ruby-doc.org/stdlib/libdoc/getoptlong/rdoc/index.html">GetoptLong</a> is identical to get_optlong(), and and <a href="http://www.ruby-doc.org/stdlib/libdoc/getoptlong/rdoc/index.html">OptionParser</a> seems to be the new kid on the block, but the documentation is horrid. Or maybe its just too rubish for my understanding at this time. But back to the topic&#8230;<br />
Geotagging appears to be a growing trend, but it appears that there is no standard format of specifyinc this information. Any clues out there of what are the best options to geotag pages? Or even blog posts (that would be cooler then a page since you can write a blog from almost anywhere).</p>
<p><strong>Update:</strong></p>
<p>Interesting links:<br />
<a href="http://geocoder.us/">geocoder.us</a><br />
<a href="http://geocoder.ca/">geocoder.ca<br />
</a><a href="http://www.feedmap.net/BlogMap/About.aspx">feedmap</a><br />
<a href="http://beta.plazes.com/user/jaysee">plazes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://johncavacas.com/blog/2006/07/30/google-geoservice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On outsourcing</title>
		<link>http://johncavacas.com/blog/2005/11/05/on-outsourcing/</link>
		<comments>http://johncavacas.com/blog/2005/11/05/on-outsourcing/#comments</comments>
		<pubDate>Sat, 05 Nov 2005 16:00:03 +0000</pubDate>
		<dc:creator>jc</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.johncavacas.com/blog/?p=36</guid>
		<description><![CDATA[via Paul Graham:
During the Bubble, a lot of people predicted that startups would outsource their development to India. I think a better model for the future is David Heinemeier Hansson, who outsourced his development to a more powerful language instead. A lot of well-known applications are now, like Basecamp, written by just one programmer. And [...]]]></description>
			<content:encoded><![CDATA[<p>via <a href="http://www.paulgraham.com/vcsqueeze.html">Paul Graham</a>:</p>
<blockquote><p>During the Bubble, a lot of people predicted that startups would outsource their development to India. I think a better model for the future is David Heinemeier Hansson, who outsourced his development to a more powerful language instead. A lot of well-known applications are now, like Basecamp, written by just one programmer. And one guy is more than 10x cheaper than ten, because (a) he wonâ€™t waste any time in meetings, and (b) since heâ€™s probably a founder, he can pay himself nothing.</p></blockquote>
<p>Then via <a href="http://37signals.com/svn/archives2/paul_graham_on_the_vc_squeeze.php">Jason from 37Signals</a>:</p>
<blockquote><p>Why toss an app over the pond to a programmer body shop in India when you can do it here at home with one guy? Thatâ€™s what Ruby on Rails lets you do. And thatâ€™s one of the reasons we open-sourced it. Everyone can benefit. We not only want to make software thatâ€™s dead simple to use, we want to make tools that make it dead simple to write software.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://johncavacas.com/blog/2005/11/05/on-outsourcing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
