<?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>thatmattbone.com &#187; random</title>
	<atom:link href="http://thatmattbone.com/tag/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://thatmattbone.com</link>
	<description></description>
	<lastBuildDate>Sat, 07 Jan 2012 01:20:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>exec() yourself silly</title>
		<link>http://thatmattbone.com/2011/04/exec-yourself-silly/</link>
		<comments>http://thatmattbone.com/2011/04/exec-yourself-silly/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 02:44:35 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=325</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2011/04/exec-yourself-silly/" title="exec() yourself silly"></a>Now we all know exec() is cruise-control for awesome. Despising readability, sanity, and performance, I sprinkle my code liberally with this MSG and joyfully await the ensuing migraine. But sometimes I ask myself, is it enough? Correct Answers Considered Harmful &#8230;<p class="read-more"><a href="http://thatmattbone.com/2011/04/exec-yourself-silly/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2011/04/exec-yourself-silly/" title="exec() yourself silly"></a><p>Now we all know <code>exec()</code> is cruise-control for awesome. Despising readability, sanity, and performance, I sprinkle my code liberally with this MSG and joyfully await the ensuing migraine. But sometimes I ask myself, is it enough?<br />
<span id="more-325"></span></p>
<h3>Correct Answers Considered Harmful</h3>
<p>A wonderfully dynamic language like python lets us take <code>exec()</code> where no string literal has gone before by allowing us to pass in global and local environments that are used for variable lookup. The high-priests of python would have us use this functionality to constrain the side-effects of gratuitious <code>exec()ing</code>, but we can do so much better. A simple subclass of <code>dict()</code> that overrides <code>__getitem__</code> and only returns the item we&#8217;re looking for 50% of the time gives us some ammo:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: #008000;">dict</span><span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;">#this is idealized. see complete source at end of post.</span>
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__getitem__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, item<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">random</span>.<span style="color: black;">choice</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #008000;">True</span>, <span style="color: #008000;">False</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>:
            <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #008000;">dict</span>.<span style="color: #0000cd;">__getitem__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, item<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">else</span>:
            <span style="color: #ff7700;font-weight:bold;">raise</span> <span style="color: #008000;">KeyError</span><span style="color: black;">&#40;</span>item<span style="color: black;">&#41;</span></pre></div></div>

<p>With this dictionary implementation, we can move on to more interesting <code>exec()s</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">exec</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;&quot;&quot;a = 1; print a&quot;&quot;&quot;</span>,
     AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>, <span style="color: #808080; font-style: italic;">#globals</span>
     AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> <span style="color: #808080; font-style: italic;">#locals</span></pre></div></div>

<p>Because python is using instances of <code>AreYouFeelingLuckyDict</code> for global and local variable lookups inside our string of code, half the time the code will work properly. The other half of the time a <code>NameError</code> will be raised. Introducing another variable brings the odds of success to 1 in 4:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">exec</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;&quot;&quot;a = 1; b=2; print(a); print(b)&quot;&quot;&quot;</span>,
     AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>,
     AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Of course we can program a bit more defensively and ensure that we&#8217;ll get the output we&#8217;re looking for. If we encounter a <code>NameError</code> along the way, we simply try, try, and try again:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">    <span style="color: #ff7700;font-weight:bold;">exec</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;&quot;&quot;
a=1
b=2
while True:
  try:
    print(a)
    print(b)
    break
  except NameError:
    pass
&quot;&quot;&quot;</span>, AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>, AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Keep in mind that &#8220;1&#8243; will most likely be printed out several times as its lookup occurs first (and most persistently) and the exception handling is coarse-grained. The obvious solution is to pipe the output through <code>tail -n 2</code>.</p>
<h3>But Wait, There&#8217;s More</h3>
<p>Becaue of a debilitating gambling problem, <a href="http://www.hacker-dictionary.com/terms/bogo_sort">bogosort</a> is my favorite sorting algorithm. Bogosort is the equivalent of throwing an array of items onto the floor and seeing if they&#8217;ve come up in the proper order. Given a list of N unique items, the odds of getting the answer on the first go round of bogosort are 1 in N!. Running bogosort in production on your company&#8217;s machines is like playing roullette (with an enormous wheel and your career). Feel that rush.</p>
<p>But bogosort gets even more awesomer with our <code>exec()</code> trick:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">    myglobals = AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: #dc143c;">random</span>=<span style="color: #dc143c;">random</span><span style="color: black;">&#41;</span>
    mylocals = AreYouFeelingLuckyDict<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">exec</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;&quot;&quot;
def sorted(is_sorted):
    prev = is_sorted[0]
    for x in is_sorted:
        if prev &amp;gt; x:
            return False
        prev = x
    return True
&nbsp;
mylist = [4, 1, 9, 5]
runs = 1
while True:
    try:
        is_sorted = []
        while True:
            mutable_mylist = list(mylist)
&nbsp;
            for i in range(len(mutable_mylist)):
                index = random.randint(0, len(mutable_mylist)-1)
                is_sorted.append(mutable_mylist.pop(index))
&nbsp;
            if sorted(is_sorted):
                break
            else:
                runs+=1
                is_sorted=[]
        break
    except NameError:
        runs += 1
        pass
&quot;&quot;&quot;</span>, myglobals, mylocals<span style="color: black;">&#41;</span></pre></div></div>

<p>Because I&#8217;m a generous man, I&#8217;ve modified the <code>AreYouFeelingLuckyDict</code> to always return a result when the item being looked up is &#8220;runs&#8221;, &#8220;NameError&#8221;, &#8220;True&#8221;, &#8220;random&#8221;, &#8220;len&#8221;, &#8220;list&#8221;, &#8220;range&#8221;, or &#8220;sorted.&#8221; It&#8217;s also worth noting that as soon as we drop into <code>is_sorted()</code> we&#8217;re back to a plain-jane, well-behaved <code>locals()</code> with boringly reliable dict-like properties.</p>
<p>With this bogosort modification (err, improvement) and considering a list of length 4, I figure the odds of getting an answer the first time out is 1 in 3,145,824. Now we&#8217;re talking! Of course, the code above keeps going until it sorts our list. Running it a few times, I&#8217;ve seen the answer produced in as little as 700,000 tries. A paragon of efficiency.</p>
<h3>Wink</h3>
<p>I hope you&#8217;ve enjoyed this. I&#8217;ve been playing around with this post for a while and have had a great time. The source to this party can be found in this gist:<br />
<a href="https://gist.github.com/945666">https://gist.github.com/945666</a></p>
<p>Also, please check out <a href="http://lucumr.pocoo.org/2011/2/1/exec-in-python/">Be careful with exec and eval in Python</a> which inspired this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2011/04/exec-yourself-silly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011: Best Year Yet</title>
		<link>http://thatmattbone.com/2011/01/2011-best-year-yet/</link>
		<comments>http://thatmattbone.com/2011/01/2011-best-year-yet/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 00:46:48 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=296</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2011/01/2011-best-year-yet/" title="2011: Best Year Yet"></a>In the spirit of ChiPy meetings, I&#8217;m declaring 2011 to be the best year yet. I can only assume the best-ness of each passing year will increase monotonically until the year of my death, at which point, all bets are &#8230;<p class="read-more"><a href="http://thatmattbone.com/2011/01/2011-best-year-yet/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2011/01/2011-best-year-yet/" title="2011: Best Year Yet"></a><p><a rel="attachment wp-att-300" href="http://thatmattbone.com/2011/01/2011-best-year-yet/img_1217/"><img class="alignnone size-medium wp-image-300" title="img_1217" src="http://thatmattbone.com/wp-content/uploads/2011/01/img_1217-225x300.jpg" alt="Useless tram for moving drunks between casinos." width="225" height="300" /></a></p>
<p>In the spirit of <a href="http://chipy.org/">ChiPy</a> meetings, I&#8217;m declaring 2011 to be the best year yet.  I can only assume the best-ness of each passing year will increase monotonically until the year of my death, at which point, all bets are off. <span id="more-296"></span>Here are some reasons why 2010 was pretty great, too:</p>
<ul>
<li>I rode my bike to Saint Louis (without being eaten by possums).</li>
<li>I went to PyCon.</li>
<li>My friend Brian and I went to Las Vegas and did not lose large sums of money.</li>
<li>Erin and Dan took my old apartment and are tending to the compost pile with great fervor.</li>
<li>Camping with friends occurred more frequently.</li>
</ul>
<p>And here are some reasons why 2011 will also be great:</p>
<ul>
<li>I have no plans to land in the ER, break a bone, receive an IV, or be eaten by possums.</li>
<li>I will go to PyCon.</li>
<li>Camping with friends will occur more frequently.</li>
<li>I will read more books.</li>
<li>Rob Pike will release Plan10 for download in the iTunes App Store.</li>
<li>Bjarne Stroustrup will announce that this joke has gone on long enough.</li>
<li>Cable news channels will not mention the woes of a single teenage starlet, instead focusing on well-researched and thoughtful journalism that is neither sensationalist nor pandering to one side of the aisle or another.</li>
<li>Robots will stop attempting to submit spam comments to my blog.</li>
<li>We will meet back here and discuss all this next year.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2011/01/2011-best-year-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>burn the rope</title>
		<link>http://thatmattbone.com/2009/01/burn-the-rope/</link>
		<comments>http://thatmattbone.com/2009/01/burn-the-rope/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 03:20:35 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=129</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2009/01/burn-the-rope/" title="burn the rope"></a>The first game I&#8217;ve ever beaten.  Ever. http://www.mazapan.se/games/BurnTheRope.php (you have to burn the rope)]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2009/01/burn-the-rope/" title="burn the rope"></a><p>The first game I&#8217;ve ever beaten.  Ever.</p>
<p><a href="http://www.mazapan.se/games/BurnTheRope.php">http://www.mazapan.se/games/BurnTheRope.php</a></p>
<p>(you have to burn the rope)</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2009/01/burn-the-rope/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>attack!</title>
		<link>http://thatmattbone.com/2008/10/attack/</link>
		<comments>http://thatmattbone.com/2008/10/attack/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 13:17:04 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=106</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2008/10/attack/" title="attack!"></a>About a year ago I went to see the fine folks at the Loyola Health Center complaining of night time wheezing and shortness of breath when riding bicycles in sub 20 degree temperatures.  After the standard pregnancy test, I summited &#8230;<p class="read-more"><a href="http://thatmattbone.com/2008/10/attack/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2008/10/attack/" title="attack!"></a><p><a href="http://thatmattbone.com/wp-content/uploads/2008/10/img_0069.jpg"><img class="alignnone size-medium wp-image-107" title="img_0069" src="http://thatmattbone.com/wp-content/uploads/2008/10/img_0069-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>About a year ago I went to see the fine folks at the Loyola Health Center complaining of night time wheezing and shortness of breath when riding bicycles in sub 20 degree temperatures.  After the standard pregnancy test, I summited Mt. Nerdom and was prescribed an albuterol inhaler.  The &#8216;health care professional&#8217; warned: &#8220;this does not necessarily mean you have asthma.&#8221;</p>
<p>In the interim I&#8217;ve used the inhaler an average of once a month.  However, all usage stopped during my time in Bloomington and quickly picked up after returning to Chicago.  Accompanying my most recent difficulty breathing is the standard allergy-based runny nose.  I now suspect Alice the Cat (see above) is the source of these problems.  In an attempt to alleviate my nasal symptoms I&#8217;ve tried the usual claritin but have also resorted to a netipot:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/j8sDIbRAXlg&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/j8sDIbRAXlg&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
<p>Do not be fooled by the pleasant music.  This is the nasal equivalent of water boarding.  And though the device does seem to work, the &#8220;see also: douche&#8221; in the <a href="http://en.wikipedia.org/wiki/Nasal_irrigation">wikipedia article on nasal irrigation</a> is quite revealing.</p>
<p>I fear I must soon return to the doctor to find a more comprehensive solution.  Sebastian will not allow me to turn Alice the Cat into Alice the Stirfry, and I am not excited about the prospect of washing her once a week to reduce dander output.  With any luck, some pharmaceutical miracle can restore the cat-man balance while producing interesting side effects (I&#8217;m rooting for mood-swings and irritability).</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2008/10/attack/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>haven&#8217;t been the to store in a while</title>
		<link>http://thatmattbone.com/2008/10/havent-been-the-to-store-in-a-while/</link>
		<comments>http://thatmattbone.com/2008/10/havent-been-the-to-store-in-a-while/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 04:35:53 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=84</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2008/10/havent-been-the-to-store-in-a-while/" title="haven&#039;t been the to store in a while"></a>Sebastian&#8217;s midnight snack suggestion: &#8220;tomato, potato, rice omlet&#8221;]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2008/10/havent-been-the-to-store-in-a-while/" title="haven&#039;t been the to store in a while"></a><p><a href="http://thatmattbone.com/wp-content/uploads/2008/10/img_0064.jpg"><img class="size-medium wp-image-89 alignnone" title="img_0064" src="http://thatmattbone.com/wp-content/uploads/2008/10/img_0064-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Sebastian&#8217;s midnight snack suggestion: &#8220;tomato, potato, rice omlet&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2008/10/havent-been-the-to-store-in-a-while/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>morning coffee</title>
		<link>http://thatmattbone.com/2008/09/morning-coffee/</link>
		<comments>http://thatmattbone.com/2008/09/morning-coffee/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 12:53:59 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=61</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2008/09/morning-coffee/" title="morning coffee"></a>I&#8217;m enjoying morning courtesy of my friend Keith Folsom (also notice the witty mug my mother gave me).  Keith roasted some beans in his popcorn-maker sized roaster and ground them up for me yesterday. The results are fantastic!  Watch out &#8230;<p class="read-more"><a href="http://thatmattbone.com/2008/09/morning-coffee/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2008/09/morning-coffee/" title="morning coffee"></a><p><a href="http://thatmattbone.com/wp-content/uploads/2008/09/img_0021-modified.jpg"><img class="size-medium wp-image-62 alignnone" title="img_0021-modified" src="http://thatmattbone.com/wp-content/uploads/2008/09/img_0021-modified-222x300.jpg" alt="" width="222" height="300" /></a></p>
<p>I&#8217;m enjoying morning courtesy of my friend <a href="http://journeyman.org/">Keith Folsom</a> (also notice the witty mug my mother gave me).  Keith roasted some beans in his popcorn-maker sized roaster and ground them up for me yesterday. The results are fantastic!  Watch out <a href="http://www.metropoliscoffee.com/">Metropolis</a>, the Folsom Coffee Company is coming!</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2008/09/morning-coffee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sept. 4th</title>
		<link>http://thatmattbone.com/2008/09/sept-4th/</link>
		<comments>http://thatmattbone.com/2008/09/sept-4th/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 07:11:00 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=50</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2008/09/sept-4th/" title="Sept. 4th"></a>September Fourth was the two month anniversary of my vegetarian experiment. I&#8217;m eating better, in better shape, and I&#8217;ve saved money by eating out less (not to mention the great new dishes I&#8217;ve learned to cook). All told, the vegetarian &#8230;<p class="read-more"><a href="http://thatmattbone.com/2008/09/sept-4th/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2008/09/sept-4th/" title="Sept. 4th"></a><p>September Fourth was the two month anniversary of my vegetarian experiment.  I&#8217;m eating better, in better shape, and I&#8217;ve saved money by eating out less (not to mention the great new dishes I&#8217;ve learned to cook).  All told, the vegetarian experiment has been a great time and very pro-veggie.  I&#8217;ve really no desire to eat meat, but I am a bit worried about Thanksgiving and Christmas.  I think I&#8217;ll stay vegetarian for the indefinite future.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2008/09/sept-4th/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>snow day</title>
		<link>http://thatmattbone.com/2007/04/snow-day/</link>
		<comments>http://thatmattbone.com/2007/04/snow-day/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 16:39:00 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[weather]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=13</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2007/04/snow-day/" title="snow day"></a>Today&#8217;s my birthday, and I think this is the first time it has ever snowed on my birthday (where I was, at least).]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2007/04/snow-day/" title="snow day"></a><p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_neCry2Kl16o/Rh0P3ao-0NI/AAAAAAAAARU/xQFDs7NPhtQ/s1600-h/snow.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp2.blogger.com/_neCry2Kl16o/Rh0P3ao-0NI/AAAAAAAAARU/xQFDs7NPhtQ/s320/snow.jpg" alt="" id="BLOGGER_PHOTO_ID_5052211801697997010" border="0" /></a><br />Today&#8217;s my birthday, and I think this is the first time it has ever snowed on my birthday (where I was, at least).</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2007/04/snow-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Gifts</title>
		<link>http://thatmattbone.com/2007/04/simple-gifts/</link>
		<comments>http://thatmattbone.com/2007/04/simple-gifts/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 00:50:00 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=12</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2007/04/simple-gifts/" title="Simple Gifts"></a>I finally download the &#8220;Simple Gifts&#8221; theme from Copland&#8217;s Appalachian Spring ballet today. Based on a shaker tune which was transformed into the &#8220;Lord of the Dance&#8221; hymn all us Catholic schoolchildren sang, it may be a bit on the &#8230;<p class="read-more"><a href="http://thatmattbone.com/2007/04/simple-gifts/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2007/04/simple-gifts/" title="Simple Gifts"></a><p>I finally download the &#8220;Simple Gifts&#8221; theme from Copland&#8217;s <span style="font-style: italic;">Appalachian Spring</span> ballet today.  Based on a shaker tune which was transformed into the &#8220;Lord of the Dance&#8221; hymn all us Catholic schoolchildren sang, it may be a bit on the hokey side. Nevertheless, it is one of my favorite pieces of music.</p>
<p>We hear the simple but compelling theme over and over: quiet woodwinds, beautiful long-bowing strings, the quick, stacatto brass section, and then that final quiet woodwind (flute?) bit.  The orchestra feels as if it&#8217;s winding down, yet we know something is coming; we can feel the tension.  And then, bam, the trumpet starts back up, coming in gently so as not to startle but with grandiose power not yet heard in the work. It feels like an eternity until that timpani hit one note later, but with that, the whole orchestra enters.  They play with such brilliance and majesty.  It&#8217;s as if we&#8217;ve been waiting for this for the entire piece, but they do not rush and instead each note comes through with feeling and restraint.</p>
<p>I would to love see Appalachian Spring performed someday.  Until then, we can all enjoy this <a href="http://www.ac-nancy-metz.fr/cinemav/pubusa/us.mpeg">1996 Oldsmobile Aurora commercial</a>; the cheese here is unsurpassed, and yet the whole thing (even without the towers) feels nostalgically pre-9/11.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2007/04/simple-gifts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the popcorn song</title>
		<link>http://thatmattbone.com/2007/03/the-popcorn-song/</link>
		<comments>http://thatmattbone.com/2007/03/the-popcorn-song/#comments</comments>
		<pubDate>Sun, 04 Mar 2007 01:25:00 +0000</pubDate>
		<dc:creator>Matt Bone</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://thatmattbone.com/?p=7</guid>
		<description><![CDATA[<a href="http://thatmattbone.com/2007/03/the-popcorn-song/" title="the popcorn song"></a>In kindergarten we&#8217;d sometimes have to stay inside for recess because of the weather. When this happened the teacher would occasionally play the &#8216;popcorn song&#8217; and make us dance. It was a great song. I heard it today on NPR, &#8230;<p class="read-more"><a href="http://thatmattbone.com/2007/03/the-popcorn-song/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://thatmattbone.com/2007/03/the-popcorn-song/" title="the popcorn song"></a><p>In kindergarten we&#8217;d sometimes have to stay inside for recess because of the weather.  When this happened the teacher would occasionally play the &#8216;popcorn song&#8217; and make us dance.  It was a great song.  I heard it today on NPR, and a quick googling brought up: <a href="http://www.popcorn-song.com/">http://www.popcorn-song.com/</a></p>
<p>Apparently you could just build a complete library of popcorn songs.  Brilliant.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatmattbone.com/2007/03/the-popcorn-song/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

