<?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>Wed, 21 Jul 2010 21:29:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What I do</title>
		<link>http://e-huned.com/2010/07/21/what-i-do/</link>
		<comments>http://e-huned.com/2010/07/21/what-i-do/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 21:28:05 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1185</guid>
		<description><![CDATA[When someone asks what I do, I want to say that I use machines to make life better.
]]></description>
			<content:encoded><![CDATA[<div style="font-size: 36px; line-spacing: 1.25em; letter-spacing: -0.08em;"><span style="color: #c8c8c8">When someone asks what I do, I want to say that</span> I use machines to make life better.</div>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/07/21/what-i-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creative Commons Terms of Service and Privacy Policy</title>
		<link>http://e-huned.com/2010/07/02/creative-commons-terms-of-use-and-privacy-policy/</link>
		<comments>http://e-huned.com/2010/07/02/creative-commons-terms-of-use-and-privacy-policy/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 23:40:12 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1160</guid>
		<description><![CDATA[Respekts to Automattic and Wordpress.  Here they are:

Automattic&#8217;s Creative Commons Sharealike Privacy Policy
Wordpress&#8217; Creative Commons Sharealike Terms of Service

]]></description>
			<content:encoded><![CDATA[<p>Respekts to Automattic and Wordpress.  Here they are:</p>
<ul>
<li><a href="http://automattic.com/privacy/">Automattic&#8217;s Creative Commons Sharealike Privacy Policy</a></li>
<li><a href="http://en.wordpress.com/tos/">Wordpress&#8217; Creative Commons Sharealike Terms of Service</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/07/02/creative-commons-terms-of-use-and-privacy-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to calculate a simple moving average in Javascript</title>
		<link>http://e-huned.com/2010/05/29/calculating-a-simple-moving-average-in-javascript/</link>
		<comments>http://e-huned.com/2010/05/29/calculating-a-simple-moving-average-in-javascript/#comments</comments>
		<pubDate>Sat, 29 May 2010 16:04:35 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1152</guid>
		<description><![CDATA[
And use it like this:

&#62;&#62; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(2)
[1, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5]
&#62;&#62; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(3)
[1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9]
&#62;&#62; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(4)
[1, 1.5, 2, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5]

I wonder if this is buggy/wrong.  It seems right, though.
]]></description>
			<content:encoded><![CDATA[<p><script src="http://gist.github.com/418345.js?file=simple_moving_average.js"></script></p>
<p>And use it like this:</p>
<pre>
&gt;&gt; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(2)
[1, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5]
&gt;&gt; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(3)
[1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9]
&gt;&gt; [1,2,3,4,5,6,7,8,9,10].simple_moving_average(4)
[1, 1.5, 2, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5]
</pre>
<p>I wonder if this is buggy/wrong.  It seems right, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/05/29/calculating-a-simple-moving-average-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download all your flickr photos with this ruby code. Bye flickr.</title>
		<link>http://e-huned.com/2010/05/24/download-all-your-flickr-photos-with-this-ruby-code-bye-flickr/</link>
		<comments>http://e-huned.com/2010/05/24/download-all-your-flickr-photos-with-this-ruby-code-bye-flickr/#comments</comments>
		<pubDate>Tue, 25 May 2010 01:27:24 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1143</guid>
		<description><![CDATA[This is my very last use of flickr&#8217;s API.  Use this script to download all your flickr photos + metadata (as provided by flickr.photos.getInfo).
It&#8217;s pretty rough around the edges but that&#8217;s okay because it&#8217;s a single-use chunk of code.  You need a local mongodb server running. and your api key and auth token [...]]]></description>
			<content:encoded><![CDATA[<p>This is my very last use of flickr&#8217;s API.  Use this script to download all your flickr photos + metadata (as provided by flickr.photos.getInfo).</p>
<p>It&#8217;s pretty rough around the edges but that&#8217;s okay because it&#8217;s a single-use chunk of code.  You need a local mongodb server running. and your api key and auth token from flickr.</p>
<p><script src="http://gist.github.com/412642.js?file=flickrpuke.rb"></script></p>
<p>Do you want to migrate all your memories from flickr to picasa (or mobileme, or wherever)?  Ask me how.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/05/24/download-all-your-flickr-photos-with-this-ruby-code-bye-flickr/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>font-size: 72px</title>
		<link>http://e-huned.com/2010/04/29/font-size-72px/</link>
		<comments>http://e-huned.com/2010/04/29/font-size-72px/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 19:10:02 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/?p=1125</guid>
		<description><![CDATA[I feel like 72px is underrated.  You&#8217;ve probably never seen it.  So I made a sample for you to admire.  Pretty, right?
p.s. &#8211; hi david :)
]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 72px; line-height: 1em; letter-spacing: -2px; text-shadow: 1px 1px 2px #ccc">I feel like 72px is underrated.  You&#8217;ve probably never seen it.  So I made a sample for you to admire.  Pretty, right?</span></p>
<p>p.s. &ndash; hi david :)</p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/04/29/font-size-72px/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>omg</title>
		<link>http://e-huned.com/2010/04/05/omg/</link>
		<comments>http://e-huned.com/2010/04/05/omg/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 18:18:03 +0000</pubDate>
		<dc:creator>huned</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://e-huned.com/2010/04/05/omg/</guid>
		<description><![CDATA[Frequency of occurrence of some internet-style abbreviations in a chat log.

]]></description>
			<content:encoded><![CDATA[<p>Frequency of occurrence of some internet-style abbreviations in a chat log.</p>
<p><script src="http://gist.github.com/356058.js?file=maj.md"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://e-huned.com/2010/04/05/omg/feed/</wfw:commentRss>
		<slash:comments>0</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>
	</channel>
</rss>
