<?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>Spellbound Ramblings</title>
	<atom:link href="http://lancespellman.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lancespellman.com</link>
	<description>A blog from Lance Spellman</description>
	<lastBuildDate>Wed, 09 Jan 2013 14:07:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My Sports Rule Changes for 2013</title>
		<link>http://lancespellman.com/2013/01/09/my-sports-rule-changes-for-2013/</link>
		<comments>http://lancespellman.com/2013/01/09/my-sports-rule-changes-for-2013/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 14:07:19 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[baseball]]></category>
		<category><![CDATA[basketball]]></category>
		<category><![CDATA[changes]]></category>
		<category><![CDATA[football]]></category>
		<category><![CDATA[hockey]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[sports]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=290</guid>
		<description><![CDATA[Football: Eliminate pass interference as a penalty. If you&#8217;re man enough to catch a ball while people are knocking you all over the field, then you&#8217;ve got my attention. As it is now, football has become a crapshoot and frankly, &#8230; <a href="http://lancespellman.com/2013/01/09/my-sports-rule-changes-for-2013/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<ul>
<li>Football: Eliminate pass interference as a penalty.  If you&#8217;re man enough to catch a ball while people are knocking you all over the field, then you&#8217;ve got my attention.  As it is now, football has become a crapshoot and frankly, boring</li>
<li>Football: Remove all pads and helmets.</li>
<li>Baseball: Eliminate the Home Run. Hit it out of the park and you&#8217;re out. Runners return to bases.</li>
<li>Hockey: Eliminate offsides.</li>
<li>Basketball: Move the goal up to 13&#8242;.  Allow each player only 2 fouls before they are out of the game.</li>
<li>Soccer: Eliminate fouls. Man up.</li>
<li>Soccer: Any player who lays on the ground for more than :30 shall be removed from the game permanently. Man up.</li>
</ul>
<p>There. I&#8217;m sure all League Commissioners will come running to my door for further advice on rule changes for 2014 <img src='http://lancespellman.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2013/01/09/my-sports-rule-changes-for-2013/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fiscal cliff agreement&#8230;disappointing</title>
		<link>http://lancespellman.com/2013/01/02/fiscal-cliff-agreement-disappointing/</link>
		<comments>http://lancespellman.com/2013/01/02/fiscal-cliff-agreement-disappointing/#comments</comments>
		<pubDate>Wed, 02 Jan 2013 14:59:31 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=288</guid>
		<description><![CDATA[I grew up a Reagan Republican. I believe in fiscal conservatism, a balanced budget, and limited government. At one time, I was a coordinating member of the Concord Coalition to reduce our federal debt. I also believe in the Bill &#8230; <a href="http://lancespellman.com/2013/01/02/fiscal-cliff-agreement-disappointing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I grew up a Reagan Republican.  I believe in fiscal conservatism, a balanced budget, and limited government. At one time, I was a coordinating member of the Concord Coalition to reduce our federal debt. I also believe in the Bill of Rights, economic freedom, and moral tolerance. So during the GW Bush years, I lost faith with the party of my youth as I saw huge contradictions in what my party said it was about, and how it acted.  Irresponsible tax cuts when facing huge deficits caused by vain, misguided war mongering.  Patriot Act laws that cast shame on all the moral principles this country ever said it stood for. Individual privacies&#8230;gone.  Torture of prisoners. Detention without formal arrest or cause.  Fascism started with far less ammunition.</p>
<p>While I&#8217;ve never endorsed the Democratic party, I&#8217;ve certainly voted for them in the last several elections to try and bring balance back to our country. The social liberal part of my character also embraces the values of providing for the less fortunate, for universal health care, and equity for all regardless of sex, race, religion, or sexual identity, qualities I typically find lacking in Republican talking points.</p>
<p>In the aftermath of the fiscal cliff agreement, I expected to be happy with the outcome.  Increased taxes on the wealthy appeals to the social equity vision, but unfortunately, there is nothing, so far, to address the spending side of the equation.  It&#8217;s not enough to simply increase revenues.  If there&#8217;s no discipline to also restrain and cutback on spending, taxes will simply be a further drain on long-term economic activity.  </p>
<p>And for those clapping your hands that you finally socked-it-to-the-wealthy, you didn&#8217;t get away without collateral damage.  Neither party was willing to use up negotiating chips defending the expiration of the payroll tax cut, which means you got a 2% tax increase as well.  Worse than that, businesses will be encouraged to continue and accelerate plans they&#8217;ve been executing for years&#8230;to reduce payrolls and use independent contractors that don&#8217;t cost them payroll taxes or healthcare benefits.  See <a href="http://www.forbes.com/sites/igorgreenwald/2012/12/31/happy-higher-payroll-taxes/" title="Happy Higher Payroll Taxes" target="_blank">Igor Greenwald&#8217;s Forbes article</a> for more details.</p>
<p>Nobody wants higher taxes for themself.  We would only do so to support a higher purpose. So what is the higher purpose now?  To pay for our past sins of spending irresponsibly? And will we learn from that, or will we continue to spend recklessly making not only this rise in taxes permanent, but insure a future tax raise as well. Obviously, the cycle can&#8217;t continue indefinitely as economic growth disappears.  </p>
<p>So we have made one hard choice&#8230;seeing the need to raise revenues, we have raised taxes.  Now we MUST finish the job and address the spending side of the equation, or it&#8217;s cutting off our nose to spite our face.  I encourage everyone, elected officials and those who influence them, to keep working until we have equal results on spending.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2013/01/02/fiscal-cliff-agreement-disappointing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In wake of Sandy Hook, it&#8217;s time for gun control</title>
		<link>http://lancespellman.com/2012/12/14/in-wake-of-sandy-hook-its-time-for-gun-control/</link>
		<comments>http://lancespellman.com/2012/12/14/in-wake-of-sandy-hook-its-time-for-gun-control/#comments</comments>
		<pubDate>Fri, 14 Dec 2012 22:44:41 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=285</guid>
		<description><![CDATA[For years I&#8217;ve been tolerant of the people who argue against gun control. I&#8217;ve understood the constitutional argument, the argument that only criminals would have guns, the ability to protect yourself. But no longer. We&#8217;ve seen too many incidents like &#8230; <a href="http://lancespellman.com/2012/12/14/in-wake-of-sandy-hook-its-time-for-gun-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For years I&#8217;ve been tolerant of the people who argue against <em>gun control</em>.  I&#8217;ve understood the constitutional argument, the argument that only criminals would have guns, the ability to protect yourself.  But no longer.  We&#8217;ve seen too many incidents like Sandy Hook.  It&#8217;s time to act.</p>
<p>&#8220;With all the carnage from gun violence in our country, it&#8217;s still almost impossible to believe that a mass shooting in a kindergarten class could happen. It has come to that. Not even kindergarteners learning their ABC&#8217;s are safe. We heard after Columbine that it was too soon to talk about gun laws. We heard it after Virginia Tech. After Tucson and Aurora and Oak Creek. And now we are hearing it again. For every day we wait, 34 more people are murdered with guns. Today, many of them were five-year olds. President Obama rightly sent his heartfelt condolences to the families in Newtown. But the country needs him to send a bill to Congress to fix this problem. Calling for &#8216;meaningful action&#8217; is not enough. We need immediate action. We have heard all the rhetoric before. What we have not seen is leadership &#8211; not from the White House and not from Congress. That must end today. This is a national tragedy and it demands a national response. My deepest sympathies are with the families of all those affected, and my determination to stop this madness is stronger than ever.&#8221;</p>
<p>- Michael Bloomberg, 12/14/12</p>
<p>http://www.mayorsagainstillegalguns.org/html/media-center/pr013-12.shtml</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2012/12/14/in-wake-of-sandy-hook-its-time-for-gun-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium Appcelerator and Zipfile module</title>
		<link>http://lancespellman.com/2012/01/17/titanium-appcelerator-and-zipfile-module/</link>
		<comments>http://lancespellman.com/2012/01/17/titanium-appcelerator-and-zipfile-module/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:07:11 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[Titanium]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=267</guid>
		<description><![CDATA[I was working on an Titanium Appcelerator project yesterday where I needed to download a zip file to a mobile device, then extract its contents. After doing a little research, I found the Titanium Zipfile module out on Github. Ultimately, &#8230; <a href="http://lancespellman.com/2012/01/17/titanium-appcelerator-and-zipfile-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was working on an <em>Titanium</em> Appcelerator project yesterday where I needed to download a zip file to a mobile device, then extract its contents.  After doing a little research, I found the Titanium <a href="https://github.com/TermiT/ZipFile" title="Zipfile module at Github" target="_blank" rel="nofollow">Zipfile module out on Github</a>.  Ultimately, this is exactly what I needed, but there were some stumbling blocks along the way so I thought I&#8217;d document them (and the solutions) here. </p>
<p>First off, the latest Zipfile module (as of this writing) is version 0.1.21.  This version is not available as a binary download from the Github repository.  Fortunately, <a href="http://developer.appcelerator.com/question/39751/zipfile--mobile-titanium-module-iphone" title="Appcelerator forum Zipfile question" target="_blank" rel="nofollow">this post</a> led me to a <a href="http://kosso.co.uk/stuff/zipfile-iphone-0.1.21.zip" title="Zipfile 0.1.21 download" target="_blank" rel="nofollow">download</a> for it.</p>
<p>I found this <a href="http://developer.appcelerator.com/question/45471/how-to-save-a-remote-imagepicture-to-database-or-filesystem" title="downloading a remote file" target="_blank" rel="nofollow">nice piece of code</a> Dan Tamas posted in an answer to a question about downloading image files. I promptly copied that off to a FileManager.js file to &#8216;require&#8217; into the app.</p>
<p>As I started testing, it wasn&#8217;t working and I didn&#8217;t know whether the file wasn&#8217;t getting downloaded or wasn&#8217;t getting extracted. By default, my simulator run configuration was setup for INFO.  Turning to DEBUG revealed that it wasn&#8217;t able to locate the zip file.  After checking that paths were being set correctly, I found <a href="https://github.com/TermiT/ZipFile/issues/8" title="Can't find zipfile" target="_blank" rel="nofollow">this note</a> at the Github project&#8217;s issues tab that applies to the 1.8x SDK codestream.</p>
<p>Replacing the following example code from the documentation:</p>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">zipfile.<span style="color: #660066;">extract</span><span style="color: #009900;">&#40;</span> &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; Ti.<span style="color: #660066;">Filesystem</span>.<span style="color: #660066;">applicationDataDirectory</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&#8216;/Archive.zip&#8217;</span><span style="color: #339933;">,</span> &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; Ti.<span style="color: #660066;">Filesystem</span>.<span style="color: #660066;">applicationDataDirectory</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>with this:</p>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> appDir <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">Network</span>.<span style="color: #660066;">decodeURIComponent</span><span style="color: #009900;">&#40;</span> &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; Ti.<span style="color: #660066;">Filesystem</span>.<span style="color: #660066;">applicationDataDirectory</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span> &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #3366CC;">&#8216;file://localhost&#8217;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&#8221;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">zipfile.<span style="color: #660066;">extract</span><span style="color: #009900;">&#40;</span>appDir<span style="color: #339933;">+</span><span style="color: #3366CC;">&#8216;Archive.zip&#8217;</span><span style="color: #339933;">,</span> appDir<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>did in fact solve the issue and everything works great from there.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2012/01/17/titanium-appcelerator-and-zipfile-module/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IBM Sametime 8.5.2 and Growl</title>
		<link>http://lancespellman.com/2012/01/09/ibm-sametime-8-5-2-and-growl/</link>
		<comments>http://lancespellman.com/2012/01/09/ibm-sametime-8-5-2-and-growl/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:38:19 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[GNTP]]></category>
		<category><![CDATA[Growl]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[Sametime]]></category>
		<category><![CDATA[Skype]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=258</guid>
		<description><![CDATA[We&#8217;ve recently completed a full Sametime 8.5.2 installation for ourselves and it&#8217;s really powerful. Chat, group chat, screen sharing, audio and video calls, instant meeting rooms, web meetings, chat gateways to other IM services, lots of great stuff. We&#8217;ll probably &#8230; <a href="http://lancespellman.com/2012/01/09/ibm-sametime-8-5-2-and-growl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve recently completed a full <em>Sametime</em> 8.5.2 installation for ourselves and it&#8217;s really powerful.  Chat, group chat, screen sharing, audio and video calls, instant meeting rooms, web meetings, chat gateways to other IM services, lots of great stuff.  We&#8217;ll probably do a screencast on it at some point in the near future.  As a long-time Skype and Mac user though, I miss Growl integration.  If you&#8217;ve not used Growl, it&#8217;s a notification system that allows many applications to register with it and post notifications through it.  For Skype, this takes the form of a little grey bubble that appears in the bottom right corner (for me) of the screen when a new chat comes in.  It&#8217;s visible for about 2 seconds, can be clicked to take me directly into Skype, and then it goes away.</p>
<p>
<img src="http://lancespellman.com/wordpress/wp-content/uploads/2012/01/growl_sample2-300x134.png" alt="" title="Growl Bubble Notification" width="300" height="134" class="aligncenter size-medium wp-image-263" /></p>
<p>It&#8217;s great for monitoring conversations as they go by without necessarily having to command-tab over to that application all the time.  </p>
<p>Anyway, I&#8217;d like to see a Sametime implementation of notifications to Growl.  Growl has an API they call GNTP (Growl Network Transport Protocol) http://growl.info/documentation/developer/gntp.php#intro, that has many language bindings, including Java with jgntp, http://code.google.com/p/jgntp/  Sametime has a Java API so it shouldn&#8217;t be very difficult to build a client plug-in to add Growl capability preferences. I don&#8217;t think anyone&#8217;s done it yet, so there&#8217;s your roadmap and ping me when you&#8217;ve got it done <img src='http://lancespellman.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2012/01/09/ibm-sametime-8-5-2-and-growl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mobile CRM for Notes:  An iPhone client for contact management</title>
		<link>http://lancespellman.com/2011/12/21/mobile-crm-for-notes-an-ios-client-for-contact-management/</link>
		<comments>http://lancespellman.com/2011/12/21/mobile-crm-for-notes-an-ios-client-for-contact-management/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 22:03:36 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Appcelerator]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Lotus Domino]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Titanium Appcelerator]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Titanium]]></category>
		<category><![CDATA[WorkFlow Studios]]></category>

		<guid isPermaLink="false">http://lancespellman.com/?p=248</guid>
		<description><![CDATA[If there&#8217;s one application that proliferated like wild-fire in the Lotus Notes community over the years, it was CRM (contact relationship management).   Whether internally written, or bought from a packaged vendor, there were hundreds implemented around the world. While mobile &#8230; <a href="http://lancespellman.com/2011/12/21/mobile-crm-for-notes-an-ios-client-for-contact-management/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If there&#8217;s one application that proliferated like wild-fire in the Lotus Notes community over the years, it was CRM (contact relationship management).   Whether internally written, or bought from a packaged vendor, there were hundreds implemented around the world.</p>
<p>While mobile devices have been great at providing a localized set of contacts, it hasn&#8217;t been practical to store/sync full CRM datasets that might be hundreds of thousands of records.  In the traditional sense of a client-server solution, it makes sense to have a <em>Mobile CRM</em> device provide an intuitive interface to this data, while maintaining it in the back-end system (whether Notes or something else).</p>
<p><a href="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/companies.png"><img class="alignnone  wp-image-250" title="Company List" src="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/companies-157x300.png" alt="Company List" width="157" height="300" style="float:right;"/></a>Recently, my company has developed an iPhone Mobile CRM interface for company and contact information.  This client will be available for free in the App Store soon. What makes the client particularly useful is that when a profile is filled out, it can work against any number of Notes-based CRMs.  The client connects to an intermediate API application running on the Notes server that knows how to get data from the host CRM and provide it to the Mobile CRM client.</p>
<p>I&#8217;ll be writing more about this in the coming weeks with diagrams of how the infrastructure works.  In the meantime, we&#8217;ve got a couple of clients who are beta testing against their own CRMs.  I&#8217;m excited about this project as it really gave us a chance to work through the full spectrum of an Appcelerator Titanium project for client server communications to the Mobile CrM and we&#8217;ll be able to make this available on the Android platform as well.</p>
<p>Stay tuned, and of course, if you&#8217;re a potential customer, we&#8217;d love to hear from you at <a href="http://workflowstudios.com/website/publish.nsf/Content/Contact">WorkFlow Studios</a>, or go to my <a href="/contact">Contact</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2011/12/21/mobile-crm-for-notes-an-ios-client-for-contact-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cool Box2D stuff with Appcelerator Titanium</title>
		<link>http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/</link>
		<comments>http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 14:16:06 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Box2D]]></category>
		<category><![CDATA[Titanium]]></category>
		<category><![CDATA[Titanium Appcelerator]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[Box2d]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[physics]]></category>

		<guid isPermaLink="false">http://www.workflowstudios.com/lance/blog.nsfd6plinks/LSPN-8PQRS5</guid>
		<description><![CDATA[I happened upon the Appcelerator Open Mobile Marketplace the other day, and started looking through the modules.  One that caught my eye was the Box2D module.  Earlier this year, we&#8217;d been dabbling with Cocos2d which is a game engine for &#8230; <a href="http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I happened upon the Appcelerator <a title="Open Mobile Marketplace" href="https://marketplace.appcelerator.com/home" target="_blank">Open Mobile Marketplace</a> the other day, and started looking through the modules.  One that caught my eye was the <a title="Box2D module for Titanium Appcelerator" href="https://marketplace.appcelerator.com/apps/1212" target="_blank">Box2D module</a>.  Earlier this year, we&#8217;d been dabbling with <a title="Cocos2d" href="http://www.cocos2d-iphone.org/" target="_blank">Cocos2d</a> which is a game engine for iPhone, which uses Box2D as one of the physics engine you could use inside it.<br />
<span id="more-10"></span><br />
<a title="Box2D" href="http://box2d.org/" target="_blank">Box2D</a> is an open source library originally written in C that has been ported to Flash, Java, C++, Objective C and is widely popular in the game community.  It&#8217;s not a huge stretch to see a Ti module adaptor being placed over the Objective C code, also nice because it should perform well.</p>
<p>I had a million and one things to do, so of course I dropped them all to see just what this shiny new bauble could do.  Right now the module is in beta and there&#8217;s zero documentation, so the best thing is to check out some examples like <a title="Appcelerator Titanium Box2D pinball" href="http://developer.appcelerator.com/blog/2011/09/gaming-comes-to-titanium-introducing-the-box2d-module.html" target="_blank">pinball</a> or a <a title="github example" href="https://github.com/appcelerator/titanium_modules/tree/master/box2d/mobile/ios/example" target="_blank">Hello World</a> (more or less), and peek at the Objective C source code for a couple proxy classes, like <a title="Body Proxy" href="https://github.com/appcelerator/titanium_modules/blob/master/box2d/mobile/ios/Classes/TiBox2dBodyProxy.mm" target="_blank">Body</a> and <a title="World Proxy" href="https://github.com/appcelerator/titanium_modules/blob/master/box2d/mobile/ios/Classes/TiBox2dWorldProxy.mm" target="_blank">World</a>.</p>
<p>Running the example from the github repository, you get a square and a ball that basically start at the top of the screen and fall down (and off) the screen.</p>
<div id="attachment_233" class="wp-caption alignnone" style="width: 185px"><a href="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/nofloor.png"><img class="size-medium wp-image-233" title="No floor" src="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/nofloor-175x300.png" alt="" width="175" height="300" /></a><p class="wp-caption-text">Objects fall from top of screen and then off bottom of screen</p></div>
<p>Here&#8217;s the code with no floor:</p>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> window <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> view <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>view<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// load the module</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> Box2D <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&#8216;ti.box2d&#8217;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// create the world, using view as the surface</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> world <span style="color: #339933;">=</span> Box2D.<span style="color: #660066;">createWorld</span><span style="color: #009900;">&#40;</span>view<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// create a block</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> redBlock <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;red&quot;</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; width<span style="color: #339933;">:</span> <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; height<span style="color: #339933;">:</span> <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; top<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> blueBall <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;blue&quot;</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; borderRadius<span style="color: #339933;">:</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; width<span style="color: #339933;">:</span> <span style="color: #CC0000;">30</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; height<span style="color: #339933;">:</span> <span style="color: #CC0000;">30</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; top<span style="color: #339933;">:</span> <span style="color: #CC0000;">100</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// add the block body to the world</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> redBodyRef <span style="color: #339933;">=</span> world.<span style="color: #660066;">addBody</span><span style="color: #009900;">&#40;</span>redBlock<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; density<span style="color: #339933;">:</span> <span style="color: #CC0000;">12.0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; friction<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; restitution<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.4</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;dynamic&quot;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// add the ball body to the world</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> blueBodyRef <span style="color: #339933;">=</span> world.<span style="color: #660066;">addBody</span><span style="color: #009900;">&#40;</span>blueBall<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; radius<span style="color: #339933;">:</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; density<span style="color: #339933;">:</span> <span style="color: #CC0000;">12.0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; friction<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; restitution<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.4</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; type<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;dynamic&quot;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Ti.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&#8216;orientationchange&#8217;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> Titanium.<span style="color: #660066;">UI</span>.<span style="color: #660066;">LANDSCAPE</span><span style="color: #339933;">&lt;</span>em<span style="color: #339933;">&gt;</span>LEFT<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; world.<span style="color: #660066;">setGravity</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9.91</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> Titanium.<span style="color: #660066;">UI</span>.<span style="color: #660066;">LANDSCAPE</span><span style="color: #339933;">&lt;/</span>em<span style="color: #339933;">&gt;</span>RIGHT<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; world.<span style="color: #660066;">setGravity</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">9.91</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> Titanium.<span style="color: #660066;">UI</span>.<span style="color: #660066;">UPSIDE_PORTRAIT</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; world.<span style="color: #660066;">setGravity</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.91</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> Titanium.<span style="color: #660066;">UI</span>.<span style="color: #660066;">PORTRAIT</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; world.<span style="color: #660066;">setGravity</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">9.91</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">world.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;collision&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">a</span> <span style="color: #339933;">==</span> redBodyRef <span style="color: #339933;">||</span> e.<span style="color: #660066;">b</span> <span style="color: #339933;">==</span> redBodyRef<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> e.<span style="color: #660066;">phase</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;begin&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;the red block collided with something&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span>JSON.<span style="color: #660066;">stringify</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; Ti.<span style="color: #660066;">Media</span>.<span style="color: #660066;">vibrate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// start the world</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">world.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>To get a floor for these objects to land on, I added this:</p>
<div id="attachment_234" class="wp-caption alignnone" style="width: 185px"><a href="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/withfloor.png"><img class="size-medium wp-image-234" title="With Floor" src="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/withfloor-175x300.png" alt="With Floor" width="175" height="300" /></a><p class="wp-caption-text">Square now lands on top of ball on the floor</p></div>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// create a ground level for things to hit</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> floor <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; backgroundColor<span style="color: #339933;">:</span><span style="color: #3366CC;">&#8216;#fff&#8217;</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; width<span style="color: #339933;">:</span><span style="color: #CC0000;">310</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; height<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; bottom<span style="color: #339933;">:</span><span style="color: #CC0000;">40</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> b <span style="color: #339933;">=</span> world.<span style="color: #660066;">addBody</span><span style="color: #009900;">&#40;</span>floor<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; density<span style="color: #339933;">:</span><span style="color: #CC0000;">12.0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; friction<span style="color: #339933;">:</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; restitution<span style="color: #339933;">:</span><span style="color: #CC0000;">0.4</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span><span style="color: #3366CC;">&#8216;static&#8217;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>But then I wanted to see if the objects would tumble down a hill, so the floor needed to have an angle to it.  This is where examining the implementation of the World proxy object came in handy.  the world.addBody(aBody) function returns a handle to the body it added.  With that in hand, you can then apply methods from the Body proxy object implementation, and there happens to be one in there named setAngle(someDegree). That led to this code:</p>
<div id="attachment_235" class="wp-caption alignnone" style="width: 185px"><a href="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/angledfloor.png"><img class="size-medium wp-image-235" title="Angled Floor" src="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/angledfloor-175x300.png" alt="Angled Floor" width="175" height="300" /></a><p class="wp-caption-text">ball bounces, then rolls down hill. Square tumbles a bit and then comes to rest</p></div>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> b <span style="color: #339933;">=</span> world.<span style="color: #660066;">addBody</span><span style="color: #009900;">&#40;</span>floor<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; density<span style="color: #339933;">:</span><span style="color: #CC0000;">12.0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; friction<span style="color: #339933;">:</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; restitution<span style="color: #339933;">:</span><span style="color: #CC0000;">0.4</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span><span style="color: #3366CC;">&#8216;static&#8217;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">b.<span style="color: #660066;">setAngle</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">85</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>Lastly, I wanted to see if I could put up a wall that would let the ball bounce off the floor, roll down and then be stopped by the intersection of the wall and floor.  Here&#8217;s how:</p>
<div id="attachment_236" class="wp-caption alignnone" style="width: 185px"><a href="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/withwall.png"><img class="size-medium wp-image-236" title="And a Wall" src="http://lancespellman.com/wordpress/wp-content/uploads/2011/12/withwall-175x300.png" alt="And a Wall" width="175" height="300" /></a><p class="wp-caption-text">ball has bounced off the wall and rolled back up the floor a bit</p></div>
<div class='sniplrcode'>
<ol class="javascript" style="font-family:monospace;">
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// create a wall</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">var</span> leftWall <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; backgroundColor<span style="color: #339933;">:</span><span style="color: #3366CC;">&#8216;#fff&#8217;</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; width<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; height<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; bottom<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; left<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">world.<span style="color: #660066;">addBody</span><span style="color: #009900;">&#40;</span>leftWall<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; density<span style="color: #339933;">:</span><span style="color: #CC0000;">12.0</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; friction<span style="color: #339933;">:</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; restitution<span style="color: #339933;">:</span><span style="color: #CC0000;">0.4</span><span style="color: #339933;">,</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span><span style="color: #3366CC;">&#8216;static&#8217;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
</ol>
</div>
<p>I&#8217;m looking forward to playing with Box2D module in more detail, maybe over Christmas break.  Hope you gained a little insight into its workings in Titanium Appcelerator.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>6 miles today and the miracle of the 5-1</title>
		<link>http://lancespellman.com/2010/02/07/6-miles-today-and-the-miracle-of-the-5-1/</link>
		<comments>http://lancespellman.com/2010/02/07/6-miles-today-and-the-miracle-of-the-5-1/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 14:20:01 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.workflowstudios.com/lance/blog.nsfd6plinks/LSPN-82FRUK</guid>
		<description><![CDATA[It&#8217;s been a long time since I trained for a marathon, but I can&#8217;t tell you how beneficial it is to have done it before.  As I&#8217;m getting into the swing of things this time (even though just a half &#8230; <a href="http://lancespellman.com/2010/02/07/6-miles-today-and-the-miracle-of-the-5-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time since I trained for a marathon, but I can&#8217;t tell you how beneficial it is to have done it before.  As I&#8217;m getting into the swing of things this time (even though just a half marathon) , all those memories flood back of what it was like to train for it, and perhaps more importantly, that it just CAN be done.  When I ran it last time, I trained with the Jeff Galloway program through Run On.  Here are the keys that stick with me 10 years later:</p>
<p>1.  Run a pace you can run forever.  Which means run about 2 min per mile SLOWER than what you&#8217;re capable of doing for 1-2 miles.<br />
2.  If you can&#8217;t talk while you&#8217;re running, you&#8217;re going too fast.<br />
3.  For me, if my heart rate climbs too much over 150, I&#8217;m going too fast.<br />
4.  All it takes is a little luck (to avoid injury), and commitment.<br />
5.  Do a long run once a week, and increase the distance 2 miles every week or two until you get to longer distances (10+)<br />
5.  And most importantly, the 5-1 rule.  Run for 5 minutes, walk for 1.</p>
<p>I&#8217;m terribly out of shape, yet I ran 6 miles today.  A lot of people who train for marathons aren&#8217;t in very good shape, yet they finish.  Why?  I can only guess how others have done it, but the 5-1 rule is critical for me.  The 5-1, or 3-1, or even 2-1, is a ratio of how many minutes running before taking 1 minute and walking.  This is huge.  If you&#8217;re sitting in your chair reading this today, you might think you could never run for 2 hours or 3 hours or 5 hours.  But anyone can get to the point where they can run for 2, 3, 4, 5 minutes at a time.  You wouldn&#8217;t believe the psychology of that.  You&#8217;re going, you&#8217;re hurting, you&#8217;re lungs are puffing and shins are hurting.  Focusing the mind on it will only be another 2 minutes before you can take a break makes all the difference in the world.</p>
<p>Now any distance is just a bunch of manageable segments.  It&#8217;s a giant reset button.  Sometimes we find ourselves feeling good and starting to run a pace that&#8217;s too fast.  Hitting that 5 minute mark and taking a break helps you reflect during that 1 minute about whether you&#8217;re going too fast and lets you start back at a good pace.  Or you&#8217;ve just been running up a long hill and thinking you&#8217;ll never make it all the way up.  Guess what, you don&#8217;t.  You just have to go for 5 minutes and then you can rest a bit.</p>
<p>Perhaps just as important is the break it gives your muscle groups.  Running and walking use different muscle groups.  If you find your muscles tightening up, walking for a bit relaxes those muscles and gives them a chance to recover and increases your chances of moving on through it.  Take advantage of the 1 minute walks to stretch a bit when it will help.  For me that&#8217;s usually about 15 minutes in.</p>
<p>So what happens come marathon time (actually I think it happens somewhere around when you can go 10-12 miles) and where are all these people doing 5-1s.  Your fitness level will definitely go up on this plan.  Sooner or later you find you don&#8217;t need the forced discipline of the 5-1 (or at least it was true for me).  You may end up doing 10-1s, or you may just find that you take a 1 minute break when you need it, or you take a little break every time you hit a mile marker or water stand.  So yes, a lot of people don&#8217;t actually do much walking by the time they get to marathon distance.  They no longer need it.  But a lot of us would never have gotten to that point without the initial training to get the body used to running long distances.</p>
<p>One last thing, I&#8217;m not doing it now and it may come back to bite me.  Train with others.  Guaranteed I wouldn&#8217;t have taken off 4 days this week if I&#8217;d had someone waiting out in the freezing dark to meet me at 5:30am.  My marathon year, I trained with a group of about 6.  Best thing I ever did, and best group selection I could have made.  One girl was my age, and the rest were her mother and mother&#8217;s friends.  They were running a pace several minutes slower than I was capable of (for short distance).  Training with them where the pace was easy and manageable made it extremely easy to keep increasing the distance.</p>
<p>Bottom line:  Do you really care if 20 years from now someone says you ran a slow marathon?  Or would you rather say, &#8220;I was going to run a marathon, and I could run a 7 minute pace, but I pulled a muscle training. Or, I just couldn&#8217;t make it past 8 miles&#8221;</p>
<p>Since he made such a big difference for me, I guess I should point you to the source, Run Injury Free with Jeff Galloway.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2010/02/07/6-miles-today-and-the-miracle-of-the-5-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missile Launcher and back on the track</title>
		<link>http://lancespellman.com/2010/02/06/missile-launcher-and-back-on-the-track/</link>
		<comments>http://lancespellman.com/2010/02/06/missile-launcher-and-back-on-the-track/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:30:08 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.workflowstudios.com/lance/blog.nsfd6plinks/LSPN-82EQVC</guid>
		<description><![CDATA[My daughter, Lauren, has been waiting 7 years to have a little sister.  Now she has the next best thing, a 2nd grade girl living next door,  Megan.  Once they both got over the idea of going over to see &#8230; <a href="http://lancespellman.com/2010/02/06/missile-launcher-and-back-on-the-track/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My daughter, Lauren, has been waiting 7 years to have a little sister.  Now she has the next best thing, a 2nd grade girl living next door,  Megan.  Once they both got over the idea of going over to see each other, this last week has been great for both.  Last night, they had a sleep-over at Megan&#8217;s house along with another of Megan&#8217;s friends, who we also know through the Lakewood community.</p>
<p>At 7:30 this morning, they all came be-bopping over to come play on the trampoline and snark some chocolate chip muffins, pancakes and bacon.  After breakfast the girls had me play, &#8220;momma in the middle&#8221;, and I introduced them to &#8220;missile launcher&#8221; which is where I lay down under the trampoline and as they are bouncing up, I push up on the bottom of the trampoline sending them an extra 2-3 feet up in the air.  We used to do this at the old house, but hadn&#8217;t done it in awhile.  Lauren&#8217;s gotten so big that if she takes a really good bounce she can certainly reach me unless I&#8217;m lying completely flat underneath, (maybe I&#8217;ve gotten bigger as well).</p>
<p>I can&#8217;t believe I didn&#8217;t make it running again after Monday.  We went today, and it was pretty painful.  At least we could do it, that wouldn&#8217;t have been the case if we lived back east where friends are getting 24&#8243; of snow and more.  But that&#8217;s another 3.5 miles behind me, and I&#8217;ll see if I can do the 6 miler tomorrow.  Only 37 more days until the Rock &#8216;n&#8217; Roll Half.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2010/02/06/missile-launcher-and-back-on-the-track/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning the Pick and Roll</title>
		<link>http://lancespellman.com/2010/02/03/learning-the-pick-and-roll/</link>
		<comments>http://lancespellman.com/2010/02/03/learning-the-pick-and-roll/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:05:11 +0000</pubDate>
		<dc:creator>Lance Spellman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.workflowstudios.com/lance/blog.nsfd6plinks/LSPN-82BV3R</guid>
		<description><![CDATA[The last few days we&#8217;ve had some nice weather (not today), and the kids and I&#8217;ve been playing basketball in the backyard.  With a little two-on-one, I&#8217;ve been teaching the kids how to take advantage of their numbers to beat &#8230; <a href="http://lancespellman.com/2010/02/03/learning-the-pick-and-roll/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The last few days we&#8217;ve had some nice weather (not today), and the kids and I&#8217;ve been playing basketball in the backyard.  With a little two-on-one, I&#8217;ve been teaching the kids how to take advantage of their numbers to beat Dad.  Once I taught them what a pick was, they took to it rather enthusiastically.  In fact, part two of the training had to be reinforcement of the stationary pick versus the follow Dad hanging on to his leg pick, which while successful is also highly illegal and somewhat dangerous for all parties.</p>
<p>It&#8217;s also been fun teaching Lauren how to back in with your dribble and establish contact so that you can get position and pivot into the basket.  She&#8217;s suprisingly good at it, with the exception of only being able to dribble with one hand which kind of limits her pivot to one direction.  Even so, she scores pretty regularly on it.  I guess I&#8217;ve only been waiting about 10 years now for my kids to actually want to be taught anything about sports.  Fun times.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancespellman.com/2010/02/03/learning-the-pick-and-roll/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
