<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/1.5" --><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Michael Young  [81nassau]</title>
	<link>http://81nassau.com/blog</link>
	<description />
	<pubDate>Sun, 10 Aug 2008 12:20:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5</generator>
	<language>en</language>

		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/81nassau" type="application/rss+xml" /><item>
		<title>Pitchfork + HypeMachine + Twitter - New Music Feed</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/267442547/</link>
		<comments>http://81nassau.com/blog/?p=30#comments</comments>
		<pubDate>Thu, 10 Apr 2008 09:28:43 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Hacks</category>
	<category>Music</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=30</guid>
		<description><![CDATA[I just threw together an app that pulls down the daily record reviews from Pitchfork and Metacritic and creates a twitter feed of all of the reviews over 7/10 (or 70/100 in the case of Metacritic). All of the reviews in the Twitter feed link off to tracks on hypem.  I'm hoping it creates [...]]]></description>
			<content:encoded><![CDATA[	<p>I just threw together an app that pulls down the daily record reviews from <a href="http://www.pitchforkmedia.com/">Pitchfork</a> and <a href="http://www.metacritic.com/music/">Metacritic</a> and creates a twitter feed of all of the reviews over 7/10 (or 70/100 in the case of Metacritic). All of the reviews in the <a href="http://twitter.com/new_music">Twitter</a> feed link off to tracks on <a href="http://hypem.com">hypem</a>.  I&#8217;m hoping it creates an easy way to find new music&#8230;just follow the feed on Twitter and it&#8217;ll typically give you 2-4 new albums in your feed each day with links off to some tracks from each album.</p>
	<p>Here is a link to the Twitter feed:</p>
	<p><a href="http://twitter.com/new_music">www.twitter.com/new_music</a></p>
	<p>Inspiration came from an old <a href="http://nymag.com/news/features/16529/index2.html">New York Magazine</a> article that talked about people who only &#8220;Listen To Anything rated over 8.0 on Pitchforkmedia.com.&#8221;  This could be the killer app for those folks.</p>
	<p>Update:<br />
Silicon Alley Insider says the new_music twitter feed is one of <a href="http://www.alleyinsider.com/2008/5/ten_news_information_twitter_feeds_you_should_follow">Ten News &#038; Information Twitter Feeds You Should Follow</a></p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=30</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=30</feedburner:origLink></item>
		<item>
		<title>Hack Day London Winners - Shifd.com</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/140711406/</link>
		<comments>http://81nassau.com/blog/?p=25#comments</comments>
		<pubDate>Sun, 05 Aug 2007 01:34:28 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Development</category>
	<category>Mobile</category>
	<category>Hack Day</category>
	<category>shifd.com</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=25</guid>
		<description><![CDATA[Nick Bilton and I were in London last month to take part in the Yahoo!/BBC Hack Day and ended up winning the award for "Overall Best Hack!"   

The application/hack that we built is something that we are calling "shifd", which is pronounced "shift", not "shifty"...though Nick is kind of a shifty guy... Anyway, [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://nickbilton.org">Nick Bilton</a> and I were in London last month to take part in the <a href="http://hackday.org">Yahoo!/BBC Hack Day</a> and ended up winning the award for &#8220;<a href="http://developer.yahoo.net/hackday/2007/06/the_hack_day_london_winners_li.html">Overall Best Hack</a>!&#8221;   </p>
	<p>The application/hack that we built is something that we are calling &#8220;shifd&#8221;, which is pronounced &#8220;shift&#8221;, not &#8220;shifty&#8221;&#8230;though Nick is kind of a shifty guy&#8230; Anyway, we wanted to build something that allows you to shift between your desktop, mobile, tv, car, etc experiences in a more seamless way&#8230;</p>
	<p>Hack Day was a tremendous experience&#8230;I won&#8217;t reiterate everything here&#8230;we did a few interviews on our Hack Day experience with the great folks at <a href="http://backstage.bbc.co.uk/news/archives/2007/07/hackday_the_ove.html">BBC Backstage</a> and Yahoo! Developers Network (<a href="http://developer.yahoo.net/blog/archives/2007/07/interview_with.html">part 1</a>, <a href="http://developer.yahoo.net/blog/archives/2007/07/interview_with_1.html">part 2</a>).  Below is a video that explains our hack (we shot it right after we got back from Hack Day and hadn&#8217;t slept in three days, so be warned!) and some links to some of the tools that we used in our application.</p>
	<p><embed src='http://admin.brightcove.com/destination/player/player.swf' bgcolor='#FFFFFF' flashVars='allowFullScreen=true&#038;initVideoId=1043054570&#038;servicesURL=http://www.brightcove.com&#038;viewerSecureGatewayURL=https://www.brightcove.com&#038;cdnURL=http://admin.brightcove.com&#038;autoStart=false' base='http://admin.brightcove.com' name='bcPlayer' width='486' height='412' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false' type='application/x-shockwave-flash' swLiveConnect='true' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed></p>
	<p><strong>In the News</strong><br />
<a href="http://www.makezine.com/blog/archive/2007/07/integrating_rfid_with_web.html">Integrating RFID with Web Content on your Phone</a> (makezine.com/blog)<br />
<a href="http://developer.yahoo.net/blog/archives/2007/07/interview_with.html">Interview with Shifd Creators: Nick Bilton and Michael Young, Pt. I</a> (developer.yahoo.net)<br />
<a href="http://developer.yahoo.net/blog/archives/2007/07/interview_with_1.html">Interview with Shifd Creators: Nick Bilton and Michael Young, Pt. II</a> (developer.yahoo.net)<br />
<a href="http://backstage.bbc.co.uk/news/archives/2007/07/hackday_the_ove.html">Hackday: The overall winners point of view</a> (backstage.bbc.co.uk)<br />
<a href="http://developer.yahoo.net/blog/archives/2007/06/hack_day_london_winners.html">The winning hacks from Hack Day London</a> (developer.yahoo.net)<br />
<a href="http://www.techcrunch.com/2007/06/26/shifd-a-clever-mobile-app-from-the-ny-times/">Shifd: A Clever Mobile App From The NY Times</a> (techcrunch.com)<br />
<a href="http://www.moconews.net/entry/419-computers-noticing-mobiles-via-rfid">Computers Noticing Mobiles Via RFID</a> (moconews.net)<br />
<a href="http://venturebeat.com/2007/06/26/shifd-allows-seamless-shift-between-pc-and-cellphone/">Shifd allows seamless shift between PC and cellphone</a> (venturebeat.com)<br />
<a href="http://www.wired.com/software/coolapps/news/2007/06/hackday">Geeks Bust Out Brollies as Rain Falls Indoors at Hack Day London</a> (wired.com)</p>
	<p><strong>What We Used to Build It</strong><br />
<a href="http://www.phidgets.com">RFID Reader (USB) and an array of RFID Tags (from phidgets.com)</a><br />
<a href="http://www.sonyericsson.com/spg.jsp?cc=global&#038;lc=en&#038;ver=4001&#038;template=pp1_1_1&#038;zone=pp&#038;lm=pp1&#038;pid=10409">Mobile Phone (Sony Ericsson)</a><br />
<a href="http://www.phidgets.com/downloads.php?os_id=2">Java (Phidget API/Library)</a><br />
<a href="http://www.php.net">PHP</a><br />
<a href="http://www.mysql.com">MySQL</a><br />
<a href="http://script.aculo.us/">Scriptaculous</a><br />
<a href="http://developer.yahoo.com/yui/">Yahoo! UI Library</a><br />
<a href="http://developer.yahoo.com/search/local/V2/localSearch.html">Yahoo! Local Search API (version 2)</a><br />
<a href="http://developer.yahoo.com/maps/rest/V1/mapImage.html">Yahoo! Maps - Map Image API</a><br />
SMS<br />
<a href="http://news.bbc.co.uk/2/hi/help/3223484.stm">BBC</a>, <a href="http://news.yahoo.com/rss">Yahoo</a> and <a href="http://www.nytimes.com/services/xml/rss/">The New York Times</a> Feeds<br />
<a href="http://www.guinness.com">Guinness Beer</a></p>
	<p><strong>Why RFID??</strong><br />
RFID may or may not be the proper technology to use here.  Of course <a href="http://en.wikipedia.org/wiki/Bluetooth">Bluetooth</a> or <a href="http://en.wikipedia.org/wiki/Near_Field_Communication">NFC</a> achieves the same thing that we were trying to achieve with RFID - detecting presence.  We&#8217;ve gotten a lot of <em>&#8220;Why the hell did you use RFID for this?  You should have used Bluetooth!&#8221;</em>comments. Sure, Bluetooth is much more prevalent and no one has an RFID reader hooked up to their laptop/desktop&#8230; but remember that this was all about a &#8220;hack&#8221; that we had to throw together in 24 hours.  Here&#8217;s a few reasons why we ended up using RFID:  </p>
	<ol>
	<li>It was very easy to implement a quick &#8220;hack&#8221; that would detect &#8220;presence&#8221; for us using the RFID tags/readers that we took along with us to Hack Day.  We only had 24 hours to build this thing and I didn&#8217;t want to mess around with a Bluetooth library that I&#8217;ve never used before.  RFID was easy and that&#8217;s why we used it.
</li>
	<li>A lot of the developers at Hack Day that tried to use Bluetooth in their hacks had to resort to &#8220;wired&#8221; solutions because of all of the noise/interference in the room at Alexandra Palace.  Everyone that got up on stage to present their Bluetooth hack said something along the lines of &#8220;well, we tried to use bluetooth but couldn&#8217;t get it working in this room&#8230;&#8221;.   I&#8217;m glad we ended up using RFID&#8230;..
</li>
	</ol>
	<p><strong>What&#8217;s Next?</strong><br />
We are working on putting out a version of <a href="http://shifd.com">shifd.com</a> in the next few months.  We&#8217;re going to launch the web and mobile pieces first and then will layer in the &#8220;presence&#8221; in a later release (using Bluetooth, etc).   </p>
	<p>If you&#8217;re interested in checking it out, please sign up on <a href="http://shifd.com">shifd.com</a> or shoot me an email and we&#8217;ll let you know when it&#8217;s ready!</p>
	<p><img src="http://81nassau.com/blog/wp-images/besthack.jpg" alt="London Hack Day Winner" /></p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=25</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=25</feedburner:origLink></item>
		<item>
		<title>NYTimes R+D Group</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049951/</link>
		<comments>http://81nassau.com/blog/?p=23#comments</comments>
		<pubDate>Wed, 28 Feb 2007 10:30:50 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Work</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=23</guid>
		<description><![CDATA[There was an article in the Financial Times last week about my group at the NYTimes. 

'Futurist in residence' a sign of the NY Times

As he ticks off their qualifications - a maths whizz, a linguist, a newspaper design-er and a "business catalyst" - one imagines the early scenes of a Hollywood action film, in [...]]]></description>
			<content:encoded><![CDATA[	<p>There was an article in the Financial Times last week about my group at the NYTimes. </p>
	<p><a href="http://www.ft.com/cms/s/45a94454-c2e2-11db-9e1c-000b5df10621.html">&#8216;Futurist in residence&#8217; a sign of the NY Times</a></p>
	<blockquote><p>As he ticks off their qualifications - a maths whizz, a linguist, a newspaper design-er and a &#8220;business catalyst&#8221; - one imagines the early scenes of a Hollywood action film, in which superheroes with diverse talents are assembled for a big mission.</p></blockquote>
	<p>Classic - superhero reference.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=23</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=23</feedburner:origLink></item>
		<item>
		<title>NYTimes Launches New Mobile Site</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049952/</link>
		<comments>http://81nassau.com/blog/?p=22#comments</comments>
		<pubDate>Sun, 10 Sep 2006 05:36:52 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Mobile</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=22</guid>
		<description><![CDATA[

The New York Times launched their new mobile site this week:  mobile.nytimes.com.  You can also access the site at m.nyt.com, which is nice when typing in the URL on your phone.

The site is rich with content -- you can get pretty much all of the "text" content you can get on nytimes.com.  [...]]]></description>
			<content:encoded><![CDATA[	<p><img src="http://graphics8.nytimes.com/images/misc/nytlogo153x23.gif" alt="New York Times" /></p>
	<p>The New York Times launched their new mobile site this week:  <a href="http://mobile.nytimes.com">mobile.nytimes.com</a>.  You can also access the site at <a href="http://m.nyt.com">m.nyt.com</a>, which is nice when typing in the URL on your phone.</p>
	<p>The site is rich with content &#8212; you can get pretty much all of the &#8220;text&#8221; content you can get on <a href="http://nytimes.com">nytimes.com</a>.  The site looks great on phones with larger screen (Treos, Blackberrys, etc) but is text-heavy on smaller phones.  This is the first launch of the site, and it will go through some changes in upcoming releases.  Some UI changes need to be made to it, especially for smaller-screen phones (e.g. I have to scroll across the <em>Log In</em> and <em>TimesSelect</em> links, as well as the main ad, before I can access the first story link).  Jakob Nielsen makes some <a href="http://www.paidcontent.org/new-york-times-launches-mobile-site-microsoft-advertising-on-it#comments">valid comments</a> about the new site&#8217;s UI on <a href="http://www.paidcontent.org/new-york-times-launches-mobile-site-microsoft-advertising-on-it">paidcontent.org</a>.  Look for some updates to the site in the coming months&#8230;</p>
	<p>Here is a screenshot of the site&#8217;s main page, with only the first story shown:</p>
	<p><img src="http://81nassau.com/blog/images/nytmobile.jpg" alt="NYTimes Mobile" />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=22</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=22</feedburner:origLink></item>
		<item>
		<title>Additional Categories for AP News + Google Maps Mashup</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049953/</link>
		<comments>http://81nassau.com/blog/?p=21#comments</comments>
		<pubDate>Fri, 06 Jan 2006 00:00:53 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Development</category>
	<category>Web Services</category>
	<category>Maps</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=21</guid>
		<description><![CDATA[I added a few more news categories to the AP News mashup.   It now plots the following AP feeds on the Google map:

	National News
	Sports
	Business
	Technology
	Strange


You can also toggle the news categories on the map so that you can show/hide the various pins.  Hopefully it's a little more useful now... ]]></description>
			<content:encoded><![CDATA[	<p>I added a few more news categories to the <a href="http://81nassau.com/apnews/">AP News mashup</a>.   It now plots the following <a href="http://hosted.ap.org/dynamic/fronts/RSS?SITE=CAFRA&#038;SECTION=HOME">AP feeds</a> on the Google map:</p>
	<ul>
	<li>National News</li>
	<li>Sports</li>
	<li>Business</li>
	<li>Technology</li>
	<li>Strange</li>
	</ul>
	<p>You can also toggle the news categories on the map so that you can show/hide the various pins.  Hopefully it&#8217;s a little more useful now&#8230;
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=21</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=21</feedburner:origLink></item>
		<item>
		<title>AP News Mashup in Wall Street Journal Article</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049954/</link>
		<comments>http://81nassau.com/blog/?p=19#comments</comments>
		<pubDate>Wed, 21 Dec 2005 09:56:57 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Web Services</category>
	<category>Maps</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=19</guid>
		<description><![CDATA[The AP News Mashup I put together last weekend was mentioned in the Where in the World... Wall Street Journal article (sub. required) yesterday.  

81Nassau.com/apnews
This map plots the locations of recent U.S. news stories from the Associated Press. Users can click on each location to view the first few sentences of the story or [...]]]></description>
			<content:encoded><![CDATA[	<p>The <a href="http://81nassau.com/apnews">AP News Mashup</a> I put together last weekend was mentioned in the <a href="http://online.wsj.com/article/SB113459528269322615.html"><em>Where in the World&#8230;</em></a> Wall Street Journal article (sub. required) yesterday.  </p>
	<blockquote><p><em><a href="http://81nassau.com/apnews">81Nassau.com/apnews</a><br />
This map plots the locations of recent U.S. news stories from the Associated Press. Users can click on each location to view the first few sentences of the story or link to the full article.</em></p></blockquote>
	<p>Thanks to the author Jessica Vascellaro for the mention!</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=19</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=19</feedburner:origLink></item>
		<item>
		<title>AP News + Google Maps Mashup</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049955/</link>
		<comments>http://81nassau.com/blog/?p=18#comments</comments>
		<pubDate>Fri, 09 Dec 2005 08:04:57 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Development</category>
	<category>Web Services</category>
	<category>Maps</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=18</guid>
		<description><![CDATA[
I just finished a simple app that plots the current AP National news stories on top of Google Maps.  

http://81nassau.com/apnews/

The app is a mix of the AP's National News RSS Feed + Yahoo! Geocoding API + Google Maps.  

I have a process running on my server that grabs and parses the AP RSS [...]]]></description>
			<content:encoded><![CDATA[	<p><img src="http://www.ap.org/media/images/logo.gif" alt="The Associated Press" /><br />
I just finished a simple app that plots the current AP National news stories on top of Google Maps.  </p>
	<p><a href="http://81nassau.com/apnews/">http://81nassau.com/apnews/</a></p>
	<p>The app is a mix of the <a href="http://hosted.ap.org/dynamic/fronts/RSS?SITE=CAFRA&#038;SECTION=HOME">AP&#8217;s National News RSS Feed</a> + <a href="http://developer.yahoo.net/maps/rest/V1/geocode.html">Yahoo! Geocoding API</a> + <a href="http://www.google.com/apis/maps/">Google Maps</a>.  </p>
	<p>I have a process running on my server that grabs and parses the AP RSS feed.  I parse the location from each story &#8212; AP puts a location at the beginning of each story, for example &#8220;<em>NEW YORK (AP) &#8212; Millions of New Yorkers&#8230;</em>&#8220;, which is typically city, state or just a city (e.g. &#8220;Washington&#8221; as in DC).  I then convert the location to a latitude/longitude point using the Yahoo! Geocode API.  Once that&#8217;s done for each of the stories, I write a simple XML file back out to the server &#8212; the XML file is basically the RSS file with additional fields for the latitude and longitude of each story.  When you load the <a href="http://81nassau.com/apnews/">mashup site</a> in your browser, I use some JavaScript AJAX calls to load, parse and display the stories from the new XML file on the Google Map. </p>
	<p>There are typically ten stories in the AP feed and it&#8217;s usually updated every 30 minutes to an hour.</p>
	<p>It&#8217;s a pretty simple app, but I figure it might be useful to some.  It was more of a proof of concept than anything. Hopefully my mom can use it in her classroom to help teach the elementary kids about geography + current events&#8230;</p>
	<p>My TODO/Things-To-Fix list:</p>
	<ul>
	<li>Automatically refresh the stories in the browser window.  Check for new stories on the server every x minutes.</li>
	<li>Stories in the same city are plotted on top of each other on the map.</li>
	<li>Pan out a level and center the map if any stories are in Hawaii or Alaska.</li>
	</ul>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=18</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=18</feedburner:origLink></item>
		<item>
		<title>Using Yahoo Geocode API and Google Maps</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049956/</link>
		<comments>http://81nassau.com/blog/?p=17#comments</comments>
		<pubDate>Thu, 01 Dec 2005 05:16:28 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Development</category>
	<category>Web Services</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=17</guid>
		<description><![CDATA[I put an app together this weekend that geocodes an address from an input form and displays the location on a Google map.  I've cleaned it up a little and put it online for anyone who's interested...

http://81nassau.com/demos/geocode/

The app consists of a simple HTML form that allows you to input street, city and state.  [...]]]></description>
			<content:encoded><![CDATA[	<p>I put an app together this weekend that geocodes an address from an input form and displays the location on a Google map.  I&#8217;ve cleaned it up a little and put it online for anyone who&#8217;s interested&#8230;</p>
	<p><a href="http://81nassau.com/demos/geocode/">http://81nassau.com/demos/geocode/</a></p>
	<p>The app consists of a simple HTML form that allows you to input street, city and state.   The lookup/submit button on the form initiates an XmlHttpRequest (ajax) to a simple PHP proxy script that I wrote.  The PHP script takes the form input (street, city, state) and creates a <a href="http://developer.yahoo.net/maps/rest/V1/geocode.html">Yahoo! Geocode REST</a> request, and makes the request to the Yahoo! geocode service.  The script then returns the Yahoo! XML data back to the browser.  Some javascript is used to parse the XML from Yahoo! and put the lat, lng and zip on the form.  A pin is also drawn on the map (Google).</p>
	<p>Below is the code for the simple PHP proxy.   Feel free to take/use the code as well as the html/javascript.  Just do a view-source on the demo link above to see the html/javascript.  Please note that there is <strong>minimal</strong> error checking in all of the code&#8230;add where needed.</p>
	<p>Enjoy!</p>
	<p><code><br />
&lt; ?php<br />
&nbsp;<br />
// Simple proxy script for Yahoo! Geocode API<br />
// Note: there is no error checking done on the input or return from Yahoo!<br />
&nbsp;<br />
header(&#039;Content-type: text/xml&#039;);<br />
&nbsp;<br />
$street = $_REQUEST[&quot;street&quot;];<br />
$city&nbsp;&nbsp; = $_REQUEST[&quot;city&quot;];<br />
$state&nbsp;&nbsp;= $_REQUEST[&quot;state&quot;];<br />
&nbsp;<br />
$url = &#039;http://api.local.yahoo.com/MapsService/V1/geocode?appid=YOUR_APP_ID_GOES_HERE&#039; .<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;&amp;street=&#039; . urlencode($street) .<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;&amp;city=&#039; . urlencode($city) .<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;&amp;state=&#039; . urlencode($state);<br />
&nbsp;<br />
$xml = get_content($url);<br />
&nbsp;<br />
print $xml;<br />
&nbsp;<br />
function get_content($url)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$string = &#039;&#039;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$handle = fopen($url, &quot;r&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($handle)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// php 5<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$string = stream_get_contents($handle);<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* php4<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while (!feof($handle)) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$string .= fread($handle, 8192);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose($handle);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return $string;<br />
}<br />
&nbsp;<br />
?&gt;<br />
</code>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=17</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=17</feedburner:origLink></item>
		<item>
		<title>XML Weather Feeds</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049957/</link>
		<comments>http://81nassau.com/blog/?p=13#comments</comments>
		<pubDate>Fri, 02 Sep 2005 01:52:00 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Web Services</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=13</guid>
		<description><![CDATA[

Yahoo just released rss weather feeds: http://weather.yahoo.com/rss.  

This is fantastic.  You can get current conditions as well as five-day forecast data.  This is the same feed that is used by the Konfabulator widget.

The format of the URL for the feed is:

http://xml.weather.yahoo.com/forecastrss?p=USNY0996&#038;u=f 

p is a US zip or a Yahoo! Weather location ID
u [...]]]></description>
			<content:encoded><![CDATA[	<p><img src="http://us.i1.yimg.com/us.yimg.com/i/us/we/we4c.gif" alt="Yahoo Weather" /></p>
	<p>Yahoo just released rss weather feeds: <a href="http://weather.yahoo.com/rss">http://weather.yahoo.com/rss</a>.  </p>
	<p>This is fantastic.  You can get current conditions as well as five-day forecast data.  This is the same feed that is used by the Konfabulator widget.</p>
	<p>The format of the URL for the feed is:</p>
	<p><code>http://xml.weather.yahoo.com/forecastrss?p=USNY0996&amp;u=f </code></p>
	<p><strong>p</strong> is a US zip or a Yahoo! Weather location ID<br />
<strong>u</strong> is the temp. units.  &#8216;F&#8217; for Fahrenheit (default) and &#8216;C&#8217; for celcius</p>
	<p>A nice little addition to the feed is the latitude and longitude tags&#8230;</p>
	<p>Here is a quick and dirty perl script that grabs the rss feed for my zip (10013) and prints the curr conditions and forecast to the screen.  No error checking done (for readability)&#8230;<br />
<code><br />
&nbsp;<br />
#!/usr/bin/perl -w<br />
&nbsp;<br />
# grab weather xml from yahoo rss feed<br />
&nbsp;<br />
use strict;<br />
use LWP::Simple;<br />
use XML::XPath;<br />
&nbsp;<br />
my $data_url = <br />
&quot;http://xml.weather.yahoo.com/forecastrss?p=10013&amp;u=f&quot;;<br />
&nbsp;<br />
# get data and drop it in a file<br />
my $xml_data = get ($data_url);<br />
&nbsp;<br />
# use XPath to parse the file<br />
my $xp = XML::XPath-&gt;new(xml =&gt; $xml_data);<br />
&nbsp;<br />
# no error checking&#46;..<br />
&nbsp;<br />
# current conditions<br />
my $curr_cond = <br />
$xp-&gt;find(&#039;/rss/channel/item/yweather:condition&#039;)-&gt;get_node(1);<br />
&nbsp;<br />
print $curr_cond-&gt;find(&#039;@text&#039;) . &quot;: &quot; . <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$curr_cond-&gt;find(&#039;@temp&#039;) . &quot;\n\n&quot;;<br />
&nbsp;<br />
# forecast<br />
foreach my $forecast ($xp-&gt;find(&#039;/rss/channel/item/yweather:forecast&#039;)-&gt;get_nodelist)<br />
{<br />
&nbsp;&nbsp;print $forecast-&gt;find(&#039;@day&#039;) . &quot;: &quot; . <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$forecast-&gt;find(&#039;@text&#039;) . &quot;. &quot; .<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;High &quot; . $forecast-&gt;find(&#039;@high&#039;) . &quot;, &quot; .<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Low &quot;&nbsp;&nbsp;. $forecast-&gt;find(&#039;@low&#039;) . &quot;\n&quot;;<br />
}<br />
</code></p>
	<p><strong>National Weather Service</strong></p>
	<p>The National Weather Service has XML weather feeds available at <a href="http://www.weather.gov/xml/">http://www.weather.gov/xml/</a>.   You can get current conditions, forecasts, watch/warnings, etc&#8230;  The current conditions have a REST API while the forecasts are SOAP.   </p>
	<p>For current conditions/observations, they have both RSS and CAP/XML feeds.<br />
Examples of the feeds:<br />
<a href="http://www.weather.gov/data/current_obs/KNYC.rss">Central Park NYC RSS Feed</a><br />
<a href="http://www.weather.gov/data/current_obs/KNYC.xml">Central Park NYC XML Feed</a></p>
	<p><strong>Weather.com</strong></p>
	<p>You can sign up to get access to weather.com&#8217;s current conditions and forecast feeds at <a href="http://www.weather.com/services/xmloap.html">http://www.weather.com/services/xmloap.html</a>.  During the signup, they ask you what type of application the data will be used in and they throw a few pages of lame offers at you (<em>&#8220;Sign me up for Timely Gardening Tips from Miracle-Gro&#8221;</em>). wtf!?</p>
	<p>I think the original Konfabulator widget used the weather.com feed&#8230;I seem to remember poking through the javascript at one point.  Anyway, no need to go through the signup process for weather.com when you can use the Yahoo! or NWS feeds.</p>
	<p><strong>WeatherBug</strong></p>
	<p>WeatherBug released their weather API (REST) a few months ago: <a href="http://api.weatherbug.com/default.aspx">http://api.weatherbug.com/default.aspx</a>.  </p>
	<p>You have to sign up and get a license code to use it.</p>
	<p>According to the site, you can access:</p>
	<blockquote>
	<ul>
	<li>Live weather and wind data</li>
	<li>Severe weather alert checks</li>
	<li>3-day forecasts</li>
	<li>7-day highs and lows</li>
	</ul>
	</blockquote>
	<p>I have yet to try this one out&#8230;
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=13</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=13</feedburner:origLink></item>
		<item>
		<title>Color Syntax for VIM on OS X</title>
		<link>http://feeds.feedburner.com/~r/81nassau/~3/109049958/</link>
		<comments>http://81nassau.com/blog/?p=14#comments</comments>
		<pubDate>Wed, 31 Aug 2005 22:33:24 +0000</pubDate>
		<dc:creator>Michael Young</dc:creator>
		
	<category>Mac</category>
		<guid isPermaLink="false">http://81nassau.com/blog/?p=14</guid>
		<description><![CDATA[

I recently tried installing gvim on my mac (highly disappointing) and accidentally wiped out my old .vimrc file in the process.  The old .vimrc file had the settings to enable color syntax.  So after uninstalling gvim, I was left with the default vim (v6.2) with no color syntax.  Easy enough to fix, [...]]]></description>
			<content:encoded><![CDATA[	<p><img src="http://81nassau.com/blog/images/vim_small.gif" alt="vim" /></p>
	<p>I recently tried installing <a href="http://macvim.org/OSX/index.php">gvim on my mac</a> (highly disappointing) and accidentally wiped out my old .vimrc file in the process.  The old .vimrc file had the settings to enable color syntax.  So after uninstalling gvim, I was left with the default vim (v6.2) with no color syntax.  Easy enough to fix, so I searched google for the settings, since I can never remember them.  There are plenty of posts which will tell you to do the following to enable color syntax from vim:<br />
<code><br />
:set term=builtin_beos-ansi<br />
:syntax on<br />
</code></p>
	<p>This gave me some weak syntax coloring/markup, where the only coloring was red and most of the code in a file (I was looking at a php file) was underlined.  So, I set the term to &#8220;ansi&#8221; and it fixed things nicely.<br />
<code><br />
:set term=ansi<br />
:syntax on<br />
</code></p>
	<p>Drop those lines into your ~/.vimrc file (without the colons) and you should be set&#8230;. assuming you have all of the syntax files installed on your machine.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://81nassau.com/blog/wp-commentsrss2.php?p=14</wfw:commentRSS>
	<feedburner:origLink>http://81nassau.com/blog/?p=14</feedburner:origLink></item>
	</channel>
</rss>
