<?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>The Code Dojo &#187; HTML5</title>
	<atom:link href="http://dojo.codegreene.com/tag/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojo.codegreene.com</link>
	<description>The Code Dojo is the veritable repository of random musings from the development team at Code Greene.</description>
	<lastBuildDate>Fri, 20 Jan 2012 18:09:02 +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>Geolocation</title>
		<link>http://dojo.codegreene.com/2010/10/geolocation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=geolocation</link>
		<comments>http://dojo.codegreene.com/2010/10/geolocation/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 21:39:35 +0000</pubDate>
		<dc:creator>Master Sensei</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://dojo.codegreene.com/?p=647</guid>
		<description><![CDATA[Mobile applications are all the rage as smart phones are moving from smart to genius. Along with this movement is the movement to location aware applications. Your phone has GPS, your laptop has wifi, and your IP is known (generally) to be tied to a specific location. Given these new technologies being more commonplace the [...]]]></description>
			<content:encoded><![CDATA[<p>Mobile applications are all the rage as smart phones are moving from smart to genius. Along with this movement is the movement to location aware applications. Your phone has GPS, your laptop has wifi, and your IP is known (generally) to be tied to a specific location. Given these new technologies being more commonplace<a href="http://www.w3c.org"> the W3C</a> has seen it fit to add <a href="http://dev.w3.org/geo/api/spec-source.html">an API</a> to web design for Geo Location.</p>
<p>Although not technically a piece of the <a href="http://dev.w3.org/html5/spec/Overview.html">HTML5 spec</a>, it is commonly used in conjunction with HTML5 and easy to use.</p>
<p>The geolocation API exposes three methods on the navigator object in javascript, two for getting location information about your user <strong>getCurrentPosition</strong> and <strong>watchPosition</strong>, and the other is a paired method for watchPosition, it is <strong>clearWatch</strong>.</p>
<p>The first, getCurrentPosition, returns a one time shot of where the user is. This is good for pinning a map or giving static directions. The second, watchPosition, continues polling at regular intervals to keep tabs on where the user is. This is perfect for giving dynamic directions, or tracking a movement. The two calls are mirrors of one another in that they both accept three arguments (success handler, error handler, geolocation options). The two calls are also both asynchronous, with a caveat that if this is a user&#8217;s first visit to your site they may be prompted to allow their position to be shared, this could cause the browser to stop loading.</p>
<p>The odd ball function here is clearWatch, which simply clears any watches you have assigned, in other words it stops tracking your user.</p>
<p>Now that we know the basics let&#8217;s dig in!</p>
<pre><code>if(navigator.geolocation){
     navigator.geolocation.getCurrentPosition(function (position){
         var lat = position.coords.latitude;
         var lon = position.coords.longitude;

         alert('Lat: '+ lat +' \nLon: '+ lon);
     }
}</code></pre>
<p>The example above is about as simple as it gets, a simple one shot to get the users coordinates and then output them to the browser.</p>
<p>That is all there is to Geolocation in the browser, pair it up with Google Maps API and you have an award winning geolocation application ready to please the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://dojo.codegreene.com/2010/10/geolocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharpening the Blades: Useful Tweets</title>
		<link>http://dojo.codegreene.com/2010/09/sharpening-the-blades-useful-tweets/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sharpening-the-blades-useful-tweets</link>
		<comments>http://dojo.codegreene.com/2010/09/sharpening-the-blades-useful-tweets/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 19:30:58 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://dojo.codegreene.com/?p=632</guid>
		<description><![CDATA[Below are some tweets that I have seen recently that I have found to be helpful. Smashing Magazine &#8211; HTML5/CSS3 Cheatsheet &#8211; http://bit.ly/aj0yfA Ben Ludman &#8211; URL shorteners and CakePHP &#8211; Snook.ca http://bit.ly/btTmSP And this site &#8211; HTML5 Doctor &#8211; I couldn&#8217;t track down the tweet that I found it from, but it is a [...]]]></description>
			<content:encoded><![CDATA[<p>Below are some tweets that I have seen recently that I have found to be helpful.</p>
<p><a href="http://twitter.com/smashingmag" target="_blank">Smashing Magazine</a> &#8211; HTML5/CSS3 Cheatsheet &#8211; <a rel="nofollow" href="http://bit.ly/aj0yfA" target="_blank">http://bit.ly/aj0yfA</a></p>
<p><a href="http://twitter.com/benludman" target="_blank">Ben Ludman</a> &#8211; URL shorteners and CakePHP &#8211; Snook.ca <a rel="nofollow" href="http://bit.ly/btTmSP" target="_blank">http://bit.ly/btTmSP</a></p>
<p>And this site &#8211; <a href="http://html5doctor.com/" target="_blank">HTML5 Doctor</a> &#8211; I couldn&#8217;t track down the tweet that I found it from, but it is a great resource for HTML5.</p>
<p>I looked for some tweets about Magento, but just couldn&#8217;t find any that were appealing.</p>
]]></content:encoded>
			<wfw:commentRss>http://dojo.codegreene.com/2010/09/sharpening-the-blades-useful-tweets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kaizen in 2010: Stock Cliches, HTML5 Forms, &amp; Web Advertising</title>
		<link>http://dojo.codegreene.com/2010/01/kaizen-in-2010-stock-cliches-html5-forms-web-advertising/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kaizen-in-2010-stock-cliches-html5-forms-web-advertising</link>
		<comments>http://dojo.codegreene.com/2010/01/kaizen-in-2010-stock-cliches-html5-forms-web-advertising/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:58:29 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Kaizen]]></category>
		<category><![CDATA[Stock Photography]]></category>

		<guid isPermaLink="false">http://dojo.codegreene.com/?p=375</guid>
		<description><![CDATA[One of the main focuses of our philosophy at Code Greene centers around the Japanese philosophy of continuous improvement known as &#8220;kaizen&#8221;. The web offers tremendous opportunities to learn from our peers, and sharing articles with each other has really helped us keep our blades sharp. Here are a few of the best articles we&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>One of the main focuses of our philosophy at Code Greene centers around the Japanese philosophy of continuous improvement known as &#8220;kaizen&#8221;. The web offers tremendous opportunities to learn from our peers, and sharing articles with each other has really helped us keep our blades sharp. Here are a few of the best articles we&#8217;ve read recently, submitted by members of our team:</p>
<p><strong>Luke</strong>, <a href="http://boagworld.com/design/stock-photography" target="_blank">Stop Using Stock Photography Clichés</a></p>
<p><img class="alignright size-full wp-image-382" style="border: 1px solid #444; margin: 0px 0px 8px 20px; padding: 2px;" src="http://dojo.codegreene.com/wp-content/uploads/2010/01/picture-3.png" alt="stock" width="100" height="100" />I liked this article because I could really relate to the author. I am super sick of stupid stock photography. This type of stock photography has become meaningless to the user. Especially if the user has seen the same photo in other places before. As users, we are so used to seeing two business people shaking hands that we overlook it immediately, without giving it a second thought. Useless.</p>
<p><strong>Mike</strong>, <a href="http://diveintohtml5.org/forms.html" target="_blank">A Form of Madness</a></p>
<p><img class="alignright size-full wp-image-383" style="border: 1px solid #444; margin: 0px 0px 8px 20px; padding: 2px;" src="http://dojo.codegreene.com/wp-content/uploads/2010/01/form.jpg" alt="form" width="100" height="100" />Form design is awesomeness, but coding them? Not always the case. Luckily, there&#8217;s good news for form coders the world over with HTML5 on the brink of greater support. This article comes from an up-and-coming book all about HTML5. The author introduces some cool new tags and attributes that we can start using <strong>right now</strong>, including: placeholder text, autofocus fields, spinboxes, sliders, date pickers, and more! Exciting stuff.</p>
<p><strong>Tim</strong>, <a href="http://css-tricks.com/on-web-advertising/" target="_blank">On Web Advertising</a></p>
<p><img class="alignright size-full wp-image-381" style="border: 1px solid #444; margin: 0px 0px 8px 20px; padding: 2px;" src="http://dojo.codegreene.com/wp-content/uploads/2010/01/ad.jpg" alt="ad" width="100" height="100" />This is something I have been very curious about lately, so to find this was a refreshing way to start out the week. It was nice to get Chris&#8217;s perspective about online advertising and I know he knows about it because all his work uses it.</p>
<p>What have you been reading recently?</p>
]]></content:encoded>
			<wfw:commentRss>http://dojo.codegreene.com/2010/01/kaizen-in-2010-stock-cliches-html5-forms-web-advertising/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

