<?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>BlinkTag Inc &#187; flickr</title>
	<atom:link href="http://blinktag.com/tag/flickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://blinktag.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jul 2010 04:50:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>simple python script and fun with GeoAPI</title>
		<link>http://blinktag.com/simple-python-script-and-fun-with-geoapi/</link>
		<comments>http://blinktag.com/simple-python-script-and-fun-with-geoapi/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:33:11 +0000</pubDate>
		<dc:creator>Brendan Nee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[geoapi]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[the mission]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blinktag.com/?p=787</guid>
		<description><![CDATA[I had my first opportunity yesterday to play around with the GeoAPI geo-referencing service. Although not quite as intuitive as Google Map&#8217;s forward and reverse geocoding services, GoeAPI gives you immediate access to geo-located feeds from Twitter, Flickr, and YouTube, plus the ability to create custom neighborhoods (what they called &#8220;guids&#8221;) for you to query. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://geoapi.com"><img src="http://blinktag.com/wp-content/uploads/2010/05/Screen-shot-2010-05-03-at-8.14.14-AM-300x119.png" alt="" title="Screen shot 2010-05-03 at 8.14.14 AM" width="300" height="119" class="alignright size-medium wp-image-788" /></a></p>
<p>I had my first opportunity yesterday to play around with the <a href="http://geoapi.com/">GeoAPI</a> geo-referencing service.  Although not quite as intuitive as <a href="http://code.google.com/apis/maps/documentation/services.html">Google Map&#8217;s forward and reverse geocoding services</a>, GoeAPI gives you immediate access to geo-located feeds from <a href="http://twitter.com">Twitter</a>, <a href="http://flickr.com/photos/jedhorne">Flickr</a>, and <a href="http://youtube.com">YouTube</a>, plus the ability to create custom neighborhoods (what they called &#8220;guids&#8221;) for you to query.</p>
<p>Sounds nerdy &#8211; so here&#8217;s the English translation:</p>
<p><em>You now can, with a few lines of code, get Tweets happening real-time in your neighborhood.</em></p>
<p>Fun?  I guess it depends on where you live.  Mostly what I&#8217;ve been finding is that my neighbors <a href="http://missionmission.wordpress.com/">are kind of pervs</a>.</p>
<p>Here&#8217;s a quick and dirty Python code sample for you to get started.  <a href="http://spreadsheets.google.com/viewform?formkey=dGJscE5kWmc1ZjVDUzFQUW8yMmdNa0E6MA">You&#8217;ll need your own API key first</a>.</p>
<p>Also, you&#8217;ll need to know the latitude and longitude of a point in the neighborhood you&#8217;re interested in.  Try (37.766 -122.417) for the Mission.  Also, because sometimes you get garbage for location data (like <em>Where: !!!!Frisco U noe!!!!</em>), I&#8217;ve add a quick parser to find correctly formatted latitude and longitude pairs.  Plenty more you can do with this with a few minutes of time.</p>
<p>&#8211; Nerdy Part &#8211;</p>
<pre>
import sys, os, json, urllib, re

#usage: python get_tweets.py [lat] [lng]

lat = sys.argv[1]
lng = sys.argv[2]

# Regex to find properly formatted lat-long pairs in the where response.

lat_lng_re = re.compile('^[\D]*[^-^\d](?P<lat>[\d\.-]+)\s*\,\s*(?P<lng>[\d\.-]+).*')
api = '[YOUR API KEY]'

parent_request = 'http://api.geoapi.com/v1/parents?lat=%s&#038;lon=%s&#038;apikey=%s' % (lat,lng,api)
response = urllib.urlopen(parent_request).read()

json1 = json.loads(response)

# Find your neighborhood 

guid = json1['result']['parents'][0]['guid']
print "\n\nYour neighborhood: %s\n\n" % json1['result']['parents'][0]['meta']['name']
print "--TWEETS--\n\n"

# Get Tweets in your neighborhood

tweets_request = 'http://api.geoapi.com/v1/e/%s/view/twitter?apikey=%s' % (guid,api)

response = urllib.urlopen(tweets_request).read()

json2 = json.loads(response)

for tweet in json2['result']:
	print "Tweet: %s" % tweet['text']
	print "When: %s" % tweet['created_at']
	loc = lat_lng_re.match(tweet['location'])
	if loc:
		print "Lat: %s Lng: %s" % (loc.group('lat'),loc.group('lng'))
	else:
		print "Unusable location: %s" % tweet['location']
	print "User: %s" % tweet['from_user']
	print "Profile image url: %s\n" % tweet['profile_image_url']
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/simple-python-script-and-fun-with-geoapi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>i’m famous, sort of, maybe . . .</title>
		<link>http://blinktag.com/i%e2%80%99m-famous-sort-of-maybe/</link>
		<comments>http://blinktag.com/i%e2%80%99m-famous-sort-of-maybe/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:04:04 +0000</pubDate>
		<dc:creator>Jed Horne</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[reno]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[virginia city]]></category>

		<guid isPermaLink="false">http://blnktag.com/?p=222</guid>
		<description><![CDATA[The picture on the right was chosen as a finalist for inclusion in Schmap’s forthcoming guide to Reno.  I don’t know much about them, but Schmap offers iPhone-enabled interactive maps/tour guides to destinations in the US and abroad.   Check them out, especially if they choose my shot. The backstory: I took a spur-of-the-moment trip [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blinktag.com/images/ae0d52ed6a6888df39e9de0ce63555f5.png" style="float:right;"><a href="http://flickr.com/photos/jedhorne/2880540480/in/set-72157607438920881/" target="_blank">The picture on the right</a> was chosen as a finalist for inclusion in <a href="http://www.schmap.com/" target="_blank">Schmap’s</a> forthcoming <a href="http://www.schmap.com/reno/home/" target="_blank">guide to Reno</a>.  I don’t know much about them, but Schmap offers iPhone-enabled interactive maps/tour guides to destinations in the US and abroad.   Check them out, especially if they choose my shot.</p>
<p>The backstory: I took a spur-of-the-moment trip to Nevada last July Fourth, and wound up in Virginia City on a lark.  Turns out they’re really into our nation’s birthday there (a guy at a biker bar told me that they are, quote, America Friendly, unquote, in the VC), and go all out with the historical costumes and country music or whatever.</p>
<p>Also, the geniuses at Schnap found my picture on <a href="http://flickr.com/photos/jedhorne" target="_blank">Flickr</a>.  Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/i%e2%80%99m-famous-sort-of-maybe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sick of flickr uploadr? Try this.</title>
		<link>http://blinktag.com/sick-of-flickr-uploadr-try-this/</link>
		<comments>http://blinktag.com/sick-of-flickr-uploadr-try-this/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 10:34:51 +0000</pubDate>
		<dc:creator>Brendan Nee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://blnktag.com/?p=203</guid>
		<description><![CDATA[Has anyone else ever wondered why flickr uploadr sucks so much?  I think the Mac version is particularly bad &#8211; it crashes if you try to upload more than a few pics at a time, you can’t really batch edit any of the metadata or rename your shots . . . all around a frustrating [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blinktag.com/images/7158c83a8bcdabdc76e2a811e8abfb86.png" style="float:left;">Has anyone else ever wondered why <a href="http://www.flickr.com/tools/uploadr/" target="_blank">flickr uploadr </a>sucks so much?  I think the Mac version is particularly bad &#8211; it crashes if you try to upload more than a few pics at a time, you can’t really batch edit any of the metadata or rename your shots . . . all around a frustrating experience, all the more so because <a href="../www.flickr.com?phpMyAdmin=3ddc4b321680t2293ba05" target="_blank">Flickr</a> is actually a pretty good site.</p>
<p>For those of you who use <a href="http://www.adobe.com/products/photoshoplightroom/" target="_blank">Adobe Lightroom</a> to manage your pictures (I’m a big fan), I’ve found <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;extid=1523518&amp;loc=en_us" target="_blank">this solution</a>.  It gives you (almost) all the flexibility you need to process and rename images and, best of all, hasn’t crashed on me yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://blinktag.com/sick-of-flickr-uploadr-try-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
