<?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>royalrodent.com</title>
	<atom:link href="http://royalrodent.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://royalrodent.com</link>
	<description>Yet another blog taking up valuable cyberspace</description>
	<lastBuildDate>Wed, 01 Sep 2010 02:07:10 +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>Geocoding the Contents of an Address Element With jQuery and the Google Maps API</title>
		<link>http://royalrodent.com/archives/geocoding-the-contents-of-an-address-element-with-jquery-and-the-google-maps-api/</link>
		<comments>http://royalrodent.com/archives/geocoding-the-contents-of-an-address-element-with-jquery-and-the-google-maps-api/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 01:41:14 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[Google Maps API]]></category>
		<category><![CDATA[javascript and jQuery]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=73</guid>
		<description><![CDATA[Here&#8217;s a little piece of code I put together Friday that will take the contents of an address element and find it&#8217;s latitude and longitude using jQuery and the Google Maps API. var g = new google.maps.Geocoder(); var a = &#8230; <a href="http://royalrodent.com/archives/geocoding-the-contents-of-an-address-element-with-jquery-and-the-google-maps-api/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little piece of code I put together Friday that will take the contents of an <code>address</code> element and find it&#8217;s latitude and longitude using jQuery and the Google Maps API.</p>
<p><code></p>
<pre>var g = new google.maps.Geocoder();
var a = $("#myAddress").text();
a = a.replace( new RegExp( "\\n", "g" ), ' ' );
g.geocode( {address: a}, function(results,status) {
	if (s ==  google.maps.GeocoderStatus.OK) {
		//do some cool mapping stuff
	} else {
		//or fail gracefully in the effort
	}
});</pre>
<p></code></p>
<p>First off, we&#8217;ll just assume you&#8217;ve already added the proper <code>script</code> includes for <a href="http://jquery.com/">the jQuery library</a> and the <a href="http://code.google.com/apis/maps/documentation/javascript/">Google Maps API</a>.  If you don&#8217;t know how, refer to the individual documentation for each for instructions.</p>
<p>The above code first creates a new instance of the Google Maps Geocoder. Then we use jQuery to retrieve just the text inside an <code>address</code>.We then apply a regular expression to strip out any remaining line feeds, and send off the modified address text to Google using the geocoder object we created.  We now have a geocoded lat and long for our address, which we can do all sorts of cool things with. Bazinga!</p>
<p>You don&#8217;t need to use jQuery to do grab the address text. You can pick it out using some straightforward DOM manipulation, but jQuery makes it so darned easy. If you&#8217;re already using the jQuery library for your project, go the route illustrated above. If you&#8217;re not, I don&#8217;t think it&#8217;s a good return on investment to include the jQuery library just for that. Write a little more code and use native functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/geocoding-the-contents-of-an-address-element-with-jquery-and-the-google-maps-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing ETA</title>
		<link>http://royalrodent.com/archives/announcing-eta/</link>
		<comments>http://royalrodent.com/archives/announcing-eta/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 02:39:34 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[Google Maps API]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript and jQuery]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=67</guid>
		<description><![CDATA[I finally finished my submission for the 10K Event Apart Challenge. Check out the rrdotc Labs page for more info on ETA.  It&#8217;s a proof of concept app right now, but I plan on tinkering with it off and on &#8230; <a href="http://royalrodent.com/archives/announcing-eta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I finally finished my submission for the <a title="An Event Apart 10K Challenge" href="http://10k.aneventapart.com/">10K Event Apart Challenge</a>. Check out the <a title="Royalrodent.com Labs" href="/labs">rrdotc Labs page</a> for more info on ETA.  It&#8217;s a proof of concept app right now, but I plan on tinkering with it off and on and working in enhancements, bug fixes, yada yada yada.  Now that I got more than 10K to work with, I can start doing some really cool stuff.</p>
<p><strong>Update August 25, 2010</strong>: My co-worker Josh and I have just discovered that Palm Pre does not support the <a title="W3C Geolocation API specification" href="http://www.w3.org/TR/geolocation-API/">W3C geolocation API</a>.  Apparently it uses either a proprietary API for its geolocation or doesn&#8217;t expose it&#8217;s geolocation data to the browswer. C&#8217;mon Palm!</p>
<p><strong>Update August 26, 2010</strong>: Much to my surprise, the app has been officially <a title="ETA mobile app at the 10K Challenge" href="http://10k.aneventapart.com/entry/details/308">accepted for the 10K Challenge</a>.  I thought there may be an issue with it being a mobile app or that technically it provides absolutely zero data if you&#8217;re using IE9 preview, but it would appear that my fervent pleas in my readme did not fall on deaf ears. So head on over and throw a few stars my way.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/announcing-eta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Return of The Photo Gallery</title>
		<link>http://royalrodent.com/archives/the-return-of-the-photo-gallery/</link>
		<comments>http://royalrodent.com/archives/the-return-of-the-photo-gallery/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 17:12:47 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[flickr_api]]></category>
		<category><![CDATA[javascript and jQuery]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=46</guid>
		<description><![CDATA[As promised, for those of you coming to rrdotc to view my photos, I&#8217;ve got the photo gallery back up and running. I now use the Flickr API to pull photos directly into the gallery, rather than hosting them locally. &#8230; <a href="http://royalrodent.com/archives/the-return-of-the-photo-gallery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As promised, for those of you coming to rrdotc to view my photos, I&#8217;ve got the photo gallery back up and running.  I now use the Flickr API to pull photos directly into the gallery, rather than hosting them locally.</p>
<p>It&#8217;s not perfect (or thoroughly tested for that matter), but today is my wife&#8217;s birthday, and if I don&#8217;t start showering some attention her way, she&#8217;s not going to be very happy. So hammer away at it.  If you see any bugs, leave me a comment and I&#8217;ll take a look at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/the-return-of-the-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web++, or What&#8217;s In a Name?</title>
		<link>http://royalrodent.com/archives/web-or-whats-in-a-name/</link>
		<comments>http://royalrodent.com/archives/web-or-whats-in-a-name/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 20:35:51 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web culture]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=25</guid>
		<description><![CDATA[There has been a lot of talk in the past few days about the term &#8220;HTML5&#8243; and what it should and should not encompass. Web geeks in the know realize that true HTML5 deals with the whatwg&#8217;s recommendations for modernizing &#8230; <a href="http://royalrodent.com/archives/web-or-whats-in-a-name/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There has been a lot of <a title="HTML5 Fuzzies at zedlman.com" href="http://www.zeldman.com/2010/08/03/html5-fuzzies/">talk</a> in the past few days about the term &#8220;HTML5&#8243; and what it should and should not encompass. Web geeks in the know realize that true HTML5 deals with the <a title="The Official web site of the Web Hypertext Application Technology Working Group" href="http://www.whatwg.org/">whatwg&#8217;s</a> recommendations for modernizing HTML, bringing it into conformance with demands of the 21st Century world wide web. It has nothing special to say about CSS, DOM, or the weather in downtown Frankfort, Kentucky. However, &#8220;HTML5&#8243; is starting to get tossed around as an umbrella term covering other new and exciting emerging web technologies such as CSS3, the geolocation API, and an assortment of other fun stuff rolling down the information superhighway.  While I think it&#8217;s important that developers always keep in mind the distinctions about the different technologies that make up the bleeding edge of The Web To Come, I tend to find myself agreeing more with <a title="On the Term 'HTML5' at jeffcroft.com" href="http://jeffcroft.com/blog/2010/aug/02/term-html5/">Jeff Croft</a> and <a title="'HTML5'-let's move on shall we? at quirksmode.org" href="http://www.quirksmode.org/blog/archives/2010/08/html5_lets_move.html">Peter-Paul Koch</a> on the matter.</p>
<p>Yeah, sure. I&#8217;m a purist. Or rather, I <em>was</em> a purist before 10 years of building web sites in the typical business and/or government world.  That experience has taught me that most web developers, myself included, don&#8217;t live in a homogeneous web vacuum. Rather we live in a marketing whirlpool, and buzz, sexy, and sizzle are the driving forces that spin the spin. I think I&#8217;d be better characterized as a pragmatist now.  Sure I still get my hackles up just a tad when someone uses the term AJAX interchangeably with DHTML. (I mean, come on! DHTML is clearly not what Garrett was talking about when he <a title="Ajax: A New Approach to Web Applications at adaptivepath.com" href="http://www.adaptivepath.com/ideas/essays/archives/000385.php">coined the term</a>.) Still, these days I usually just sit down and take a few deep breaths until the desire to scramble onto the nearest soapbox and start lecturing goes away. When all was said and done, a broader meaning for what was originally a narrow term ended up being a good thing. People got excited about AJAX, and that excitement helped fuel the revolution du jour. Marketing people heard the word and the energy associated with it, and they wanted that for <em>their</em> site. They weren&#8217;t excited about the AJAX (<em>sensu stricto</em>) that could make your web site talk to the server without having to refresh the page. They were excited about that other AJAX (<em>sensu lato</em>): the Google Maps; the Base Camps; the Flickrs. They wanted the cool, the pow, and the wow.</p>
<p>I&#8217;m sure a little standardsista part of me will cringe a tiny bit if and when a project manager comes to me and asks me to add geolocation to a site because they&#8217;d heard about this new &#8220;HTML5&#8243; thing and thinks we should get in on that.  Still I&#8217;ll stifle the &#8220;but that&#8217;s not HTML5&#8243; explanation and gleefully implement whatever they ask, giggling as I do. So yeah, I don&#8217;t care what you call the latest collective bleeding edge technologies as a whole. HTML5. Web 2.1. Web++. Whatever it takes to get the right people excited about the evolving standards and technologies for the web and to convince them they can start using these technologies <em>today</em>. It doesn&#8217;t matter to me as long as that excitement drives adoption.</p>
<p>It&#8217;s an exciting time to be a web developer!</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/web-or-whats-in-a-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Mobile First the Hard Way</title>
		<link>http://royalrodent.com/archives/learning-mobile-first-the-hard-way/</link>
		<comments>http://royalrodent.com/archives/learning-mobile-first-the-hard-way/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 01:55:58 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=20</guid>
		<description><![CDATA[Luke Wroblewski has been talking a lot on and off the web recently about designing for mobile first, and I wish I&#8217;d have run across his stuff a year ago.  My current project at work is retrofitting a site I had &#8230; <a href="http://royalrodent.com/archives/learning-mobile-first-the-hard-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="The official site of Luke Wroblewski" href="http://www.lukew.com/">Luke Wroblewski</a> has been talking a lot on and off the web recently about <a title="Mobile First by Luke Wroblewski" href="http://www.lukew.com/ff/entry.asp?933">designing for mobile first</a>, and I wish I&#8217;d have run across his stuff a year ago.  My current project at work is retrofitting a site I had previously worked on into a mobile presence.  The job is going easy enough, but I keep having to omit great content because I was short-sighted in the way I originally structured things.  Had I designed with mobile first in mind, I could have provided a much more information-rich experience on the mobile side.</p>
<p>Luke makes a compelling argument for why mobile is the platform of the future (dare I say, the platform of RIGHT NOW), and honestly a lot of developers are all going to be playing catchup if we keep building sites like it&#8217;s 1999.  It&#8217;s time to adapt to the new paradigm or be left behind with the TRS-80s and 3.5&#8243; floppy disks.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/learning-mobile-first-the-hard-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RRdotC Beta</title>
		<link>http://royalrodent.com/archives/rrdotc-beta/</link>
		<comments>http://royalrodent.com/archives/rrdotc-beta/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 00:57:57 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[rrdotc]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=13</guid>
		<description><![CDATA[Have the first draft of the new design up and running.  The design is going to be constantly fluid anyway as this is my playground for experimenting and trying out new things, but even by sandbox standards it&#8217;s pretty rough &#8230; <a href="http://royalrodent.com/archives/rrdotc-beta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Have the first draft of the new design up and running.  The design is going to be constantly fluid anyway as this is my playground for experimenting and trying out new things, but even by sandbox standards it&#8217;s pretty rough at the moment.</p>
<p>Case in point, if you came here using Internet Explorer, you may not be seeing things as intended.  Also, at the moment, the site is crashing mobile Safari on the iPad, but all that&#8217;s going to have to wait until I get back from vacation.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/rrdotc-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stripping Out Font Elements</title>
		<link>http://royalrodent.com/archives/stripping-out-font-elements/</link>
		<comments>http://royalrodent.com/archives/stripping-out-font-elements/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 00:22:59 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[javascript and jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=7</guid>
		<description><![CDATA[Got a little frustrated with Sharepoint recently, specifically with the way it kept injecting font elements into editable text.  Inline attributes on the font elements were making it impossible to style a project I&#8217;m currently working on.  So I threw &#8230; <a href="http://royalrodent.com/archives/stripping-out-font-elements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Got a little frustrated with Sharepoint recently, specifically with the way it kept injecting <code>font</code> elements into editable text.  Inline attributes on the font elements were making it impossible to style a project I&#8217;m currently working on.  So I threw together a little jQuery to remedy the issue.</p>
<p><code></p>
<pre>$('font').each( function(){
	$(this).replaceWith($(this).html());
});</pre>
<p></code></p>
<p>This little gem will cycle through all the <code>font</code> elements on a page and replace them in the DOM with whatever their contents are.  I haven&#8217;t tried it on nested <code>font</code> tags yet, but fully expect that it&#8217;s recursive. </p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/stripping-out-font-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://royalrodent.com/archives/hello-world/</link>
		<comments>http://royalrodent.com/archives/hello-world/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:07:00 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[rrdotc]]></category>

		<guid isPermaLink="false">http://royalrodent.com/?p=1</guid>
		<description><![CDATA[Do not attempt to adjust your set. If you&#8217;ve arrived here looking for my photoblog, it should be back soon, as well as all original content and ramblings on all things web, HTML5, and CSS.]]></description>
			<content:encoded><![CDATA[<p>Do not attempt to adjust your set.</p>
<p>If you&#8217;ve arrived here looking for my photoblog, it should be back soon, as well as all original content and ramblings on all things web, HTML5, and CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://royalrodent.com/archives/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

