<?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>MikeBrum.com &#187; Nerd</title>
	<atom:link href="http://mikebrum.com/category/nerd/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikebrum.com</link>
	<description>Bombarding the net with slightly greasy solar atoms for almost 10 years...</description>
	<lastBuildDate>Thu, 10 Dec 2009 03:40:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Traveling With The iPhone</title>
		<link>http://mikebrum.com/traveling-with-the-iphone/</link>
		<comments>http://mikebrum.com/traveling-with-the-iphone/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 19:13:38 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2092</guid>
		<description><![CDATA[I have to say, traveling with an iPhone is pretty damn awesome. There&#8217;s very little that I couldn&#8217;t do with an iPhone that I do on my laptop. If I was so inclined, I could make this post with my iPhone, but I just happen to be on my laptop and it&#8217;s that much faster [...]]]></description>
			<content:encoded><![CDATA[<p>I have to say, traveling with an iPhone is pretty damn awesome. There&#8217;s very little that I couldn&#8217;t do with an iPhone that I do on my laptop. If I was so inclined, I could make this post with my iPhone, but I just happen to be on my laptop and it&#8217;s that much faster to type.</p>
<p>With the integration with my MacBook, all the Mail settings (I pull down from 3 different servers) and all of my contacts were imported without issue.</p>
<p>Battery life can definitely wind down with hours of app use, but I don&#8217;t think that anyone should expect otherwise. On the flip-side, the iPhone seems to charge rather quickly, so while it&#8217;s a PITA to have to stop and charge it, it luckily doesn&#8217;t end up being a problem.</p>
<p>At the end of this week, I&#8217;ll be in Portland and away from my laptop a lot more. We&#8217;ll see how that works out. Tomorrow I&#8217;ll be back in Boston, which I&#8217;m excited about.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/traveling-with-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP via iPhone</title>
		<link>http://mikebrum.com/wp-via-iphone/</link>
		<comments>http://mikebrum.com/wp-via-iphone/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 04:04:13 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://mikebrum.com/wp-via-iphone/</guid>
		<description><![CDATA[I just downloaded a wordpress app for the iPhone and seeing how well it works. So far, it&#8217;s pretty slick. 
Later, if this goes smoothly, I&#8217;ll figure out how it works with images. Definitely neat!
]]></description>
			<content:encoded><![CDATA[<p>I just downloaded a wordpress app for the iPhone and seeing how well it works. So far, it&#8217;s pretty slick. </p>
<p>Later, if this goes smoothly, I&#8217;ll figure out how it works with images. Definitely neat!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/wp-via-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feedback For Apple</title>
		<link>http://mikebrum.com/feedback-for-apple/</link>
		<comments>http://mikebrum.com/feedback-for-apple/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 13:58:03 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Bitching]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2071</guid>
		<description><![CDATA[I bought an iPhone last night. I have no complaints about the device thus far &#8212; I&#8217;m rather happy. More on that later.
I was asked to take a survey in my email this morning. Surprising for only being awake 15 minutes, I felt like contributing.
Click for a larger image.
Seriously, this is one of the biggest [...]]]></description>
			<content:encoded><![CDATA[<p>I bought an iPhone last night. I have no complaints about the device thus far &#8212; I&#8217;m rather happy. More on that later.</p>
<p>I was asked to take a survey in my email this morning. Surprising for only being awake 15 minutes, I felt like contributing.</p>
<div id="attachment_2072" class="wp-caption alignnone" style="width: 510px"><a href="http://mikebrum.com/wp-content/uploads/2009/11/Picture-1.png"><img class="size-medium wp-image-2072" title="Apple Feedback Survey Screen Shot" src="http://mikebrum.com/wp-content/uploads/2009/11/Picture-1.png" alt="Apple Feedback Survey Screen Shot" width="500" height="273" /></a><p class="wp-caption-text">Apple Feedback Survey Screen Shot</p></div>
<p>Click for a larger image.</p>
<p>Seriously, this is one of the biggest things that drives me nuts about the Apple store. I just want to go in and make a purchase &#8212; like any other normal store in the world. I don&#8217;t want &#8220;an experience&#8221;. I also don&#8217;t want to sit around while some young 20 something tries to make small talk with me and fails miserably.</p>
<p>I just want to say &#8220;this isn&#8217;t working because you&#8217;re an Apple Store employee and I&#8217;m not nor want to be one&#8221;.</p>
<p>&#8230;but I&#8217;m sure it&#8217;d just be a waste of time &#8212; like the entirety of the Apple Store &#8220;experience&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/feedback-for-apple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s Compile Some win32 Binaries</title>
		<link>http://mikebrum.com/lets-compile-some-win32-binaries/</link>
		<comments>http://mikebrum.com/lets-compile-some-win32-binaries/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 15:31:03 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2069</guid>
		<description><![CDATA[Many people that read this probably know that I do tech work/support for BME from time to time. Starting at 1900 on 20091101, the community site IAM kinda went haywire. What&#8217;s somewhat unique about IAM is that it leverages native win32 binaries on the server side. They&#8217;re not scripts that a JIT compiler reads or [...]]]></description>
			<content:encoded><![CDATA[<p>Many people that read this probably know that I do tech work/support for <a href="http://bme.com/">BME</a> from time to time. Starting at 1900 on 20091101, the community site <a href="http://iam.bmezine.com/">IAM</a> kinda went haywire. What&#8217;s somewhat unique about IAM is that it leverages native win32 binaries on the server side. They&#8217;re not scripts that a JIT compiler reads or run on the .Net framework &#8212; they&#8217;re actual win32 compiled binaries that handle all of the CGI requests and respond to the initial requests. I can&#8217;t just log in, change a few lines of code and then &#8220;the problem&#8217;s fixed&#8221; like someone can do with PHP, Python or Perl. And since the original developer (Shannon Larratt) is no longer involved in BME, I had to figure things out. </p>
<p>After eliminating any environmental factors, I went code diving. I finally isolated the issue (which I&#8217;m still surprised at &#8212; it was in no way obvious) and spec&#8217;ed out the scope of the changes that were needed. </p>
<p>As I mentioned above, these are win32 binaries &#8212; so I then had to set up a dev environment locally before I could recompile any of them. What makes this more fun is that I&#8217;m a Mac and Linux user at home &#8212; so I had to kick up a VM (thank you <a href="http://www.vmware.com/products/fusion/">VMWare Fusion</a>!) to do all of that work in. Only then could I actually make my changes and spin up some new binaries for testing and deployment to the webserver. </p>
<p>What a pain in the ass!</p>
<p>But after all is said and done, I got everything working and everyone seems to be a lot happier. I definitely feel like a super hero. </p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/lets-compile-some-win32-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Catching Up With Lego</title>
		<link>http://mikebrum.com/catching-up-with-lego/</link>
		<comments>http://mikebrum.com/catching-up-with-lego/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 04:13:55 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Lego]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2066</guid>
		<description><![CDATA[I&#8217;ve been &#8220;getting back into&#8221; Lego recently. I have always been a huge Lego fan since I was a kid. I still have a giant tub of Lego from when I was younger and I&#8217;ve been recently buying new sets and having a great time with it. I tend to gravitate towards building more interactive [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been &#8220;getting back into&#8221; Lego recently. I have always been a huge Lego fan since I was a kid. I still have a giant tub of Lego from when I was younger and I&#8217;ve been recently buying new sets and having a great time with it. I tend to gravitate towards building more interactive models &#8212; which is why Technic has always appealed to me and why that&#8217;s where I began when I started buying sets again.</p>
<p>Being the nerd that I am, I&#8217;ve been spending a lot of time looking at other models that people have been making &#8211; both Technic models and any assortment of random stuff that people make. </p>
<p>And OMFG is some of the stuff people make AMAZING!!! </p>
<p>Seriously, some of the things people create with nothing but a bunch of Lego bricks is unreal. Mind blowingly impressive.</p>
<p>The sad thing that I&#8217;ve realized is that by being &#8220;out of the loop&#8221; for so many years, I&#8217;m not only horribly out of practice, but I don&#8217;t have the majority of the cool new pieces that have really allowed people to take Lego model making to a whole new level. </p>
<p>I think I&#8217;m just going to have to start branching out begin getting additional sets beyond Technic to supplement my 25+ year old basic Lego bricks so I have better model making options. I&#8217;ll just have to add it to one of my wishlists!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/catching-up-with-lego/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning Up Maildir Directories</title>
		<link>http://mikebrum.com/cleaning-up-maildir-directories/</link>
		<comments>http://mikebrum.com/cleaning-up-maildir-directories/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 00:56:21 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2062</guid>
		<description><![CDATA[I have a TON of old messages to clean up in a maildir style directory. I don&#8217;t want to just delete them, but I do need to clear some space. Unfortunately, setting up a mail account to download and delete them will take forever.
A few Google searches have revealed this fun tool: cleanup-maildir.
USAGE
cleanup-maildir [OPTION].. COMMAND [...]]]></description>
			<content:encoded><![CDATA[<p>I have a TON of old messages to clean up in a maildir style directory. I don&#8217;t want to just delete them, but I do need to clear some space. Unfortunately, setting up a mail account to download and delete them will take forever.</p>
<p>A few Google searches have revealed this fun tool: <a title="Cleanup Maildir" href="http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/">cleanup-maildir</a>.</p>
<blockquote><p>USAGE<br />
cleanup-maildir [OPTION].. COMMAND FOLDERNAME..</p>
<p>DESCRIPTION<br />
Cleans up old messages in FOLDERNAME; the exact action taken<br />
depends on COMMAND.  (See next section.)<br />
Note that FOLDERNAME is a name such as &#8216;Drafts&#8217;, and the<br />
corresponding maildir path is determined using the values of<br />
maildir-root, folder-prefix, and folder-seperator.</p>
<p>COMMANDS<br />
archive &#8211; move old messages to subfolders based on message date<br />
trash   &#8211; move old message to trash folder<br />
delete  &#8211; permanently delete old messages</p></blockquote>
<p>There it is in a nutshell. Not only will this let you totally cleanup a maildir mailbox, but since it&#8217;s just a single python script, it&#8217;ll let you automate any archiving or deletion tasks to your heart&#8217;s content &#8212; either as a single user or as an admin keeping an entire system under control.</p>
<p>It&#8217;s worth bouncing off of the project page for some examples and for a direct download link for the script. Just &#8220;save as&#8221; and copy the script to the host with your mailbox.</p>
<p>Keep in mind that you need python installed. I&#8217;m currently testing it with version 2.4.5 and I&#8217;ve not run into any trouble.</p>
<p>Definitely a good tool to keep around for just these situations!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/cleaning-up-maildir-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting The Syllables In A Word With PHP</title>
		<link>http://mikebrum.com/counting-the-syllables-in-a-word-with-php/</link>
		<comments>http://mikebrum.com/counting-the-syllables-in-a-word-with-php/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 03:20:30 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=1902</guid>
		<description><![CDATA[Years and many site revisions ago, I used to have a very basic haiku page on my site. People could submit their own haiku and bring up random haiku that were submitted previously.
The only problem that I had was that either people couldn&#8217;t count or they had a different idea on the classic haiku format [...]]]></description>
			<content:encoded><![CDATA[<p>Years and many site revisions ago, I used to have a very basic haiku page on my site. People could submit their own haiku and bring up random haiku that were submitted previously.</p>
<p>The only problem that I had was that either people couldn&#8217;t count or they had a different idea on the classic haiku format (three lines with five, seven and five syllables, respectively). Thinking that there was no meaningful way to check the number of syllables in a word via code, I never pursued it any further and just left it as-is.</p>
<p>For no real reason beyond random inspiration, I revisited this idea and came up with a pretty decent function that will take a word and simply return the number of syllables.</p>
<p>Here&#8217;s what the code looks like:</p>
<blockquote><p>function count_syllables($word) { $word = strtolower($word);</p>
<p>  // Regex Patterns Needed $triples = &#8220;dn\&#8217;t|eau|iou|ouy|you|bl$&#8221;;<br />
  $doubles = &#8220;ai|ae|ay|au|ea|ee|ei|eu|ey|ie|ii|io|oa|oe|oi|oo|ou|oy|ue|uy|ya|ye|yi|yo|yu&#8221;;<br />
  $singles = &#8220;a|e|i|o|u|y&#8221;;<br />
  $vowels = &#8220;/(&#8221;.$triples.&#8221;|&#8221;.$doubles.&#8221;|&#8221;.$singles.&#8221;)/&#8221;;<br />
  $trailing_e = &#8220;/e$/&#8221;; $trailing_s = &#8220;/s$/&#8221;;</p>
<p>  // Cleaning up word endings<br />
  $word = preg_replace($trailing_s, &#8220;&#8221;, $word);<br />
  $word = preg_replace($trailing_e, &#8220;&#8221;, $word);</p>
<p>  // Count # of &#8220;vowels&#8221;<br />
  preg_match_all($vowels, $word, $matches );</p>
<p>  $syl_count = count($matches[0]);<br />
  return $syl_count; <br />
 }
</p></blockquote>
<p>It works based on the following assumptions:</p>
<ul>
<li>The number of syllables a word has is equal to the number of &#8220;vowel sounds&#8221; in the word</li>
<li>A &#8220;vowel sound&#8221; can be defined largely by series of consecutive vowels (greater than or equal to one) with a few exceptions</li>
<li>There are certain instances in which a &#8220;vowel sound&#8221; doesn&#8217;t indicate a new syllable</li>
</ul>
<p>The letter groupings defined in $triples, $doubles and $singles (which get concatenated into the pattern in $vowels) are the summation of these assumptions. To handle the third point, I remove trailing &#8220;s&#8221; and &#8220;e&#8221; letters from words. Since I&#8217;ve removed any &#8220;e&#8221; from the end of words and the suffix &#8220;-able&#8221; is two syllables, I look for the pattern &#8220;bl$&#8221; to account for these discrepancies.</p>
<p>Also, to account for contractions, I&#8217;ve found that the string &#8220;n&#8217;t&#8221; preceded by the letter &#8220;d&#8221; typically should count as a vowel sound. Just finding the string &#8220;n&#8217;t&#8221; in a word doesn&#8217;t necessarily count as a vowel sound by itself. This allows us to properly differentiate between the contraction such as &#8220;can&#8217;t&#8221; and &#8220;couldn&#8217;t&#8221;.</p>
<p>For the most part, I&#8217;ve matched up any two-vowel pair with the exception of &#8220;ia&#8221;. This allows us to treat &#8220;i&#8221; and &#8220;a&#8221; as single vowels in words like &#8220;pliable&#8221; where they&#8217;d be otherwise be treated as a single vowel sound if the pair &#8220;ia&#8221; was added to the regex pattern.</p>
<p>I&#8217;m sure there&#8217;s all sorts of additional edge cases that I&#8217;m missing. And additionally, any non-English word has a chance of not abiding by these rules. The good thing is that if there&#8217;s any glaring holes, you can add new vowel sounds to the patterns above. Since preg_match_all() &#8220;short circuits&#8221; on a successful match (meaning that it will start at the next character after a match is found and start at the beginning of the match string), be sure to add them at an appropriate spot in the list. This also explains why the &#8220;larger&#8221; patterns should probably come first.</p>
<p>All-in-all, the function is fairly tight and small for what it does. With a minor caveat that there may be exceptions to the results it returns for weird edge cases, this should provide sufficiently accurate and efficient</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/counting-the-syllables-in-a-word-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Time For Lego?</title>
		<link>http://mikebrum.com/time-for-lego/</link>
		<comments>http://mikebrum.com/time-for-lego/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 12:40:10 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Lego]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=1866</guid>
		<description><![CDATA[I&#8217;ve been quite obsessed with Lego in the recent past. Frankly, I&#8217;ve been obsessed with Lego for more than 20 years, but the recent past has seen a resurgence in that obsession. 
Not that long ago, I shot a time-lapse of a Lego 8294 Excavator build. It was a fun learning experience (the shoot), but [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been quite obsessed with Lego in the recent past. Frankly, I&#8217;ve been obsessed with Lego for more than 20 years, but the recent past has seen a resurgence in that obsession. </p>
<p>Not that long ago, I shot a <a href="http://mikebrum.com/lego-8294-excavator-build/" title="Lego 8294 Excavator Build">time-lapse of a Lego 8294 Excavator build</a>. It was a fun learning experience (the shoot), but more than a little work. </p>
<p>I currently have a new <a href="https://shop.lego.com/Product/?p=8265&#038;sku=71365a1b-4717-45cd-92fd-216a3818995e" title="Lego 8265 Front Loader">Lego 8265 Front Loader</a> sealed in its box sitting just behind me that I need to assemble. I haven&#8217;t been able to pull the hours and work through it. I want to do another time-lapse because the first one seemed to be well received. However, the time logistics have me wondering if it&#8217;s worth putting off the build (which I want to get to because I&#8217;ve had it for a couple of weeks now!) to shoot the time-lapse or not. </p>
<p>I guess I can always go back and shoot a build later &#8212; I just hate having it sit there ignored, but I don&#8217;t have a ton of free time right now. </p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/time-for-lego/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Database Management On OS X</title>
		<link>http://mikebrum.com/mysql-database-management-on-os-x/</link>
		<comments>http://mikebrum.com/mysql-database-management-on-os-x/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 03:09:30 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=1861</guid>
		<description><![CDATA[For the longest time, I&#8217;ve used phpMyAdmin to manage my MySQL databases when a UI was required. While it definitely gets the job done, I was never a fan of the web interface and I figured it was the best option available. 
A few weeks ago while in LA, I was shown Sequel Pro. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time, I&#8217;ve used <a href="http://www.phpmyadmin.net/" title="phpMyAdmin">phpMyAdmin</a> to manage my MySQL databases when a UI was required. While it definitely gets the job done, I was never a fan of the web interface and I figured it was the best option available. </p>
<p>A few weeks ago while in LA, I was shown <a href="http://www.sequelpro.com/" title="Sequel Pro">Sequel Pro</a>. It&#8217;s exactly what I&#8217;ve been looking for. It&#8217;s kinda like a Macified SQL Query Analyzer tool &#8211; which is awesome. Oh, and it&#8217;s free!</p>
<p>One of the greatest features is that when you&#8217;re configuring a database to connect to, you can specify an SSH host to tunnel through for the connection. This is great because it allows you to prevent having to open up your MySQL privileges to everyone (especially useful if you connect from multiple networks or if the IP of those networks changes) and you can specify separate credentials for the SSH tunnel and the database login (since most people will have different accounts and passwords for each.</p>
<p>Sequel Pro has definitely earned a spot on my dock.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/mysql-database-management-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;watch&#8217; Command For OS X</title>
		<link>http://mikebrum.com/watch-command-for-os-x/</link>
		<comments>http://mikebrum.com/watch-command-for-os-x/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 21:22:16 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=1856</guid>
		<description><![CDATA[I just discovered today that the &#8216;watch&#8217; command isn&#8217;t natively available on OS X. You can apparently get it through Macports. Since I don&#8217;t have Macports installed, this seemed like a very heavy solution for a rather small problem.
Looking for another solution, I opted for a basic while loop &#8212; which is a shell command. [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered today that the &#8216;watch&#8217; command isn&#8217;t natively available on OS X. You can apparently get it through <a title="Macports" href="http://www.macports.org/">Macports</a>. Since I don&#8217;t have Macports installed, this seemed like a very heavy solution for a rather small problem.</p>
<p>Looking for another solution, I opted for a basic while loop &#8212; which is a shell command. My basic command is going to look something like:</p>
<blockquote><p><code>while echo "This prints every 5 seconds" ; do clear ; sleep 5 ; done</code></p></blockquote>
<p>It&#8217;s not as useful as watch in that you don&#8217;t have the additional time output, but it definitely works and doesn&#8217;t require any additional installs to get the data from the command line.</p>
<p>For the creative and motivated, it probably wouldn&#8217;t be difficult to make a very simple wrapper script to more closely match the watch output by leveraging a while loop. You&#8217;re probably better off just getting a compiled binary at that point, but it might be an interesting exercise regardless.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/watch-command-for-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
