<?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>[MeIsProgrammer] &#187; google</title>
	<atom:link href="http://just-thor.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://just-thor.com</link>
	<description>all play and no work makes me a dull boy</description>
	<lastBuildDate>Sat, 03 Jul 2010 18:28:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HTML5 Geolocation &#8211; Google Map with Modernizr</title>
		<link>http://just-thor.com/2010/07/04/html5-geolocation-google-map-with-modernizr/</link>
		<comments>http://just-thor.com/2010/07/04/html5-geolocation-google-map-with-modernizr/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 18:28:21 +0000</pubDate>
		<dc:creator>Thor</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://just-thor.com/?p=147</guid>
		<description><![CDATA[HTML5 defines a very handy function, which is geolocation. Basically, this function will try to locate user&#8217;s location. But at the moment, not every browser supports this function. We need [...]]]></description>
			<content:encoded><![CDATA[<p>HTML5 defines a very handy function, which is geolocation. Basically, this function will try to locate user&#8217;s location. But at the moment, not every browser supports this function. We need to implement some tedious conditions to check whether the browser supports Geolocation or not. Luckily, there is an open source javascript library, Modernizr. Using modernizr is simple, just import a script and use it. For example, if I want to check the browser whether Geolocation is supported or not, I just write the following code</p>
<p><pre><code>
if (Modernizr.geolocation){
//...Your logic here
}
</code></pre></p>
<p>Here, I wrote a simple html page that locate your location using Geolocation and show it on the Google map.</p>
<p><a href="http://just-thor.com/sample-works/geolocation.html">http://just-thor.com/sample-works/geolocation.html</a></p>
<p>Happy coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://just-thor.com/2010/07/04/html5-geolocation-google-map-with-modernizr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Obtaining Google Android Map API Key</title>
		<link>http://just-thor.com/2010/06/30/obtaining-google-android-map-api-key/</link>
		<comments>http://just-thor.com/2010/06/30/obtaining-google-android-map-api-key/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 08:53:32 +0000</pubDate>
		<dc:creator>Thor</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://just-thor.com/?p=152</guid>
		<description><![CDATA[As a beginner on Android platform, I was trying to embed Google map in my application. I have everything right, except the map is not loading, and no exception was [...]]]></description>
			<content:encoded><![CDATA[<p>As a beginner on Android platform, I was trying to embed Google map in my application. I have everything right, except the map is not loading, and no exception was thrown at the console.</p>
<p>After doing some searching on the internet, my problem seems like caused by incorrect API key. Obtaining Android Map API key is different from normal Google Map API key. I assume you are running Android emulator and also a beginner(like me <img src='http://just-thor.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ), first step is to find out the location of your keystore. In Eclipse, fire up the  &#8220;Preferences&#8221; window, and locate the Android-&gt;Build settings, you should see the location of your keystore file in the &#8220;Default debug keystore&#8221; field.</p>
<p>Type the following command in your command line. By the way, I am using Mac, I think *Nix user should have no problem running the following command, but for Windows Users, I think you need to find a way to do it.</p>
<p><em>keytool -list -keystore ~/.android/debug.keystore</em></p>
<p>and when it prompts you for the password, just hit the Enter key, no need to enter any password.<br /> And you will get something like this in the output</p>
<p>Certificate fingerprint (MD5): 8E:6F:5D:3F:A9:94:96:69:42:D2: <em>and more</em></p>
<p>copy the value of it, and go to this URL<br /> http://code.google.com/intl/sv-SE/android/maps-api-signup.html</p>
<p>Paste your value into the textbox and submit, and you should be able to get your API key. By using this Android Map API key, I was able to get the map working in my Android apps. <img src='http://just-thor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://just-thor.com/2010/06/30/obtaining-google-android-map-api-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Ajax Libraries Gotcha!</title>
		<link>http://just-thor.com/2010/02/23/google-ajax-libraries-gotch/</link>
		<comments>http://just-thor.com/2010/02/23/google-ajax-libraries-gotch/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:37:58 +0000</pubDate>
		<dc:creator>Thor</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://just-thor.com/?p=129</guid>
		<description><![CDATA[I was working on Google Map for the past few days, and was using jQuery to retrieve markers information from another URL using ajax. I came across the Google Ajax [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on Google Map for the past few days, and was using jQuery to retrieve markers information from another URL using ajax. I came across the Google Ajax Libraries (http://code.google.com/apis/ajaxlibs/) which helps to load Javascript from CDN.</p>
<p>Here&#8217;s part of the code<br />
<pre><pre class="brush: javascript">
//sample code taken from http://code.google.com/apis/ajaxlibs/
&lt;script src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
&lt;script&gt;
&nbsp;&nbsp;// Load jQuery
&nbsp;&nbsp;google.load(&quot;jquery&quot;, &quot;1&quot;);

&nbsp;&nbsp;// on page load complete, fire off a jQuery json-p query
&nbsp;&nbsp;// against Google web search
&nbsp;&nbsp;google.setOnLoadCallback(function() {
&nbsp;&nbsp;&nbsp;&nbsp;$.getJSON(&quot;http://ajax.googleapis.com/ajax/services/search/web?q=google&amp;v=1.0&amp;callback=?&quot;,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// on search completion, process the results
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function (data) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data.responseData.results &amp;&amp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data.responseData.results.length &gt; 0) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var results = data.responseData.results;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i=0; i &lt; results.length; i++) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Display each result however you wish
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(results[i].titleNoFormatting);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;});
&lt;/script&gt;
</pre></pre><br />
By using this code, we actually load jQuery 1 from the CDN. However, there is a gotcha. If you follow the example I attached just now, it probably won&#8217;t work, well, at least not on my FF3.5 and IE8. In fact, you will have to do something like the following instead<br />
<pre><pre class="brush: javascript">
//sample code taken from http://code.google.com/apis/ajaxlibs/
&lt;script src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
&lt;script&gt;
&nbsp;&nbsp;// Load jQuery
&nbsp;&nbsp;google.load(&quot;jquery&quot;, &quot;1&quot;);
&lt;/script&gt;
&lt;script&gt;
&nbsp;&nbsp;// on page load complete, fire off a jQuery json-p query
&nbsp;&nbsp;// against Google web search
&nbsp;&nbsp;google.setOnLoadCallback(function() {
&nbsp;&nbsp;&nbsp;&nbsp;$.getJSON(&quot;http://ajax.googleapis.com/ajax/services/search/web?q=google&amp;v=1.0&amp;callback=?&quot;,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// on search completion, process the results
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function (data) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data.responseData.results &amp;&amp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data.responseData.results.length &gt; 0) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var results = data.responseData.results;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i=0; i &lt; results.length; i++) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Display each result however you wish
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(results[i].titleNoFormatting);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;});
&lt;/script&gt;
</pre></pre><br />
You will have to close the script tag that load external script from CDN before you can use it. Else you will get javascript error, in IE8, it shows &#8216;Object expected&#8217;.I really hope you will be able to read my article before you pull all your hair off. <img src='http://just-thor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Happy Coding</p>
]]></content:encoded>
			<wfw:commentRss>http://just-thor.com/2010/02/23/google-ajax-libraries-gotch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
