<?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>Sun, 20 May 2012 19:56:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Galleries Are Fixed Now &#8212; NextGEN Gallery Not Displaying Thickbox Images</title>
		<link>http://mikebrum.com/galleries-are-fixed-now-nextgen-gallery-not-displaying-thickbox-images/</link>
		<comments>http://mikebrum.com/galleries-are-fixed-now-nextgen-gallery-not-displaying-thickbox-images/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 15:44:01 +0000</pubDate>
		<dc:creator>mbrum</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2163</guid>
		<description><![CDATA[After laying down for bed, I had an epiphany last night and got up and based away at the keyboard for a bit. Luckily, the effort wasn&#8217;t wasted, as I was able to fix the issue that caused the problem in the first place. The long story boiled down is that the ThickBox can find [...]]]></description>
			<content:encoded><![CDATA[<p>After laying down for bed, I had an epiphany last night and got up and based away at the keyboard for a bit. Luckily, the effort wasn&#8217;t wasted, as I was able to fix the issue that caused the problem in the first place.</p>
<p>The long story boiled down is that the ThickBox can find a &#8220;group&#8221; of images if you pass it common name in the <em>rel</em> param in your <em>a</em> tag. For instance:</p>
<blockquote><p>&lt;a href=&#8221;http://mikebrum.com/full_image.jpg&#8221; class=&#8221;thickbox&#8221; rel=&#8221;anyString&#8221;&gt;&lt;img src=&#8221;http://mikebrum.com/thumb_image.jpg&#8221; /&gt;&lt;/a&gt;</p></blockquote>
<p>That&#8217;s simple enough. Any link that has the <em>rel</em> param set to &#8220;anyString&#8221; will be shown with Thickbox having &#8220;next&#8221; and &#8220;prev&#8221; links so you don&#8217;t have to view, close, open the next by hand. Very handy feature, for sure!</p>
<p>However, if the <em>rel</em> param happens to have a space in it, this appears to break completely, resulting in the image not being displayed. I&#8217;m sure there&#8217;s some degree of bug on Thickbox&#8217;s side, but I decided to fix it on the <a title="NextGEN Gallery" href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/">NextGEN Gallery</a> side since that&#8217;s code I&#8217;m far more familiar with.</p>
<p>The fix is rather simple. In &lt;your_WP_root&gt;/wp-content/plugins/nextgen-gallery/lib/image.php, find the line:</p>
<blockquote><p>function get_thumbcode($galleryname = &#8221;) {</p></blockquote>
<p>Immediately under that, add the following two lines:</p>
<blockquote><p> // Fix thickbox failure when $galleryname has a space in it<br />
$galleryname = preg_replace( &#8216;/\s+/&#8217;, &#8221;, $galleryname );</p></blockquote>
<p>And that&#8217;s it. That strips the whitespace from the $galleryname variable which is what&#8217;s passed on to the code that populates the <em>rel</em> param in image links for Thickbox.</p>
<p>Just keep in mind that if you make this change on your server, your changes will be overwritten when you perform your next update &#8212; so make a note and be sure to apply this fix again after you upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/galleries-are-fixed-now-nextgen-gallery-not-displaying-thickbox-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technology is Awesome</title>
		<link>http://mikebrum.com/technology-is-awesome/</link>
		<comments>http://mikebrum.com/technology-is-awesome/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 23:00:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://mikebrum.com/?p=2123</guid>
		<description><![CDATA[I&#8217;m flying BOS to PDX via Alaskan and they have wi-fi on the flight. This is the first time I&#8217;ve been able to partake in in-flight internet and it&#8217;s simply awesome. The only said thing is that they don&#8217;t have power &#8211; so when my battery dies, that&#8217;s that. I&#8217;ve dialed down as much as [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m flying BOS to PDX via Alaskan and they have wi-fi on the flight. This is the first time I&#8217;ve been able to partake in in-flight internet and it&#8217;s simply awesome. The only said thing is that they don&#8217;t have power &#8211; so when my battery dies, that&#8217;s that. I&#8217;ve dialed down as much as I can, but I&#8217;m 100% positive that my 15&#8243; MacBook doesn&#8217;t have a 6 hour battery life. I guess it&#8217;s cost-prohibitive to retrofit power into planes after they&#8217;re already in service. Since all airlines get stripped to the superstructure and refitted every so often, it&#8217;s something that&#8217;ll hopefully be added as they continue to service their fleet.</p>
<p>The power issue aside, let me summarize how awesome my current situation is: I&#8217;m sitting in a chair, while flying 34,000 feet in the air, while talking to people hundreds and thousands of miles away via the internet.</p>
<p>If that&#8217;s not enough to BLOW PEOPLE&#8217;S MINDS, I don&#8217;t know what is.</p>
<p>Think about trying to explain this to your grandparents when they were teenagers. They simply couldn&#8217;t comprehend everything beyond people being able to fly. Then, think about telling their grandparents.</p>
<p>To quote Arthur C. Clarke:</p>
<blockquote><p>Any sufficiently advanced  technology is indistinguishable from magic.</p></blockquote>
<p>Think about that for just a minute and realize how true it is. Imagine something as commonplace as television and how it&#8217;d appear to someone from the 1400&#8242;s. Not only would their mind be blown, but you&#8217;d also be considered a demon or a witch. These are people that thought magnets had special quasi-magical properties&#8230; and we have people living 170-280 miles above the surface of the Earth in orbit.</p>
<p>Simply incredible.</p>
<p>At the end of the day, I think what&#8217;s important to remember is to try not to take things for granted. We live in increasingly incredible times. What would be considered impossible just 20 years ago is not only possible, but commonplace for so many people.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/technology-is-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></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 [...]]]></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 [...]]]></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) {</p>
<p>$word = strtolower($word);</p>
<p>// Regex Patterns Needed<br />
$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;/(&#8220;.$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 results for most casual use.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikebrum.com/counting-the-syllables-in-a-word-with-php/feed/</wfw:commentRss>
		<slash:comments>2</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>
	</channel>
</rss>

