<?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>super-cooper</title>
	<atom:link href="http://www.super-cooper.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.super-cooper.com</link>
	<description>Python, GIS, and a sprinkling of mindless drivel from Chad Cooper</description>
	<lastBuildDate>Wed, 08 Dec 2010 02:12:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Using curl to quickly fetch images from the web</title>
		<link>http://www.super-cooper.com/archive/2010/09/13/using-curl-to-quickly-fetch-images-from-the-web/</link>
		<comments>http://www.super-cooper.com/archive/2010/09/13/using-curl-to-quickly-fetch-images-from-the-web/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 02:02:53 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=236</guid>
		<description><![CDATA[Just now I had 48 images in a web directory that I needed to download. Being lazy efficient like I am, I wasn&#8217;t about to settle for right-clicking on each one and downloading it &#8211; oh, the horror. A quick hit on Google, and I found this little gem for curl, which is installed by [...]]]></description>
			<content:encoded><![CDATA[<p>Just now I had 48 images in a web directory that I needed to download. Being <del datetime="2010-12-08T02:11:44+00:00">lazy</del> efficient like I am, I wasn&#8217;t about to settle for right-clicking on each one and downloading it &#8211; oh, the horror. A quick hit on Google, and I found this little gem for <a href="http://curl.haxx.se/">curl</a>, which is installed by default on OS X:</p>
<p><code>curl -O http://site/path/file-[001-048].jpg</code></p>
<p>Where the files where named file-001, file-002&#8230;.file-048. curl allows you to bracket the range of numbers. Fetched &#8216;em all in about 15 seconds. The -O flag tells curl to save the file locally with the same remote filename. Personally, I&#8217;ve been a fan of <a href="http://www.gnu.org/software/wget/">wget</a> on Windows for years, but curl worked great for this on the Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2010/09/13/using-curl-to-quickly-fetch-images-from-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retro: Nice rig, man</title>
		<link>http://www.super-cooper.com/archive/2010/08/21/retro-nice-rig-man/</link>
		<comments>http://www.super-cooper.com/archive/2010/08/21/retro-nice-rig-man/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 20:22:37 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[retrospect]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=221</guid>
		<description><![CDATA[Sometimes my own idiocy amazes me. A week or so ago, I took the boys to Rick&#8217;s Bakery (best sausage rolls and donuts on the planet, but bad website &#8211; horribly broken in Chrome). As we were leaving and getting into the wife&#8217;s Armada, I heard the guy next to me, who was also getting [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes my own idiocy amazes me. A week or so ago, I took the boys to <a href="http://www.ricksbakery.com/">Rick&#8217;s Bakery</a> (best sausage rolls and donuts on the planet, but bad website &#8211; horribly broken in Chrome). As we were leaving and getting into the wife&#8217;s Armada, I heard the guy next to me, who was also getting into his car, say:</p>
<blockquote><p>&#8220;Nice rig, man&#8221;</p></blockquote>
<p>My back was turned when he spoke, so I turned around and said:</p>
<blockquote><p>&#8220;Thanks, it&#8217;s my wife&#8217;s&#8221;</p></blockquote>
<p>It was then I realized he was not talking to <em>me</em>, but to the burly, ZZ Top bearded biker on a Harley parked on the <em>other side</em> of him. They both looked at me like I was an idiot, which <strong>apparently I am</strong>. Best part: our eight year old son saw it all go down and fully realized what had happened. Not that he doesn&#8217;t already think I&#8217;m an idiot, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2010/08/21/retro-nice-rig-man/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poetry from a four year old</title>
		<link>http://www.super-cooper.com/archive/2010/04/14/poetry-from-a-four-year-old/</link>
		<comments>http://www.super-cooper.com/archive/2010/04/14/poetry-from-a-four-year-old/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 02:33:02 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boys]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=187</guid>
		<description><![CDATA[The other day while driving down the road and admiring the wildflowers that are blooming all over The Woodlands, Harri came up with this little nugget: Roses are red, bluebonnets are blue, and your feet stink too.]]></description>
			<content:encoded><![CDATA[<p>The other day while driving down the road and admiring the wildflowers that are blooming all over The Woodlands, Harri came up with this little nugget:</p>
<blockquote><p>Roses are red, bluebonnets are blue, and your feet stink too.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2010/04/14/poetry-from-a-four-year-old/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Google Voice invite arrived!</title>
		<link>http://www.super-cooper.com/archive/2009/11/07/my-google-voice-invite-arrived/</link>
		<comments>http://www.super-cooper.com/archive/2009/11/07/my-google-voice-invite-arrived/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 13:49:47 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computing]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=179</guid>
		<description><![CDATA[Last night I got my Google Voice invite that I&#8217;ve been ever so patiently waiting for, and man is it slick. Setup took about 10 minutes total, and my first test of their transcriber went like so: Which was transcribed to: Hey moron. Let&#8217;s see how good Google Voice. Transport sincere garbage that you&#8217;re leaving on [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I got my <a href="http://www.google.com/voice">Google Voice</a> invite that I&#8217;ve been ever so patiently waiting for, and man is it slick. Setup took about 10 minutes total, and my first test of their transcriber went like so:<br />
<object type="application/x-shockwave-flash" data="https://clients4.google.com/voice/embed/embedPlayer" width="100%" height="64"><param name="movie" value="https://clients4.google.com/voice/embed/embedPlayer" /><param name="wmode" value="transparent" /><param name="FlashVars" value="u=07575158468901585815&#038;k=AHwOX_AnC14AbeAkuyk4MMb6QZ-7kmSntxzboREVSMcvR7r1RClVO88TQrIc3wEHT2UFyHlJbQchCt2rBZ1W_wtQKOP51FAe5vP09CiqE8v3fj-w2XlKV1GAnyFYTy0r-h8fYKhktjoyDHJHoUgC_NF_aAwV_aGjktAO3FNWfh8YOpiy65GMIco&#038;baseurl=https://clients4.google.com/voice&#038;autoPlay=false" /></object><br />
Which was transcribed to:</p>
<blockquote><p>Hey moron. Let&#8217;s see how good Google Voice. Transport sincere garbage that you&#8217;re leaving on their share voicemail. Later.</p></blockquote>
<p>Hmmm&#8230;hopefully Google&#8217;s transcribers will improve over time, eh? After all, that&#8217;s the reason they are doing this, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2009/11/07/my-google-voice-invite-arrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fishing with the boys</title>
		<link>http://www.super-cooper.com/archive/2009/07/27/fishing-with-the-boys/</link>
		<comments>http://www.super-cooper.com/archive/2009/07/27/fishing-with-the-boys/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:49:40 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boys]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=140</guid>
		<description><![CDATA[This is what it&#8217;s all about folks, the picture pretty much tells it all. I took the boys fishing today for the first time in a while, and they slayed &#8216;em. They each caught at least ten bluegills and four small box turtles. Will caught his first largemouth bass, and a nice one at that, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_146" class="wp-caption alignright" style="width: 310px"><a href="http://www.super-cooper.com/wp-content/uploads/2009/07/2009-07-27_wills_largemouth-bass.jpg" rel="lightbox[140]"><img class="size-medium wp-image-146" style="margin: 5px;" title="2009-07-27_wills_largemouth-bass" src="http://www.super-cooper.com/wp-content/uploads/2009/07/2009-07-27_wills_largemouth-bass-300x225.jpg" alt="Will's first largemouth bass" width="300" height="225" /></a><p class="wp-caption-text">Will&#39;s first largemouth bass</p></div>
<p>This is what it&#8217;s all about folks, the picture pretty much tells it all. I took the boys fishing today for the first time in a while, and they slayed &#8216;em. They each caught at least ten bluegills and four small box turtles. Will caught his first largemouth bass, and a nice one at that, about a pound, 11 inches or so.</p>
<p>A great trip indeed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2009/07/27/fishing-with-the-boys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>San Diego, here I come!</title>
		<link>http://www.super-cooper.com/archive/2009/07/12/san-diego-here-i-come/</link>
		<comments>http://www.super-cooper.com/archive/2009/07/12/san-diego-here-i-come/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 13:10:27 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=127</guid>
		<description><![CDATA[I&#8217;m heading out in a few hours to San Diego for the ESRI User Conference. I&#8217;m really looking forward to the conference, tons of GIS stuff, seeing some old buddies, enjoying the weather (damn, it&#8217;s hot in Houston this summer), and last but not least, getting some In-N-Out.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m heading out in a few hours to San Diego for the <a href="http://www.esri.com/events/uc/">ESRI User Conference</a>. I&#8217;m really looking forward to the conference, tons of GIS stuff, seeing some old buddies, enjoying the weather (damn, it&#8217;s hot in Houston this summer), and last but not least, getting some <a href="http://www.in-n-out.com/">In-N-Out</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2009/07/12/san-diego-here-i-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ripping recorded video from a Cox DVR on OS X</title>
		<link>http://www.super-cooper.com/archive/2009/01/04/ripping-recorded-video-from-a-cox-dvr-on-os-x/</link>
		<comments>http://www.super-cooper.com/archive/2009/01/04/ripping-recorded-video-from-a-cox-dvr-on-os-x/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 22:13:42 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=81</guid>
		<description><![CDATA[Sometimes some of the most entertaining TV you&#8217;ll see can come from your local news &#8211; especially if you live in Arkansas it seems. And so was the case last Tuesday night. But more about that later. First let&#8217;s talk about getting the recorded program off of the DVR so we share it with the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes some of the most entertaining TV you&#8217;ll see can come from your local news &#8211; especially if you live in Arkansas it seems. And so was the case last Tuesday night. But more about that later. First let&#8217;s talk about getting the recorded program off of the DVR so we share it with the world, as was my mission this <span style="text-decoration: line-through;">morning</span> weekend. After much Googling and forum reading, this is what I found out. We have a <a href="http://broadband.motorola.com/dvr/dct6412.asp">Motorola DCT6412 III</a> that we rent from the Cox cartel. After <strong><em>alot</em></strong> of reading on the forums at <a href="http://www.avsforum.com">http://www.avsforums.com</a> (especially <a href="http://www.avsforum.com/avs-vb/showthread.php?t=647916">this thread</a>), it looked like I was out of luck on getting the recorded news clip off of the DVR and onto my Mac. Then I found <a href="http://www.avsforum.com/avs-vb/showthread.php?p=14854525#post14854525">this thread</a> which laid out the plan that eventually worked. I&#8217;m putting everything I gleaned from the AVS Forums here so maybe someone else can use it and so I can remember just how I did it in the first place. Here&#8217;s what you need:</p>
<ol>
<li>The <a href="http://developer.apple.com/sdk/">Apple FireWire SDK for OSX</a> (version 26 as of this writing), a quick and easy install &#8211; FREE.</li>
<li><a href="http://www.videolan.org/vlc/download-macosx.html">VLC Viewer</a> to view the stream and transcode it to another more usable format (such as MPEG-4) if you want &#8211; FREE.</li>
<li>A FireWire 400 cable to connect your Mac to the DVR &#8211; NOT FREE, but I had one lying around.</li>
</ol>
<p>And here are some other things you <em>may</em> need:</p>
<ol>
<li><a href="http://handbrake.fr/">HandBrake</a> (which you should have anyway, regardless of  your platform &#8211; it&#8217;s great for ripping movies from DVD to mpeg-4 &#8211; FREE.</li>
<li>IMovie HD &#8211; I had to use this to ultimately clip out just the part of the newscast that I wanted &#8211; comes with your Mac.</li>
</ol>
<p>First, connect the FireWire cable to your Mac (I had both the Mac and DVR powered up, others talked about powering then down first). Fire up AVCVideoCap.app in the FireWire SDK at /Developer/FireWireSDK26/Applications and get it set and ready to record, but don&#8217;t start the recording yet. From your DVR, bring up the previously recorded program, and if you can, rewind to a minute or so before where you want to transfer, then pause the DVR. Now plug the FireWire cable into your DVR, and the program should start back up on your TV. Now start recording in AVCVideoCap, which will apparently &#8220;pause&#8221; the playback on your TV. Hit the play button on your DVR remote, which will &#8220;unpause&#8221; the playback on the DVR and output both video and audio to the .m2t filestream in AVCVideoCap. Note that when you hit play, it will not unpause what you see, just what gets output, so your TV is essentially unwatchable while transferring the video.</p>
<p>AVCVideoCap captures the video from the DVR to a .m2t filestream, which is basically MPEG-2. Out of the box QuickTime and IMovie don&#8217;t like m2t streams, but VLC Player does. VLC will play the m2t and you can export to mp4 (MPEG-4), which pretty much any video player will like. However, I had lots of problems in VLC just trying to go directly from the m2t stream to a mp4 &#8211; the video and audio were all jacked up when I tried that direct export in VLC. I read somewhere to try HandBrake, but it also did not like my m2t stream. After many attempts at different exports, this worked in VLC:</p>
<ul>
<li>Video codec: H.264 / Bitrate: 2048</li>
<li>Audio codec:  MPEG Audio / Bitrate 192</li>
<li>Encapsulation format: MPEG TS (.ts)</li>
</ul>
<p>This gave me a .ts stream which HandBrake would now open and convert to a mp4, which I imported into IMovie HD and clipped out just the news story I wanted. I exported from IMovie at Full Quality to mp4, and got a fairly good quality mp4 that I could then upload to YouTube or put on my Ipod. Now, this raises the question, especially with my wife, of &#8220;Is all that work, <em>really</em> worth it?&#8221; Maybe not. But it got to the point where I knew this could be done and just had to figure it out. Plus I have this little gem now:</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/nd42RXrmw7I&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/nd42RXrmw7I&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>Yes, there are still 365 days in a year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2009/01/04/ripping-recorded-video-from-a-cox-dvr-on-os-x/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Uploading photos to Shutterfly via Python</title>
		<link>http://www.super-cooper.com/archive/2008/12/07/uploading-photos-to-shutterfly-via-python/</link>
		<comments>http://www.super-cooper.com/archive/2008/12/07/uploading-photos-to-shutterfly-via-python/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 19:14:23 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=63</guid>
		<description><![CDATA[I finally got done sorting my 2008 photos this morning so I can start putting Christmas gifts together with them and needed to upload about 280 pictures to Shutterfly, where I have been getting prints since about 1999. Of course I could do this with their uploader, but that would be quite lame now, wouldn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got done sorting my 2008 photos this morning so I can start putting Christmas gifts together with them and needed to upload about 280 pictures to Shutterfly, where I have been getting prints since about 1999. Of course I could do this with their uploader, but that would be <em>quite lame</em> now, wouldn&#8217;t it, considering I <em>could</em> use Python to do it. Using the code below, the <a href="http://pypi.python.org/pypi/IPTCInfo/1.9.2-rc8">IPTCInfo module</a> and Jeremy Slater&#8217;s very cool <a href="http://conduit.sourcearchive.com/documentation/0.3.13.1/shutterfly_8py-source.html">shutterfly module</a> he wrote for the <a href="http://www.conduit-project.org/">GNOME Conduit Project</a> , I can iterate through my entire 2008 photo directory, look for my photos tagged for upload, and upload them to a specific album on Shutterfly. Sweet!</p>
<link rel="stylesheet" href="http://www.super-cooper.com/wp-content/plugins/codeviewer.css" type="text/css" media="all" />
<ol class="codelist">
<li value="1" class="tab0 odd"><code><span style="color: #0008E6;font-weight:bold;">from</span> IPTC <span style="color: #0008E6;font-weight:bold;">import</span> IPTCInfo</code></li>
<li value="2" class="tab0 even"><code><span style="color: #0008E6;font-weight:bold;">import</span> <span style="color: #990000;">sys</span>, <span style="color: #990000;">os</span>, shutterfly</code></li>
<li value="3" class="odd">&nbsp;</li>
<li value="4" class="tab0 even"><code><span style="color: #0008E6;font-weight:bold;">class</span> ShutterflyUploadr:</code></li>
<li value="5" class="odd">&nbsp;</li>
<li value="6" class="tab1 even"><code><span style="color: #990000;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:</code></li>
<li value="7" class="tab2 odd"><code><span style="color: #0008E6;font-weight:bold;">pass</span></code></li>
<li value="8" class="even">&nbsp;</li>
<li value="9" class="tab1 odd"><code><span style="color: #990000;font-weight:bold;">def</span> grab_new_images<span style="color: black;">&#40;</span> <span style="color: #008000;">self</span> <span style="color: black;">&#41;</span>:</code></li>
<li value="10" class="tab2 even"><code><span style="color: #FF6600;">&quot;&quot;&quot; Recurses thru directories and looks for images to upload. I only want to upload my '5-star' images, so we scan the IPTC tags for 'r5', my way of tagging my pics I really like (usually get prints of r5s) &quot;&quot;&quot;</span></code></li>
<li value="11" class="tab2 odd"><code>images = <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span></code></li>
<li value="12" class="tab2 even"><code><span style="color: #0008E6;font-weight:bold;">for</span> dirpath, dirnames, filenames <span style="color: #0008E6;font-weight:bold;">in</span> <span style="color: #990000;">os</span>.<span style="color: black;">walk</span><span style="color: black;">&#40;</span><span style="color: #2DB300;">'/users/chad/pictures/2008'</span><span style="color: black;">&#41;</span>:</code></li>
<li value="13" class="tab3 odd"><code><span style="color: #0008E6;font-weight:bold;">for</span> f <span style="color: #0008E6;font-weight:bold;">in</span> filenames :</code></li>
<li value="14" class="tab4 even"><code><span style="color: #FF6600;"># Grab IPTC keywords</span></code></li>
<li value="15" class="tab4 odd"><code>info = IPTCInfo<span style="color: black;">&#40;</span><span style="color: #990000;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>dirpath, f<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></code></li>
<li value="16" class="tab4 even"><code><span style="color: #FF6600;"># Is it a 5-star photo?</span></code></li>
<li value="17" class="tab4 odd"><code><span style="color: #0008E6;font-weight:bold;">if</span> <span style="color: #2DB300;">'r5'</span> <span style="color: #0008E6;font-weight:bold;">in</span> info.<span style="color: black;">keywords</span>:</code></li>
<li value="18" class="tab5 even"><code>ext = f.<span style="color: black;">lower</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span>&#038;quot<span style="color: #66cc66;">;</span>.&#038;quot<span style="color: #66cc66;">;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span><span style="color: #FF0000; font-weight: bold;">-1</span><span style="color: black;">&#93;</span></code></li>
<li value="19" class="tab5 odd"><code><span style="color: #0008E6;font-weight:bold;">if</span> <span style="color: black;">&#40;</span> ext == &#038;quot<span style="color: #66cc66;">;</span>jpg&#038;quot<span style="color: #66cc66;">;</span> <span style="color: black;">&#41;</span>:</code></li>
<li value="20" class="tab6 even"><code>images.<span style="color: black;">append</span><span style="color: black;">&#40;</span> <span style="color: #990000;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">normpath</span><span style="color: black;">&#40;</span> dirpath + &#038;quot<span style="color: #66cc66;">;</span>/&#038;quot<span style="color: #66cc66;">;</span> + f <span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span></code></li>
<li value="21" class="tab2 odd"><code>images.<span style="color: black;">sort</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></code></li>
<li value="22" class="tab2 even"><code><span style="color: #0008E6;font-weight:bold;">return</span> images</code></li>
<li value="23" class="odd">&nbsp;</li>
<li value="24" class="tab1 even"><code><span style="color: #990000;font-weight:bold;">def</span> upload<span style="color: black;">&#40;</span> <span style="color: #008000;">self</span> <span style="color: black;">&#41;</span>:</code></li>
<li value="25" class="tab2 odd"><code><span style="color: #FF6600;">&quot;&quot;&quot; Upload images to Shutterfly &quot;&quot;&quot;</span></code></li>
<li value="26" class="tab2 even"><code><span style="color: #990000;">user</span> = <span style="color: #2DB300;">'your_user_name'</span></code></li>
<li value="27" class="tab2 odd"><code><span style="color: #990000;">pwd</span> = <span style="color: #2DB300;">'your_password'</span></code></li>
<li value="28" class="tab2 even"><code>sfly = shutterfly.<span style="color: black;">Shutterfly</span><span style="color: black;">&#40;</span><span style="color: #990000;">user</span>,<span style="color: #990000;">pwd</span><span style="color: black;">&#41;</span></code></li>
<li value="29" class="tab2 odd"><code><span style="color: #FF6600;"># Get an existing album</span></code></li>
<li value="30" class="tab2 even"><code>album = sfly.<span style="color: black;">getAlbums</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span><span style="color: #2DB300;">'Album_Name'</span><span style="color: black;">&#93;</span></code></li>
<li value="31" class="tab2 odd"><code>image_list = <span style="color: #008000;">self</span>.<span style="color: black;">grab_new_images</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></code></li>
<li value="32" class="tab2 even"><code><span style="color: #0008E6;font-weight:bold;">for</span> image <span style="color: #0008E6;font-weight:bold;">in</span> image_list:</code></li>
<li value="33" class="tab3 odd"><code>album.<span style="color: black;">uploadPhoto</span><span style="color: black;">&#40;</span>image, <span style="color: #2DB300;">'image/jpeg'</span>, <span style="color: #990000;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span><span style="color: black;">&#40;</span>image<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></code></li>
<li value="34" class="even">&nbsp;</li>
<li value="35" class="tab0 odd"><code><span style="color: #0008E6;font-weight:bold;">if</span> __name__ == <span style="color: #2DB300;">'__main__'</span>:</code></li>
<li value="36" class="even">&nbsp;</li>
<li value="37" class="tab1 odd"><code>sfu = ShutterflyUploadr<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></code></li>
<li value="38" class="tab1 even"><code>sfu.<span style="color: black;">upload</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://www.super-cooper.com/snippets/shutterflyuploadr.txt">shutterflyuploadr.txt</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2008/12/07/uploading-photos-to-shutterfly-via-python/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Python and GIS &#8211; Beyond ModelBuilder and PythonWin</title>
		<link>http://www.super-cooper.com/archive/2008/11/15/python-and-gis-beyond-modelbuilder-and-pythonwin/</link>
		<comments>http://www.super-cooper.com/archive/2008/11/15/python-and-gis-beyond-modelbuilder-and-pythonwin/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 16:14:03 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=62</guid>
		<description><![CDATA[This is a presentation I gave last February at the ESRI Petroleum User Group conference in Houston, TX. I just discovered SlideShare the other day. Python And GIS &#8211; Beyond Modelbuilder And Pythonwin View SlideShare presentation or Upload your own. (tags: esri pug)]]></description>
			<content:encoded><![CDATA[<p>This is a presentation I gave last February at the ESRI Petroleum User Group conference in Houston, TX. I just discovered <a href="http://www.slideshare.net">SlideShare</a> the other day.</p>
<div style="width:425px;text-align:left" id="__ss_716653"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/supercooper/python-and-gis-beyond-modelbuilder-and-pythonwin-presentation?type=powerpoint" title="Python And GIS - Beyond Modelbuilder And Pythonwin">Python And GIS &#8211; Beyond Modelbuilder And Pythonwin</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=pythonandgisbeyondmodelbuilderandpythonwin-1225719286857699-8&#038;rel=0&#038;stripped_title=python-and-gis-beyond-modelbuilder-and-pythonwin-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=pythonandgisbeyondmodelbuilderandpythonwin-1225719286857699-8&#038;rel=0&#038;stripped_title=python-and-gis-beyond-modelbuilder-and-pythonwin-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/supercooper/python-and-gis-beyond-modelbuilder-and-pythonwin-presentation?type=powerpoint" title="View Python And GIS - Beyond Modelbuilder And Pythonwin on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/esri">esri</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/pug">pug</a>)</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2008/11/15/python-and-gis-beyond-modelbuilder-and-pythonwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pyArkansas 2008 a huge success</title>
		<link>http://www.super-cooper.com/archive/2008/10/30/pyarkansas-2008-a-huge-success/</link>
		<comments>http://www.super-cooper.com/archive/2008/10/30/pyarkansas-2008-a-huge-success/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 02:30:51 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.super-cooper.com/?p=61</guid>
		<description><![CDATA[I&#8217;m way behind on posting this, but here goes. The first annual pyArkansas Python conference was held by pyar^2, the Python Artists of Arkansas , on October 4th on the campus of the University of Central Arkansas in Conway. We were very graciously hosted by the Department of Computer Science in their very fine facilities. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m way behind on posting this, but here goes.</p>
<p>The first annual <a href="http://pycamp.python.org/Arkansas/HomePage">pyArkansas</a> Python conference was held by pyar^2, the <a href="http://mail.python.org/mailman/listinfo/pyar2">Python Artists of Arkansas</a> , on October 4th on the campus of the University of Central Arkansas in Conway. We were very graciously hosted by the <a href="http://www.cs.uca.edu/">Department of Computer Science</a> in their very fine facilities. To our surprise, 57 people attended. Honestly, when Greg Lindstrom and myself starting planning this conference earlier this year, I think we would&#8217;ve been shocked to have 25 attend. Our <a href="http://pycamp.python.org/Arkansas/Registration">registration</a> numbers actually went above 70 folks, but the weather turned bad that morning, so that might have held some people away. We had a nice mix of beginner and experienced Pythonistas. People came from Branson, MO, Dallas, TX, and all over the state of Arkansas.</p>
<p>In the morning, we had classes including introductory Python (taught by <a href="http://www.cs.gsu.edu/~cscbecx/">Dr. Chen of UCA</a> ), intermediate Python (taught of <a href="http://python-advocacy.blogspot.com/">Jeff Rush</a> ), and Python for systems administration (taught by <a href="http://noahgift.com/">Noah Gift</a> ). These classes were very well received. The afternoon consisted of talks on pyGame, text/file processing, One Laptop Per Child (OLPC), Python eggs, the Python standard library, and Python with Eclipse. <a href="http://www.companycasuals.com/elegantstitchesconway/start.jsp">Elegant Stitches</a> was on hand selling their great assortment of officially-licensed Python shirts and gear (thanks again for the shirt, Janet!). I highly recommend the Python logo long-sleeved easy-care oxford &#8211; go order one today.</p>
<p>We had great sponsorship for this event. Major monetary sponsors included the <a href="http://www.cityofconway.org/">Conway Area Chamber of Commerce</a> , <a href="http://www.swn.com">Southwestern Energy Company</a> , <a href="http://novasyshealth.com/">Novasys Health</a> , and the <a href="http://www.python.org/psf/">Python Software Foundation</a> . <a href="http://www.wingware.com/">Wingware</a> graciously provided THREE 3-OS Wingware IDE Professional seats for us to give as prizes &#8211; many thanks for those. <a href="http://oreilly.com/">O&#8217;Reilly</a> publishing gave us a box of about 15 books to give away. <a href="http://pymag.phparch.com/">Python Magazine</a> and <a href="http://www.esri.com/news/arcuser/index.html">ESRI&#8217;s ArcUser</a> both pitched in free issues of magazines for our swag bags.</p>
<p>We have received some <a href="http://businessfromthejohn.blogspot.com/2008/10/arkansas-gets-it.html">pretty</a> <a href="http://www.thecabin.net/stories/101608/loc_1016080005.shtml">good</a> <a href="http://pyfound.blogspot.com/2008/10/first-pyarkansas-unqualified-success.html">press</a> on the event as well. Overall, I&#8217;d have to say that for a first stab and for having 50 people, we pulled it off quite nicely. We are already planning next year&#8217;s conference, which will surely be bigger and better than this one was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.super-cooper.com/archive/2008/10/30/pyarkansas-2008-a-huge-success/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

