<?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>Random Thoughts</title>
	<atom:link href="http://peterleonhardt.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterleonhardt.com/blog</link>
	<description>A gathering place for ponderings</description>
	<lastBuildDate>Wed, 15 Jul 2009 01:45:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Pandora One</title>
		<link>http://peterleonhardt.com/blog/2009/07/14/pandora-one/</link>
		<comments>http://peterleonhardt.com/blog/2009/07/14/pandora-one/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 01:45:29 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Online Business]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/?p=44</guid>
		<description><![CDATA[I received the dreaded email from Pandora.com this past week detailing how they will soon be beginning to limit users to 40 hours of streaming music per month. If you want more than that, only $0.99 for the rest of the month. Or, you can have uncapped, high quality, uninterrupted music with no ads for [...]]]></description>
			<content:encoded><![CDATA[<p>I received the dreaded email from Pandora.com this past week detailing how they will soon be beginning to limit users to 40 hours of streaming music per month. If you want more than that, only $0.99 for the rest of the month. Or, you can have uncapped, high quality, uninterrupted music with no ads for a mere $36 per year. As a bonus, they&#8217;ll throw in a desktop application, so you don&#8217;t even need to have a browser open to enjoy the music.</p>
<p>40 hours a month sounds like a lot of music, and it is. However, I always have Pandora on in the background while I&#8217;m at work and much of the time whilst at home cooking, browsing the interwebs, or working on my bike. Apparently that puts me in the 10% bracket of users that normally exceed this 40 hour cap.</p>
<p>When Pandora introduced audio ads intermixed with your songs a few months ago, it began to frustrate me (likely because they were all the same commercial, from the US Govt about traveling to Canada). I said to myself I would gladly pay a small amount per month to listen to Pandora ad free, and others probably would as well. At the time, I didn&#8217;t know about Pandora One. </p>
<p>Now that they are forcing my hand, I have gladly signed up for the Pandora One service and it has so far been wonderful. High quality streaming music with desktop applications running on my Mac at work, and on my Vista Laptop and Ubuntu Desktop at home! </p>
<p>If you are having difficulty installing the Pandora One application on linux, see <a href="http://www.adoleo.com/blog/2009/apr/5/installing-adobe-air-ubuntu-jaunty-64-bit/">this post</a> about properly setting up the Adobe Air installer. </p>
<p>Overall, I think more companies should follow the model that Pandora has decided to take. You will likely fail if you try and force all of your users to switch over to subscription only, but many of your users would prefer to pay a small premium to utilize your service without the advertisements (with some bonuses to boot!). Sometimes ads just don&#8217;t pay the bills for your heaviest users, and this is a fantastic way to solve that problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2009/07/14/pandora-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.3 &amp; Using Mongrel to deploy to a subdirectory (via &#8211;prefix)</title>
		<link>http://peterleonhardt.com/blog/2009/03/25/rails-23-mongrel-prefix/</link>
		<comments>http://peterleonhardt.com/blog/2009/03/25/rails-23-mongrel-prefix/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 01:49:54 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2009/03/25/rails-23-mongrel-prefix/</guid>
		<description><![CDATA[As many in the Rails community, our team has begin using the latest and greatest version of Ruby on Rails (2.3). We&#8217;ve been using v2.3 to develop our new Rails apps and everything is great. Great, that is, until we try to deploy to our application server. You see, Our team runs multiple applications on [...]]]></description>
			<content:encoded><![CDATA[<p>As many in the Rails community, our team has begin using the latest and greatest version of Ruby on Rails (2.3). We&#8217;ve been using v2.3 to develop our new Rails apps and everything is great. Great, that is, until we try to deploy to our application server. </p>
<p>You see, Our team runs multiple applications on the same server: apps.domain.com/app_1 apps.domain.com/app_2 etc..<br />
We launch mongrel with something like:</p>
<pre class="brush: ruby;">
  mongrel_rails start --prefix /app_1
</pre>
<p>This has always worked for us, but when we tried to deploy an application with Rails 2.3 we ran into a problem. A big one. Buried down in Mongrel&#8217;s code, the following code lies:</p>
<pre class="brush: ruby;">
  ActionController::AbstractRequest.relative_url_root = ops[:prefix] if ops[:prefix]
</pre>
<p>This code hooks into Rails, telling it to add the subdirectory that you&#8217;re deploying to (app_1, app_2, etc) to the paths that Rails generates for you (root_url and the like). The problem is ActionController::AbstractRequest has been removed from Rails 2.3. </p>
<p>Seeing as the last update to Mongrel was over a year ago, we&#8217;re not very optimistic of the Mongrel team getting a fix for this out anytime soon. We also, can&#8217;t simply patch our version of mongrel, because it is also used by Rails apps around from before v2.3. Instead, we decided to temporarily hack around the problem.</p>
<p>I present abstract_request.rb</p>
<pre class="brush: ruby;">
module ActionController
  class AbstractRequest
    def relative_url_root=(path)
      ActionController::Base.relative_url_root = path
    end
    def relative_url_root
      ActionController::Base.relative_url_root
    end
  end
end
</pre>
<p>Placing this little guy the lib/action_controller/ directory of your rails app will gracefully allow Mongrel to still make its call to AbstractRequest, hopefully refraining from breaking anything else.<br />
So if you&#8217;re like us and are deploying multiple rails apps to subdirectories, or even if you just want to deploy a single rails app to a subdirectory, you&#8217;re likely going to run into this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2009/03/25/rails-23-mongrel-prefix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Out</title>
		<link>http://peterleonhardt.com/blog/2008/11/13/running-out/</link>
		<comments>http://peterleonhardt.com/blog/2008/11/13/running-out/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 13:10:27 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/11/13/running-out/</guid>
		<description><![CDATA[Things are slowly coming to an end with my study abroad program. I&#8217;ve got 2 short weeks of internship left, and just 3 weeks of classes including exam week. It is striking at how quickly the entire experience has passed. I suppose that happens when you&#8217;re taking in new cultures, seeing new cities, and making [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><img src="http://peterleonhardt.com/blog/wp-content/uploads/2008/11/dsd.JPG" alt="Sydney Harbour" /></div>
<p>Things are slowly coming to an end with my study abroad program. I&#8217;ve got 2 short weeks of internship left, and just 3 weeks of classes including exam week. It is striking at how quickly the entire experience has passed. I suppose that happens when you&#8217;re taking in new cultures, seeing new cities, and making new friends.<br />
At my internship, they have a procedure involving hyperperfusion, used to increase blood pressure to the far extremities (toes / feet) of the legs and stimulate arterial growth. Involved in this procedure, is a tube that connects the femoral artery to a pump external of the body. This tube is sewed to the artery and passes through a wound in the skin. I was tasked with making some design modifications for this tube to be used in a cardiac application, in which it would be connected to the subclavian artery for the extent of a cardiac bypass surgery. On Monday, I will construct a prototype for this assembly, which will hopefully be shipped off to the surgeon for approval, bringing the design cycle to a near complete finish.<br />
In classes, I gave a presentation in International Business this week with Alicia, on Woolworths Limited (no connection to the US Woolworths company) and had a research paper due in Sociology today. That concludes the major projects for my classes. I have a journal portfolio for my internship to complete and then just exams to study for.<br />
CAPA is putting on a Thanksgiving dinner for us students on Thanksgiving Day (local time, for simplicity). We will get a proper Thanksgiving meal catered by the Billy Blue School of Culinary Arts. Turkey, mashed potatoes, stuffing, cranberry sauce, and gravy will all be featured. There is a battle between Pumpkin and Pecan pie at the moment, I&#8217;m rooting for Pecan and may bake my own if Pumpkin wins out!<br />
I bought plane tickets this evening for a trip with Stephanie to New Zealand from December 5th &#8211; 10th. We&#8217;re flying to Christchurch, on the Southern Island, and will be looking to partake in some lovely hikes and tours of the glaciers and mountainous surroundings. Perhaps a Lord of The Rings tour is in order (how cool would a tour of Hobbiton be?!) but may be pricey. Luckily the exchange rate is pretty good for us at the moment (~0.61USD:1AUD) giving us cheap flights and the NZ$ is pretty weak against the dollar at the moment as well (0.55USD:1NZD).<br />
My parents are coming to visit me! They will arrive in Sydney on December 7th, while I&#8217;m in New Zealand. I&#8217;ll be meeting up with them, taking them around Sydney and then we&#8217;ll be off to explore another city or two. I&#8217;m rooting for Melbourne and then somewhere a little North for SCUBA diving. They&#8217;ll be in town until the 20th, and I depart for home on the 21st, just in time to recuperate for Christmas, then moving to back Minneapolis and into my new apartment with my new roommate, Jeff. </p>
<p>I register for next semesters classes in an hour. I&#8217;m looking to graduate in either 2 or 3 more semesters, depending on some small factors. I can do 2 semesters, but I&#8217;m weighing the pros and cons of a December vs Spring graduation and the ability to take additional technical electives that would help me in my major.</p>
<p>I suppose that is all I have for now. Cheers.</p>
<p>Life just won&#8217;t stand still for me, no matter how hard I wish it to.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/11/13/running-out/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gills</title>
		<link>http://peterleonhardt.com/blog/2008/11/01/gills/</link>
		<comments>http://peterleonhardt.com/blog/2008/11/01/gills/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 12:01:16 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/11/01/gills/</guid>
		<description><![CDATA[I just got back from a 3 day / 2 night liveaboard dive trip through Prodive Cairns. It was absolutely thrilling! We did 4 dives the first day, 4 dives the second day, and 3 dives the last day. That includes 2 night dives the first two days. While we were on the way out [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://peterleonhardt.com/blog/wp-content/uploads/2008/11/fish.png" alt="" /></p>
<p>I just got back from a 3 day / 2 night liveaboard dive trip through Prodive Cairns. It was absolutely thrilling! We did 4 dives the first day, 4 dives the second day, and 3 dives the last day. That includes 2 night dives the first two days.<br />
While we were on the way out to the Great Barrier Reef I opted to join the Advanced Open Water training class that was going on during the trip. I joined several other students (ages ranging from 20 to 50) and did 5 training dives: Night dive, Deep dive, Underwater Navigation, Naturalist, and Underwater Photography. I would much have liked to do the Peak Buoyancy Control dive, but unfortunately they didn&#8217;t have all of the right equipment on board for that.</p>
<p>The diving was phenomenal, with perfect 26&deg;C water somehow I was the only one to not wear a wetsuit the entire time. The visibility was good for most of the dives, and luckily this part of the Reef is largely thriving. I didn&#8217;t see any sort of bleached or dead coral while I was there, aside from what looked like natural life cycle deterioration.</p>
<p>For all of my dives, I buddied up with Nikolas, one of the other Advanced Open Water students. We had a good time together, and it was a good partnership, us both holding roughly the same number of dives and having near equivalent skill levels under the water. Together we saw huge schools of fish, a handful of sea turtles, a few small rays, and some whitetip and great reef sharks, along with experiencing diving at night for the first time.  There were, of course, a few hiccups along the way. On one of the later dives, we got disoriented with our position from the current and surges we were swimming with, and set course back to the boat. After a long swim, we were running low on air and decided to surface to get our bearings, and probably snorkel it back. Good thing we did! We had actually swam under the boat, missing the anchor lines, and swam a good 200m past it! We weren&#8217;t the only ones, though; a few others surfaced around the same spot that we had once we got back to the boat. I also lost my buddie, for the first time. We were swimming amongst many coral heads, and we found a small swim through. I opted to go through while he opted to go over and when I came out on the other side, he was no where to be found! I frantically went back over the ridge, around several of the other boomies, all the while looking for his bubbles. I looked at my watch, okay&#8230; 1 minute then you surface. I swam, I looked, I panicked. 90 seconds later, I do one last 360 and there he his. Waving at me, looking at me and saying &#8220;Hey, I&#8217;m over here dummy!&#8221;. We finished off the dive, it was a little shorter than planned, I burned through air a little faster while looking for him. When we got back to the boat he said he could see me the whole time, but I swam away from him when I tried to find him. Apparently in my &#8220;panic&#8221;, I didn&#8217;t do a full 360 turn when I looked for him before swimming off. Lesson Reinforced: keep calm, relaxed, and focused.<br />
During another dive, we were swimming through some surges and we got knocked into eachother. Completely accidentally, a small movement of Nikolas&#8217; hand yanked the regulator straight out of my mouth. Very calmly, I looked at him in the face to say, &#8220;hey! I was using that&#8230;&#8221; and patiently waited for him to return my regulator to me, since he could see it better than I could (it went being me). Luckily, he returned it to me before I ran out of breath (of course, I always had my backup about 3&#8243; from my mouth), and we leisurely continued our time amongst the fishies. </p>
<p>It was a great experience, I took some decent photos along the way, and I&#8217;m glad that I did my Advanced Certification, getting some extra experience with underwater navigation.<br />
<a href="http://www.flickr.com/photos/pjleonhardt/sets/72157608305304014/">Photos From My Dives</a></p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/11/01/gills/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Freefall</title>
		<link>http://peterleonhardt.com/blog/2008/10/22/freefall/</link>
		<comments>http://peterleonhardt.com/blog/2008/10/22/freefall/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 23:23:39 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Outdoors]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/10/22/freefall/</guid>
		<description><![CDATA[A short film, starring Peter Leonhardt (Mom, don&#8217;t watch this!).]]></description>
			<content:encoded><![CDATA[<p>A short film, starring Peter Leonhardt (Mom, don&#8217;t watch this!).</p>
<p><object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/tbn_zJExvcA&#038;hl=en&#038;fs=1&#038;rel=0&#038;border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/tbn_zJExvcA&#038;hl=en&#038;fs=1&#038;rel=0&#038;border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="349"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/10/22/freefall/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Port Stephens</title>
		<link>http://peterleonhardt.com/blog/2008/10/06/port-stephens/</link>
		<comments>http://peterleonhardt.com/blog/2008/10/06/port-stephens/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 14:00:09 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/10/06/port-stephens/</guid>
		<description><![CDATA[This weekend began with a bit of a mini freak out. You see, I was supposed to leave for Port Stephens on a train leaving from Central Station at 2:20, with the other seven people going up for the weekend. When I got home from my internship around 12:45, nobody was here. They had a [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend began with a bit of a mini freak out. You see, I was supposed to leave for Port Stephens on a train leaving from Central Station at 2:20, with the other seven people going up for the weekend. When I got home from my internship around 12:45, nobody was here. They had a test that lasted until 12:30, and I remember hearing somebody say they were coming back afterwords because they didn&#8217;t want to bring their luggage to class with them. So I figured that they would be around shortly. 1:15, 1:30, 1:45 come around and there is no sign of anybody yet. At this point, I am beginning to worry and think of all sorts of reasons that they might be delayed. Or had I misheard and we were taking a different train, or was nobody coming back to Georgia House?</p>
<p>Unfortunately, I knew very little of our actual travel plans besides we were taking a train, a bus, and ending up at a hostel in Port Stephens. This prohibited me from going to the station on hopping on the train myself. After all, what if I was the only person that had got on the train? I&#8217;d end up in Newcastle, but have no idea what bus I was supposed to take, nor where to take it! Perhaps there was a mix up with there class and we&#8217;ll be taking the 4:30 train instead, I thought. By the time 2:15 came around, it was obvious I wouldn&#8217;t be making the train. Of course, I am the only member of the group to not have a cell phone, and therefore completely hopeless to try and get a hold of.</p>
<p>I started looking online for how to get from Newcastle to Port Stephens, which bus, where the hostel was located and which train to hop on. Shortly after collecting this information, I headed out for the 5:15pm train leaving from Central, giving me about a 10 minute window to get off the train and catch the last bus from Newcastle to Port Stephens. So I bought my ticket at central and found my train, snuggled into a seat with all of my luggage, ready to embark on the 3 hour journey all by my lonesome. </p>
<p>The ride itself was very nice. It was quiet and not too crowded. I spent most of the time working on papers for the class associated with my internship (PELA) and ended up hammering out 2500 words (five 400-600 word papers) in about an hour. I enjoyed a nice sunset taking place behind the mountains as we were traveling over a lake, and soaked in the beauty of Australia, thinking about the weekend ahead. After getting to Newcastle, I found the last bus out of town and prepared for another hour worth of travel. Luckily, the bus driver knew my hostel by name and was able to drop me at a stop about a block away. After searching for 15-20 minutes, I finally found my friends, sitting in front of the television waiting for me.</p>
<p>One of the members of Team Bissel (our group name, apparently), Jackie Bissel, is interning at WakeUp!, a hostel in Sydney. Her boss is friends of the owners of the hostel at which we were staying. The owners were so kind and offered to drop us off at anywhere in the Port Stephens area that we wanted to go.<br />
On Saturday, we headed up to Nelson Bay to go Kayaking. Our tour was at one, but we decided to head up to the beach a bit early and soak in some sun and take a quick dip before that. After taking a walk down the beach, one of the people that works at CAPA (Zara) met us at the beach, as she was in town for the weekend visiting her Grandma. We hung out with Zara and walked around the marina until our scheduled tour began. We had a wonderful time out on the water, paddling for about an hour and fifteen minutes into the bay. We stopped at a beach, had some biscuits (cookies) and some soda to refresh. There is where we spotted a dolphin a little ways off shore. The way back was a bit quicker and easier, with a slight current in our favor. We saw two more dolphins just behind our kayaks as we were turning into the marina. A successful kayaking trip, indeed.</p>
<p>We then headed to Zara&#8217;s grandmas house for an Aussie barbecue! We had chicken kebabs, prawns, and burgers, while drinking lost of wine and having an overall wonderful time. </p>
<p>Sunday we headed out to &#8220;the largest sand dunes in the southern hemisphere&#8221; at Marubri beach. There were caught a giant 4 wheeler bus that drove us up to the top of the dunes where we proceeded to go dune boarding for the next couple hours. It is a bit like snow boarding, only when you fall you get sand absolutely everywhere (though you don&#8217;t freeze). We caught some good wipeouts on video, and I&#8217;ll post that when I can. I&#8217;m still sore from my numerous face-plants and other falls. Sunday night we had another big feast, grilled chicken, bangers (sausages), and corn on the cob. We also all had about a bottle of wine. Then we met some Aussies who were also staying at the hostel and we started playing card games with them and drinking the night away. We found out that they were up there on holiday and are actually from around Sydney. So hopefully we&#8217;ll be able to meet up sometime in the city for drinks.</p>
<p>Coming up on the agenda, on Tuesday I have my midterm exam in International Business, along with some PELA assignments due. Thursday I have a 1000-word sociology paper due. However, after that I can start thinking about absolutely nothing but my Spring Break, which yes, is less than a week away! We (Team Bissel) leave on Saturday for Arlie Beach and Whitsundays, where we&#8217;ll be living aboard a world champion sail boat for 2 days and 2 nights, camping on the beaches of Whitsundays. After which we take a bus up to Cairns where I&#8217;ll be doing a 3 day / 2 night live-aboard dive trip out to the Great Barrier Reef, enjoying 11 spectacular dives ( and my first two night dives). A day of whitewater rafting, then its back to Sydney early Monday morning, where I&#8217;ll be supposedly 1/2 way done with my classes and internship. Yikes.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/10/06/port-stephens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Harbour Cruise</title>
		<link>http://peterleonhardt.com/blog/2008/10/06/harbour-cruise/</link>
		<comments>http://peterleonhardt.com/blog/2008/10/06/harbour-cruise/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 12:57:00 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/10/06/too-busy/</guid>
		<description><![CDATA[I&#8217;ve been far too busy enjoying myself Down Under these last few weeks to have time to update here. Lets see, where to begin&#8230; Last weekend began on Friday night with a Georgia House (where I&#8217;m living) sponsored Sydney Harbour Cruise. We were privileged to ride aboard an all Aboriginal boat, with an Aboriginal crew. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been far too busy enjoying myself Down Under these last few weeks to have time to update here. Lets see, where to begin&#8230;</p>
<p>Last weekend began on Friday night with a Georgia House (where I&#8217;m living) sponsored Sydney Harbour Cruise. We were privileged to ride aboard an all Aboriginal boat, with an Aboriginal crew. Their other boat is the first Aboriginal boat to completely circumnavigate Australia. They treated us to a fantastic time full of music, food, beer, and spectacular sites. We cruised around the inner harbours and made our way under the Sydney Bridge, past the Sydney Opera House, and eventually to Clark Island. This is a protected island, requiring special permissions to dock there. Once there, we were given a tour and told about the history of the island and the people that lived there, while watching a stunning sunset over Sydney&#8217;s CBD. </p>
<p>You can look at <a href="http://www.new.facebook.com/album.php?aid=2071591&#038;l=41f45&#038;id=39706067">this photo album from the cruise</a>.</p>
<p>The next day I took a trip to the <a href="http://www.powerhousemuseum.com/">Power House Museum</a> near Darling Harbour. They have a wide range of exhibits ranging from influences of modern fashion, to a 100 years of Rugby League, Robotics, and Space Travel. I definitely enjoyed my time there, so much I spent nearly 6 hours there! They are having a Star Wars exhibit come early December, so I may just find myself back there before too long. After the museum we took a trip over to <a href="http://www.maxbrenner.com/">Max Brenner&#8217;s</a> for the worlds best hot chocolate.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/10/06/harbour-cruise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hunter Valley Vineyards</title>
		<link>http://peterleonhardt.com/blog/2008/09/22/hunter-valley-vineyards/</link>
		<comments>http://peterleonhardt.com/blog/2008/09/22/hunter-valley-vineyards/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 11:10:01 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/09/22/hunter-valley-vineyards/</guid>
		<description><![CDATA[This past weekend involved a trip to the Hunter Vally Vineyards, about two hours north of Sydney. We arrived at the Hunter Valley YHA, the first hostel I&#8217;ve stayed at in my life, around 11:30am. After quickly checking in and dumping our stuff in our rooms, we headed out to the bus for our wine [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://peterleonhardt.com/blog/wp-content/uploads/2008/09/lunapic-122207969930485.jpg " alt="HunterValley " /></p>
<p>This past weekend involved a trip to the Hunter Vally Vineyards, about two hours north of Sydney. We arrived at the Hunter Valley YHA, the first hostel I&#8217;ve stayed at in my life, around 11:30am. After quickly checking in and dumping our stuff in our rooms, we headed out to the bus for our wine tasting tour.<br />
Our first stop was the Dayton&#8217;s family vineyard. They run a fairly large operation, though they don&#8217;t export internationally, they do their own bottling and do some bottling for smaller neighboring vineyards. While there, we tried a sample of chardonnays, rieslings, ports and chocolate liquors. My favorites here were the Unwooded Chardonnay and the Traminer Riesling. The 12 year-old port was also the best port I&#8217;ve ever had, though not as good as these two wines. After the sampling, they took us on a quick tour of their bottling facilities, and the area where their wine club members get to do their sampling.<br />
Our next stop was at a very small vineyard called Tinklers. Featured here was an adorable black lab, along with some wines. My top picks here were the Verdelho, a light sweet white, and the Volcanic Ash, a very light fruity wine with a hint of sweet. They also had quite a selection of fresh jams like apricot pumpkin.<br />
After lunch, we stopped at a pretty well known vineyard, Rosemount. Rosemount is one of the larger wine producers in the Hunter Valley and is known in the international markets of the US and UK. The wines here were absolutely fantastic, with my favorites being their Traminer Riesling (I just realized as writing this that I already bought a Traminer Riesling!), and their very popular &#8220;O&#8221; (which is best served Over ice). Their 2007 stock of &#8220;O&#8221; sold out in 3 months, and they are expecting similar for their next harvest, hoping to eventually start exporting it to the US.<br />
The last place that we stopped was the Hanging Tree vineyard, which by far had the most stunning views. Vineyards surrounded by small lakes all set in front of a breathtaking mountainous background. Unfortunately, none of the wines really struck me at this place, though they were mostly dry reds and as you can probably tell by now I tend to prefer fruity and sweet whites. They did have a very nice Cabernet with a hint of cinnamon, and a peppery merlot which I enjoyed small amounts of, but couldn&#8217;t have more than a glass of.</p>
<p>After our wonderful wine tasting, we headed back to the hostel. After hanging out pool side (freezing!), we got to make our own pizzas and have them cooked in a wood pizza oven! My pizza turned out amazingly, and everybody had a good time throwing together their own. After dinner we walked about 300m down the road to the local micro brewery and pub, Potters. It was karaoke night and it was packed! I think all of Hunter Valley showed up Saturday night.</p>
<p>Sunday morning started with a trip to the &#8220;Smelly Cheese Shop&#8221; where I acquired the most amazing Feta cheese I&#8217;ve ever had. It is Cow Feta with sundried tomatoes and garlic. It is absolutely delicious and I am addicted. I had to buy a jar, which I&#8217;ll hopefully be able to make last a little while. We ended up walking home (we got a ride there) and along the way had to walk past a roadkill Kangaroo. They really are akin to deer in the Midwest, as a hazard to motorists. The walk took an hour and a half, it was extremely scenic and I quite enjoyed it. It was nice to be able to walk and be out of the city, away from the noise, the people, the cars.<br />
We went back to Potters Brewery for a 2pm brewery tour. This is by far the smallest operation I&#8217;ve ever seen. They had one 600L brew kettle, and a cooler that the group of us (15 on the tour?) barely fit into around the machinery and kegs they were storing. They did have some very nice selections however, my favorite being the Hunter Kölsch, a German style ale. After the tour we headed back to the hostel and relaxed until the bus came to whisk us back to the city from a weekend away that felt far too short.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/09/22/hunter-valley-vineyards/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ActsAsCSVable v1.0</title>
		<link>http://peterleonhardt.com/blog/2008/09/15/acts-as-csvable/</link>
		<comments>http://peterleonhardt.com/blog/2008/09/15/acts-as-csvable/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 17:03:16 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[ActsAsCSVable]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails Plugins]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/09/15/acts-as-csvable/</guid>
		<description><![CDATA[It&#8217;s finally here: ActsAsCSVable! Important Update! on June 25th, 2009 ActsAsCSVable is now on GitHub.com and all development has moved to git. http://github.com/pjleonhardt/ActsAsCSVable/tree/master Git Repository: git://github.com/pjleonhardt/ActsAsCSVable.git History I developed a plugin while working as a Rails Developer, CSVExportable, which was originally based off of some code from Bryan Helmkamp. CSVExportable was good, but it was [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s finally here: ActsAsCSVable! </p>
<p class="alt">
<strong>Important Update!</strong> on June 25th, 2009<br />
ActsAsCSVable is now on GitHub.com and all development has moved to git.<br />
<a href="http://github.com/pjleonhardt/ActsAsCSVable/tree/master">http://github.com/pjleonhardt/ActsAsCSVable/tree/master</a><br />
Git Repository: git://github.com/pjleonhardt/ActsAsCSVable.git</p>
<p><strong>History</strong><br />
I developed a plugin while working as a Rails Developer, <a href="http://peterleonhardt.com/blog/2008/08/20/introducing-csvexportable/">CSVExportable</a>, which was originally based off of some <a href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv">code from Bryan Helmkamp</a>.</p>
<p>CSVExportable was good, but it was an evolutionary design. As such, it was hodgepodged together with no since of organization. I decided to rewrite the plugin from scratch, and design it a little bit better this time around (since I knew where I would end up this time around). It also needed a name change, since it does both CSV <em>exporting and importing</em>. I&#8217;ve seen a few Rails plugins that will do CSV exporting, but I haven&#8217;t found one that does both, or even importing.  Importing is definitely tricky, but I think that if you follow a few guidelines, it can be useful in the right situations.</p>
<p><strong>Installation</strong><br />
Subversion: <a href="http://svn.peterleonhardt.com/rails_plugins/acts_as_csvable/trunk">Trunk </a>| <a href="http://svn.peterleonhardt.com/rails_plugins/acts_as_csvable/branches/stable/1.0">Stable v1.0</a> | <a href="http://svn.peterleonhardt.com/rails_plugins/acts_as_csvable/development">Development Application</a><br />
Project Management: <a href="http://redmine.peterleonhardt.com/projects/show/acts-as-csvable">Redmine</a></p>
<p><strong>Usage</strong></p>
<pre class="brush: ruby;">
   #in your model
    acts_as_csv_exportable :fancy_naming, [{:first =&gt; &quot;first_name&quot;}, {:last =&gt; &quot;last_name&quot;}, {:email =&gt; &quot;email_address&quot;}, {:address =&gt; &quot;mailing_address&quot;}]
    acts_as_csv_exportable :detailed, [:first_name, :last_name, :email_address, :mailing_address, :formatted_date]
    acts_as_csv_exportable :default, [:id, :first_name, :last_name]

    acts_as_csv_importable :default, [:id, :first_name, :last_name]
    acts_as_csv_importable :new_projects, [:name, :details, :\owner_username]

    def formatted_date
      self.date.strftime(&quot;%Y/%M/%D&quot;)
    end

    def owner_username=(username)
      self.owner = Users.find_by_username(username)
    end

  # your contrller
  def index
    @people = Person.find(:all)

    respond_to do |wants|
      wants.csv { render :text =&gt; @people.to_csv(:columns =&gt; [:first_name, :last_name, :date_of_birth]) }
      # or
      wants.csv { render :text =&gt; @people.to_csv(:template =&gt; :fancy) }
      # or
      wants.csv { render :text =&gt; @peope.to_csv } #renders the :default template
    end
  end

  #/people/import
  def import
    file = params[:csv_uplodad]
    template = params[:upload_template]
    projects = Project.from_csv(file, template)

    if projects.all?(&amp;:valid?)
      projects.each(&amp;:save)
    else
      # Options options options...
      # 1) Save valid rows, and re-export invalid rows
      # 2) Save nothing, and tell user which rows were invalid
      # 3) Save nothing and tell them rows are invalid
      # 4) Up to you!
    end
  end
</pre>
<p>I only ask that if you use the plugin, let me know! I love to keep track of how its being used. The more response, the more likely I am to improve it and write more plugins! Leave a message below, or send me an email. I&#8217;d love to hear your thoughts for improvement, as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/09/15/acts-as-csvable/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Blue, and foggy, Mountains</title>
		<link>http://peterleonhardt.com/blog/2008/09/10/blue-and-foggy-mountains/</link>
		<comments>http://peterleonhardt.com/blog/2008/09/10/blue-and-foggy-mountains/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 15:12:55 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://peterleonhardt.com/blog/2008/09/10/blue-and-foggy-mountains/</guid>
		<description><![CDATA[Today&#8217;s entry has tons of links, be sure to check out all of the pictures that they lead to! This past weekend entailed a trip to the glorious Blue Moutains of New South Wales (NSW). Luckily, it decided to pour all of saturday morning as we made our way through Sydney. We stopped at Sydney [...]]]></description>
			<content:encoded><![CDATA[<p><em>Today&#8217;s entry has tons of links, be sure to check out all of the pictures that they lead to!</em></p>
<p>This past weekend entailed a trip to the glorious Blue Moutains of New South Wales (NSW). Luckily, it decided to pour all of saturday morning as we made our way through Sydney. We stopped at Sydney Olympic park, a planned stop, for a new bus because the brakes on the one we departed on were sketchy at best. Instead of walking around, enjoying the jumping water fountains, the stadium, etc, we huddled inside of a Gloria Jean&#8217;s coffee house, trying to stay warm.<br />
After hopping on our new bus, we made our way to a National Wildlife Refuge, where we were able to <a href="http://www.flickr.com/photos/pjleonhardt/2838276825/">pet koala</a>, <a href="http://www.flickr.com/photos/pjleonhardt/2838384997/">feed emu</a>, and box kangaroo (picture coming)! I also got to see dingoes, wallabies, Inland Taipans (most poisonous snake in the world), and other Australian centric creatures.<br />
Finally we climbed our way up to the top of the Blue Mountains, where we saw a spectacular array of <a href="http://www.flickr.com/photos/pjleonhardt/2839679996/">fog</a>, reminiscent of a <a href="http://www.flickr.com/photos/pjleonhardt/2529644916/in/set-72157605294791465/">recent trip up to Waimea Canyon</a>, on Kauai, Hawaii. We decided to break for lunch, which was a welcome chance to warm up with some hot soup, along with fish and chips. Afterward, the weather decided to play nice and let us enjoy some of the <a href="http://www.flickr.com/photos/pjleonhardt/2838867705/in/set-72157607179939727/">stunning views</a> of the <a href="http://www.flickr.com/photos/pjleonhardt/2839754974/in/set-72157607179939727/">Three Sisters</a>, and <a href="http://www.flickr.com/photos/pjleonhardt/2839993426/in/set-72157607179939727/">another look out</a>.</p>
<p>That night, we went to Sidebar, a bar/club located beneath WakeUp!, rated #1 hostel in the world, and also to Landsdowne Hotel on Broadway to soak up the local bar scene.</p>
<p>Monday afternoon and evening, a small group of us went on a walking tour of part of Sydney, walking from our house here in Redfern through Hyde Park, all the way up to the Harbour and the <a href="http://www.flickr.com/photos/pjleonhardt/2842982928/">Sydney Opera House</a>.  After touching the opera house, and milling around a bit, we headed towards our original destination, the <a href="http://www.flickr.com/photos/pjleonhardt/2842144839/in/photostream/">Sydney Harbour Bridge</a>. We were on a mission to walk across the bridge today to see spectacular views of the Harbour and the Central Business District (CBD). Going across the bridge, I managed to snag a few good shots of the <a href="http://www.flickr.com/photos/pjleonhardt/2842413833/in/set-72157607033615501/">Opera House and Circular Quay</a> (pronounced: <em>key</em>). We ended up grabbing some dinner at a Japanese place near the bottom of the northern pylons, after which we walked down to the waterfront to getting some views of the Harbour at night. There, it is where I took <a href="http://www.flickr.com/photos/pjleonhardt/2843295084/in/set-72157607033615501/">my favorite picture</a>.</p>
<p><a href="http://www.flickr.com/photos/pjleonhardt/sets/72157607033615501/">Be sure to follow my pictures on Flickr.</a> (There are a lot of similar looking pictures as I just upload my whole camera. It would take too much time to sort through 100+ pictures every time I upload!)</p>
]]></content:encoded>
			<wfw:commentRss>http://peterleonhardt.com/blog/2008/09/10/blue-and-foggy-mountains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

