<?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>Effel Design</title>
	<atom:link href="http://www.effeldesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.effeldesign.com</link>
	<description>Austin Web Development, Design, and SEO</description>
	<lastBuildDate>Sat, 25 Jun 2011 22:37:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>GeoTweets &#8211; an error free version of the Sencha Touch tutorial</title>
		<link>http://www.effeldesign.com/2011/06/geotweets-an-error-free-version-of-the-sencha-touch-tutorial/</link>
		<comments>http://www.effeldesign.com/2011/06/geotweets-an-error-free-version-of-the-sencha-touch-tutorial/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 21:33:56 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Developers]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/?p=106</guid>
		<description><![CDATA[I have been messing around with Sencha Touch over the last few weeks and it is proving to be a very useful framework for mobile development. The main getting started tutorial is a GeoTweets application. It&#8217;s a neat example that ties in the Google Maps API and the Twitter API to create an app that [...]]]></description>
			<content:encoded><![CDATA[<p>I have been messing around with Sencha Touch over the last few weeks and it is proving to be a very useful framework for mobile development.   The main getting started tutorial is a GeoTweets application.   It&#8217;s a neat example that ties in the Google Maps API and the Twitter API to create an app that shows twitter users&#8217; tweets within a certain mile radius of the user location.   The tutorial itself has a few errors that I thought I would fix here to hopefully save others the time it took me to debug.  There is nothing more annoying than errors in tutorials.</p>
<p>The only adjustments that will need to be made are within the main index.js file.  Below is the corrected code:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Ext.<span style="color: #660066;">setup</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; tabletStartupScreen<span style="color: #339933;">:</span> <span style="color: #3366CC;">'tablet_startup.png'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; phoneStartupScreen<span style="color: #339933;">:</span> <span style="color: #3366CC;">'phone_startup.png'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; icon<span style="color: #339933;">:</span> <span style="color: #3366CC;">'icon.png'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; glossOnIcon<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; onReady<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> timeline <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Component</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Timeline'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cls<span style="color: #339933;">:</span> <span style="color: #3366CC;">'timeline'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">scroll</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'vertical'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tpl<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;tpl for=&quot;.&quot;&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">'&lt;div class=&quot;tweet&quot;&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;div class=&quot;avatar&quot;&gt;&lt;img src=&quot;{profile_image_url}&quot; /&gt;&lt;/div&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;div class=&quot;tweet-content&quot;&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;h2&gt;{from_user}&lt;/h2&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;p&gt;{text}&lt;/p&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;/tpl&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Map</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Map'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; useCurrentLocation<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> &nbsp; <span style="color: #006600; font-style: italic;">//changed from getLocation</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zoom<span style="color: #339933;">:</span> <span style="color: #CC0000;">12</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> panel <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fullscreen<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cardSwitchAnimation<span style="color: #339933;">:</span> <span style="color: #3366CC;">'slide'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; items<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>map<span style="color: #339933;">,</span> timeline<span style="color: #009900;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> refresh <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> coords <span style="color: #339933;">=</span> map.<span style="color: #660066;">geo</span>.<span style="color: #660066;">coords</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext.<span style="color: #660066;">util</span>.<span style="color: #660066;">JSONP</span>.<span style="color: #660066;">request</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'http://search.twitter.com/search.json'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; callbackKey<span style="color: #339933;">:</span> <span style="color: #3366CC;">'callback'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; geocode<span style="color: #339933;">:</span> coords.<span style="color: #660066;">latitude</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">','</span> <span style="color: #339933;">+</span> coords.<span style="color: #660066;">longitude</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">','</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'5mi'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rpp<span style="color: #339933;">:</span> <span style="color: #CC0000;">30</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;callback<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data <span style="color: #339933;">=</span> data.<span style="color: #660066;">results</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeline.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> ln <span style="color: #339933;">=</span> data.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> ln<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> tweet <span style="color: #339933;">=</span> data<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>tweet.<span style="color: #660066;">geo</span> <span style="color: #339933;">&amp;&amp;</span> tweet.<span style="color: #660066;">geo</span>.<span style="color: #660066;">coordinates</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> position <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span>tweet.<span style="color: #660066;">geo</span>.<span style="color: #660066;">coordinates</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> tweet.<span style="color: #660066;">geo</span>.<span style="color: #660066;">coordinates</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addMarker <span style="color: #009900;">&#40;</span>tweet<span style="color: #339933;">,</span> position<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> addMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>tweet<span style="color: #339933;">,</span> position<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> marker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map<span style="color: #339933;">:</span> map.<span style="color: #660066;">map</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; position<span style="color: #339933;">:</span> position<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">event</span>.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>marker<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp;<span style="color: #006600; font-style: italic;">//added this function</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tweetBubble.<span style="color: #660066;">setContent</span><span style="color: #009900;">&#40;</span>tweet.<span style="color: #660066;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tweetBubble.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>map.<span style="color: #660066;">map</span><span style="color: #339933;">,</span> marker<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; tweetBubble <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">InfoWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//added to display tweets on marker click</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; map.<span style="color: #660066;">geo</span>.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'update'</span><span style="color: #339933;">,</span> refresh<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> tabBar <span style="color: #339933;">=</span> panel.<span style="color: #660066;">getTabBar</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; tabBar.<span style="color: #660066;">addDocked</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xtype<span style="color: #339933;">:</span> <span style="color: #3366CC;">'button'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ui<span style="color: #339933;">:</span> <span style="color: #3366CC;">'mask'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iconCls<span style="color: #339933;">:</span> <span style="color: #3366CC;">'refresh'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dock<span style="color: #339933;">:</span> <span style="color: #3366CC;">'right'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; align<span style="color: #339933;">:</span> <span style="color: #3366CC;">'center'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handler<span style="color: #339933;">:</span> refresh<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <br />
<br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>The changes:</p>
<p><strong>Line 27:</strong>  Changed getLocation to useCurrentLocation &#8211; getLocation is no longer supported within the Google Maps API.   Changing to useCurrentLocation will fix the map display.</p>
<p><strong>Line 70-78:</strong> These lines are necessary to add the functionality to display tweets when their marker is clicked on the map.  Without them, nothing will display.</p>
<p>Another working example can be found at: <a href="https://github.com/nelstrom/GeoTweets/" target="_blank">github.com/nelstrom</a>.   The code in this post borrows from this link but stays as close to the original Sencha code as possible.</p>
<p><a href="http://www.effeldesign.com/projects/geotweets/" target="_blank">View GeoTweets working demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2011/06/geotweets-an-error-free-version-of-the-sencha-touch-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A great HTML5 resource : http:&#8230;</title>
		<link>http://www.effeldesign.com/2011/02/a-great-html5-resource-http/</link>
		<comments>http://www.effeldesign.com/2011/02/a-great-html5-resource-http/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 19:20:22 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tweets]]></category>
		<category><![CDATA[tweets]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/2011/02/a-great-html5-resource-http/</guid>
		<description><![CDATA[A great HTML5 resource : http://www.html5rocks.com/]]></description>
			<content:encoded><![CDATA[<p>A great HTML5 resource : <a href="http://www.html5rocks.com/" rel="nofollow">http://www.html5rocks.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2011/02/a-great-html5-resource-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A great twitter visualization &#8230;</title>
		<link>http://www.effeldesign.com/2011/01/a-great-twitter-visualization/</link>
		<comments>http://www.effeldesign.com/2011/01/a-great-twitter-visualization/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 21:49:05 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tweets]]></category>
		<category><![CDATA[tweets]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/2011/01/a-great-twitter-visualization/</guid>
		<description><![CDATA[A great twitter visualization using XHTML/CSS and javascript. jQuery is hard at work here. http://toriseye.quodis.com/]]></description>
			<content:encoded><![CDATA[<p>A great twitter visualization using XHTML/CSS and javascript.  jQuery is hard at work here. <a href="http://toriseye.quodis.com/" rel="nofollow">http://toriseye.quodis.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2011/01/a-great-twitter-visualization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Google Instant Search affects your adwords campaigns</title>
		<link>http://www.effeldesign.com/2010/09/how-google-instant-search-affects-your-adwords-campaigns/</link>
		<comments>http://www.effeldesign.com/2010/09/how-google-instant-search-affects-your-adwords-campaigns/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 08:16:21 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Adwords]]></category>
		<category><![CDATA[PPC]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/?p=38</guid>
		<description><![CDATA[Today, Google released Instant Search. Users will now see results from popular searches displayed as they are typing in their search query. In other words, type in a search query &#8220;watching weight&#8221; and you will see results displayed for &#8220;Wal-Mart&#8221;, &#8220;Watching Movies&#8221;, and so forth as more letters are typed. As these results are displayed, [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Google released Instant Search.   Users will now see results from popular searches displayed as they are typing in their search query.   In other words, type in a search query &#8220;watching weight&#8221; and you will see results displayed for &#8220;Wal-Mart&#8221;, &#8220;Watching Movies&#8221;, and so forth as more letters are typed.</p>
<p>As these results are displayed, so are the associated ads for those search queries.  This will lead to an increased number of impressions for all those broad keywords you may have in your campaign. </p>
<p>So how does this affect an ads click through rate?</p>
<p>According to Google, an impressions will only be counted if:</p>
<ul>
<li>A user types in a search query and then clicks anywhere on the page (a search result, an ad, related search, etc.)</li>
<li>A user chooses a specific query by clicking the search button, pressing Enter, or selecting one of the predicted queries</li>
<li>The user stops typing and the ad is displayed for at least 3 seconds</li>
</ul>
<p>The 3 second rule will probably lead to the greatest increase in non-qualified impressions and thus decrease an ad&#8217;s CTR.  </p>
<p>A slow reader may take 3 seconds to read the suggested searches as they are typing out a query leading to a false impression if you happened to have an ad up on the temporarily displayed results page.  </p>
<p>Of course it is far too early to predict, but Google believes the effect in impressions will be outweighed by the fact that Instant Search helps users build search queries that more directly relate to them.       </p>
<p>Instant Search is a great feature that increases the usability of Google, but Adwords advertisers should keep an eye on their stats particularly for their broad keywords.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2010/09/how-google-instant-search-affects-your-adwords-campaigns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SEO, Content Strategy, and Cold Callers</title>
		<link>http://www.effeldesign.com/2010/09/seo-content-strategy-and-cold-callers/</link>
		<comments>http://www.effeldesign.com/2010/09/seo-content-strategy-and-cold-callers/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 21:41:00 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Content Development]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/?p=32</guid>
		<description><![CDATA[Like many website owners, my inbox is constantly flooded with contact form submissions from marketing companies promising to take my site to the top of the search engines. One of these companies called the office the other day so I decided to see what they had to offer. The representative I spoke with began by [...]]]></description>
			<content:encoded><![CDATA[<p>Like many website owners, my inbox is constantly flooded with contact form submissions from marketing companies promising to take my site to the top of the search engines.  One of these companies called the office the other day so I decided to see what they had to offer.  </p>
<p>The representative I spoke with began by saying his firm had conducted research on my company and found some key markets I was not tapping into.  Any time I deal with these people I inform them I am a numbers guy and have no real SEO experience.   This gives me a better idea of what they are selling most people.    The sales guy went on to throw around some dollar figures stating how I was really losing out on some excellent business.   Luckily, they would be able to help me with this.    After 5 minutes of him throwing around SEO buzz words, I finally asked him to cite some specific examples of what my company could improve on.    His response, &#8220;what is the name of your company again?&#8221;.   Wow.    The least these guys could do is keep the company name handy when they are cold calling businesses.   </p>
<p>Over the last 10 years of dealing with these companies and clients who have hired them, I have come up with a standard rule of thumb: avoid them at all costs.    These companies are more concerned with client acquisition than retention.    Trying to cancel a contract with them is about as difficult as canceling a contract with Gold&#8217;s Gym.    You are in for at least several months of recurring billing.  Sign up a client, sit on the account, charge them for several months, and move on.  That is their business model.  </p>
<p>The bottom line is there is no easy way to achieve top results in the search engines.  Like anything else, there is no substitute for hard work.    Search engines have become much more intelligent creatures than they were in the past.    In the old days, you could put keywords into the right places on a site, get some good inbound links and voil&aacute; , top results.   </p>
<p>Today&#8217;s market is much more content-centric.   Good content will drive people to your site, keep them longer, and keep them coming back.   If you want a top ranking, a content development strategy is one of the most important elements needed to achieve those results.   Equally important is how to leverage the content.   Taking advantage of the ever-expanding list of web 2.0 and social media sites will help deliver your content to a new audience that would have otherwise missed your site completely.  </p>
<p>Our content development team combines social media experts with professional writers to ensure top quality content is delivered to the right channels.   If you are interested in starting a content development strategy as part of an SEO campaign, <a href="contact/">send us an email</a> and we will get started on a custom-tailored solution for your business.    </p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2010/09/seo-content-strategy-and-cold-callers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>White Hat vs Black Hat SEO</title>
		<link>http://www.effeldesign.com/2010/08/white-hat-vs-black-hat-seo/</link>
		<comments>http://www.effeldesign.com/2010/08/white-hat-vs-black-hat-seo/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 00:11:55 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/?p=5</guid>
		<description><![CDATA[Search engine optimization is a lot like a John Ford western. You have the good guys and the bad guys. White hat search engine optimization is a way of organically and ethically building your web presence. Black hat is a way of spamming the search engines to increase your web rank and, if caught, you [...]]]></description>
			<content:encoded><![CDATA[<p>Search engine optimization is a lot like a John Ford western. You have the good guys and the bad guys.  White hat search engine optimization is a way of organically and ethically building your web presence.   Black hat is a way of spamming the search engines to increase your web rank and, if caught, you can get the &#8220;google slap&#8221; all the way to the bottom of the search engine results.   While black hat can sometimes deliver fast results, white hat organic is the only way to deliver SEO properly.    Always be sure you know what your search engine marketers are doing to help boost your rank and visibility. </p>
<p>Here is an interesting article that covers some of the <a href="http://www.eweek.com/c/a/Security/How-Black-Hat-SEO-Abuses-Search-Engines-607182/" target="_blank" rel="nofollow" />tactics black hat SEOs employ</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2010/08/white-hat-vs-black-hat-seo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Patagonia</title>
		<link>http://www.effeldesign.com/2010/08/hello-world/</link>
		<comments>http://www.effeldesign.com/2010/08/hello-world/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 00:08:31 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.effeldesign.com/?p=1</guid>
		<description><![CDATA[Effel Design is excited to be part of the revamping process for Patagonia Adventure Expeditions.]]></description>
			<content:encoded><![CDATA[<p>Effel Design is excited to be part of the revamping process for Patagonia Adventure Expeditions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.effeldesign.com/2010/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

