<?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>brantheory &#187; google</title>
	<atom:link href="http://www.brantheory.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brantheory.com</link>
	<description>theory of a living man</description>
	<lastBuildDate>Tue, 17 Feb 2009 21:42:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Map Tip: Prevent direct linking to your XML data</title>
		<link>http://www.brantheory.com/2009/02/13/google-map-tip-prevent-direct-linking-to-your-xml-data/</link>
		<comments>http://www.brantheory.com/2009/02/13/google-map-tip-prevent-direct-linking-to-your-xml-data/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 05:08:55 +0000</pubDate>
		<dc:creator>bran</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.brantheory.com/?p=169</guid>
		<description><![CDATA[I have been recently working on a project integrating Google Maps API. It&#8217;s pretty straight forward and Google provides an excellent documention.  After working with the API and developing the custom mapping application, I noticed that the implemention exposes the name of the data file (xml, csv, text, etc) in the JavaScript code, example below [...]]]></description>
			<content:encoded><![CDATA[<p>I have been recently working on a project integrating <a href="http://code.google.com/apis/maps/">Google Maps API</a>. It&#8217;s pretty straight forward and Google provides an excellent documention.  After working with the API and developing the custom mapping application, I noticed that the implemention exposes the name of the data file (xml, csv, text, etc) in the JavaScript code, example below (can be seen by viewing page source):</p>
<pre>        <strong>GDownloadUrl("address.xml", function(data) {</strong>
...
)}</pre>
<p>Notice the bold area. &#8220;address.xml&#8221; is the file that contains all the xml data that has been collected and organized. I can pretty much download the file by entering in my address bar:  http://root url/address.xml. Voila, I have basically ripped off someone else&#8217;s data to be used as I see fit. Perhaps to create my own map!</p>
<p>I personally do not want to expose the location of my data file and allow others to download it.  To get around this issue, I have implemented a simple solution.</p>
<p>Rather than &#8220;address.xml&#8221;, I have created a new separate .php file. Let&#8217;s call it address.php. In that file, I check the referrer information to ensure that the request comes from the proper location. If it does, write the xml contents. If not, redirect them somewhere else.</p>
<pre>&lt;?php

    // prevent direct linking to xml files

 if($_SERVER['HTTP_REFERER'] != '') {

          $xml_string = file_get_contents("xml_location/address.xml");

        echo $xml_string;  

 }else{    
     // redirect them somewhere if they try to direct link to this page
      header( 'Location: http://www.google.com' ) ;

 }

?&gt;</pre>
<p>For the Google map, replace xml file with php file<strong> </strong></p>
<p>GDownloadUrl(&#8220;<strong>address.xml</strong>&#8220;, function(data) {  to:  GDownloadUrl(&#8220;<strong>address.php</strong>&#8220;, function(data) {</p>
<p>Simple as that. So if a curious viewer decides to enter &#8220;address.php&#8221; into there browser, they won&#8217;t get any data, just be redirected to some location you decide on.</p>
<p>There are also other ways to do this but IMO this is probably the simplilest and most effective.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brantheory.com/2009/02/13/google-map-tip-prevent-direct-linking-to-your-xml-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome &#8211; the New Browser Killer?</title>
		<link>http://www.brantheory.com/2008/09/02/google-chrome-the-new-browser-killer/</link>
		<comments>http://www.brantheory.com/2008/09/02/google-chrome-the-new-browser-killer/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 23:40:15 +0000</pubDate>
		<dc:creator>bran</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.brantheory.com/?p=86</guid>
		<description><![CDATA[
Google has just released today its&#8217; beta broswer Google Chrome. Some have already dubbed it the &#8220;Browser Killer&#8221;.  I&#8217;ve been an avid Firefox user since the beginning, making the early switch from Internet Explorer to Firefox and am very curious as to how Google&#8217;s attempt at the browser market will be.
So far very impressed. Very [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.brantheory.com/wp-content/uploads/2008/09/googlechrome.jpg"><img class="size-medium wp-image-87 aligncenter" style="border: 0px initial initial;" title="Google Chrome" src="http://www.brantheory.com/wp-content/uploads/2008/09/googlechrome-300x248.jpg" border="0" alt="" width="300" height="248" /></a></p>
<p><a href="http://www.brantheory.com/wp-content/uploads/2008/09/googlechrome.jpg"></a>Google has just released today its&#8217; beta broswer <a href="http://www.google.com/chrome">Google Chrome</a>. Some have already dubbed it the &#8220;Browser Killer&#8221;.  I&#8217;ve been an avid <a href="http://www.mozilla.com/en-US/firefox/">Firefox</a> user since the beginning, making the early switch from Internet Explorer to Firefox and am very curious as to how Google&#8217;s attempt at the browser market will be.</p>
<p>So far very impressed. Very clean, simple and this thing is FAST.  Some cool features include:</p>
<ul>
<li>Very clean and minimalistic approach</li>
<li>Quick search as part of address bar</li>
<li>Unique home page that displays your most visited sites in mini screenshot layouts</li>
<li>Incognito browsing, aka Porn View - Pages you view in this window won&#8217;t appear in your browser history and they won&#8217;t leave other traces, like cookies, on your computer</li>
<li>Did I already mention it is FAST?</li>
</ul>
<p>Missing:</p>
<ul>
<li>Minimal customization and advanced settings (at least that I can see right now)</li>
<li>No add ons or extensions</li>
<li>Something is a bit off with the scrolling</li>
</ul>
<p>Overall, very impressed with Chrome in the little amount that I have used it. I still love my Firefox with it&#8217;s addons and customization but Chrome is giving me a run for the money as my go to browser. Even in it&#8217;s beta stage, it&#8217;s already a worthy competitor.  In typical Google fashion, how long will it stay in beta? 1 year or 5??</p>
<p>Note: I posted this via Google Chrome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brantheory.com/2008/09/02/google-chrome-the-new-browser-killer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
