<?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>Memory Leak &#187; motorcycle</title>
	<atom:link href="http://www.foobert.com/blog/tag/motorcycle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.foobert.com/blog</link>
	<description>That which fades into the ether.</description>
	<lastBuildDate>Sat, 26 Nov 2011 20:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>The open road: 2010 Summer trip day 1</title>
		<link>http://www.foobert.com/blog/2010/10/15/the-open-road-2010-summer-trip-day-1/</link>
		<comments>http://www.foobert.com/blog/2010/10/15/the-open-road-2010-summer-trip-day-1/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 15:40:29 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[adventures]]></category>

		<guid isPermaLink="false">http://www.foobert.com/blog/?p=598</guid>
		<description><![CDATA[<p style="text-align: left;">
And so begins the tale of what turned into a 7K mile motorcycle adventure on my trusty 2008 BMW F800ST.  The &#8220;final&#8221; destination is Oshkosh, WI to catch the big airshow that happens each year around the end of July.  Some of you may be thinking this all sounds so familiar, but, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">
And so begins the tale of what turned into a 7K mile motorcycle adventure on my trusty 2008 BMW F800ST.  The &#8220;final&#8221; destination is Oshkosh, WI to catch the <a href="http://www.airventure.org/">big airshow</a> that happens each year around the end of July.  Some of you may be thinking this all <a href="http://www.foobert.com/blog/2009/07/26/oshkosh-trip-day-1/">sounds so familiar</a>, but, with an extra week, 40% more miles, better roads, more solo time, more destinations, and &#8230;  Let&#8217;s just say turned into a much different trip for me than the prior year&#8217;s adventure.
</p>
<p style="text-align: left;"><em>For quick navigation, jump to day:</em><a href="http://www.foobert.com/blog/2010/10/15/the-open-road-2010-summer-trip-day-1/">1</a>, <a href="http://www.foobert.com/blog/2010/10/19/the-open-road-2010-summer-trip-day-2/">2</a>, <a href="http://www.foobert.com/blog/2010/10/31/the-open-road-2010-summer-trip-day-3/">3</a>, <a href="http://www.foobert.com/blog/2011/03/02/the-open-road-2010-summer-trip-day-4/">4</a>, <a href="http://www.foobert.com/blog/2011/03/05/the-open-road-2010-summer-trip-day-5/">5</a>, <a href="http://www.foobert.com/blog/2011/03/06/the-open-road-2010-summer-trip-day-6-7/">6 &#038; 7</a>, <a href="http://www.foobert.com/blog/2011/03/19/the-open-road-2010-summer-trip-day-8/">8</a>, <a href="http://www.foobert.com/blog/2011/03/31/the-open-road-2010-summer-trip-day-9/">9 &#038; 10</a>, <a href="http://www.foobert.com/blog/2011/05/31/the-open-road-2010-summer-trip-day-11-12/">11 &#038; 12</a>, <a href="http://www.foobert.com/blog/2011/06/08/the-open-road-2010-summer-trip-day-13/">13</a>, <a href="http://www.foobert.com/blog/2011/06/12/the-open-road-2010-summer-trip-day-14/">14</a>, <a href="http://www.foobert.com/blog/2011/07/12/the-open-road-2010-summer-trip-day-15/">15</a>, <a href="http://www.foobert.com/blog/2011/08/01/the-open-road-2010-summer-trip-day-22/">22</a>.</p>
<p style="text-align: center;"><strong>The route</strong> &#8212; a little teaser of what&#8217;s to come &#8230;.<br />
<a target="_blank" href="http://foobert.com/linked/2010/osh10-map.all.html"><br />
<img src="http://foobert.com/linked/2010/osh10_map.all.jpg" width=838 height=465/></a>
</p>
<p style="text-align: center;"><a target="_blank" href="http://foobert.com/linked/2010/osh10-map.all.html"><br />
[click to go to an interactive map]</a>
</p>
<p><span id="more-598"></span></p>
<p style="text-align: left;">
The general plan is to tour around CO, head down to the Dallas area to visit a friend, meet my dad in Memphis and hang out there for a day, and then the two of us head up to Oshkosh for the air show.  After the show, we&#8217;ll turn west and to Idaho to join up with the rest of my extended family and meet up with my wife and kids to hang out for a week.  About 3 weeks after it all started, we&#8217;ll then head back to CA.</p>
<p style="text-align: left;">
<strong>Day 1: San Jose, CA to Tonopah, NV &#8212; 370 Miles</strong>
</p>
<p style="text-align: center;"><a href="http://foobert.com/linked/2010/osh10-map.1.html"><br />
<img src="http://foobert.com/linked/2010/osh10_map.1.jpg" width=825 height=434/><br />
<span style="color: #999999;"></span><br />
[click to go to an interactive map]</a>
</p>
<p style="text-align: left;">
The previous weeks were preoccupied by scheming routes that would pack the most into the days of freedom from work and the regular routine of life. Friday, July 16th had finally arrived. After tying up the last fews ends at work, I met up with my wife and 3 girls for a quick lunch before hitting the road.  I couldn&#8217;t help but feel guilty for abandoning them in the most selfish of ways in order to chase the winds of the open road.
</p>
<p style="text-align: center;"><strong>Quick lunch with the family</strong> &#8212; One last chance to see by wife and 3 girls before hitting the road.<br />
<img src="http://foobert.com/linked/2010/20100716135957_IMG_0604.jpg" width=900 height=675/><br />
<span style="color: #999999;">iPhone</span>, <a href="http://maps.google.com?q=37.4355,-121.919333333333&#038;ll=37.4355,-121.919333333333&#038;z=10">map</a></p>
<p style="text-align: left;">
After saying goodbyes and promising to be safe, and call, and have fun while still being safe &#8212; I was off with just one last niggling detail to take care of: find a gas station.  </p>
<p>There were some surface streets along the way get to the freeway and surely one would have a station. And, indeed there was; but the station wasn&#8217;t on on my side of the street, so, I just kept on going rather than waste time with U-turns and backtracking.  Hmmm, the fuel computer claimed there&#8217;s 3 miles of gas left in the tank, but, it&#8217;s always erred on the conservative side, so, there must be another station around the corner.</p>
<p>Wrong! A mile past the gas station that I should have stopped at, the bike dies. There is no sinking feeling of stupidity quite like that of trying to save a few seconds and instead wasting almost an hour pushing the bike to the nearest gas station that I had just passed. </p>
<p>While pushing the bike through one intersection, the crosswalk timer had expired and the light was about to turn green enabling a dozen anxious cars to barrel through my path. At the same time, the strap holding my helmet onto the bike gave way and I hear that sickening sound of fiberglass bouncing on pavement as it goes sailing into the middle of the intersection. As if I was unaware of this, some folks started honking and pointing to get my attention. The light turned green just as I got to the side of road with the kickstand down. Thankfully, the cars spared me from a real game of <a href="http://en.wikipedia.org/wiki/Frogger">Frogger</a> while running into the middle of the intersection to retrieve my freshly scratched helmet. </p>
<p>Pushing a bike gives plenty of time to reflect and I couldn&#8217;t shake that nagging feeling about this rather inauspicious beginning of the trip.  To add insult to injury, my well timed departure was delayed enough to coincide with the miserable Bay Area Friday flee (read: parking lot) heading over the Altamont pass.
</p>
<p style="text-align: center;"><strong>The first of the twisties</strong> &#8212; Finally have the central valley behind me&#8230;<br />
<img src="http://foobert.com/linked/2010/20100716174724_DSC_6009.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/3.5, 1sec, 18mm focal L.</span> @66 MPH, ~111mi from prev photo, <a href="http://maps.google.com?q=38.136363,-120.093642&#038;ll=38.136363,-120.093642&#038;z=10">map</a></p>
<p style="text-align: left;">
The Central Valley was in typical form for mid July with the temperature peaking out at 106˚F according to bike&#8217;s thermometer &#8212; there&#8217;s just nothing fun or interesting about getting across the salad bowl of California. But, the payoff comes on the other side when starting up the hills, the intense smell of pine forests put a smile inside my helmet. When the traffic disappeared past the town of Strawberry and I had Sonora pass to myself, the smile was all grin. The pavement was in good condition with the only worries being the gravel kicked into the sharpest of the corners from RV&#8217;s cutting the corners.
</p>
<p style="text-align: center;"><strong>CA 108</strong> &#8212; Sonora pass is my favorite way to get over the Sierras.<br />
<img src="http://foobert.com/linked/2010/20100716182149_DSC_6017.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/3.5, 1/400sec, 18mm focal L.</span> @40 MPH, ~22mi from prev photo, <a href="http://maps.google.com?q=38.333178,-119.76372&#038;ll=38.333178,-119.76372&#038;z=10">map</a></p>
<p style="text-align: left;">
<p style="text-align: center;"><strong>CA 108</strong> &#8212; 26% grade ahead!  It&#8217;s a real roller coaster.<br />
<img src="http://foobert.com/linked/2010/20100716182300_DSC_6018.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/3.5, 1sec, 18mm focal L.</span> @42 MPH, ~0.8mi from prev photo, <a href="http://maps.google.com?q=38.32543,-119.753054&#038;ll=38.32543,-119.753054&#038;z=10">map</a></p>
<p style="text-align: left;">
<p style="text-align: center;"><strong>CA 108</strong> &#8212; The trees are really starting to thin out and the rocks are getting more baren.<br />
<img src="http://foobert.com/linked/2010/20100716182423_DSC_6022.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/3.5, 1/800sec, 18mm focal L.</span> @38 MPH, ~0.7mi from prev photo, <a href="http://maps.google.com?q=38.317904,-119.744208&#038;ll=38.317904,-119.744208&#038;z=10">map</a></p>
<p style="text-align: left;">
The fun part of Sonora pass is that it is cut along a path that made it easy to build the road, but did almost nothing to make it an &#8220;easy&#8221; road to travel on.  Well, that is, unless you&#8217;re on cycle that loves corners and has enough pep to power through 10K ft elevations with ease &#8212; a naturally aspirated engine is only making ~2/3&#8242;s of the power it does at the at sea level (all else being equal).
</p>
<p style="text-align: center;"><strong>CA 108</strong> &#8212; Not the steepest section, but, getting there.<br />
<img src="http://foobert.com/linked/2010/20100716182431_DSC_6023.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/4.0, 1/500sec, 18mm focal L.</span> @27 MPH, ~314ft from prev photo<a href="http://maps.google.com?q=38.317349,-119.743368&#038;ll=38.317349,-119.743368&#038;z=10">map</a></p>
<p style="text-align: left;">
<p style="text-align: center;"><strong>CA 108</strong> &#8212; Getting close to the top.<br />
<img src="http://foobert.com/linked/2010/20100716183110_DSC_6029.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/4.0, 18mm focal L.</span> @45 MPH, ~3.9mi from prev photo, <a href="http://maps.google.com?q=38.3194640004917,-119.670621997794&#038;ll=38.3194640004917,-119.670621997794&#038;z=10">map</a></p>
<p style="text-align: left;">
After this, I put the camera away and enjoyed the ride down. Always takes more focus going down, what with gravity doing all it can to keep the speed up for you, even if you don&#8217;t want it.
</p>
<p style="text-align: center;"><strong>CA 108</strong> &#8212; Time to go down&#8230;<br />
<img src="http://foobert.com/linked/2010/20100716183523_DSC_6031.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/3.5, 1/320sec, 18mm focal L.</span> @10 MPH, ~1.9mi from prev photo, <a href="http://maps.google.com?q=38.328021,-119.637223&#038;ll=38.328021,-119.637223&#038;z=10">map</a></p>
<p style="text-align: left;">
At the bottom of the grade, just before getting to US 395, there&#8217;s a Marine training complex complete with a short helicopter runway next to the road.  Never once seen any action here, but, I suppose I&#8217;ve never made the trip during a weekday either.
</p>
<p style="text-align: center;"><strong>CA 108</strong> &#8212; USMC Mountain Warfare School<br />
<img src="http://foobert.com/linked/2010/20100716184917_DSC_6037.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 200, ƒ/4.0, 1/640sec, 31mm focal L.</span> @60 MPH, ~6.5mi from prev photo, <a href="http://maps.google.com?q=38.3540784190333,-119.521694421694&#038;ll=38.3540784190333,-119.521694421694&#038;z=10">map</a></p>
<p style="text-align: left;">
<p style="text-align: center;"><strong>US 395</strong> &#8212; Just turned south off 108.<br />
<img src="http://foobert.com/linked/2010/20100716185426_DSC_6040.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 500, ƒ/4.5, 1/400sec, 52mm focal L.</span> @58 MPH, ~3.9mi from prev photo, <a href="http://maps.google.com?q=38.3438617047861,-119.451136390342&#038;ll=38.3438617047861,-119.451136390342&#038;z=10">map</a></p>
<p style="text-align: left;">
<p style="text-align: center;"><strong>Heading through Devil&#8217;s Gate Pass</strong> &#8212; Picturesque place to build a house. Must be brutal in the winter&#8230;<br />
<img src="http://foobert.com/linked/2010/20100716185833_DSC_6042.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 500, ƒ/4.2, 1/1000sec, 34mm focal L.</span> @74 MPH, ~4.5mi from prev photo, <a href="http://maps.google.com?q=38.3488230106861,-119.368989998131&#038;ll=38.3488230106861,-119.368989998131&#038;z=10">map</a></p>
<p style="text-align: left;">
I&#8217;d come across patches of wet roads, but, never got any rain. Heading into Bryant, I was enjoying the rainbow left behind, even though the radar detector was pleading with me to slow down.  Turns out, it was just a mobile &#8220;your speed is&#8221; trailer parked on the edge of town.  But, there is a CHP shop in town, so, I wasn&#8217;t taking any chances.
</p>
<p style="text-align: center;"><strong>Spotty patches of rain</strong> &#8212; terrible picture<br />
<img src="http://foobert.com/linked/2010/20100716190712_DSC_6045.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 500, ƒ/4.5, 1/1000sec, 70mm focal L.</span> @61 MPH, ~8.6mi from prev photo, <a href="http://maps.google.com?q=38.2573294999417,-119.261884647475&#038;ll=38.2573294999417,-119.261884647475&#038;z=10">map</a></p>
<p style="text-align: left;">
It was gett&#8217;n on 7:30 and lunch with the family had long faded away, especially after the unplanned exercise workout trying to get out of town.  The fish tacos at &#8220;The Barn&#8221; were just what I needed.  When I ordered, the price came up a wee spot more than I expected and after inquiring about it, the response was a dismissive, &#8220;it&#8217;s this price plus some tax&#8221; and a what&#8217;s-your-problem attitude.  OK, whatever, here&#8217;s the money, don&#8217;t expect me to rattle that tip jar.</p>
<p>When I went to pick the order, there was 57 cents next to my basket of tacos and an apology to boot.  The tacos were delish and earned them a tip after all.
</p>
<p style="text-align: center;"><strong>Dinner stop</strong><br />
<img src="http://foobert.com/linked/2010/20100716192844_DSC_6047.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 500, ƒ/3.8, 1/1000sec, 22mm focal L.</span> ~1.9mi from prev photo, <a href="http://maps.google.com?q=38.2561927895222,-119.226086129964&#038;ll=38.2561927895222,-119.226086129964&#038;z=10">map</a></p>
<p style="text-align: left;">
Heading east on CA 120 past Mono Lake is a great stretch of road that I rolled during the previous year&#8217;s trip.  It was quite different at night. I don&#8217;t much care for riding beyond what the lights can safely show in time to handle unexpected obstacles and it&#8217;s taxing to stay focused when the only thing visible is black tarmac and a few mesmerizing stripes painted on it.
</p>
<p style="text-align: center;"><strong>Evening colors</strong> &#8212; The last of the evening light hits the clouds for a warming good night.<br />
<img src="http://foobert.com/linked/2010/20100716202838_DSC_6080.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 500, ƒ/4.5, 1/30sec, 18mm focal L.</span> @53 MPH, ~25mi from prev photo, <a href="http://maps.google.com?q=37.9257881870528,-119.026822553778&#038;ll=37.9257881870528,-119.026822553778&#038;z=10">map</a></p>
<p style="text-align: left;">
There&#8217;s very little on the way to Tonopah and it was a very dark night roll&#8217;n through the desert.  I never really spooked myself, but, neither was it relaxing in any way.  Quite frankly, arriving into my planned destination of Tonopah around 10:30 was one of the few times I was really glad to be done riding for the day.
</p>
<p style="text-align: center;"><strong>Drink&#8217;n alone, tonight</strong> &#8212; After the late push through the dessert, it was more than the beer making my eyes blurry.<br />
<img src="http://foobert.com/linked/2010/20100716225440_DSC_6089.jpg" width=900 height=598/><br />
<span style="color: #999999;">Nikon D70, ISO 800, ƒ/5.6, 0.6sec, 25mm focal L.</span> ~98mi from prev photo, <a href="http://maps.google.com?q=38.074815,-117.240563&#038;ll=38.074815,-117.240563&#038;z=10">map</a></p>
<p style="text-align: left;">
The National 9 motel looked to be a reasonable enough place on the outside, but, the price of $39.23 (inclusive of tax) was low enough to think twice about moving on down the road to see what else Tonopah had to offer. It turned out it wasn&#8217;t half as scary as I&#8217;d have guessed it would be and I actually managed a good night&#8217;s rest.
</p>
<p style="text-align: left;">
<a href="http://www.foobert.com/blog/2010/10/19/the-open-road-2010-summer-trip-day-2/">Continue on to day 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foobert.com/blog/2010/10/15/the-open-road-2010-summer-trip-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oshkosh prep list</title>
		<link>http://www.foobert.com/blog/2009/03/10/oshkosh-prep-list/</link>
		<comments>http://www.foobert.com/blog/2009/03/10/oshkosh-prep-list/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 16:19:24 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[To Do]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://www.foobert.com/blog/?p=226</guid>
		<description><![CDATA[<p>Mid July is coming faster than I&#8217;d think it will.  6K miles of adventure are not going to get ready all by themselves.</p>
<p>For the bike:</p>

Panniers
Tool kit
Tire repair kit
Tire inflation kit
Bar risers
First aid kit
GPS mount, wire power + weatherproof kit
Throttle lock
Rain gear
summer riding jacket (&#38; pants?)
New helmet
Do a 7-800 mile day for comfort check
Oil change (just [...]]]></description>
			<content:encoded><![CDATA[<p>Mid July is coming faster than I&#8217;d think it will.  6K miles of adventure are not going to get ready all by themselves.</p>
<p>For the bike:</p>
<ul>
<li><span style="text-decoration: line-through;">Panniers</span></li>
<li><span style="text-decoration: line-through;">Tool kit</span></li>
<li><span style="text-decoration: line-through;">Tire repair kit</span></li>
<li><span style="text-decoration: line-through;">Tire inflation kit</span></li>
<li><span style="text-decoration: line-through;">Bar risers</span></li>
<li><span style="text-decoration: line-through;">First aid kit</span></li>
<li>GPS mount, wire power<span style="text-decoration: line-through;"> + weatherproof kit</span></li>
<li>Throttle lock</li>
<li><span style="text-decoration: line-through;">Rain gear</span></li>
<li><span style="text-decoration: line-through;">summer </span><span style="text-decoration: line-through;">riding jacket (&amp; pants?)</span></li>
<li><span style="text-decoration: line-through;">New helmet</span></li>
<li><span style="text-decoration: line-through;">Do a 7-800 mile day for comfort check</span></li>
<li>Oil change (just prior to departure)</li>
<li>Wire up headphone/mic for GPS</li>
<li>Camera mount</li>
<li><span style="text-decoration: line-through;">Center Stand</span></li>
<li><span style="text-decoration: line-through;">Frame Sliders</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.foobert.com/blog/2009/03/10/oshkosh-prep-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motorcycle riding leads to coding</title>
		<link>http://www.foobert.com/blog/2009/02/22/motorcycle-riding-leads-to-coding/</link>
		<comments>http://www.foobert.com/blog/2009/02/22/motorcycle-riding-leads-to-coding/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 08:15:02 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Flying]]></category>
		<category><![CDATA[Geek-Stuff]]></category>
		<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.foobert.com/blog/?p=213</guid>
		<description><![CDATA[<p>Got a quick ride in today &#8212; 112 miles.  Quickly coming up on the 1K mile mark on the odometer.</p>
<p>First time taking the new bike up highway 9. Must have had half a dozen riders signal to warn that the police were up ahead; this part of the ride was none too spirited.</p>
<p>152 from Watsonville [...]]]></description>
			<content:encoded><![CDATA[<p>Got a quick ride in today &#8212; 112 miles.  Quickly coming up on the 1K mile mark on the odometer.</p>
<p>First time taking the new bike up highway 9. Must have had half a dozen riders signal to warn that the police were up ahead; this part of the ride was none too spirited.</p>
<p>152 from Watsonville over Hecker pass was loads of fun, even if the road was a bit rough in spots. After the left turn northward toward, Uvas road was also very interesting. I truly enjoy the ride up these &#8220;hidden&#8221; valley roads that most folks don&#8217;t realize exist so close to their suburbs.</p>
<p> <iframe src="http://foobert.com/linked/2009/bouldercreek_watsonville.html"  width="800" height="600" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"><br />
<a href="/linked/2009/bouldercreek_watsonville.html" mce_href="/linked/2009/bouldercreek_watsonville.html">Click here for the map</a></iframe><br />
</p>
<p>Got tired of hand-editing the GPX files to merge the routes. Started to write a sed script to do it for me, but, just had all kinds of trouble trying to get the version of sed that ships with Mac OS X to insert a newline &#8212; which a quick search of &#8216;sed newline&#8217; reveals that perhaps sed doesn&#8217;t much like to do this any case. So, scratched some rust off my once budding Python and decided to learn how to do a regular expression with it.</p>
<p>And for the first time with Python, it underwhelmed me. The simplicity of a regex is burdened by the fact that (I only now realized) Python doesn&#8217;t have any in-built regex abilities;  I just assumed it did, and it would work like Perl. It most certainly does not:</p>
<blockquote>
<pre>#! /usr/bin/python</pre>
<pre>import sys
import re</pre>
<pre>if len(sys.argv) &lt; 3:
  print "usage:"
  print "  gpx.py &lt;gpx input file&gt; &lt;output file name&gt;"
  sys.exit(1)</pre>
<pre>f_read  = open(sys.argv[1], 'r')
f_write = open(sys.argv[2], 'w')

for line in f_read:
  p = re.compile('&lt;wpt.*/wpt&gt;')
  line = p.sub('',line)</pre>
<pre>  p = re.compile('&lt;trk')
  line = p.sub('\n&lt;trk',line)</pre>
<pre>  p = re.compile('&lt;/trkseg')
  line = p.sub('\n&lt;/trkseg',line)</pre>
<pre>  p = re.compile('&lt;time&gt;.*&lt;/time&gt;')
  line = p.sub('',line)</pre>
<pre>  p = re.compile('&lt;trk.*37\.3[0,1,2].*-121.8[8,9].*/trkpt&gt;\n')
  [line,count] = p.subn('',line)
  print "Removed", count," points from the track"</pre>
<pre>  f_write.write(line)</pre>
<pre>f_read.close()
f_write.close()
sys.exit(0)</pre>
</blockquote>
<p>Which does the following:</p>
<ol>
<li>Removes all waypoints from the file.</li>
<li>Adds newlines in front of some key xml tags which makes it trivial to merge multiple tracks together using a text editor</li>
<li>Removes the timestamp from each track data point</li>
<li>Removes any data point that are near my house</li>
</ol>
<p>All simple stuff, but tedious to do on the XML source file that has no line feeds as generated from the Garmin Nuvi GPS.</p>
<p>With the munged GPX file, this is uploaded to the very handy <a href="http://gpsvisualizer.com/" target="_blank">GPSVisualizer.com</a> site that dumps the track into the map you see above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foobert.com/blog/2009/02/22/motorcycle-riding-leads-to-coding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Watsonville Ride</title>
		<link>http://www.foobert.com/blog/2009/02/08/watsonville-ride/</link>
		<comments>http://www.foobert.com/blog/2009/02/08/watsonville-ride/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 16:55:17 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[rides]]></category>

		<guid isPermaLink="false">http://www.foobert.com/blog/?p=208</guid>
		<description><![CDATA[<p>I&#8217;m starting to get the hang of pulling files of the gps and saving the tracks I want to a web page. Once I have the system nearly automated, I&#8217;ll share it here.</p>
<p></p>
<p>Suffice it to say, much fun on ~125 miles of mostly wet roads that I&#8217;m sure were quite slick in spots due to tree [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m starting to get the hang of pulling files of the gps and saving the tracks I want to a web page. Once I have the system nearly automated, I&#8217;ll share it here.</p>
<p><a href="http://foobert.com/linked/2009/watsonville.html"><img src="http://www.foobert.com/blog/wp-content/uploads/2009/02/watsonvile.jpg" alt="watsonvile" title="watsonvile" width="428" height="484" class="alignnone size-full wp-image-209" /></a></p>
<p>Suffice it to say, much fun on ~125 miles of mostly wet roads that I&#8217;m sure were quite slick in spots due to tree detritus and the occasional patch of mud and gravel; never tested the limits of said same, fortunately. There was even a few departures from tarmac.  </p>
<p><a href="http://foobert.com/gal/main.php/v/projects/cycle_trips/watsonville/?g2_highlightId=19149"><img alt="" src="http://foobert.com/gal/main.php?g2_view=core.DownloadItem&#038;g2_itemId=19151&#038;g2_serialNumber=2" title="Dirt Roads" class="alignnone" width="640" height="480" /></a></p>
<p>As an added benefit of the ride, the new bike got it&#8217;s 600 mile service done, but it really needs wash now.<br />
<a href="http://foobert.com/gal/main.php/v/projects/cycle_trips/watsonville/?g2_highlightId=19149"><br />
Full pictures here.</a></p>
<p><a href="http://foobert.com/linked/2009/watsonville.html">Interactive track here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foobert.com/blog/2009/02/08/watsonville-ride/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great day for a ride</title>
		<link>http://www.foobert.com/blog/2009/02/02/great-day-for-a-ride/</link>
		<comments>http://www.foobert.com/blog/2009/02/02/great-day-for-a-ride/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 08:52:05 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[driving]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[rides]]></category>

		<guid isPermaLink="false">http://www.foobert.com/blog/?p=192</guid>
		<description><![CDATA[<p>While most of the masses were watching the Super Bowl, I took advantage of the empty roads and put a 115 miles or so on the cycle. While the miles weren&#8217;t huge, it was 3+ hours in the saddle and I wasn&#8217;t uncomfortable at the end and could have easily kept on going. Doesn&#8217;t sound like [...]]]></description>
			<content:encoded><![CDATA[<p>While most of the masses were watching the Super Bowl, I took advantage of the empty roads and put a 115 miles or so on the cycle. While the miles weren&#8217;t huge, it was 3+ hours in the saddle and I wasn&#8217;t uncomfortable at the end and could have easily kept on going. Doesn&#8217;t sound like much, but, that 10-day Oshkosh trip in July isn&#8217;t going give me the luxury of stopping every hour.</p>
<p><a href="http://www.foobert.com/linked/2009/calaveras.html">Click on the map</a> to go interactive.</p>
<p><a href="http://www.foobert.com/linked/2009/calaveras.html"><img class="size-full wp-image-194 alignnone" title="calaveras_loop" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/calaveras_loop.jpg" alt="calaveras_loop" width="500" height="601" /></a></p>
<p>More after the break &#8230;</p>
<p><span id="more-192"></span></p>
<p><a href="http://foobert.com/gal/main.php?g2_view=map.ShowMap&amp;g2_Mode=Normal&amp;g2_Group=&amp;g2_album=Calaveras-Palomares+Loop" target="_blank">Click here</a> for a map of all photo locations.</p>
<p>The green of spring is incredible right now. Smoggy San Jose, is, well, ugly.</p>
<p><img class="alignnone size-full wp-image-200" title="Lush Hills" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0683.jpg" alt="Lush Hills" width="667" height="500" /></p>
<p>But, the tarmac was nice, and I&#8217;d never ventured up this stripe heading up the hills on Sierra Rd from the Berryessa exit.</p>
<p><img class="size-full wp-image-201 alignnone" title="Sierra Rd" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0681.jpg" alt="img_0681" width="667" height="500" /></p>
<p>Sierra Rd quickly turns into a 1.5 lane road, and was very quiet. Here&#8217;s the the last shot before turning north towards Calaveras reservoir.</p>
<p><img class="alignnone size-full wp-image-199" title="Sierra Rd Canyon" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0684.jpg" alt="Sierra Rd Canyon" width="667" height="500" /></p>
<p>Calaveras Reservoir needs some more rain&#8230;</p>
<p><img class="alignnone size-full wp-image-197" title="Calaveras Dam" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0691.jpg" alt="Calaveras Dam" width="667" height="500" /></p>
<p>I&#8217;m always amazed at how quickly you go from strip malls and track homes to range land and cows. This was north of Livermore on Collier Canyon Rd.</p>
<p><img class="alignnone size-full wp-image-196" title="North of Livermore" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0692.jpg" alt="North of Livermore" width="667" height="500" /></p>
<p>And this little road tucked into a valley between the east bay hills and Pleasanton was quite fun, despite the 25-35 MPH speed limit. The fact that it was deserted made it all too easy to violate said postings. While it was 65-70°F elsewhere on the ride, this valley was a chilly 45°.</p>
<p><img class="alignnone size-full wp-image-195" title="Palamares Rd" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/img_0695.jpg" alt="Palamares Rd" width="667" height="500" /></p>
<p>And, my camera batteries died, but, Morrisson Canyon Rd was the gnarliest, narrow stripe of tarmac I&#8217;ve seen in a long while. If two cars met in opposing directions, one of them is literally going to have to back-up for a mile before they can pass.</p>
<p><img class="alignnone size-full wp-image-193" title="morrison_canyon" src="http://www.foobert.com/blog/wp-content/uploads/2009/02/morrison_canyon.jpg" alt="morrison_canyon" width="500" height="351" /></p>
<p><a href="http://foobert.com/gal/main.php/v/projects/cycle_trips/calaveras_loop/">All photos can be found in the gallery, complete with map location of where they were taken</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foobert.com/blog/2009/02/02/great-day-for-a-ride/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

