<?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>Andrew Plemmons Pratt &#187; web development</title>
	<atom:link href="http://www.appratt.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.appratt.com</link>
	<description>Learning, teaching, pirates, etc.</description>
	<lastBuildDate>Tue, 22 Jun 2010 04:20:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>NPR and PHP</title>
		<link>http://www.appratt.com/2009/05/10/npr-and-php/</link>
		<comments>http://www.appratt.com/2009/05/10/npr-and-php/#comments</comments>
		<pubDate>Mon, 11 May 2009 02:41:19 +0000</pubDate>
		<dc:creator>Andrew Plemmons Pratt</dc:creator>
				<category><![CDATA[media]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://www.appratt.com/?p=42</guid>
		<description><![CDATA[Every so often, I&#8217;m on a road trip, driving around the great southern states, and I&#8217;m overtaken with a very strong need for some public radio. Unfortunately, I don&#8217;t have one of the handy NPR Station Locator Maps. I also &#8230; <a href="http://www.appratt.com/2009/05/10/npr-and-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="picright alignright" src="http://www.appratt.com/wp-content/uploads/2009/05/npr_technology_image_240.jpg" alt="NPR Technology" width="240" height="240" />Every so often, I&#8217;m on a road trip, driving around the great southern states, and I&#8217;m overtaken with a very strong need for some public radio. Unfortunately, I don&#8217;t have one of the handy <a href="http://shop.npr.org/products/NPR_Station_Locator_Map-120-0.html?utm_source=120&amp;utm_medium=banner&amp;utm_content=stationsmap&amp;utm_campaign=misc">NPR Station Locator Maps</a>. I also don&#8217;t have an iPhone, for which I could get the free <a href="http://watchoutforlava.net/iphone">NPR Station Locator app</a>. What I have is a work-detail Blackberry and soft sport for dabbling in scripting languages. So I took the opportunity to learn some PHP and build a rudimentary station finder using the <a href="http://www.npr.org/api/index">NPR API</a>.</p>
<p>NPR of course offers a spiffy web-based <a href="http://www.npr.org/stations/?ps=st1">station finder map</a> for scoring your closest Wait Wait Don&#8217;t Tell Me! or All Things Considered fix. But it&#8217;s a little too full-featured to work on a dinky mobile browser. But let&#8217;s also not kid ourselves about functionality here; this was an excuse to learn some super-basic PHP:</p>
<p><a href="http://appratt.com/npr/">http://appratt.com/npr/</a></p>
<p>We&#8217;ll call this version 1.0 because it lacks anything resembling a design; it doesn&#8217;t verify that you&#8217;re feeding it ZIP codes or return appropriate error messages if nothing is in range; and it doesn&#8217;t indicate station strength (though station strength is something you can figure out pretty quickly with your tuner).</p>
<p>What is does do is query the NPR API and return a list of the closest stations with city and call number, ranked in order of proximity. Which is all you need when you know you&#8217;re missing Michelle Norris and all you can find is Delilah.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.appratt.com/2009/05/10/npr-and-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
