<?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>Andrew Jesaitis &#187; Uncategorized</title>
	<atom:link href="http://www.andrewjesaitis.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andrewjesaitis.com</link>
	<description>the attic of my mind</description>
	<lastBuildDate>Sun, 04 Dec 2011 02:26:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Ironing out the Kinks: Dropbox and Linux</title>
		<link>http://www.andrewjesaitis.com/2011/07/ironing-out-the-kinks-dropbox-and-linux/</link>
		<comments>http://www.andrewjesaitis.com/2011/07/ironing-out-the-kinks-dropbox-and-linux/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 19:00:44 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.andrewjesaitis.com/?p=2053</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>I noticed one day that my Dropbox folder was syncing on my MacBook, but not on my Linux box. A little digging and I figured out that the Dropbox daemon doesn&#8217;t like to be started before you are assigned an IP address on the network. So the one-off solution is to simply restart Dropbox. This<a href="http://www.andrewjesaitis.com/2011/07/ironing-out-the-kinks-dropbox-and-linux/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>I noticed one day that my Dropbox folder was syncing on my MacBook, but not on my Linux box. A little digging and I figured out that the Dropbox daemon doesn&#8217;t like to be started before you are assigned an IP address on the network.</p>
<p>So the one-off solution is to simply restart Dropbox. This is pretty worthless though as syncing is no longer automatic, negating the whole point of having Dropbox.</p>
<p>So the better solution is to simply ensure that Dropbox is started after your network daemon. In my case, this just meant removing the &#8220;@&#8221; preface in my daemon array in my rc.conf.</p>
<p>Before:<br />
<code><br />
DAEMONS=(syslog-ng @network @dbus @crond @alsa @mpd @sensors)<br />
</code></p>
<p>After:<br />
<code><br />
DAEMONS=(syslog-ng network @dbus @crond @alsa @mpd @sensors)<br />
</code></p>
<p>But, this still isn&#8217;t great because now your boot hangs, while DHCP assigns you an IP address. The solution is to use a static IP address. Since this is my desktop computer, I&#8217;m always connecting to the same network so this is easy. </p>
<p>If you&#8217;re on a laptop, I&#8217;d stick with just un-backgrounding your network daemon. Plus, you are probably using networkmanager for Wifi, so the configuration is going to differ. There should be a way to add something like</p>
<p><code>sleep 10s &#038;&#038;</code></p>
<p>to the autostart.sh script calling the Dropbox daemon, but I can&#8217;t find it in Gnome 3. In Openbox it should be in</p>
<p><code>~/.config/openbox/</code></p>
<p>This would be the best way to go about it on a Laptop.</p>
<p>So I reserved a couple IP addresses on my router and to my rc.conf file I added this to the networking portion:<br />
<code><br />
interface=eth0<br />
address=192.168.0.101<br />
netmask=255.255.255.0<br />
gateway=192.168.0.1<br />
</code></p>
<p>I now can put the network daemon back into the background on boot (though this doesn&#8217;t speed things up much with a static IP). And voila, fast boot and Dropbox is working from the get go.</p>
<p>Hopefully, this will save you 5 minutes of tinkering. Note: The configuration is specific to Arch Linux (or distros with BSD style init scripts).</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/07/ironing-out-the-kinks-dropbox-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trailer Season</title>
		<link>http://www.andrewjesaitis.com/2011/07/trailer-season/</link>
		<comments>http://www.andrewjesaitis.com/2011/07/trailer-season/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 21:16:33 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Skiing]]></category>
		<category><![CDATA[trailers]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.andrewjesaitis.com/?p=2006</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>It&#8217;s not ski season, but this might be just enough to tide you over until the fall. I&#8217;m bummed that Dendrite won&#8217;t be releasing another film this year, since Out of the Shadows was by far my favorite of 2010. But, it sounds like the sponsorship dollars just aren&#8217;t there. Too bad&#8230; TGR: One for the road<a href="http://www.andrewjesaitis.com/2011/07/trailer-season/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>It&#8217;s not ski season, but this might be just enough to tide you over until the fall.</p>
<p>I&#8217;m bummed that Dendrite won&#8217;t be releasing another film this year, since <a href="http://dendritestudios.com/video/out-of-the-shadows-mini-teaser/">Out of the Shadows </a>was by far my favorite of 2010. But, it sounds like the sponsorship dollars just aren&#8217;t there. Too bad&#8230;</p>
<p>TGR: One for the road</p>
<p><iframe width="400" height="257" src="http://www.youtube.com/embed/rp2ZYWaOaX4" frameborder="0" allowfullscreen></iframe></p>
<p>MSP: Attack of La Nina</p>
<p><iframe src="http://player.vimeo.com/video/26078549?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe></p>
<p>Level 1: After Dark</p>
<p><iframe src="http://player.vimeo.com/video/25989763?byline=0&amp;color=bfebff&amp;autoplay=0" width="398" height="224" frameborder="0"></iframe></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/07/trailer-season/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weighing luck</title>
		<link>http://www.andrewjesaitis.com/2011/06/weighing-luck/</link>
		<comments>http://www.andrewjesaitis.com/2011/06/weighing-luck/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 18:19:07 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[luck]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.andrewjesaitis.com/?p=1984</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>I read an interesting article in the Washington Post this weekend by Barry Rithholz who runs the exceptional blog, The Big Picture. &#8220;I am struck by how many very wealthy people I know — especially tech entrepreneurs – have expressed being grateful for their good luck. Again and again, I have heard the phrase: &#8216;Being<a href="http://www.andrewjesaitis.com/2011/06/weighing-luck/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>I read an interesting <a href="http://www.washingtonpost.com/business/7-life-lessons-from-the-very-wealthy/2011/06/15/AGxw6aaH_story.html/">article</a> in the Washington Post this weekend by Barry Rithholz who runs the exceptional blog, <a href="http://www.ritholtz.com/blog/">The Big Picture</a>. </p>
<blockquote><p>&#8220;I am struck by how many very wealthy people I know — especially tech entrepreneurs – have expressed being grateful for their good luck. Again and again, I have heard the phrase: &#8216;Being smart is good, but being lucky is better.&#8217;&#8221; -Barry Rithholz</p></blockquote>
<p>It reminded me of what underpins my entire world view. </p>
<p>More outcomes in our life than we would prefer to believe depend on luck. And while skill is obviously an essential ingredient in success, it can never flourish without luck. But, luck cuts both ways. For every entrepreneurial superstar, there is the kid who got dealt shitty genes and is diagnosed with cancer.</p>
<p>Doesn&#8217;t it make sense to use some of that good luck to help mitigate the effects of bad luck?</p>
<p>I refuse to believe that somehow bumping taxes from 35% to 40% is really going to keep that inventor on his couch.  But, I can guarantee that increasing government funding for science and allowing for universal access to heath care will change lives. And it might just reverse the fortune of that unlucky kid.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/06/weighing-luck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Colemak</title>
		<link>http://www.andrewjesaitis.com/2011/06/learning-colemak/</link>
		<comments>http://www.andrewjesaitis.com/2011/06/learning-colemak/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 02:45:07 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[colemak]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[typing]]></category>

		<guid isPermaLink="false">http://www.andrewjesaitis.com/?p=1934</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>This is either going to be one massive waste of time and productivity or one of the best investments in time I&#8217;ve ever made. I&#8217;m not a horrible typist be any means. I can touch type at 50 WPM with about 95% accuracy. But, when I type at my maximum speed it feels really frantic<a href="http://www.andrewjesaitis.com/2011/06/learning-colemak/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>This is either going to be one massive waste of time and productivity or one of the best investments in time I&#8217;ve ever made. I&#8217;m not a horrible typist be any means. I can touch type at 50 WPM with about 95% accuracy. But, when I type at my maximum speed it feels really frantic and my arms and hands tire quickly.</p>
<p>Enter <a href="http://colemak.com/">Colemak</a>.</p>
<p><a href="http://colemak.com/">Colemak</a> is a new keyboard layout designed in 2006. Like Dvorak, your fingers stay in the home row for a much greater percentage of time. Unlike Dvorak, Colemak doesn&#8217;t move as many keys around. As a result, it is faster to learn and preserves all your favorite Ctrl + shortcuts. My goal is 70wpm with 97% accuracy.</p>
<p><script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js"> {"dataSourceUrl":"//spreadsheets.google.com/spreadsheet/tq?key=0AlsOK8XDz3sTdHBnWGk5R0NZa3BSbl9VOGVQSzhKVlE&#038;transpose=0&#038;headers=-1&#038;range=A1%3AC50&#038;gid=0&#038;pub=1","options":{"vAxes":[{"min":null,"title":null,"max":null}],"colors":["#3366CC","#DC3912","#FF9900","#109618","#990099","#0099C6","#DD4477","#66AA00","#B82E2E","#316395"],"smoothLine":false,"vAxis":{"format":"#0.##########"},"lineWidth":2,"hAxis":{"maxAlternation":1},"width":600,"height":371},"state":{},"chartType":"LineChart","chartName":"Typing Speed"} </script></p>
<p>Day 1<br />
This is hard. It was amazingly easy to set up though&#8230;</p>
<p><code>$sudo setxkbmap us -variant colemak</code></p>
<p>That one line is sending my mind into spasms.  I have these terrible mental freezes, where I kind of know what finger to use, but can&#8217;t make it do anything. Speed is now at 6 wpm. Oh and work has basically come to a standstill. Definitely not logging in Pidgin and facing the threat of an incoming IM for at least a few weeks. Really proud of myself for typing this paragraph though.</p>
<p>Day 2<br />
Still seemingly impossible. Really wish there was autocomplete on the desktop. I have a huge amount of motivation so my computer becomes usable again.</p>
<p>Day 3<br />
Not hating my computer quite as much today. I finished the alphanumeric characters today, but am probably only 60% accurate. The lack of accuracy is actually more annoying than the lack of speed.</p>
<p>Day 4<br />
I am quickly learning how much the computer sucks if you can&#8217;t type. It really helps me understand why accessibility is such an important issue. I catch myself asking, &#8220;Where&#8217;s my  key?&#8221; That thought gets old quick.</p>
<p>Day 5<br />
Okay it&#8217;s starting to get really annoying. The &#8216;s&#8217; and &#8216;y&#8217; keys will be the end of me. Another unforeseen productivity drag is that I no longer have any excess brainpower while typing&#8211;making composing original material VERY slow.</p>
<p>Day 6<br />
Finally finished the pedantic, basic exercises in Klavaro. Boring doesn&#8217;t begin to describe them&#8211;especially the later ones that are just strings of symbols. But being able to touch-type every character would be great for programming.</p>
<p>Day 7<br />
I&#8217;m finally starting to feel some fluidity again, but am still too slow for me too feel like learning this was a good idea. But I&#8217;m basically committed now since my QWERTY speed has plummeted to about the same speed as my Colemak speed.</p>
<p>Also, I finally got my Linux box to maintain the Colemak layout between boots!</p>
<p>First, you need to set your keymap in your rc.conf:</p>
<p><code>KEYMAP="colemak/en-latin9"</code></p>
<p>This gives you the Colemak layout at console prompts and in your desktop manager.</p>
<p>Then just set your keymap in your window manager (In Gnome 3 it&#8217;s System Settings-&gt;Region and Language-&gt;Layout and pick English (Colemark)). Don&#8217;t bother trying to set it though your xorg.conf, as you&#8217;ll run into issues with hotplugging among other things.</p>
<p>Day 8<br />
Today was hard. I had alot of work and it&#8217;s still hard to compose while typing. It really feels like a 2 paragraph email is some kind of torture test.</p>
<p>Day 9<br />
Speed is starting to pick up. I&#8217;ve noticed that I&#8217;m about 5 WPM faster on tests made up of random words than real sentences.</p>
<p>Day 12<br />
Uggh. Don&#8217;t know why 30 WPM seems like such a brick wall. But looking at my error patterns, I think I&#8217;m going to have a big break soon. I&#8217;ve noticed that a lot of my errors come in strings of 3-5 letters. I think that somewhere around 30 WPM you start typing words instead of letters. That is you fire off a burst of typing and if you skip a letter or insert a space you miss all the letters of that burst.</p>
<p>I&#8217;ve learned a few things that should be incorporated into all typing software:</p>
<ol>
<li>Don&#8217;t teach numbers or symbols until you can type at your target speed on only letters&#8211;otherwise you are encouraging peeking and destroying the flow</li>
<li>Count hitting the wrong shift key as an error</li>
<li>Analyze what letters are frequently missed and drill those</li>
<li>Drill common idoms and words to increase burst speed and accuracy</li>
<li>Look at inserted/skipped letters and don&#8217;t count the string of correct offset letters as an error&#8211;this is the way you actually correct and view typos</li>
</ol>
<p>Day 13<br />
I feel like the faster I try to go the more mistakes I make and the slower my speed. I think it is due to the fact that whenever I mistype something, it breaks my concentration. This momentary lapse is especially bad because you eye is a few characters ahead of your fingers and then it takes a few seconds for everything to reset and develop your rhythm again.</p>
<p>Day 14<br />
All I have to say is that changing passwords with keys mislabeled is a real test of faith in your touch typing skill.</p>
<p>Day 23<br />
I got busy and wasn&#8217;t able to do much concerted practice, but I was programming which seemed to account for something. I read recently that unless you are typing at least 60 wpm you are wasting a lot of time at your computer.</p>
<p>Day 37<br />
Not too much to report. I haven&#8217;t been practicing as diligently as I should be because I&#8217;ve had a couple big projects the last couple weeks. Also, typing at 40 wpm is workable in day to day life. Obviously, it&#8217;s not as fast as I&#8217;d like, but I no longer feel like Colemak is preventing me from working. In any case, I&#8217;m still shooting for 70 wpm.</p>
<p>Day 46<br />
Still stuck in the 40-45 WPM range, but in fairness I cut my left index finger a couple days ago and that is slowing me down. I want to break 50 wpm by the end of July.</p>
<p>Day 51<br />
Broke 45 WPM the other day, but I really need to practice more. I downloaded <a href="http://code.google.com/p/amphetype/">Amphetype</a> to give me some key specific stats to see where I am weakest. Let&#8217;s go 50!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/06/learning-colemak/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>User Experience: The Cardinal Rule</title>
		<link>http://www.andrewjesaitis.com/2011/04/user-experience-the-cardinal-rule/</link>
		<comments>http://www.andrewjesaitis.com/2011/04/user-experience-the-cardinal-rule/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 03:21:47 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[people]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[UX]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/?p=1248</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>Recently, I installed linux on my main, desktop computer. After it booted back up into Ubuntu 10.10, I was like, &#8220;Damn, linux has come a long way in the last 5 years.&#8221; It was fast, had a good window manager, most programs I use have a native linux equivalent, and it worked out of the<a href="http://www.andrewjesaitis.com/2011/04/user-experience-the-cardinal-rule/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>Recently, I installed linux on my main, desktop computer. After it booted back up into Ubuntu 10.10, I was like, &#8220;Damn, linux has come a long way in the last 5 years.&#8221; It was fast, had a good window manager, most programs I use have a native linux equivalent, and it worked out of the box.*</p>
<p>However, that little asterisk is the rub. My wifi cut out after 15 minutes, dual monitor support wasn&#8217;t great, DRM keeps me from streaming Netflix and playing movies I bought on iTunes. To cap it off, I had to spend close to a full day configuring programs and settings at the command line. But, for me it was actually a step up in user experience. I can quickly set up sandboxed development environments, look for problems more quickly because all my settings are in flat text files, have a full range of open source tools that can be tailored to my specific needs, and it NEVER crashes.</p>
<p>I realize though that most people can&#8217;t and, more importantly, don&#8217;t want to deal with these issues. They just want their computer to work. And this is why I am such a proponent of Apple. In fact, I think the user interface is so good on Macs, that I themed my Linux desktop to act like one. But, Apple takes an approach that is antithetical to the way Linux is developed.</p>
<p>Apple keeps the Mac universe under lock and key for a reason. By controlling the production of a computer for start to finish, they can preserve the user experience. Why do mac&#8217;s have fewer hardware compatibility problems? Because their engineers only have to worry about a few hardware combos. Why is iTunes such a seamless experience? Because they can simplify operations by designing for a small iUniverse of devices. They can guarantee that you have a machine that feels solid in front of you because there isn&#8217;t another manufacturer who is going to cheap-out on a plastic case and cruddy display. In essence they have traded flexibility for quality. For 99% of users this is a good choice.</p>
<p>What I see often happening (especially in the hardcore computer science world, but it is creeping into the web as it matures) is that software is clearly designed by an engineer. Engineers by their very nature are feature-hungry. They want to design software that is the epitome of flexibility. Their software is probably wickedly powerful, but makes absolutely no sense in terms of operation. </p>
<p>This practice was painfully obvious at my previous job where all our bank operations software was designed in house. I knew a couple of the programmers in software development and they were insanely smart. If you wanted to do some really esoteric transaction you could do it, but you probably had to click through a 15 pages of dialogs with 30 settings each (I&#8217;m not exaggerating). It had a tremendously steep learning curve that bred ineffiecency and mistakes. </p>
<p>Those engineers had forgotten the cardinal rule&#8211;the rule that I think makes Apple so great.</p>
<p>More important than the functionally of the software or device, is the ease of use by the end user. If you forget this concept you are bound to upset the very person you are trying to help. Not only did you just lose a customer, but you just defeated the very purpose of your software: to help someone.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/04/user-experience-the-cardinal-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bracket Time: March Madness 2011</title>
		<link>http://www.andrewjesaitis.com/2011/03/bracket-time-march-madness-2011/</link>
		<comments>http://www.andrewjesaitis.com/2011/03/bracket-time-march-madness-2011/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 19:58:58 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[basketball]]></category>
		<category><![CDATA[bracket]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[March Maddness]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[NCAA]]></category>
		<category><![CDATA[Sargarin]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/?p=1723</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>So here&#8217;s my baseline bracket for 2011. Pretty standard bracket based on Sargarin rankings. I did tweak it to have BYU lose to Florida in the Sweet 16, rather than have them advance and lose to Pitt in the Elite 8. I think it is a pretty safe assumption that BYU shot themselves in the<a href="http://www.andrewjesaitis.com/2011/03/bracket-time-march-madness-2011/">...</a>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p>So here&#8217;s my baseline bracket for 2011. Pretty standard bracket based on <a href="http://www.usatoday.com/sports/sagarin/bkc1011.htm">Sargarin rankings</a>. </p>
<p>I did tweak it to have BYU lose to Florida in the Sweet 16, rather than have them advance and lose to Pitt in the Elite 8. I think it is a pretty safe assumption that BYU shot themselves in the foot by <a href="http://www.nytimes.com/2011/03/13/sports/ncaabasketball/13byu.html">suspending Davies</a>. Interestingly, this assumption isn&#8217;t showing up in the Vegas lines (yet). I would think that BYU would be so heavily underbet that that you might be able to get nice odds on them, but that&#8217;s not so.</p>
<p>Lastly, I&#8217;ll mention that in most pools, I&#8217;d probably actually pick Duke or Kansas to win the tournament. Although I think Ohio will take the whole thing, I think that they are a poor bet.  Since Ohio State are the heavy favorite, you&#8217;d likely have to either spilt the pot or you&#8217;d lose on previous picks. Whereas, if you pick either Duke or KU, you have a much better shot of taking the whole thing based on you being the only one in your pool to pick the winner. Think about this for a second. If Ohio has a 60% chance of winning but you have to split a hundred dollar pot, your expected winnings are only $30. But, if Duke has a 40% chance you can expect a $40 payout because you didn&#8217;t have to split the pot. This is basically the theory that Niemi, Carlin, and Alexander came up with in this <a href="http://www.stat.duke.edu/~jbn9/papers/Niem_Carl_Alex_cont_2008.pdf">awesome paper</a> a couple years ago.</p>
<p><a href="http://andrewjesaitis.com/wp-content/uploads/2011/03/Brackett2011.jpg" rel="lightbox[1723]"><img src="http://andrewjesaitis.com/wp-content/uploads/2011/03/Brackett2011.jpg" alt="" title="Brackett2011" width="890" height="661" class="aligncenter size-full wp-image-1733" /></a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/03/bracket-time-march-madness-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number of iterations of nested for loops</title>
		<link>http://www.andrewjesaitis.com/2011/02/number-of-iterations-of-nested-for-loops/</link>
		<comments>http://www.andrewjesaitis.com/2011/02/number-of-iterations-of-nested-for-loops/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 01:42:35 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[for-loops]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[summation]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/?p=1531</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>The Problem: Recently in my numerical methods class, I recieved the following question: Find the generalized solution for &#8220;sum&#8221; in the following code: int sum = 0; for (int i= 1; i]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><div class="subhead">The Problem:</div>
<p>Recently in my numerical methods class, I recieved the following question:</p>
<p>Find the generalized solution for &#8220;sum&#8221; in the following code:</p>
<pre>
int sum = 0;
for (int i= 1; i <= n; i++){
    for (int j= 1; j <= i; j++){
	for (int k= 1; k <= j; k++){
	    sum++;
	}
    }
}</pre>
<p><br/><br />
Interestingly, there is very little on <a href="http://stackoverflow.com/questions/tagged/nested-loops+for-loop">Stackoverflow</a> about finding the number of iterations of nested for loops. To me this means the answer has little practical importance to 99.9% of code out there. You know what that means? It makes the questions a great math problem (i.e. not practical and deceptively simple).</p>
<p>The algebraic solution is pretty straightforward. But, here's what I've found about algebraic solutions from majoring in math. Most people reguritating the formula actually don't understand it. I mean really understand the "why" of the solution. There's that 1% of math geniuses who get it from straight algebra, but most of us (myself included) don't automatically have an intuitive feel of what the equation is actually saying. So here's the algebraic solution:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%20%20%20%5Csum_%7Bi%3D1%7D%5E%7Bn%7D%20%5Csum_%7Bj%3D1%7D%5Ei%20j%20%3D%20%5Cfrac%7Bn%28n%2B1%29%28n%2B2%29%7D%7B6%7D%20%20&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='   \sum_{i=1}^{n} \sum_{j=1}^i j = \frac{n(n+1)(n+2)}{6}  ' title='   \sum_{i=1}^{n} \sum_{j=1}^i j = \frac{n(n+1)(n+2)}{6}  ' class='latex' /><br/></p>
<p>I actually didn't derive the solution from a summation of a summation first, however. I did something cooler.</p>
<div class="subhead">Check this out:</div>
<p>We know that one <code> for </code> loop runs n times. </p>
<p>And we can figure out quickly how many times two nested <code> for </code> loops run.</p>
<pre>
for (int i= 1; i <= n; i++){
    for (int j= 1; j <= i; j++){
        sum++;
   }
}
</pre>
<p><br/></p>
<p>This is just the sum of:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=1%2B2%2B3%2B4%2B...%2Bn%3D%5Cfrac%7Bn%28n%2B1%29%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1+2+3+4+...+n=\frac{n(n+1)}{2}' title='1+2+3+4+...+n=\frac{n(n+1)}{2}' class='latex' /><br/></p>
<p>And you probably remember that neat little graphical proof of this summation. We make a triangle with 1 X in the first row, 2 X's in the second, and so on. Then we turn it into a rectangle using O's. For example:<br />
<code><br />
XOOOO<br />
XXOOO<br />
XXXOO<br />
XXXXO<br />
</code></p>
<p>Now the key thing to note is that we added an "O" to the bottom row. Thus the "area" (or number of elements) of the rectangle is:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=n%28n%2B1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n(n+1)' title='n(n+1)' class='latex' /><br/></p>
<p>And the number of X's (what we are after) is half that:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7Bn%28n%2B1%29%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{n(n+1)}{2}' title='\frac{n(n+1)}{2}' class='latex' /><br/></p>
<p>Okay now let's extend that idea to 3 nested loops. We can now think of the trangle as being made of numbers representing the depth in the z-dimension at that point. So our triangle becomes:<br />
<code><br />
1<br />
21<br />
321<br />
4321<br />
</code><br />
Now imagine if what this would look like if we drew it in 3-D with X's. It'd look like a triangular pyramid!! Now what would the dimension of the pyramid be if we are calculating the volume similarly to how we calulated the area of the triangle. Well we know it is n units tall in the y-dimension, and (n+1) units wide in the x-dimension.</p>
<p>We just need the z-dimension. Well (n+1) is a good guess, but we actually have to add two triangles to make our shape into a rectangular prism (one in the z-dimension and one in the y-dimension). Then we are going to cut off parts of it to get our triangular pyramid (check out <a href="http://nrich.maths.org/1408">http://nrich.maths.org/1408</a> for a good graphical derivation of the volume of a triangular pyramid). So we have a triangular pyramid with dimension (n)x(n+1)x(n+2) and using that volume formula you learned in 7th grade we have:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%20%20%5Cfrac%7Bn%28n%2B1%29%28n%2B2%29%7D%7B6%7D%20%20&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='  \frac{n(n+1)(n+2)}{6}  ' title='  \frac{n(n+1)(n+2)}{6}  ' class='latex' /><br/></p>
<p>Et, Voila! Our formula! No algebra required.</p>
<p>The real value of this derivation comes in the from thinking about the data structure that would be traversed by this triplely-nested for loop: an array of dimension NxNxN where elements with an index greater than the row and/or column and/or "depth" do not exist.</p>
<p>Okay, <code>&lt;/math nerd blog&gt;</code>.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/02/number-of-iterations-of-nested-for-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best-of NOMADS on Vimeo</title>
		<link>http://www.andrewjesaitis.com/2011/01/best-of-nomads-on-vimeo/</link>
		<comments>http://www.andrewjesaitis.com/2011/01/best-of-nomads-on-vimeo/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 13:59:00 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/2011/01/best-of-nomads-on-vimeo/</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>via vimeo.com 25:05&#8230;jaw on floor]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><div class="posterous_bookmarklet_entry">
      <iframe src="http://player.vimeo.com/video/17875378?portrait=0" frameborder="0" height="283" width="500"></iframe></p>
<div class="posterous_quote_citation">via <a href="http://vimeo.com/17875378">vimeo.com</a></div>
<p>25:05&#8230;jaw on floor</p>
</div>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/01/best-of-nomads-on-vimeo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drinking @ogers&#8217;s delicious holiday homebrew</title>
		<link>http://www.andrewjesaitis.com/2011/01/drinking-ogerss-delicious-holiday-homebrew/</link>
		<comments>http://www.andrewjesaitis.com/2011/01/drinking-ogerss-delicious-holiday-homebrew/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 09:03:15 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/2011/01/drinking-ogerss-delicious-holiday-homebrew/</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>It&#8217;s a citrus wheat beer and really good.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p><a href='http://andrewjesaitis.com/wp-content/uploads/2011/01/1578470566.jpg.scaled1000.jpg' rel="lightbox[1262]"><img src="http://andrewjesaitis.com/wp-content/uploads/2011/01/1578470566.jpg.scaled1000-300x225.jpg" width="500" height="375"/></a>
</p>
<p>It&#8217;s a citrus wheat beer and really good.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/01/drinking-ogerss-delicious-holiday-homebrew/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waist deep blower</title>
		<link>http://www.andrewjesaitis.com/2011/01/waist-deep-blower/</link>
		<comments>http://www.andrewjesaitis.com/2011/01/waist-deep-blower/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 07:04:09 +0000</pubDate>
		<dc:creator>Andrew Jesaitis</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewjesaitis.com/2011/01/waist-deep-blower/</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p>Looking down into Colter&#8217;s before what turned out to be my best run this year. It was a fantastic sleeper day to start off 2011.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.andrewjesaitis.com/category/notes-2/" title="Notes">Notes</a><a href="http://www.andrewjesaitis.com/category/uncategorized/" title="Uncategorized">Uncategorized</a></p><p><a href='http://andrewjesaitis.com/wp-content/uploads/2011/01/1578470541.jpg.scaled1000.jpg' rel="lightbox[1263]"><img src="http://andrewjesaitis.com/wp-content/uploads/2011/01/1578470541.jpg.scaled1000-225x300.jpg" width="500" height="667"/></a>
</p>
<p>Looking down into Colter&#8217;s before what turned out to be my best run this year. It was a fantastic sleeper day to start off 2011.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.andrewjesaitis.com/2011/01/waist-deep-blower/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

