<?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>Zach Archer Blog &#187; wordpress</title>
	<atom:link href="http://blog.zacharcher.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zacharcher.com</link>
	<description>This blog is GO!</description>
	<lastBuildDate>Fri, 09 Jul 2010 23:02:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Braindead Monkeys album #6</title>
		<link>http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/</link>
		<comments>http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 19:04:22 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[braindead monkeys]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=60</guid>
		<description><![CDATA[You dag-blasted crazy apes!!! The Braindead Monkeys: Space Donut After a 4-year hiatus, Space Donut arrives! It's their strongest album to date. Lots of head-nodding jams, and lots of smiles. Recommended tracks: #3: Parody of a popular 80's cartoon #4: TERRORISM! "The United States is currently at war with everything..." #7: Nintendo (NES) + marching [...]]]></description>
			<content:encoded><![CDATA[<p>You dag-blasted crazy apes!!!</p>
<p style="text-align: center;"><a href="http://bdmonkeys.net/BDM6_space_donut.phtml"><img class="aligncenter" title="Space Donut" src="http://bdmonkeys.net/i/BDM6_front.jpg" alt="Braindead Monkeys: Space Donut" width="400" height="400" /></a></p>
<p style="text-align: center;"><strong><a href="http://bdmonkeys.net/BDM6_space_donut.phtml">The Braindead Monkeys: Space Donut</a></strong></p>
<p>After a 4-year hiatus, Space Donut arrives! It's their strongest album to date. Lots of head-nodding jams, and lots of smiles.</p>
<p>Recommended tracks:</p>
<ul>
<li><a href="http://bdmonkeys.net/m/BDM-Space_Donut-03-He-Monkeys.mp3">#3</a>: Parody of a popular 80's cartoon</li>
<li><a href="http://bdmonkeys.net/m/BDM-Space_Donut-04-___TERRORISM___.mp3">#4</a>: TERRORISM! "The United States is currently at war with <em>everything</em>..."</li>
<li><a href="http://bdmonkeys.net/m/BDM-Space_Donut-07-NESplosion.mp3">#7</a>: Nintendo (NES) + marching band</li>
<li><a href="http://bdmonkeys.net/m/BDM-Space_Donut-05-Path_of_the_Donut.mp3">#5</a>, <a href="http://bdmonkeys.net/m/BDM-Space_Donut-13-25_Years_of_Crap_Dubs.mp3">#13</a>, <a href="http://bdmonkeys.net/m/BDM-Space_Donut-18-Waft_Punk.mp3">#18</a>: Delicious electro jamstep</li>
</ul>
<p>Grab a banana and an electric drill, and enjoy!</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/&amp;title=Braindead Monkeys album #6' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/&amp;title=Braindead Monkeys album #6' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/&amp;title=Braindead Monkeys album #6' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Braindead Monkeys album #6+http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Braindead Monkeys album #6&amp;uri=http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2008/10/31/braindead-monkeys-album-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-03-He-Monkeys.mp3" length="7264822" type="audio/mpeg" />
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-04-___TERRORISM___.mp3" length="6409891" type="audio/mpeg" />
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-07-NESplosion.mp3" length="8928320" type="audio/mpeg" />
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-05-Path_of_the_Donut.mp3" length="7174420" type="audio/mpeg" />
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-13-25_Years_of_Crap_Dubs.mp3" length="10835946" type="audio/mpeg" />
<enclosure url="http://bdmonkeys.net/m/BDM-Space_Donut-18-Waft_Punk.mp3" length="7742605" type="audio/mpeg" />
		</item>
		<item>
		<title>A Replacement for Spotlight</title>
		<link>http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/</link>
		<comments>http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 01:53:55 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Spotlight]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=27</guid>
		<description><![CDATA[Spotlight has a glut of nice features, but it still doesn't satisfy me. I have nearly 2 million files on my hard drive. Depending on what I'm working on (and my caffeine-to-blood ratio), hundreds of files may be updated every minute. Then Spotlight tries to index the drive at inopportune moments, then Ableton Live can't [...]]]></description>
			<content:encoded><![CDATA[<p>Spotlight has a glut of nice features, but it still doesn't satisfy me. I have nearly 2 million files on my hard drive. Depending on what I'm working on (and my caffeine-to-blood ratio), hundreds of files may be updated every minute. Then Spotlight tries to index the drive at inopportune moments, then Ableton Live can't access files because the drive is busy, and the music grinds to a halt, and .... well, I had to take Spotlight behind the shed, and put it down.</p>
<p>There are <a href="http://www.macosxhints.com/article.php?story=20071102215912892">many</a> <a href="http://aplawrence.com/foo-mac/remove-spotlight.html">ways</a> <a href="http://www.tuaw.com/2008/09/23/terminal-tips-disable-spotlight-in-menu-bar/">to</a> <a href="http://pseudogreen.org/blog/disable_spotlight_in_leopard.html">disable</a> Spotlight. I don't remember which combination worked for me, but the end result is that <code>mdutil</code> doesn't  run on this machine anymore, and my menu bar is devoid of a Spotlight icon. (Also I <a href="http://forums.macosxhints.com/showpost.php?p=485190&amp;postcount=23">disabled Quick Look</a>, since its indexing also caused problems.)</p>
<p>But I still want to search my files. My solution was to create an automated job that runs once a day, and saves the path of every file into a big text document. Then I created a little command-line alias called <code>search</code>, which prints any file paths that match a search term. Here's how to do it:</p>
<p><span id="more-27"></span>First things first... We need a script that will traverse the file system, and save the path of every file into a massive text document. This is pretty easy, the <code>find</code> utility can do the heavy lifting. Here's the script I wrote:</p>
<p><code>#!/bin/bash<br />
rm /Users/chaz/dev/search/tree.txt<br />
find / &amp;gt; /Users/chaz/dev/search/tree.txt</code></p>
<p>I saved this script as <code>/Users/chaz/dev/search/build_tree.sh</code> . Make sure it's executable, then run it:</p>
<p><code>$ chmod a+x build_tree.sh<br />
$ ./build_tree.sh</code></p>
<p>The first time through, the <code>rm</code> command will complain that it has no <code>tree.txt</code> to delete, but that's okay. <code>find</code> will throw some other warnings at you: it can't traverse every directory because it doesn't have permission. Again, that's okay -- I probably won't be hunting for files in such places.</p>
<p>Grab a beverage, this process takes a few minutes. When it's done, you'll have a (rather large) <code>tree.txt</code> file in the directory. How large, exactly?</p>
<p><code>$ wc tree.txt<br />
1719365 5761267 196118611 tree.txt</code></p>
<p>1,719,365 lines, so I just indexed 1,719,365 files. Awesome.</p>
<p>It would be nice if the indexing ran automatically, preferably when I'm asleep. Since <code>cron</code> is being phased out of OS X Leopard, we'll use <code>launchd</code> instead. I created this file, called <code>rebuild_search_tree.plist</code>:</p>
<p><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://ww w.apple.com/DTDs/PropertyList-1.0.dtd"&gt;<br />
&lt;plist version="1.0"&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;Label&lt;/key&gt;<br />
&lt;string&gt;chaz.search.tree.rebuild&lt;/string&gt;<br />
&lt;key&gt;ProgramArguments&lt;/key&gt;<br />
&lt;array&gt;<br />
&lt;string&gt;/Users/chaz/dev/search/build_tree.sh&lt;/string&gt;<br />
&lt;string&gt;daily&lt;/string&gt;<br />
&lt;/array&gt;<br />
&lt;key&gt;LowPriorityIO&lt;/key&gt;<br />
&lt;true/&gt;<br />
&lt;key&gt;Nice&lt;/key&gt;<br />
&lt;integer&gt;1&lt;/integer&gt;<br />
&lt;key&gt;StartCalendarInterval&lt;/key&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;Hour&lt;/key&gt;<br />
&lt;integer&gt;6&lt;/integer&gt;<br />
&lt;key&gt;Minute&lt;/key&gt;<br />
&lt;integer&gt;15&lt;/integer&gt;<br />
&lt;/dict&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</code></p>
<p>Save this into ~/Library/LaunchAgents . You may have to create that directory, and there's an added wrinkle: for both the LaunchAgents directory <em>and</em> the .plist file, the owner has to be <code>root</code>.</p>
<p><code>$ sudo chown -R root ~/Library/LaunchAgents</code></p>
<p>Register this script with <code>launchctl</code>:</p>
<p><code>$ sudo launchctl load -w ~/Library/LaunchAgents/rebuild_search_tree.plist</code></p>
<p>Now this launch agent will run automatically at 6:15 every morning.</p>
<p>Finally, we need a command-line tool to search the tree. I added this line to my <code>.profile</code>:</p>
<p><code>function search() { clear; cat /Users/chaz/dev/search/tree.txt | grep "$@" | more; }</code></p>
<p>And here's how you use it:</p>
<p><code>$ search test<br />
/Applications/Adobe Photoshop CS3/MATLAB/tests/teststats.m<br />
/Applications/Audacity folder/nyquist/test.lsp<br />
/Applications/iTunes.app/Contents/Resources/da.lproj/iTunes Help/gfx/gfx_test.gif<br />
...</code></p>
<p>For each file that matches your query, it displays the full path of the file. This could be made fancier, but for now this is all I need!</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/&amp;title=A Replacement for Spotlight' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/&amp;title=A Replacement for Spotlight' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/&amp;title=A Replacement for Spotlight' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=A Replacement for Spotlight+http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=A Replacement for Spotlight&amp;uri=http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2008/10/06/a-replacement-for-spotlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trainwreckin&#8217;</title>
		<link>http://blog.zacharcher.com/2008/07/19/trainwreckin/</link>
		<comments>http://blog.zacharcher.com/2008/07/19/trainwreckin/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 21:56:34 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[openmoko]]></category>
		<category><![CDATA[trainwreck]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=22</guid>
		<description><![CDATA[OpenMoko is a flavor of Linux for cell phones. It's also a UI nightmare for end users. Witness these videos: OpenMoko Train Wreck from Dave Fayram on Vimeo. More OpenMoko Train Wrecking (Now with Qt!) from Dave Fayram on Vimeo. There's a ton of literature describing best development practices out there. But I think case [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Openmoko">OpenMoko</a> is a flavor of Linux for cell phones. It's also a UI nightmare for end users. Witness these videos:</p>
<p><object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1366042&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1366042&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object><br /><a href="http://www.vimeo.com/1366042?pg=embed&#038;sec=1366042">OpenMoko Train Wreck</a> from <a href="http://www.vimeo.com/user466448?pg=embed&#038;sec=1366042">Dave Fayram</a> on <a href="http://vimeo.com?pg=embed&#038;sec=1366042">Vimeo</a>.</p>
<p><object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1366923&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1366923&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object><br /><a href="http://www.vimeo.com/1366923?pg=embed&#038;sec=1366923">More OpenMoko Train Wrecking (Now with Qt!)</a> from <a href="http://www.vimeo.com/user466448?pg=embed&#038;sec=1366923">Dave Fayram</a> on <a href="http://vimeo.com?pg=embed&#038;sec=1366923">Vimeo</a>.</p>
<p>There's a ton of literature describing best development practices out there. But I think case studies of failure, or good intentions gone horribly awry, are just as important. It's essential to recognize what <em>not</em> to do. I still regard <a href="http://thedailywtf.com/Default.aspx">The Daily WTF</a> as a learning resource, full of cautionary (and hilarious) case studies.</p>
<p>Also, there are no "________-killers," but that's a subject for a different day.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2008/07/19/trainwreckin/&amp;title=Trainwreckin&#8217;' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2008/07/19/trainwreckin/&amp;title=Trainwreckin&#8217;' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2008/07/19/trainwreckin/&amp;title=Trainwreckin&#8217;' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Trainwreckin&#8217;+http://blog.zacharcher.com/2008/07/19/trainwreckin/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Trainwreckin&#8217;&amp;uri=http://blog.zacharcher.com/2008/07/19/trainwreckin/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2008/07/19/trainwreckin/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2008/07/19/trainwreckin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flocking</title>
		<link>http://blog.zacharcher.com/2008/06/01/flocking/</link>
		<comments>http://blog.zacharcher.com/2008/06/01/flocking/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 02:40:29 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[birds]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flocking]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=18</guid>
		<description><![CDATA[AI for Game Developers has a chapter on flocking, and I thought I'd try it: Click to play! It's not polished, but it lets you explore different flocking behaviors. Here's what the controls do: count The number of "birds" in the simulation. alignmentRadius Birds rotate to match the direction of their neighbors. This parameter changes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/AI-Game-Developers-David-Bourg/dp/0596005555/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1212373628&amp;sr=8-1">AI for Game Developers</a> has a chapter on <a href="http://en.wikipedia.org/wiki/Flocking_%28behavior%29">flocking</a>, and I thought I'd try it:</p>
<p><a href="http://zacharcher.com/lab/20080601_flocking/FlockingTest.swf"><img src="http://zacharcher.com/lab/20080601_flocking/flocking.png" alt="" /></a></p>
<p><a href="http://zacharcher.com/lab/20080601_flocking/FlockingTest.swf">Click to play!</a> It's not polished, but it lets you explore different flocking behaviors. Here's what the controls do:</p>
<p><span id="more-18"></span></p>
<ul>
<li><strong>count</strong> The number of "birds" in the simulation.</li>
<li><strong>alignmentRadius</strong> Birds rotate to match the direction of their neighbors. This parameter changes how far away they can "see". Larger values tend to align the entire flock; small values let the flock break apart.</li>
<li><strong>separationRadius</strong> Birds try to avoid colliding with nearby walls and other birds. They will turn and simultaneously hit the brakes. This number controls their stopping distance.</li>
<li><strong>peripheralVision</strong> Birds have a blind spot behind them. When this slider is maximized, the birds will have no blind spot, and will see 360 degrees.</li>
<li><strong>turnSpeed</strong> The speed at which birds turn.</li>
<li><strong>brakePedal</strong> Birds will slow down to avoid colliding. When this slider is minimized, the birds will never use their brakes.</li>
<li><strong>travelSpeed</strong> The top speed of the birds.</li>
<li><strong>Scatter</strong> and <strong>Randomize</strong>: Try them and see...</li>
</ul>
<p>If you want access to the code, the SubVersion repository is open: <a href="http://dev.zacharcher.com/svn/flocking_test/">http://dev.zacharcher.com/svn/flocking_test/</a></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Flocking+http://blog.zacharcher.com/2008/06/01/flocking/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Flocking&amp;uri=http://blog.zacharcher.com/2008/06/01/flocking/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2008/06/01/flocking/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2008/06/01/flocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vector Fonts in Flash</title>
		<link>http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/</link>
		<comments>http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 12:09:50 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=7</guid>
		<description><![CDATA[I've always liked the visual style of old vector games. I may integrate this style into my site, so I experimented with this tonight. I borrowed the font used in Major Havoc and created several new classes to support this. First, here's how it looks: Play with the .swf . Click the screen to set [...]]]></description>
			<content:encoded><![CDATA[<p>I've always liked the visual style of old vector games. I may integrate this style into my site, so I experimented with this tonight.</p>
<p>I borrowed the font used in <a href="http://www.appolo.com/Emulators/emulator.htm">Major Havoc</a> and created several new classes to support this. First, here's how it looks:</p>
<p><img src="http://zacharcher.com/lab/20070702_vector_font/screenshot.png" border="0" height="422" hspace="0" vspace="0" width="549" /></p>
<p><a href="http://zacharcher.com/lab/20070702_vector_font/20070702_vector_font.swf">Play with the .swf</a> . Click the screen to set the keyboard focus (I'll debug Selection.setFocus() later.) Type letters. Press backspace to clear the screen.</p>
<p>Each letter is placed randomly, and has a GlowFilter applied (an attempt to simulate the look of old CRTs) with random colors and settings therein.</p>
<p>Here are the classes being used:</p>
<ul>
<li><strong>vector.ShapeSegment</strong> (either a single line segment, or a bezier curve)</li>
<li><strong>vector.Shape</strong> (a continuous path of several ShapeSegments)</li>
<li><strong>vector.Symbol</strong> (a collection of Shapes)</li>
<li><strong>vector.font.Havoc</strong> defines the Symbols for each letter of the Havoc font, using delimited strings. Here's the string for the "A" character: "0,1; 0,0.5; 0.5,0; 1,0; 1,1 / 0,0.5; 1,0.5 ". Note that each letter is drawn on a coordinate space ranging from (0,0) to (1,1). The "/" character divides the coordinates into two Shapes (a separate Shape is needed to draw the bar through the center of the "A").</li>
<li><strong>vector.font.BaseVectorFont</strong> parses the strings contained in Havoc, and returns Symbols.</li>
</ul>
<p>Symbol, Shape, and ShapeSegment each have a draw() method that requires a MovieClip (to draw in), and a flash.geom.Matrix (to govern the position/size of each vector entity).</p>
<p>Currently this code is all locked down, not for any malicious reason... But I'd let my framework &amp; libraries mature a bit before I start accepting feedback. If you'd like to poke through my code, then I can open up my SubVersion repository; let me know if there's interest.</p>
<p>Up next: 3D</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/&amp;title=Vector Fonts in Flash' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/&amp;title=Vector Fonts in Flash' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/&amp;title=Vector Fonts in Flash' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Vector Fonts in Flash+http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Vector Fonts in Flash&amp;uri=http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2007/07/02/vector-fonts-in-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Typo -&gt; WordPress</title>
		<link>http://blog.zacharcher.com/2006/11/24/typo-wordpress/</link>
		<comments>http://blog.zacharcher.com/2006/11/24/typo-wordpress/#comments</comments>
		<pubDate>Sat, 25 Nov 2006 02:26:13 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=5</guid>
		<description><![CDATA[First post! I just switched from Typo (Rails) to WordPress. Come and get me, spambots!!!! More&#160;&#187;]]></description>
			<content:encoded><![CDATA[<p>First post!</p>
<p>I just switched from Typo (Rails) to WordPress. Come and get me, spambots!!!!</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2006/11/24/typo-wordpress/&amp;title=Typo -> WordPress' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2006/11/24/typo-wordpress/&amp;title=Typo -> WordPress' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2006/11/24/typo-wordpress/&amp;title=Typo -> WordPress' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Typo -> WordPress+http://blog.zacharcher.com/2006/11/24/typo-wordpress/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Typo -> WordPress&amp;uri=http://blog.zacharcher.com/2006/11/24/typo-wordpress/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2006/11/24/typo-wordpress/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2006/11/24/typo-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
