<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Chomper Stomping</title>
	
	<link>http://blog.chomperstomp.com</link>
	<description>AJAX/JavaScript/CSS/HTML, Flash Game Development (AS 2.0/AS 3.0), iPhone App Development, Java/PHP/Python/ActionScript and other random techie tidbits I've collected</description>
	<lastBuildDate>Tue, 10 Nov 2009 18:05:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<geo:lat>39.939102</geo:lat><geo:long>-86.138318</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ChomperStomping" type="application/rss+xml" /><feedburner:emailServiceId>ChomperStomping</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Announcing Shout Out!</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/fJ4s6UnF9Uk/</link>
		<comments>http://blog.chomperstomp.com/announcing-shout-out/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:40:03 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[autobiographical]]></category>
		<category><![CDATA[Emote]]></category>
		<category><![CDATA[express]]></category>
		<category><![CDATA[expression]]></category>
		<category><![CDATA[FML]]></category>
		<category><![CDATA[Let it Out]]></category>
		<category><![CDATA[Shout]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[toy]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=339</guid>
		<description><![CDATA[I've decided to offer up to the world a new service. A way to get things off your chest/mind anonymously. I'm sure this is probably the 10,000th one of these (FML comes to mind) but still, I felt like doing a little refresher  on my PHP MySQL skills, so after an hours worth of [...]]]></description>
			<content:encoded><![CDATA[<p>I've decided to offer up to the world a new service. A way to get things off your chest/mind anonymously. I'm sure this is probably the 10,000th one of these (FML comes to mind) but still, I felt like doing a little refresher  on my PHP MySQL skills, so after an hours worth of work, here it is:</p>
<p><a href="http://shoutout.chomperstomp.com">Shout Out!</a></p>
<p>Feel free to stop by and give 'er a shout. I might, from time to time, post best of lists here.</p>
<p>No links, no html, spam bot deterrent. This is kind of like a place where if you just want to vent/complain/emote without bothering your Twitter/Facebook/MySpace/Blog Follower friends, you are free to come and do that. Anything from "blech" to "What an awesome day!" is acceptable. Or even just funny movie quotes.</p>
<p>Features I might add:<br />
* Shout Deletions<br />
* FML API integration (check a box to have your story also submitted to FML)<br />
* Optional identifying info (text field that allows you to associate your shout with a name)<br />
* Word filters to keep it clean<br />
* Allow URL submissions, but verify non-malicious/non-porn URL through call to WOT</p>
<p>If you're worried about the anonymity, the entire thing consists of:<br />
1 PHP page 136 lines of code in length<br />
1 Database with 1 table and 3 fields: unique id, shout submission text, date time stamp</p>
<p>I have absolutely no way of identifying where any of these shouts come from.</p>
<p>Shout away! <img src='http://blog.chomperstomp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/z91fUnd3SFJ4vQ6oerPcvzwYQZQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/z91fUnd3SFJ4vQ6oerPcvzwYQZQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/z91fUnd3SFJ4vQ6oerPcvzwYQZQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/z91fUnd3SFJ4vQ6oerPcvzwYQZQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=fJ4s6UnF9Uk:7JBhRN3nZRU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=fJ4s6UnF9Uk:7JBhRN3nZRU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=fJ4s6UnF9Uk:7JBhRN3nZRU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=fJ4s6UnF9Uk:7JBhRN3nZRU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=fJ4s6UnF9Uk:7JBhRN3nZRU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/fJ4s6UnF9Uk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/announcing-shout-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/announcing-shout-out/</feedburner:origLink></item>
		<item>
		<title>Command Line Subversion Client Mac</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/bMS9Fpgt4F4/</link>
		<comments>http://blog.chomperstomp.com/command-line-subversion-client-mac/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:59:04 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=335</guid>
		<description><![CDATA[How to install and use the Command Line Subversion Client on a Mac.
Installing And Using Command Line Subversion Client On Mac
View more documents from Christopher McCulloh.

Martin Ott's Binaries
Free Subversion Book
]]></description>
			<content:encoded><![CDATA[<p>How to install and use the Command Line Subversion Client on a Mac.</p>
<div style="width:425px;text-align:left" id="__ss_2463652"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/cmcculloh/installing-and-using-command-line-subversion-client-on-mac" title="Installing And Using Command Line Subversion Client On Mac">Installing And Using Command Line Subversion Client On Mac</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installingandusingcommandlinesubversionclientonmac-091110003038-phpapp02&#038;stripped_title=installing-and-using-command-line-subversion-client-on-mac" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installingandusingcommandlinesubversionclientonmac-091110003038-phpapp02&#038;stripped_title=installing-and-using-command-line-subversion-client-on-mac" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/cmcculloh">Christopher McCulloh</a>.</div>
</div>
<p><a href="http://homepage.mac.com/martinott/">Martin Ott's Binaries</a><br />
<a href="http://svnbook.red-bean.com/en/1.5/index.html">Free Subversion Book</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/GYSK7Z6ATj_IPhXpkLn8oZPwlNM/0/da"><img src="http://feedads.g.doubleclick.net/~a/GYSK7Z6ATj_IPhXpkLn8oZPwlNM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GYSK7Z6ATj_IPhXpkLn8oZPwlNM/1/da"><img src="http://feedads.g.doubleclick.net/~a/GYSK7Z6ATj_IPhXpkLn8oZPwlNM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=bMS9Fpgt4F4:kc25eDqqnBk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=bMS9Fpgt4F4:kc25eDqqnBk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=bMS9Fpgt4F4:kc25eDqqnBk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=bMS9Fpgt4F4:kc25eDqqnBk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=bMS9Fpgt4F4:kc25eDqqnBk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/bMS9Fpgt4F4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/command-line-subversion-client-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/command-line-subversion-client-mac/</feedburner:origLink></item>
		<item>
		<title>Technorati stops supporting OpenId</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/uUKZ_VZCH-4/</link>
		<comments>http://blog.chomperstomp.com/technorati-stops-supporting-openid/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 15:34:29 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[autobiographical]]></category>
		<category><![CDATA[web sites]]></category>
		<category><![CDATA[cease]]></category>
		<category><![CDATA[end]]></category>
		<category><![CDATA[ends]]></category>
		<category><![CDATA[halt]]></category>
		<category><![CDATA[halts]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[open id]]></category>
		<category><![CDATA[openId]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[stopped]]></category>
		<category><![CDATA[stops]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[technorati]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=330</guid>
		<description><![CDATA[Technorati has apparently stopped support for OpenId. I used to use OpenId through Technorati to login to my StackOverflow account. However, now I can no longer login to any website using Technorati as my OpenId provider.
So, I did a little digging:
1. Posted a question on meta.stackoverflow.com in case anyone there knew anything.
2. Realized there was [...]]]></description>
			<content:encoded><![CDATA[<p>Technorati has apparently stopped support for OpenId. I used to use OpenId through Technorati to login to my StackOverflow account. However, now I can no longer login to any website using Technorati as my OpenId provider.</p>
<div id="attachment_331" class="wp-caption alignnone" style="width: 772px"><a href="http://stackoverflow.com/users/authenticate"><img src="http://blog.chomperstomp.com/wp-content/uploads/2009/11/technoratiOpenId.png" alt="Technorati OpenId Login Does Not Work." title="technoratiOpenId" width="650" class="size-full wp-image-331" /></a><p class="wp-caption-text">Technorati OpenId Login Does Not Work.</p></div>
<p>So, I did a little digging:</p>
<p>1. <a href="http://meta.stackoverflow.com/questions/29095/technorati-login">Posted a question on meta.stackoverflow.com in case anyone there knew anything.</a></p>
<p>2. <a href="http://meta.stackoverflow.com/questions/27508/why-cant-i-login-to-stackoverflow-using-my-technorati-openid">Realized there was an open question already, posted an answer there (which I have been editing).</a></p>
<p>3. <a href="http://openid.net/get-an-openid/">Looked at openid.net and noticed Technorati was no longer listed (can't confirm it ever was though)</a></p>
<p>4. <a href="http://getsatisfaction.com/technorati/topics/openid_support_has_disappeared_is_it_coming_back">Went to Technorati's website support and saw another person had this very problem</a>. When I tried to login to that site using my Technorati ID it was a no-go, which proves this isn't just a SO problem.</p>
<p>5. Saw that the <a href="http://meta.stackoverflow.com/questions/27508/why-cant-i-login-to-stackoverflow-using-my-technorati-openid/29096#29096">meta question was updated</a> indicating you should e-mail team@stackoverflow.com for further assistance.</p>
<p>I'm REALLY hoping there is some way to re-associate my trilogy accounts with my Google OpenId so I don't loose <a href="http://stackoverflow.com/users/58/cmcculloh">my awesome user number (58) and my ok ranking</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/j0OqaoGmLUqoPArqBbIwhB5A3s4/0/da"><img src="http://feedads.g.doubleclick.net/~a/j0OqaoGmLUqoPArqBbIwhB5A3s4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/j0OqaoGmLUqoPArqBbIwhB5A3s4/1/da"><img src="http://feedads.g.doubleclick.net/~a/j0OqaoGmLUqoPArqBbIwhB5A3s4/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=uUKZ_VZCH-4:Ud0vLYqPypQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=uUKZ_VZCH-4:Ud0vLYqPypQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=uUKZ_VZCH-4:Ud0vLYqPypQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=uUKZ_VZCH-4:Ud0vLYqPypQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=uUKZ_VZCH-4:Ud0vLYqPypQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/uUKZ_VZCH-4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/technorati-stops-supporting-openid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/technorati-stops-supporting-openid/</feedburner:origLink></item>
		<item>
		<title>Mac Subversion Client (SCPlugin) Installation</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/E7izf6HrskM/</link>
		<comments>http://blog.chomperstomp.com/mac-subversion-client-scplugin-installation/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 21:18:07 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion Client]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/mac-subversion-client-scplugin-installation/</guid>
		<description><![CDATA[Installing SCPlugin (Subversion Client)
View more documents from Christopher McCulloh.

]]></description>
			<content:encoded><![CDATA[<div style="width:425px;text-align:left" id="__ss_2452160"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/cmcculloh/installing-scplugin-subversion-client" title="Installing SCPlugin (Subversion Client)">Installing SCPlugin (Subversion Client)</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installinsubversionclient-091108150307-phpapp02&#038;stripped_title=installing-scplugin-subversion-client" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installinsubversionclient-091108150307-phpapp02&#038;stripped_title=installing-scplugin-subversion-client" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/cmcculloh">Christopher McCulloh</a>.</div>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/3ytPWFBSF07VjjZ7YyGac4WR_9w/0/da"><img src="http://feedads.g.doubleclick.net/~a/3ytPWFBSF07VjjZ7YyGac4WR_9w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/3ytPWFBSF07VjjZ7YyGac4WR_9w/1/da"><img src="http://feedads.g.doubleclick.net/~a/3ytPWFBSF07VjjZ7YyGac4WR_9w/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=E7izf6HrskM:VYtmd4FekSM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=E7izf6HrskM:VYtmd4FekSM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=E7izf6HrskM:VYtmd4FekSM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=E7izf6HrskM:VYtmd4FekSM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=E7izf6HrskM:VYtmd4FekSM:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/E7izf6HrskM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/mac-subversion-client-scplugin-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/mac-subversion-client-scplugin-installation/</feedburner:origLink></item>
		<item>
		<title>iPhone programming</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/241B89Ddoig/</link>
		<comments>http://blog.chomperstomp.com/iphone-programming/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:46:43 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Course]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/iphone-programming/</guid>
		<description><![CDATA[I'm working on a mobile computing course for a local college (which explains the lack of posts recently). It's going to be an introduction to Objective-C and iPhone SDK followed by an introduction to the PhoneGap library.
Check it out! I'm posting lectures etc as I finish them. Come spring the whole thing could be locked [...]]]></description>
			<content:encoded><![CDATA[<p>I'm working on a mobile computing course for a local college (which explains the lack of posts recently). It's going to be an introduction to Objective-C and iPhone SDK followed by an introduction to the PhoneGap library.</p>
<p><a href="http://n300.chomperstomp.com">Check it out</a>! I'm posting lectures etc as I finish them. Come spring the whole thing could be locked down behind a password wall and only available to students, but for now, feel free to let me know what you think...</p>

<p><a href="http://feedads.g.doubleclick.net/~a/WofXoh_dva_d5Or05TPeGwbuSrg/0/da"><img src="http://feedads.g.doubleclick.net/~a/WofXoh_dva_d5Or05TPeGwbuSrg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/WofXoh_dva_d5Or05TPeGwbuSrg/1/da"><img src="http://feedads.g.doubleclick.net/~a/WofXoh_dva_d5Or05TPeGwbuSrg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=241B89Ddoig:67Q6bbuggEg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=241B89Ddoig:67Q6bbuggEg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=241B89Ddoig:67Q6bbuggEg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=241B89Ddoig:67Q6bbuggEg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=241B89Ddoig:67Q6bbuggEg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/241B89Ddoig" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/iphone-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/iphone-programming/</feedburner:origLink></item>
		<item>
		<title>HTML 5 Overview</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/LaZhkCtDsRQ/</link>
		<comments>http://blog.chomperstomp.com/html-5-overview/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 00:01:07 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML 5]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=324</guid>
		<description><![CDATA[If you aren't yet familiar with the new features of HTML 5, you should definitely check out this slideshow:
Up to Speed on HTML 5 and CSS 3
View more documents from M. Jackson Wilkinson.

]]></description>
			<content:encoded><![CDATA[<p>If you aren't yet familiar with the new features of HTML 5, you should definitely check out this slideshow:</p>
<div style="width:425px;text-align:left" id="__ss_1739893"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/whafro/up-to-speed-on-html-5-and-css-3" title="Up to Speed on HTML 5 and CSS 3">Up to Speed on HTML 5 and CSS 3</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=refreshdc-html5css3-090719085307-phpapp01&#038;stripped_title=up-to-speed-on-html-5-and-css-3" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=refreshdc-html5css3-090719085307-phpapp01&#038;stripped_title=up-to-speed-on-html-5-and-css-3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/whafro">M. Jackson Wilkinson</a>.</div>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/b8MkIOpEi8KXYMucUl_uveADybE/0/da"><img src="http://feedads.g.doubleclick.net/~a/b8MkIOpEi8KXYMucUl_uveADybE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/b8MkIOpEi8KXYMucUl_uveADybE/1/da"><img src="http://feedads.g.doubleclick.net/~a/b8MkIOpEi8KXYMucUl_uveADybE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=LaZhkCtDsRQ:ztJvPIT5Mlc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=LaZhkCtDsRQ:ztJvPIT5Mlc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=LaZhkCtDsRQ:ztJvPIT5Mlc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=LaZhkCtDsRQ:ztJvPIT5Mlc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=LaZhkCtDsRQ:ztJvPIT5Mlc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/LaZhkCtDsRQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/html-5-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/html-5-overview/</feedburner:origLink></item>
		<item>
		<title>Finding the number of hex tiles inside of a hex shaped grid…</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/CTlmeYoPilM/</link>
		<comments>http://blog.chomperstomp.com/finding-the-number-of-hex-tiles-inside-of-a-hex-shaped-grid/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 02:12:32 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[math & physics]]></category>
		<category><![CDATA[programming concepts]]></category>
		<category><![CDATA[prototyping]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[hex]]></category>
		<category><![CDATA[hex grid]]></category>
		<category><![CDATA[hex tiles]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[theory]]></category>
		<category><![CDATA[tiles]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=318</guid>
		<description><![CDATA[EDIT: There is a mathematical formula that is much better than the method I illustrate below. It is: 3n^2 - 3n + 1
A huge thanks to Sam Hughes for very patiently helping me out with this formula. He's the best mathematician I know...
Here's the JavaScript code to execute this formula (just change maxTiles to be [...]]]></description>
			<content:encoded><![CDATA[<p>EDIT: There is a mathematical formula that is much better than the method I illustrate below. It is: 3n^2 - 3n + 1</p>
<p>A huge thanks to <a href="http://qntm.org/">Sam Hughes</a> for very patiently helping me out with this formula. He's the best mathematician I know...</p>
<p>Here's the JavaScript code to execute this formula (just change maxTiles to be however wide your hex grid is):</p>
<pre>
	var maxTiles = 7;
	var n = Math.ceil((maxTiles - 2) / 2);
	var numberTiles = 3 * Math.pow(n, 2) - 3 * n + 1;
</pre>
<p>Below is the original post:</p>
<hr />
<p>This is kind of like finding the area of a hex grid, except that for some reason none of the formulas I found for doing that would work. Also, finding the area of a triangle made of hex grids won't work with the normal triangle area formula either.</p>
<p>What I am illustrating here is how to find out how many hex tiles are inside of a hex shaped grid of hex tiles.</p>
<p>Here is a picture of the grid:</p>
<p><img alt="" src="http://www.chomperstomp.com/catan/catanArrayVisualization.png" title="Hex shaped grid of hex tiles." class="alignnone" width="600" height="600" /></p>
<p>What you have to do is:</p>
<p>1. Take the half the width of the hex grid rounded down. So, if the hex grid is 7 wide, you take half of seven, 3.5, and round it down to 3. This can also be called "flooring" the number.<br />
2. Take that number and use it to seed a floor loop, which counts down from that number, adding the new number to a grand total each time.<br />
3. Multiply that grand total by 7 and add one for the middle tile (which never got counted).</p>
<p>Here is the code:</p>
<pre>
	var triangleTotal = 0;
	for(var spaces = Math.ceil((maxTiles-1)/2); spaces > 0; spaces--){
		triangleTotal += spaces;
	}
	var triangles = triangleTotal * 6;
	var numberTiles = triangles + 1;
	return numberTiles;
</pre>
<p>You'll notice that I took the total minus 1 divided by 2 and "ceil"ed it, instead of taking the total divided by two and "floor"ing it. It doesn't matter which you do...</p>
<p>Here's a visualization proving this out:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="hexArea" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.chomperstomp.com/catan/hexArea.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.chomperstomp.com/catan/hexArea.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="hexArea" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br />
</object></p>
<p>I only took one math class in college, otherwise this would have probably been very obvious to me as it may seem to you. There is probably even a really fancy easy little formula for this, but I don't know it and couldn't find it...</p>
<p><a href="http://www.chomperstomp.com/catan/catanSnapShot1.html">Here's a page where you can test this formula out in action.</a> Note that a hex is always going to be an odd number of hexes wide, so if you enter an even number and get a funny shaped hex, this formula isn't going to work...</p>

<p><a href="http://feedads.g.doubleclick.net/~a/uMSU05J3h2Dye7vIxSeGMmfYxuk/0/da"><img src="http://feedads.g.doubleclick.net/~a/uMSU05J3h2Dye7vIxSeGMmfYxuk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uMSU05J3h2Dye7vIxSeGMmfYxuk/1/da"><img src="http://feedads.g.doubleclick.net/~a/uMSU05J3h2Dye7vIxSeGMmfYxuk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=CTlmeYoPilM:V7i2nORQF6I:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=CTlmeYoPilM:V7i2nORQF6I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=CTlmeYoPilM:V7i2nORQF6I:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=CTlmeYoPilM:V7i2nORQF6I:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=CTlmeYoPilM:V7i2nORQF6I:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/CTlmeYoPilM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/finding-the-number-of-hex-tiles-inside-of-a-hex-shaped-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/finding-the-number-of-hex-tiles-inside-of-a-hex-shaped-grid/</feedburner:origLink></item>
		<item>
		<title>JavaScript Haxagon Game Board with Hexagon tiles</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/hZG5XlULpm0/</link>
		<comments>http://blog.chomperstomp.com/javascript-haxagon-game-board-with-hexagon-tiles/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 18:41:53 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[math & physics]]></category>
		<category><![CDATA[programming concepts]]></category>
		<category><![CDATA[prototyping]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[video games]]></category>
		<category><![CDATA[Game Programming]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=305</guid>
		<description><![CDATA[
I'm working on a JavaScript version of The Settlers of Catan. The first problem I decided to tackle was constructing (visually and array-structure wise) the game board using nothing but loops (didn't want to hard code it).
This ended up being much more difficult than I thought it would be.
I am going to split this up [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=chompstomp-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=B000W7JWUA" style="width:120px;height:240px;margin:0px 10px 10px 0px;float: left;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>I'm working on a JavaScript version of <a href="http://www.amazon.com/gp/product/B000W7JWUA?ie=UTF8&#038;tag=chompstomp-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B000W7JWUA">The Settlers of Catan</a><img src="http://www.assoc-amazon.com/e/ir?t=chompstomp-20&#038;l=as2&#038;o=1&#038;a=B000W7JWUA" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />. The first problem I decided to tackle was constructing (visually and array-structure wise) the game board using nothing but loops (didn't want to hard code it).</p>
<p>This ended up being much more difficult than I thought it would be.</p>
<p>I am going to split this up into two parts:</p>
<p>1. Setting up the game board visually<br />
2. Setting up the array structure</p>
<p>Creating a Hexagonal game board with hexagonal spaces in JavaScript with for loops:</p>
<p>For this to work properly, you must have an even number of columns and rows. I chose seven since that is what makes up the Settlers of Catan game-board.</p>
<p>You have to split the building of the board into three stages:</p>
<p>1. The expanding stage<br />
2. The apex or middle of the board<br />
3. The contracting stage</p>
<p>I placed everything in one large for loop that counted off the "rows".</p>
<p>I figured out that while the rows are less than half the max rows divided by two (and rounded down) the board would be contracting. The number of tiles you would start with would be equal to the maximum number of tiles divided by two, rounded up, plus the current row number.</p>
<p>Once the number of rows equals exactly half the number of maximum tiles (rounded down) you are on the middle row. In this case the number of tiles is the max number of tiles, no math required.</p>
<p>Otherwise, you are in the contracting stage and the number of tiles you need is equal to the maximum number of tiles, minus the current row, minus half of the maximum rounded down.</p>
<p>Sound complicated? That's because it is. This took me about 30 minutes to get straight in my head after studying the game-board shape, tiles, and making several diagrams and sudo-coding and then writing the actual code and fixing bugs (and deciding if I had to round up or down at certain places).</p>
<p>Here is the actual code:</p>
<pre>&lt;html>
&lt;head>
&lt;style>
img{
	margin-top: -18px;
}
#board{
	padding: 50px 25px;
	background-color: #000;
}
&lt;/style>
&lt;/head>
&lt;body>
&lt;div id="board">error loading&lt;/div>
&lt;/body>
&lt;script>
function boardSetup(){
	var max = 7;
	var html = "";

	for(var row = 0; row &lt; max; row++){
		if(row &lt; Math.floor(max/2)){
			//place spacer tiles
			for(var space = 0; space &lt; (Math.floor(max/2) - row); space++){
				html += '&lt;img src="spacerTile.png" />';
			}

			//place game tiles
			for(var cols = 0; cols &lt; (Math.ceil(max/2) + row); cols++){
				html += '&lt;img src="tile.png" />';
			}
			html += "&lt;br />";
		}else if(row == Math.floor(max/2)){
			for(var cols = 0; cols &lt; max; cols++){
				html += '&lt;img src="tile.png" />';
			}
			html += "&lt;br />";
		}else{
			for(var space = 0; space &lt; (row - Math.floor(max/2)); space++){
				html += '&lt;img src="spacerTile.png" />';
			}
			for(var cols = 0; cols &lt; (max - (row - Math.floor(max/2))); cols++){
				html += '&lt;img src="tile.png" />';
			}
			html += "&lt;br />";
		}
	}

	document.getElementById("board").innerHTML = html;
}

boardSetup();
&lt;/script>
&lt;/html></pre>
<p>Here are the images that go with it:</p>
<p>Here is the tile:<img src="http://blog.chomperstomp.com/wp-content/uploads/2009/08/tile.png" alt="tile" title="tile" width="50" height="59" class="alignnone size-full wp-image-312" /><br />
Here is the spacer. This one is completely invisible: start-><img src="http://blog.chomperstomp.com/wp-content/uploads/2009/08/spacerTile.png" alt="spacerTile" title="spacerTile" width="25" height="55" class="alignnone size-full wp-image-311" />&lt;-end</p>
<p><a href="http://www.chomperstomp.com/catan/catan.html">Here is the code running on my site</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ssmXj-YuuQkXYNCQaEu0eawmr0I/0/da"><img src="http://feedads.g.doubleclick.net/~a/ssmXj-YuuQkXYNCQaEu0eawmr0I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ssmXj-YuuQkXYNCQaEu0eawmr0I/1/da"><img src="http://feedads.g.doubleclick.net/~a/ssmXj-YuuQkXYNCQaEu0eawmr0I/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=hZG5XlULpm0:0b-s0NcET4E:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=hZG5XlULpm0:0b-s0NcET4E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=hZG5XlULpm0:0b-s0NcET4E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=hZG5XlULpm0:0b-s0NcET4E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=hZG5XlULpm0:0b-s0NcET4E:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/hZG5XlULpm0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/javascript-haxagon-game-board-with-hexagon-tiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/javascript-haxagon-game-board-with-hexagon-tiles/</feedburner:origLink></item>
		<item>
		<title>“Command  failed with exit code -1” error when compiling iPhone App for Device – 3.0 | Release build</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/WLa7eZSaG74/</link>
		<comments>http://blog.chomperstomp.com/%e2%80%9ccommand-failed-with-exit-code-1%e2%80%9d-error-when-compiling-iphone-app-for-device-3-0-release-build/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 11:22:35 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=298</guid>
		<description><![CDATA[
I recently installed the iPhone OS 3.0 upgrade on my iMac for developing iPhone Apps in XCode. The App I've been developing started throwing errors when I would try and compile for 3.0 (previously worked in 2.2.1). I fixed all of the errors I could, but I am consistently getting the following error:
Command  failed [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=chompstomp-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=1430224592" style="width:120px;height:240px;float: left;margin-right: 10px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>I recently installed the iPhone OS 3.0 upgrade on my iMac for developing iPhone Apps in XCode. The App I've been developing started throwing errors when I would try and compile for 3.0 (previously worked in 2.2.1). I fixed all of the errors I could, but I am consistently getting the following error:</p>
<p>Command <com.apple.tools.product-pkg-utility> failed with exit code -1</p>
<p>Any time I try and compile for the device (even 2.2.1 now...)</p>
<p>It works fine in the simulator (building for both release and debug) but will not work for the device (for release or debug).</p>
<p>The reason for this is because I accidentally installed the "Snow Leopard" version of the 3.0 SDK instead of the "Leopard" version (I'm just a poor ignorant PC guy who has no idea which animal his OS is named after and just wishes they would call it "X.5" or "X.6" to simplify things).</p>
<hr />
<p>If you found this post helpful, it was supported in part by the amazon links around the site. If you're going to buy a book anyways, why not help support this blog's author by clicking one of the links on this site to do it? If you are looking for a book on iPhone development, this one is amazing: <a href="http://www.amazon.com/gp/product/1430224592?ie=UTF8&#038;tag=chompstomp-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1430224592">Beginning iPhone 3 Development: Exploring the iPhone SDK</a><img src="http://www.assoc-amazon.com/e/ir?t=chompstomp-20&#038;l=as2&#038;o=1&#038;a=1430224592" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>

<p><a href="http://feedads.g.doubleclick.net/~a/cMehb0tSfNRp6RTKXanBcfkSzbk/0/da"><img src="http://feedads.g.doubleclick.net/~a/cMehb0tSfNRp6RTKXanBcfkSzbk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cMehb0tSfNRp6RTKXanBcfkSzbk/1/da"><img src="http://feedads.g.doubleclick.net/~a/cMehb0tSfNRp6RTKXanBcfkSzbk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=WLa7eZSaG74:gJoVE4VJag0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=WLa7eZSaG74:gJoVE4VJag0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=WLa7eZSaG74:gJoVE4VJag0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=WLa7eZSaG74:gJoVE4VJag0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=WLa7eZSaG74:gJoVE4VJag0:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/WLa7eZSaG74" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/%e2%80%9ccommand-failed-with-exit-code-1%e2%80%9d-error-when-compiling-iphone-app-for-device-3-0-release-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/%e2%80%9ccommand-failed-with-exit-code-1%e2%80%9d-error-when-compiling-iphone-app-for-device-3-0-release-build/</feedburner:origLink></item>
		<item>
		<title>iPhone 0S 3.0.1 not supported for development with Xcode SDK 3.0</title>
		<link>http://feedproxy.google.com/~r/ChomperStomping/~3/NkF7LAmbEBA/</link>
		<comments>http://blog.chomperstomp.com/iphone-0s-3-0-1-not-supported-for-development-with-xcode-sdk-3-0/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 16:38:58 +0000</pubDate>
		<dc:creator>Christopher McCulloh</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[iPhone SDK 3.0]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://blog.chomperstomp.com/?p=288</guid>
		<description><![CDATA[
I recently updated my iPhone from iPhone OS Version 3.0 (7A341) to iPhone OS Version 3.0.1 (7A400). When I plugged it into my Mac, I was informed that:
The version of iPhone OS on "Christopher's iPhone" does not match any of the versions of iPhone OS supported for development with this copy of Xcode. Please restore [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=chompstomp-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=1430224592" style="width:120px;height:240px;float: left;margin-right: 10px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>I recently updated my iPhone from iPhone OS Version 3.0 (7A341) to iPhone OS Version 3.0.1 (7A400). When I plugged it into my Mac, I was informed that:</p>
<blockquote><p>The version of iPhone OS on "Christopher's iPhone" does not match any of the versions of iPhone OS supported for development with this copy of Xcode. Please restore the device to a version of the OS listed below. If necessary, the latest version of Xcode is available here.</p></blockquote>
<p>Gee... Thanks... I did a little <a href="http://bc.tech.coop/blog/090731.html">Googling and found</a> that after a recent security update to the iPhone OS Apple, you could no longer build/install development apps on the iPhone. Apparently Apple posted an "advisory" (in PDF format for some reason) outlining a fix for this.</p>
<p>Here is the fix in plain text instead of PDF (why they put this in a PDF is beyond me...):</p>
<blockquote><p>
iPhone OS 3.0.1 Advisory<br />
iPhone OS 3.0 SDK and iPhone OS 3.0.1 software release for<br />
Mac OS X v10.5.7<br />
To continue development with iPhone SDK 3.0 on your iPhone, iPhone 3G and<br />
iPhone 3GS running iPhone OS 3.0.1 will need to perform the following:<br />
1. Log into your Mac with an Admin account and launch the Terminal application<br />
(/Applications/Utilities)<br />
2. Copy and paste the following line into Terminal:<br />
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1<br />
Note: If you installed iPhone SDK 3.0 somewhere other than the default /Developer<br />
location, replace the "/Developer" directory as appropriate.<br />
© 2009 Apple Inc. All rights reserved. Xcode, Apple, the Apple logo, Mac, Mac OS, and Macintosh are<br />
trademarks of Apple Inc., registered in the U.S. and other countries.</p></blockquote>
<p>For some reason, the wonderful person who created the PDF put a hard break after the "/" right before the word "Developer". So if you actually do copy and paste the line into the terminal as they instruct, it doesn't work. However, if you copy and paste the plain text version on this page, it SHOULD work (no guarantees). If you want to copy and paste from the PDF, you will have to type everything following that "/" by hand, THEN it will work... Thanks Apple!</p>
<p><a href="http://adcdownload.apple.com/iphone/iphone_sdk_3.0__final/iphone_os_3.0.1_advisory.pdf">Here is a link to the advisory</a>.</p>
<p><strong>***UPDATE:</strong></p>
<p>Several people have had to use:<br />
<code><br />
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0 /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1</code></p>
<hr />
<p>If you found this post helpful, it was supported in part by the amazon links around the site. If you're going to buy a book anyways, why not help support this blog's author by clicking one of the links on this site to do it? If you are looking for a book on iPhone development, this one is amazing: <a href="http://www.amazon.com/gp/product/1430224592?ie=UTF8&#038;tag=chompstomp-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1430224592">Beginning iPhone 3 Development: Exploring the iPhone SDK</a><img src="http://www.assoc-amazon.com/e/ir?t=chompstomp-20&#038;l=as2&#038;o=1&#038;a=1430224592" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>

<p><a href="http://feedads.g.doubleclick.net/~a/OOMYp1sYwHmqmLPctQhQ9ZdTfbg/0/da"><img src="http://feedads.g.doubleclick.net/~a/OOMYp1sYwHmqmLPctQhQ9ZdTfbg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OOMYp1sYwHmqmLPctQhQ9ZdTfbg/1/da"><img src="http://feedads.g.doubleclick.net/~a/OOMYp1sYwHmqmLPctQhQ9ZdTfbg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=NkF7LAmbEBA:Lb3sCQmM6fk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=NkF7LAmbEBA:Lb3sCQmM6fk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=NkF7LAmbEBA:Lb3sCQmM6fk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?i=NkF7LAmbEBA:Lb3sCQmM6fk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChomperStomping?a=NkF7LAmbEBA:Lb3sCQmM6fk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/ChomperStomping?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChomperStomping/~4/NkF7LAmbEBA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.chomperstomp.com/iphone-0s-3-0-1-not-supported-for-development-with-xcode-sdk-3-0/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://blog.chomperstomp.com/iphone-0s-3-0-1-not-supported-for-development-with-xcode-sdk-3-0/</feedburner:origLink></item>
	</channel>
</rss>
