<?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>NOthingyoumissed &#187; Uncategorized</title>
	<atom:link href="http://georgemauer.net/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://georgemauer.net/blog</link>
	<description>George Mauer is on the net</description>
	<lastBuildDate>Sat, 15 May 2010 16:13:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Blowing Off Oil. *Non-programming*</title>
		<link>http://georgemauer.net/blog/blowing-off-oil-non-programming/</link>
		<comments>http://georgemauer.net/blog/blowing-off-oil-non-programming/#comments</comments>
		<pubDate>Sat, 15 May 2010 14:42:04 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[NOLA]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[non-programing]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/blowing-off-oil-non-programming/</guid>
		<description><![CDATA[ My apologies if this is not this blog&#8217;s standard fare but I need to vent my frustration.
Today it finally came out in the national news that the Macondo Oil Gusher is pouring an order of magnitude more oil per day than the previous estimate and two orders of magnitude more than BP&#8217;s initial statement. [...]]]></description>
			<content:encoded><![CDATA[<p> My apologies if this is not this blog&#8217;s standard fare but I need to vent my frustration.</p>
<p>Today it finally came out in the national news that the Macondo Oil Gusher is <a href="http://www.npr.org/templates/story/story.php?storyId=126809525">pouring an order of magnitude more oil per day</a> than the previous estimate and two orders of magnitude more than BP&#8217;s <a href="http://www.upstreamonline.com/live/article213497.ece">initial statement</a>.  The people who have been tracking this disaster obsessively since it first went public were not surprised.  </p>
<p>Why?  Because at every single level every single part of this disaster has <a href="http://www.nola.com/news/gulf-oil-spill/index.ssf/2010/05/gas_surge_shut_well_just_weeks.html">reeked of optimism and under-valuation of risk</a>.</p>
<p>I don&#8217;t think I&#8217;m unreasonable.  I think BPs engineers are probably the most qualified to be dealing with this.  I don&#8217;t think that BP executives are eating pelican stew and shrugging off the serious ecological, economical, and health-related implications.</p>
<p>I do think that there is a suspicious lack of well warranted hysteria.  The <a href="http://cosmiclog.msnbc.msn.com/archive/2010/05/10/2299098.aspx">estimates of worst-case scenarios</a> are seriously lacking in imagination.  An issue we&#8217;ll have to deal with for years?  Give me a break.  Barring some miraculous technological advancement (which I hope for daily) the amount of oil that has *already* been pumped into the gulf will not stop being a problem within our lifetime.  What is the real worst case scenario?  Well the flow can be far worse than reported&#8230;<a href="http://www.theoildrum.com/node/6464">check</a>.  It can decimate one of the region&#8217;s strongest economies&#8230;<a href="http://www.wwltv.com/news/Oyster-fisherman-92276324.html">ah</a>.  It can be an especially bad hurricane season&#8230;<a href="http://www.aolnews.com/nation/article/hurricane-season-predictions-call-for-heavy-weather-in-2010/19336359">hmm</a>.  It might prove impossible to clean oil out of the wetlands&#8230;<a href="http://www.npr.org/templates/story/story.php?storyId=126611433">oh</a>.  Oh, and what if there&#8217;s some horrifying toxic air effects from the giant oil slick&#8230;<a href="http://www.bayoubuzz.com/News/Louisiana/Government/CORRECTION_Toxicologist_Group_Say_Parts_of_Louisiana_Air_Is_Significant__10829.asp">shit</a>.  Want more?  What if the oil in the wetlands causes their complete and utter disappearance within a year or two?  Then New Orleans becomes a barrier reef.  What if the relief platform fails?  What if (the rest of the US pay attention &#8211; this concerns you) it gets in the gulf stream?  Let me be clear: </p>
<p>THE EARTH IS SPEWING<br />
HUGE AMOUNTS OF BLACK POISON<br />
MILES FROM WHERE WE LIVE</p>
<p>Hey, that&#8217;s a haiku!</p>
<p>How the hell are people not panicing?  Is it perhaps that we&#8217;re optimistic and underestimating the risk?  It&#8217;s friggin&#8217; tragic.</p>
<p>And what the hell is BP doing anyways?  My understanding is that they&#8217;re <a href="http://dotearth.blogs.nytimes.com/2010/05/01/a-dumb-question-about-stanching-deep-oil/">following along with the stop-a-blowout playbook</a>.  I don&#8217;t have any problems with this except they&#8217;re being too damn optimistic.  Why on earth did it take so long to get the first dome into place?  It seems because there was a <a href="http://online.wsj.com/article/SB10001424052748704307804575234621987007784.html">lack of preparation based in poor risk assessment</a>.  When it failed and they decided to try a smaller one why the hell was it not already on the way?  Because they were so damn sure the first one would work.  There are dozens of different high-quality ideas <a href="http://www.deepwaterhorizonresponse.com/go/doc/2931/541843">pouring in</a> (my favorite: bunker buster aimed right at the pipe).  What are they going to try next?  How close are they to pulling that off if the current attempts fail?</p>
<p>Under current law, BP liability is capped at 75 million dollars.  This is a number that they have already reached and surpassed.  Easily.  If I was a cold-hearted, hand-wringingly-evil executive I would tell my engineers to stop trying so hard.  Why expend more money and effort?  Why take risks and keep the story in the limelight.  I would say let &#8216;er rip until we get that second rig into place.  We&#8217;re paying the 75 mil already anyways.</p>
<p>I don&#8217;t think that anyone at BP is actively this evil.  I&#8217;m a strong believer in that there is no &#8220;they&#8221;.  Corporations and governments don&#8217;t have plots and opinions.  I am always the first to point out that &#8220;they&#8221; are always just people, usually with contrasting motivations, goals and ideas.  I think &#8220;they&#8221; are all concerned and consciencious.  But I also think that they have a clear conflict of interest and a poor track record of correctly assessing risk.</p>
<p>So why in the world are &#8220;they&#8221; still in charge?  I&#8217;m not saying that everyone should be canned.  I do not think that Obama needs to park himself over the pipe and try to figure out how to clog it (chucking executives and regulators at it sounds like a decent enough idea).  But I do think that the urgency of the situation warrants new incentives be introduced.  I&#8217;m a fan of putting the military in charge.  They have actual experience running things when lives are on the line.  They know that being optimistic is anathema.  Give them the keys to the kingdom.</p>
<p>Obama has never expressed much kinship with the Bayou though I do believe that he is trying to make the best decision for the situation.  I think eventually he will declare a natuional emergency and command the military to take over.  I think he is delaying because <a href="http://dotearth.blogs.nytimes.com/2010/05/10/how-long-should-bp-remain-in-charge/">he doesn&#8217;t want the Federal government to be in charge of an operation that might be doomed to failure</a>.  I think he hopes that BP can stop this.  I think he&#8217;s being optimistic.  I do not get a sense of urgency from him.</p>
<p>I think its high time that we all panic.</p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/blowing-off-oil-non-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# 4.0 Dynamic and No More Annoying Casts</title>
		<link>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/</link>
		<comments>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 00:05:52 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/?p=159</guid>
		<description><![CDATA[I have a strong distaste for things that works in a way that I dislike.  I am very unique that way.  
Right at the top of that list is any time that I am forced by language limitations into redundant code.  Notably, casting.  Take the following for example:

var dictionary = new [...]]]></description>
			<content:encoded><![CDATA[<p>I have a strong distaste for things that works in a way that I dislike.  I am very unique that way.  </p>
<p>Right at the top of that list is any time that I am forced by language limitations into redundant code.  Notably, casting.  Take the following for example:</p>
<pre class="csharp" name="code">
var dictionary = new Dictionary<string, object>();
dictionary["name"] = "Snoopy";
dictionary["number"] = 8;
int dictinary["number"] = (int)dictionary["number"]
</pre>
<p>That last line bothers me a lot.  I already told you that I expect an integer on the left hand side, why do I have to cast too?!.</p>
<p>Last night I thought I had it figured out.  The get by index handler would return a new &#8220;TypedObject&#8221; instance which would then contain an implicit converter that would do all the casting for us.  However, due to the hopelessly (and stupidly) <a href="http://ayende.com/Blog/archive/2006/01/03/WhyIsTheImplicitOperatorSoLimitedOnC.aspx">limited nature of the implicit operator</a> this was a no-starter.</p>
<p>Half an hour after I went to bed defeated, I leaped back out of bed full of vigor and brainy-ness.  With hands trembling I made my changes and ran my tests:</p>
<pre class="csharp" name="code">
[TestClass]
public class When_retrieving_from_TypedDictionary {
  TypedDictionary _dictionary;
  MemoryStream _stream = null;
  [TestInitialize]
  public void Setup() {
    _dictionary = new TypedDictionary();
    _dictionary.Add("DateTime", DateTime.Parse("01/01/2010"));
    _dictionary.Add("String", "hello friends");
    _stream = new MemoryStream();
    _dictionary.Add("MemoryStream", _stream);
  }
  [TestMethod]
  public void can_get_datetime() {
    DateTime dt = _dictionary["DateTime"];
    Assert.AreEqual(DateTime.Parse("01/01/2010"), dt);
  }
  [TestMethod]
  public void can_get_string()  {
    string str = _dictionary["String"];
    Assert.AreEqual("hello friends", str);
  }
  [TestMethod]
  public void can_get_reference_type() {
    MemoryStream stream = _dictionary["MemoryStream"];
    Assert.AreSame(_stream, stream);
  }
  [TestMethod]
  public void dont_need_to_cast_at_all() {
    Assert.AreSame(_stream, _dictionary["MemoryStream"]);
  }
}
</pre>
<p>They passed!</p>
<p>I&#8217;m a genius! I&#8217;ve figured out how to do something nobody ever had before!</p>
<p>Well not really, though it is an unexpected application of a C# language feature.  You see, at my new job at EPS we&#8217;re using C# 4.0 on a project.  As we all know the biggest hullabaloo with C# 4.0 is the introduction of the unassuming dynamic keyword.  Honestly, as a fan of dynamic languages like javascript and ruby I&#8217;ve been concerned that I would abuse it and always abstained &#8211; it doesn&#8217;t do anything that you couldn&#8217;t do with a dictionary after-all.</p>
<p>Well, it can do one thing &#8211; implicit type-casting!  So presenting, the above mentioned (and dead-simple) TypedDictionary:</p>
<pre class="csharp" name="code">
public class TypedDictionary {
  readonly Dictionary<string, object> _storage = new Dictionary<string, object>();
  public dynamic this[string key] {
  get { return _storage[key]; } }
  public void Add(string key, object obj) {
    _storage[key] = obj;
  }
}
</pre>
<p>It works, I promise.  How awesome is that?</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fgeorgemauer.net%2fblog%2fc-4-0-dynamic-and-no-more-annoying-casts%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fgeorgemauer.net%2fblog%2fc-4-0-dynamic-and-no-more-annoying-casts%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Job &#8211; I&#8217;m the Man</title>
		<link>http://georgemauer.net/blog/new-job-im-the-man/</link>
		<comments>http://georgemauer.net/blog/new-job-im-the-man/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:57:22 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/?p=149</guid>
		<description><![CDATA[Those who know me in real life (and the roughly zero others that read my blog) know the big news.
I have put in notice at my current company and starting February 21st I will be working full-time at EPS Software.
For me?  That&#8217;s a big deal.  For anyone else?  Not so much.  [...]]]></description>
			<content:encoded><![CDATA[<p>Those who know me in real life (and the roughly zero others that read my blog) know the big news.</p>
<p>I have put in notice <a href="http://www.westwayterminals.com/">at my current company</a> and starting February 21st I will be working full-time at <a href="http://eps-software.com/">EPS Software</a>.</p>
<p>For me?  That&#8217;s a big deal.  For anyone else?  Not so much.  This post is a placeholder for expounding on this later.</p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/new-job-im-the-man/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lambda Update</title>
		<link>http://georgemauer.net/blog/lambda-update/</link>
		<comments>http://georgemauer.net/blog/lambda-update/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 01:39:08 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/?p=81</guid>
		<description><![CDATA[For the record, I am still working on the lambda posts.  Actually I have written two.  Unfortunately, bigbluehost (my hosting service) switched servers and by hook or by crook my post on introductions &#8211; which had already been published &#8211; got disappeared.  And wouldn&#8217;t you know it, I only saved it online. [...]]]></description>
			<content:encoded><![CDATA[<p>For the record, I am still working on the lambda posts.  Actually I have written two.  Unfortunately, bigbluehost (my hosting service) switched servers and by hook or by crook my post on introductions &#8211; which had already been published &#8211; got disappeared.  And wouldn&#8217;t you know it, I only saved it online.  Arg!</p>
<p>Therefore, although I already have 2 articles written, I am holding off on publishing any new ones until I have time to go back and re-write the one that got lost.</p>
<p>Sorry guys, but that&#8217;s the way its going to be for now.  Hopefully I can get them all up by the end of  next week.</p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/lambda-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You Can&#8217;t Dance the Lambda</title>
		<link>http://georgemauer.net/blog/you-cant-dance-the-lambda/</link>
		<comments>http://georgemauer.net/blog/you-cant-dance-the-lambda/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:17:56 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/?p=64</guid>
		<description><![CDATA[I will say it proudly.  I use lambdas.  I use them a lot.  I use them everywhere.  I think they are an incredible and elegant language feature to the point that I would never go back to a language that does not include them in its basic tool-set. (You hear that [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 216px"><img class=" " title="LambadaMan" src="http://www.paulogualano.com/images/lambada_l.jpg" alt="Bing image search demands that you appreciate its features.  Its annoying annoying featurs." width="206" height="258" /><p class="wp-caption-text">Bing image search demands that you appreciate its features.  Its annoying annoying featurs.</p></div>
<p>I will say it proudly.  I use lambdas.  I use them a lot.  I use them everywhere.  I think they are an incredible and elegant language feature to the point that I would never go back to a language that does not include them in its basic tool-set. (You hear that Java?  I&#8217;m not going there.)</p>
<p>At the same time I see far too many developers who are confused by the topic.  I am planning a blog series on why I think that lambdas are so great, how I use them and why you should to.  The series will be broken down into several parts and will tentatively cover</p>
<ul>
<li>Intro, definition and syntax.</li>
<li>Using lambdas to refactor similar code structures for ultimate DRY.</li>
<li>Using lambdas to publish and subscribe to events the easy way.  Using them to adapt to method interfaces.</li>
<li>Using lambdas for defered (and run-time overwritable) execution.</li>
<li>Strategy pattern with lambdas in a hash.</li>
<li>Using lambdas for fluent interfaces.</li>
</ul>
<p>I&#8217;m unsure yet how many parts I will be breaking the series into but I feel like most of these can be a medium to long blog post in themselves so I&#8217;m sure I&#8217;ll be kept busy for a while.</p>
<p>And yes I do realize the available &#8220;Give up the Func&#8221; pun.</p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/you-cant-dance-the-lambda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://georgemauer.net/blog/hello-world/</link>
		<comments>http://georgemauer.net/blog/hello-world/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 23:12:27 +0000</pubDate>
		<dc:creator>togakangaroo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://georgemauer.net/blog/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://georgemauer.net/blog/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
