<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.2.1" --><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>A Foolish Manifesto</title>
	<link>http://blog.afoolishmanifesto.com</link>
	<description>fREWdiculous!</description>
	<pubDate>Sun, 27 Jul 2008 06:26:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/AFoolishManifesto" type="application/rss+xml" /><item>
		<title>Two Months and 10 000 Miles Later…</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/347215569/54</link>
		<comments>http://blog.afoolishmanifesto.com/archives/54#comments</comments>
		<pubDate>Sun, 27 Jul 2008 06:26:48 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/54</guid>
		<description><![CDATA[As some of you may know, I just went on a long Road Trip for my last free summer.  It was a really great trip.  It is more or less over now, except for my travel back to Dallas.  If you want to see pictures and various anecdotes related to the pictures, [...]]]></description>
			<content:encoded><![CDATA[<p>As some of you may know, I just went on a long Road Trip for my last free summer.  It was a really great trip.  It is more or less over now, except for my travel back to Dallas.  If you want to see pictures and various anecdotes related to the pictures, check out my <a href="http://flickr.com/photos/frew/sets/72157605723139909/">flickr</a>.</p>

<p>The basic outline of the trip was as follows:
Fly to PA for a Flaming Lips concert and some fast visiting.
Go back to MS and pack for the trip.
Leave on Monday and get to OR in time for GOAT&#8217;s wedding on Friday (I was in the wedding so I had to get there before Thursday; I got there at like, 2:00am Thursday.)
After that spend a little over a week with KT in Portland area.
Then go to the Grand Canyon (via plane) with the rest of the family for a quick family vacation.
Return to Oregon only to leave immediately for Spokane WA to visit Sarah for a few days.
Return to OR yet again for KT&#8217;s wedding.
Go to Seattle to visit Cassaundra and her grandma.
Leave to go to MT/WY for Yellowstone and all that&#8217;s in between.
BONUS: do some interesting things in South Dakota.
BONUS: meet GOAT and Becci in Minneapolis for a free night&#8217;s stay and delicious dinner.
Go to WI for a week of fun, and end on Darry&#8217;s wedding.
Return home after the wedding (ca. 8 pm) and arrive the next day (ca. noon.)  That is me driving all but 1.5 hours on the way back.</p>

<p>All in all it was an excellent trip.  I learned a number of things.  I&#8217;ll start with the mundane ones.  </p>

<p>Camping is not as romantic as it sounds.  I mean, sure, sleeping under the stars is great.  You  can see shooting stars and stuff like that.  But I like to take showers in the morning.  I like to sleep on flat surfaces.  I don&#8217;t like having to scour the earth for land where you won&#8217;t get shot or eaten for camping where you did.</p>

<p>Real (up-to-date) maps beat electronic ones by a large margin.  The main reason for this is that paper is so much higher resolution that you can easily see what&#8217;s going on without losing the detail that you want.  If I use my phone as a map I get 320&#215;320 pixels.  On a printed page that&#8217;s less than a square inch of information.</p>

<p>Money helps trips like this a lot.  If I had had the money that I planned on having (I did not have it entirely because of a mistake on my part) we would have gone to restaurants a lot more and eaten sandwiches a lot less.</p>

<p>Using Synthetic oil, high quality gas (Chevron, BP, Mobil, and ConocoPhilips,) and driving a constant 55 (which makes the biggest difference) are the best way to &#8220;go green&#8221; (aka save money) without forking over a bundle of cash on a new car (which is a little backwards.)  I got about %18 more out of my gas by using those tricks.  If you are a person who wants the world to go green, but you don&#8217;t do all of those things, you are a hypocrite.</p>

<p>A good power inverter is a lifesaver.  I never had to worry about my cell phone dying in the middle of the desert or anything like that because I could charge up in the car.  Also there were a couple times I burned CD&#8217;s in the car.  That was nice too.  So having all your music at your fingertips with a huge hard drive is nice too.</p>

<p>Bookstores are great places to loiter.  They are almost everywhere and they often contain or are near to a good cafe.  Sometimes they have nice chairs you can sink into and just read in the AC for hours.  That&#8217;s really great when you didn&#8217;t plan enough things to do and you don&#8217;t have a hotel.  On the other hand, if you are like me you may end up buying more books than you originally planned on.</p>

<p>Don&#8217;t expect cell phone reception everywhere.  I was generally surprised on how good it actually was though.  I don&#8217;t think we ever stayed somewhere where I had no reception at all.  But when I was actually on the go I lost a lot of calls.  Wyoming, am I right?</p>

<p>It&#8217;s great to visit friends on a vacation.  They know where the cool spots are and sometimes they will even feed you.  Isolation gets boring (or worse) pretty quick so seeing friends can be really nice.  On the other hand, it helps not to stay more than a week.  After that things might start to degrade.</p>

<p>Another thing that I learned on my trip, and this happened because I saw same friends from ancient times, is that the past has nothing left to offer.  You may need to deal with issues from your past, but that doesn&#8217;t mean that you will profit from this deal.  You will probably break even or worse.</p>

<p>Anyway, take what you want from this &#8220;wisdom.&#8221;  I cannot ensure truth or beauty.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/54/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/54</feedburner:origLink></item>
		<item>
		<title>On Beam Travel</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/342784722/50</link>
		<comments>http://blog.afoolishmanifesto.com/archives/50#comments</comments>
		<pubDate>Tue, 22 Jul 2008 18:21:19 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/50</guid>
		<description><![CDATA[This is a treatise on why beam travel should be illegal.  As it stands our current government does nothing against beam travel.  In fact, it is not even mentioned in the law books.  I do not think that beam travel should require a license or anything like that.  I think that [...]]]></description>
			<content:encoded><![CDATA[<p>This is a treatise on why beam travel should be illegal.  As it stands our current government does nothing against beam travel.  In fact, it is not even mentioned in the law books.  I do not think that beam travel should require a license or anything like that.  I think that beam travel should just be entirely illegal for all time.</p>

<p>Beam travel works like this: your body is analyzed by a LASER to the atomic level.  How does this work out without breaking Heisenburg&#8217;s tyrannical law?  Assumptions.  We know certain things about humans and that allows us to generalize so we don&#8217;t need to go all the way to the electrons.  Nonetheless damage is done in this process.  The fact that damage is done does not matter though because immediately after the scanning is complete the body is obliterated and stored as raw materials for when another person beams into the station.  The data that describes the person&#8217;s body is sent via light waves (more LASER&#8217;s) and then the person is reconstructed with other raw materials.</p>

<p>I trust you see what is wrong here.  In destroying the person in the first place we kill them.  We do not even know if when the person is reconstructed they are the same person.  They seem the same, but how do we know they aren&#8217;t fakes?  Their spirits could be mere shadows built of psychic dust and residue left over from when the person was originally destroyed.  I demand a moratorium on beam travel.  I hope that you all agree with me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/50/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/50</feedburner:origLink></item>
		<item>
		<title>Ruby 1.9 is out!</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/206639007/49</link>
		<comments>http://blog.afoolishmanifesto.com/archives/49#comments</comments>
		<pubDate>Wed, 26 Dec 2007 18:54:54 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/49</guid>
		<description><![CDATA[Exciting!  It was apparently put up yesterday, on Christmas.  What a cool gift right?  I looked through the changed maintained my Mauricio and here are /my/ favorites.

New literal hash syntax [Ruby2]

&#123;a: &#34;foo&#34;&#125;&#160; &#160; # =&#62; {:a=&#62;&#34;foo&#34;}

.() and calling Procs without #call/#[] [EXPERIMENTAL]

You can now do:

a = lambda{&#124;*b&#124; b} a.(1,2) # => [1, [...]]]></description>
			<content:encoded><![CDATA[<p>Exciting!  It was apparently put up yesterday, on Christmas.  What a cool gift right?  I looked through the <a href="http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9">changed maintained my Mauricio</a> and here are /my/ favorites.</p>

<p><em>New literal hash syntax [Ruby2]</em></p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#123;</span>a: <span class="st0">&quot;foo&quot;</span><span class="br0">&#125;</span>&nbsp; &nbsp; <span class="co1"># =&gt; {:a=&gt;&quot;foo&quot;}</span></div></div>

<p><em>.() and calling Procs without #call/#[] [EXPERIMENTAL]</em></p>

<p>You can now do:</p>

<div class="codecolorer-container text" style="height:20px;">a = lambda{|*b| b} a.(1,2) # => [1, 2]</div>

<p><em>Multiple splats allowed</em></p>

<p>1.9 allows multiple splat operators when calling a method:</p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">def</span> foo<span class="br0">&#40;</span>*a<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp;a<br />
&nbsp; &nbsp;<span class="kw1">end</span><br />
<br />
&nbsp; &nbsp;foo<span class="br0">&#40;</span><span class="nu0">1</span>, *<span class="br0">&#91;</span><span class="nu0">2</span>,<span class="nu0">3</span><span class="br0">&#93;</span>, <span class="nu0">4</span>, *<span class="br0">&#91;</span><span class="nu0">5</span>,<span class="nu0">6</span><span class="br0">&#93;</span><span class="br0">&#41;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [1, 2, 3, 4, 5, 6]</span></div></div>

<p><em>Mandatory arguments after optional arguments allowed</em></p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">def</span> m<span class="br0">&#40;</span>a, b=<span class="kw2">nil</span>, *c, d<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span>a,b,c,d<span class="br0">&#93;</span><br />
&nbsp; &nbsp;<span class="kw1">end</span><br />
&nbsp; &nbsp;m<span class="br0">&#40;</span><span class="nu0">1</span>,<span class="nu0">2</span><span class="br0">&#41;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1"># =&gt; [1, nil, [], 2]</span></div></div>

<p><em>Object#tap</em></p>

<p>Passes the object to the block and returns it (meant to be used for call chaining).</p>

<div class="codecolorer-container text" style="height:20px;">"F".tap{|x| x.upcase!}[0] # => "F" # Note that "F".upcase![0] would fail since upcase! would return nil in this # case.</div>

<p><em>Module#attr is an alias of attr_reader</em></p>

<p>Use</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">attr <span class="re3">:foo</span>=</div></div>

<p>to create a read/write accessor. (RCR#331)</p>

<p><em>Enumerable#cycle</em></p>

<p>Calls the given block for each element of the enumerable in a never-ending cycle:</p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;">a = <span class="br0">&#91;</span><span class="st0">&quot;a&quot;</span>, <span class="st0">&quot;b&quot;</span>, <span class="st0">&quot;c&quot;</span><span class="br0">&#93;</span><br />
a.<span class="me1">cycle</span> <span class="br0">&#123;</span>|x| <span class="kw3">puts</span> x <span class="br0">&#125;</span>&nbsp; <span class="co1"># print, a, b, c, a, b, c,.. forever.</span></div></div>

<p><em>Enumerable#group_by</em></p>

<p>Groups the values in the enumerable according to the value returned by the block:</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#40;</span><span class="nu0">1</span>..<span class="nu0">10</span><span class="br0">&#41;</span>.<span class="me1">group_by</span><span class="br0">&#123;</span>|x| x % <span class="nu0">3</span><span class="br0">&#125;</span> <span class="co1"># =&gt; {0=&gt;[3, 6, 9], 1=&gt;[1, 4, 7, 10], 2=&gt;[2, 5, 8]}</span></div></div>

<p><em>Enumerable#drop</em></p>

<p>Without a block, returns an array with all but the first n elements from the enumeration. Otherwise drops elements while the block returns true (and returns all the elements after it returns a false value):</p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;">a = <span class="br0">&#91;</span><span class="nu0">1</span>, <span class="nu0">2</span>, <span class="nu0">3</span>, <span class="nu0">4</span>, <span class="nu0">5</span><span class="br0">&#93;</span> a.<span class="me1">drop</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span> <span class="co1"># =&gt; [4, 5] </span><br />
a.<span class="me1">drop</span> <span class="br0">&#123;</span>|i| i &lt; <span class="nu0">3</span> <span class="br0">&#125;</span> <span class="co1"># =&gt; [3, 4, 5]</span></div></div>

<p><em>Enumerable#inject (#reduce) without a block</em></p>

<p>If no block is given, the first argument to #inject is the name of a two-argument method that will be called; the optional second argument is the initial value:</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#91;</span>RUBY_VERSION, RUBY_RELEASE_DATE<span class="br0">&#93;</span> <span class="co1"># =&gt; [&quot;1.9.0&quot;, &quot;2007-08-03&quot;] (1..10).reduce(:+) # =&gt; 55</span></div></div>

<p><em>Enumerable#count</em></p>

<p>It could be defined in Ruby as</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">def</span> count<span class="br0">&#40;</span>*a<span class="br0">&#41;</span> inject<span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span> <span class="kw1">do</span> |c, e| <span class="kw1">if</span> a.<span class="me1">size</span> == <span class="nu0">1</span> <span class="co1"># suspect, but this is how it works (a[0] == e) ? c + 1 : c else yield(e) ? c + 1 : c end end end</span></div></div>

<p>Therefore</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#91;</span><span class="st0">&quot;bar&quot;</span>, <span class="nu0">1</span>, <span class="st0">&quot;foo&quot;</span>, <span class="nu0">2</span><span class="br0">&#93;</span>.<span class="me1">count</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span> <span class="co1"># =&gt; 1 [&quot;bar&quot;, 1, &quot;foo&quot;, 2].count{|x| x.to_i != 0} # =&gt; 2</span></div></div>

<p><em>Array#nitems</em></p>

<p>It is equivalent to selecting the elements that satisfy a condition and obtaining the size of the resulting array:</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">%w<span class="br0">&#91;</span><span class="nu0">1</span> <span class="nu0">2</span> <span class="nu0">3</span> <span class="nu0">4</span> <span class="nu0">5</span> <span class="nu0">6</span><span class="br0">&#93;</span>.<span class="me1">nitems</span><span class="br0">&#123;</span>|x| x.<span class="me1">to_i</span> &gt; <span class="nu0">3</span><span class="br0">&#125;</span>&nbsp; &nbsp; <span class="co1"># =&gt; 3</span></div></div>

<p><em>Block argument to Array#index, Array#rindex [Ruby2]</em></p>

<p>They can now take a block to make them work like #select.</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#91;</span><span class="st0">'a'</span>,<span class="st0">'b'</span>,<span class="st0">'c'</span><span class="br0">&#93;</span>.<span class="me1">index</span><span class="br0">&#123;</span>|e| e == <span class="st0">'b'</span><span class="br0">&#125;</span> <span class="co1"># =&gt; 1 ['a','b','c'].index{|e| e == 'c'} # =&gt; 2 ['a','a','a'].rindex{|e| e == 'a'} # =&gt; 2 ['a','a','a'].index{|e| e == 'b'} # =&gt; nil</span></div></div>

<p><em>Array#combination</em></p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">ary.<span class="me1">combination</span><span class="br0">&#40;</span>n<span class="br0">&#41;</span><span class="br0">&#123;</span>|c| ...<span class="br0">&#125;</span></div></div>

<p>yields all the combinations of length n of the elements in the array to the given block. If no block is passed, it returns an enumerator instead. The order of the combinations is unspecified.</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">a = <span class="br0">&#91;</span><span class="nu0">1</span>, <span class="nu0">2</span>, <span class="nu0">3</span>, <span class="nu0">4</span><span class="br0">&#93;</span> a.<span class="me1">combination</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span>.<span class="me1">to_a</span> <span class="co1">#=&gt; [[1],[2],[3],[4]] a.combination(2).to_a #=&gt; [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]] a.combination(3).to_a #=&gt; [[1,2,3],[1,2,4],[1,3,4],[2,3,4]] a.combination(4).to_a #=&gt; [[1,2,3,4]] a.combination(0).to_a #=&gt; [[]]: one combination of length 0 a.combination(5).to_a #=&gt; [] : no combinations of length 5</span></div></div>

<p><em>Array#permutation</em></p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;">Operates like <span class="co1">#combination, but with permutations of length n.</span><br />
&lt;code lang=<span class="st0">&quot;ruby&quot;</span>&gt;a = <span class="br0">&#91;</span><span class="nu0">1</span>, <span class="nu0">2</span>, <span class="nu0">3</span><span class="br0">&#93;</span> a.<span class="me1">permutation</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span>.<span class="me1">to_a</span> <span class="co1">#=&gt; [[1],[2],[3]] a.permutation(2).to_a #=&gt; [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]] a.permutation(3).to_a #=&gt; [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] a.permutation(0).to_a #=&gt; [[]]: one permutation of length 0 a.permutation(4).to_a #=&gt; [] : no permutations of length 4</span></div></div>

<p><em>Array#pop, Array#shift</em></p>

<p>They can take an argument to specify how many objects to return:</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">%w<span class="br0">&#91;</span>a b c d<span class="br0">&#93;</span>.<span class="me1">pop</span><span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span> <span class="co1"># =&gt; [&quot;c&quot;, &quot;d&quot;]</span></div></div>

<p><em>Hash preserves order!</em></p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;">RUBY_VERSION&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; &quot;1.9.0&quot;</span><br />
h=<span class="br0">&#123;</span>:a=&gt;<span class="nu0">1</span>, <span class="re3">:b</span>=&gt;<span class="nu0">2</span>, <span class="re3">:c</span>=&gt;<span class="nu0">3</span>, <span class="re3">:d</span>=&gt;<span class="nu0">4</span><span class="br0">&#125;</span>&nbsp; <span class="co1"># =&gt; {:a=&gt;1, :b=&gt;2, :c=&gt;3, :d=&gt;4}</span><br />
h<span class="br0">&#91;</span><span class="re3">:e</span><span class="br0">&#93;</span>=<span class="nu0">5</span><br />
h&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1"># =&gt; {:a=&gt;1, :b=&gt;2, :c=&gt;3, :d=&gt;4, :e=&gt;5}</span><br />
<br />
h.<span class="me1">keys</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [:a, :b, :c, :d, :e]</span><br />
h.<span class="me1">values</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [1, 2, 3, 4, 5]</span><br />
h.<span class="me1">to_a</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [[:a, 1], [:b, 2], [:c, 3], [:d, 4], [:e, 5]]</span></div></div>

<p>vs.</p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;">RUBY_VERSION&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; &quot;1.8.6&quot;</span><br />
h=<span class="br0">&#123;</span>:a=&gt;<span class="nu0">1</span>, <span class="re3">:b</span>=&gt;<span class="nu0">2</span>, <span class="re3">:c</span>=&gt;<span class="nu0">3</span>, <span class="re3">:d</span>=&gt;<span class="nu0">4</span><span class="br0">&#125;</span>&nbsp; <span class="co1"># =&gt; {:a=&gt;1, :b=&gt;2, :c=&gt;3, :d=&gt;4}</span><br />
h<span class="br0">&#91;</span><span class="re3">:e</span><span class="br0">&#93;</span>=<span class="nu0">5</span><br />
h&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1"># =&gt; {:e=&gt;5, :a=&gt;1, :b=&gt;2, :c=&gt;3, :d=&gt;4}</span><br />
h.<span class="me1">keys</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [:e, :a, :b, :c, :d]</span><br />
h.<span class="me1">values</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [5, 1, 2, 3, 4]</span><br />
h.<span class="me1">to_a</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; [[:e, 5], [:a, 1], [:b, 2], [:c, 3], [:d, 4]]</span></div></div>

<p><em>Numeric#upto, #downto, #times, #step</em></p>

<p>These methods return an enumerator if no block is given:</p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">a = <span class="nu0">10</span>.<span class="me1">times</span> a.<span class="me1">inject</span><span class="br0">&#123;</span>|s,x| s+x <span class="br0">&#125;</span> <span class="co1"># =&gt; 45 a = [] b = 10.downto(5) b.each{|x| a &lt;&lt; x} a # =&gt; [10, 9, 8, 7, 6, 5]</span></div></div>

<p><em>Range#cover?</em></p>

<div class="codecolorer-container ruby" style="height:20px;"><div class="codecolorer" style="font-family: monospace;">range.<span class="me1">cover</span>?<span class="br0">&#40;</span>value<span class="br0">&#41;</span></div></div>

<p>compares value to the begin and end values of the range, returning true if it is comprised between them, honoring #exclude_end?.</p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#40;</span><span class="st0">&quot;a&quot;</span>..<span class="st0">&quot;z&quot;</span><span class="br0">&#41;</span>.<span class="me1">cover</span>?<span class="br0">&#40;</span><span class="st0">&quot;c&quot;</span><span class="br0">&#41;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; true</span><br />
<span class="br0">&#40;</span><span class="st0">&quot;a&quot;</span>..<span class="st0">&quot;z&quot;</span><span class="br0">&#41;</span>.<span class="me1">cover</span>?<span class="br0">&#40;</span><span class="st0">&quot;5&quot;</span><span class="br0">&#41;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; false</span></div></div>

<p><em>Limit input in IO#gets, IO#readline, IO#readlines, IO#each_line, IO#lines, IO.foreach, IO.readlines, StringIO#gets, StringIO#readline, StringIO#each, StringIO#readlines</em></p>

<p>These methods accept an optional integer argument to specify the maximum amount of data to be read. The limit is specified either as the (optional) second argument, or by passing a single integer argument (i.e. the first argument is interpreted as the limit if it&#8217;s an integer, as a line separator otherwise).</p>

<p><em>IO#ungetc, StringIO#ungetc</em></p>

<p>Allows to push back an arbitrarily large character.</p>

<p><em>Seven predicate methods where added for the weekdays:</em></p>

<div class="codecolorer-container ruby"><div class="codecolorer" style="font-family: monospace;"><span class="kw4">Time</span>.<span class="me1">now</span>&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; Thu Nov 03 18:58:25 CET 2005</span><br />
<span class="kw4">Time</span>.<span class="me1">now</span>.<span class="me1">sunday</span>?&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1"># =&gt; false</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/49/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/49</feedburner:origLink></item>
		<item>
		<title>Creation of Small, Simple Objects</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/164888019/48</link>
		<comments>http://blog.afoolishmanifesto.com/archives/48#comments</comments>
		<pubDate>Wed, 03 Oct 2007 21:17:58 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/48</guid>
		<description><![CDATA[

Today I tried to make a diamond.  I tried to make it both out of nothing and with a piece of wadded up paper.  I couldn&#8217;t do it, sadly.  So these things go right?  The tests are going to get harder soon; I&#8217;ll need to try to control massive amounts of [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/10/creationofsmallobjects2.png' alt='Creation of Small, Simple Objects' /></p>

<p>Today I tried to make a diamond.  I tried to make it both out of nothing and with a piece of wadded up paper.  I couldn&#8217;t do it, sadly.  So these things go right?  The tests are going to get harder soon; I&#8217;ll need to try to control massive amounts of people somehow and whatnot.  Wish me luck on such endeavours.</p>

<p>In other news, the dentist said to brush my teeth and avoid drill happy dentists.  Awesome?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/48/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/48</feedburner:origLink></item>
		<item>
		<title>Transforming into a Cat</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/164324399/46</link>
		<comments>http://blog.afoolishmanifesto.com/archives/46#comments</comments>
		<pubDate>Tue, 02 Oct 2007 19:03:48 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/46</guid>
		<description><![CDATA[

Today I tried to morph into a cat.  No luck!  I think I need one of those cubes that they had in the Animorphs&#8230;  If that were the case I would also need a cat.  And a friend named Ax maybe?  Who knows?!  Not me!

Now I have to leave [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/10/transformtocat2.png' alt='Transform to Cat' /></p>

<p>Today I tried to morph into a cat.  No luck!  I think I need one of those cubes that they had in the Animorphs&#8230;  If that were the case I would also need a cat.  And a friend named Ax maybe?  Who knows?!  Not me!</p>

<p>Now I have to leave to go to the dentist.  What a bummer right?  I think it&#8217;s because of all the acid that I had when I was in Honduras.  See you space cowboy&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/46/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/46</feedburner:origLink></item>
		<item>
		<title>Controlling dor Creating Wind</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/163924138/44</link>
		<comments>http://blog.afoolishmanifesto.com/archives/44#comments</comments>
		<pubDate>Mon, 01 Oct 2007 22:38:01 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/44</guid>
		<description><![CDATA[

Today I tried to create or control wind.  No luck at all actually.  I attempted say wind, making windy noises, and making various appropriate gestures.  Nice try I guess?

In other news, yesterday I learned that you really should cut away from yourself.  I chopped my finger pretty badly with my recently [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/10/wind2.png' alt='Controlling/Creating Wind' /></p>

<p>Today I tried to create or control wind.  No luck at all actually.  I attempted say wind, making windy noises, and making various appropriate gestures.  Nice try I guess?</p>

<p>In other news, yesterday I learned that you really should cut away from yourself.  I chopped my finger pretty badly with my recently sharpened kershaw.  Also: I did a presentation on Go today and I think it went well.  Two people spoke to me after the presentation and one of them asked if we could play together some time.  Exciting!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/44/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/44</feedburner:origLink></item>
		<item>
		<title>Walking Through Walls</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/162661080/42</link>
		<comments>http://blog.afoolishmanifesto.com/archives/42#comments</comments>
		<pubDate>Fri, 28 Sep 2007 23:04:21 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/42</guid>
		<description><![CDATA[

I tried walking through walls and had no luck.  I tried both cinder-block and wood.  I also tried willing myself through, imagining walking through, &#8220;just doing it,&#8221; and probably others that I don&#8217;t remember.  J-Dot was there which is why this gets his seal of approval.

In other news, my laptop&#8217;s power plug [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/09/walkingthroughwalls.png' alt='Walking Through Walls' /></p>

<p>I tried walking through walls and had no luck.  I tried both cinder-block and wood.  I also tried willing myself through, imagining walking through, &#8220;just doing it,&#8221; and probably others that I don&#8217;t remember.  J-Dot was there which is why this gets his seal of approval.</p>

<p>In other news, my laptop&#8217;s power plug slot thing got broken, so my whole laptop was broken.  GOAT and I looked up the part online, bought it (thanks laptopjacks,) and soldered it in.  This is of course after taking the entire thing apart (it was deeply hidden inside.)  Interestingly, I had saved every little bit of plastic and whatnot while taking it apart and one of those pieces of plastic turned out to be a transistor that broke off when the plug thing broke.  We soldered that in as well.  After we put it back together it worked!  Wow!  Pretty cool.  Anyway, I am probably going to look into getting a new one soonish anyway, so if anyone has any ideas, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/42/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/42</feedburner:origLink></item>
		<item>
		<title>Seeing through Walls</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/148657032/40</link>
		<comments>http://blog.afoolishmanifesto.com/archives/40#comments</comments>
		<pubDate>Mon, 27 Aug 2007 05:34:40 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/40</guid>
		<description><![CDATA[
Today I tried to see through walls.  J-Box stood on the other side of an eight-inch cinder block wall and made hand signals and I tried to see what the signals were.  I tried looking through the wall, touching the wall with my hand and forehead, and guessing.  I was wrong every [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/08/clairvoyance2.png' alt='Seeing Through Walls' />
Today I tried to see through walls.  J-Box stood on the other side of an eight-inch cinder block wall and made hand signals and I tried to see what the signals were.  I tried looking through the wall, touching the wall with my hand and forehead, and guessing.  I was wrong every single time.  Guess not this time!</p>

<p>In other news, I am having this tea my mom sent me called Crepe Faire and it is THE BEST HERBAL TEA I have ever had.  Also, if you want to laugh joyously enjoy Flight of the Conchords on YouTube.  Fun will abound!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/40/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/40</feedburner:origLink></item>
		<item>
		<title>Controlling the Weather</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/147574251/38</link>
		<comments>http://blog.afoolishmanifesto.com/archives/38#comments</comments>
		<pubDate>Fri, 24 Aug 2007 04:26:34 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/38</guid>
		<description><![CDATA[
Today I tried to control the weather.  I tried to create lightning, clouds, and a tornado.  I tried the regular tricks of imagination, will, and word.  Maybe there is a power word that I need to learn that will let me do these kind of things.  Or maybe it&#8217;s more like [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/08/controllingweather2.png' alt='Controlling the Weather' />
Today I tried to control the weather.  I tried to create lightning, clouds, and a tornado.  I tried the regular tricks of imagination, will, and word.  Maybe there is a <strong>power word</strong> that I need to learn that will let me do these kind of things.  Or maybe it&#8217;s more like a muscle and I just need to learn how to use the muscle.  If only I had directions!</p>

<p>Today was long.  Sleep will be good.  Tomorrow we upgrade the loft as well as awesomate.  I&#8217;m stoked.  I might be able to get a couch too, but more realistically that will be Saturday.  The land-locked machine is about a half done with it&#8217;s six hundred updates.  WONDERFUL.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/38/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/38</feedburner:origLink></item>
		<item>
		<title>Reading Minds</title>
		<link>http://feeds.feedburner.com/~r/AFoolishManifesto/~3/147194919/36</link>
		<comments>http://blog.afoolishmanifesto.com/archives/36#comments</comments>
		<pubDate>Thu, 23 Aug 2007 05:35:26 +0000</pubDate>
		<dc:creator>fREW Schmidt</dc:creator>
		
		<category><![CDATA[Super Powers]]></category>

		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/archives/36</guid>
		<description><![CDATA[
Today I tried to read minds, numerous times.  I had no success at all.  I tried just casually trying to read both Edgar and J-Curly&#8217;s minds.  I also tried physical touch, touching foreheads, imagining reading a book with their thought&#8217;s on it, and numerous other things.  No luck at all my [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://blog.afoolishmanifesto.com/wp-content/uploads/2007/08/readingminds2.png' alt='Reading Minds' />
Today I tried to read minds, <em>numerous</em> times.  I had no success at all.  I tried just casually <em>trying</em> to read both Edgar and J-Curly&#8217;s minds.  I also tried physical touch, touching foreheads, imagining reading a book with their thought&#8217;s on it, and numerous other things.  No luck at all my friends!</p>

<p>Tomorrow the kiddies move in.  Hopefully they are a quantifiable amount of awesome, right?  What is the unit for quantifiable awesome you ask?  It&#8217;s a gnarl.  How does one define a gnarl?  Maybe I&#8217;ll do that rigorously tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.afoolishmanifesto.com/archives/36/feed</wfw:commentRss>
		<feedburner:origLink>http://blog.afoolishmanifesto.com/archives/36</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 1.329 seconds -->
