<?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>Schadenfreude &#187; environment</title>
	<atom:link href="http://www.ralree.com/tag/environment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Buying a fuel-efficient used car versus a new Prius</title>
		<link>http://www.ralree.com/2009/04/28/buying-a-fuel-efficient-used-cars-versus-a-new-prius/</link>
		<comments>http://www.ralree.com/2009/04/28/buying-a-fuel-efficient-used-cars-versus-a-new-prius/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 14:55:55 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cars]]></category>
		<category><![CDATA[civic]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[fuel]]></category>
		<category><![CDATA[honda]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[lifestyle]]></category>
		<category><![CDATA[prius]]></category>
		<category><![CDATA[toyota]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=22545</guid>
		<description><![CDATA[As one who drives a 2000 Honda Civic, which in many real-world driving tests gets almost exactly 30 MPG consistently (I keep pump logs), I wonder if I would actually create a net reduction in gas consumption by buying a Prius or other car.  Now, I&#8217;m assuming a new Prius, but buying a used [...]]]></description>
			<content:encoded><![CDATA[<p>As one who drives a 2000 Honda Civic, which in many real-world driving tests gets almost exactly 30 MPG consistently (I keep pump logs), I wonder if I would actually create a net reduction in gas consumption by buying a Prius or other car.  Now, I&#8217;m assuming a new Prius, but buying a used one is perfectly valid, and is outside the scope of this article.  If you want to do that, more power to you &#8211; that&#8217;s a good choice hands down.  Yet, most people I know would opt for a new one.  Based on various seemingly valid estimates, it takes 113,322,000 BTUs to create and import a brand new Prius.  It takes 0 BTUs to park a used Honda Civic on a lot until someone buys it.</p>
<p>So, for the data used to obtain this, I looked all over for real road tests of the Prius fuel economy.  <a href="http://consumerguideauto.howstuffworks.com/2008-toyota-prius-1.htm">This one</a> seemed to fit well with everything else I&#8217;d been reading, giving an average range of 42.6-45.2 MPG.  So, I&#8217;m going to say 43 MPG.</p>
<p>The Prius uses enough gas to create 2639.53 BTUs per mile.  The Civic: 3783.33.  At these rates, and coupled with the initial component of the BTUs used to manufacture and import the Prius, we come up with the following:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=2639.53x%20%2B%20113322000%20%3D%203783.33x&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2639.53x + 113322000 = 3783.33x' title='2639.53x + 113322000 = 3783.33x' class='latex' /></p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%20%3D%2099075.01&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x = 99075.01' title='x = 99075.01' class='latex' /></p>
<p>Graphing this in gnuplot, we get the following:</p>
<p><a href="http://www.ralree.com/newblog/wp-content/uploads/2009/04/plot.png"><img class="aligncenter size-full wp-image-22548" title="plot" src="http://www.ralree.com/newblog/wp-content/uploads/2009/04/plot.png" alt="plot" width="640" height="480" /></a>So, one would have to drive almost 100,000 miles to get an advantage over simply buying a used Civic.  Interesting.  Here&#8217;s the GNUPlot <a href="http://www.ralree.com/newblog/wp-content/uploads/2009/04/hondavsprius.plt">Plot File</a> for anyone that&#8217;s interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/04/28/buying-a-fuel-efficient-used-cars-versus-a-new-prius/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DNS for bash</title>
		<link>http://www.ralree.com/2008/03/31/dns-for-bash/</link>
		<comments>http://www.ralree.com/2008/03/31/dns-for-bash/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 01:16:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[camping]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[_why]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/03/31/dns-for-bash</guid>
		<description><![CDATA[Today, I decided I wanted a network service that propagated variables and aliases to every login shell that subscribed to it.  This is dangerous on a large scale, but perfectly acceptable on my small home network where everyone trusts everyone else.
First, I got Camping installed, bringing back fond memories of Ruby development.  I [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I decided I wanted a network service that propagated variables and aliases to every login shell that subscribed to it.  This is dangerous on a large scale, but perfectly acceptable on my small home network where everyone trusts everyone else.</p>
<p>First, I got <a href="http://code.whytheluckystiff.net/camping">Camping</a> installed, bringing back fond memories of Ruby development.  I then copied off the blog example, and created TreeHugger, a 427 line script that provides a web interface to edit the variables, and a plain text output for the shells to source.  </p>
<p><a href="http://modzer0.cs.uaf.edu/repos/hank/code/ruby/treehugger.rb">This script</a>, when run, allows some simple MVC actions to an sqlite3 database.</p>
<p><img src="http://ralree.com/assets/2008/3/31/screenshot2.png" alt="Example Screenshot"/></p>
<p>As you can see, I have some aliases here I want to send to all the subscribing hosts.  Eventually, I want to add some detection functionality to the database (mostly reverse DNS lookups for host rule referencing).  I just have to access <code>/out</code> to get my desired output:</p>
<pre><code>
# Treehugger Configuration
# Aliases
alias ai='sudo apt-get install'
alias aup='sudo apt-get update'
alias aug='sudo apt-get upgrade'

# Environment Variables
</code></pre>
<p>Now, to get this into bash.  I looked into making the <code>date</code> command spit out pretty unique timestamps.  Turns out you can do this with the nanoseconds format:</p>
<pre><code>
$ date +%s%N
1206926780157462141
</code></pre>
<p>I made it so <code>wget</code> saves the treehugger config to a tempfile using the somewhat random seed above as a filename suffix, and then I have my shell source it:</p>
<pre><code>
FILENAME=/tmp/treehugger-`date +%s%N`; 2&gt;/dev/null wget -O $FILENAME  http://rofl.who/treehugger/out &#038;&#038; source $FILENAME &#038;&#038; rm $FILENAME
</code></pre>
<p>And now I have nice aliases on my laptop served up from my desktop as fresh as the shell:</p>
<pre><code>
hank@davros:~$ alias
alias ai='sudo apt-get install'
alias aug='sudo apt-get upgrade'
alias aup='sudo apt-get update'
alias ls='ls --color=auto'
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/03/31/dns-for-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Killing Caps Lock</title>
		<link>http://www.ralree.com/2007/03/22/killing-caps-lock/</link>
		<comments>http://www.ralree.com/2007/03/22/killing-caps-lock/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 12:44:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/killing-caps-lock</guid>
		<description><![CDATA[As seen here:

    Option  "XkbOptions"    "ctrl:nocaps"

Horray.  Awesomeness.  Changes the caps lock key to a control key in Linux via xorg.conf.
]]></description>
			<content:encoded><![CDATA[<p>As seen <a href="http://wiki.linuxquestions.org/wiki/Swap_Caps_Lock_and_Ctrl">here</a>:</p>
<pre><code>
    Option  "XkbOptions"    "ctrl:nocaps"
</code></pre>
<p>Horray.  Awesomeness.  Changes the caps lock key to a control key in Linux via <code>xorg.conf</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/03/22/killing-caps-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.347 seconds -->
