<?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>Flipflops.org &#187; Google</title>
	<atom:link href="http://www.flipflops.org/category/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Tue, 31 Jan 2012 23:26:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>I miss the old Streetview</title>
		<link>http://www.flipflops.org/2012/02/01/i-miss-the-old-streetview/</link>
		<comments>http://www.flipflops.org/2012/02/01/i-miss-the-old-streetview/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 23:26:16 +0000</pubDate>
		<dc:creator>Flipflops</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[googlemaps]]></category>
		<category><![CDATA[streetview]]></category>
		<category><![CDATA[v2]]></category>
		<category><![CDATA[v3]]></category>

		<guid isPermaLink="false">http://www.flipflops.org/?p=425</guid>
		<description><![CDATA[Recently I&#8217;ve been updating a site with some quite complex map related functionality from Google maps v2 to Google maps v3. All in all it has been straight forward and worth doing. The one disappointment IMO has been Streetview &#8211; the old version was so much slicker. The new version is easier to implement, but [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been updating a site with some quite complex map related functionality from Google maps v2 to Google maps v3. All in all it has been straight forward and worth doing.</p>
<p>The one disappointment IMO has been Streetview &#8211; the old version was so much slicker. The new version is easier to implement, but that is as positive as I can be. I miss being able to click in the distance and zoom down the road; I miss the swoosh as you move from position to position; I miss built in Full Screen.</p>
<p>On the flip side we now the have <a href="http://code.google.com/apis/maps/documentation/streetview/">API for static streetview images</a>  &#8211; I&#8217;ve been using <a href="http://jamiethompson.co.uk/web/2010/05/15/google-streetview-static-api/">Jamie Thompson&#8217;s</a> brilliant work on getting static map images up until now, but it is time to move on.</p>
<p>Slightly irritating is the fact you need to convert old (v2) Streetview panorama locations (if you have them saved) to show the locations as static images or as saved Streetview panoramas.</p>
<p>To convert a v2 panorama to a v3 panorama:</p>
<ul>
<li>&#8216;yaw&#8217; has become &#8216;heading&#8217;</li>
<li>change the sign of &#8216;pitch&#8217; e.g. -1.80999 becomes 1.80999</li>
<li>add 1 to your &#8216;zoom&#8217; level</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.flipflops.org/2012/02/01/i-miss-the-old-streetview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed matters</title>
		<link>http://www.flipflops.org/2012/01/13/speed-matters/</link>
		<comments>http://www.flipflops.org/2012/01/13/speed-matters/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 21:48:13 +0000</pubDate>
		<dc:creator>Flipflops</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Web Things]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.flipflops.org/?p=411</guid>
		<description><![CDATA[To my unending amazement, many people I&#8217;ve worked with simply don&#8217;t believe that speed matters as a factor in Search Engine rankings. I don&#8217;t understand why. It&#8217;s not like Google (and lets face it, we are talking about Google) are being coy about it. (see links) When you work in an office with stupidly fast [...]]]></description>
			<content:encoded><![CDATA[<p>To my unending amazement, many people I&#8217;ve worked with simply don&#8217;t believe that speed matters as a factor in Search Engine rankings. I don&#8217;t understand why. It&#8217;s not like Google (and lets face it, we are talking about Google) are being coy about it. (see links)</p>
<p>When you work in an office with stupidly fast broadband, maybe you just forget? But you shouldn&#8217;t assume that the people looking at your websites do.</p>
<p>The bit that really bugs me is this peculiar &#8216;head in the sand&#8217; attitude. It does take more than a few minutes of thinking to come up with any number plausible reasons why speed is important for Search Engine Optimisation (aside from the fact the Google say it is). Try it, take a few seconds to think.</p>
<p>For me though the reasons that scream out at me are User Experience and Money.</p>
<h2>User experience</h2>
<p>First off &#8211; I admit this isn&#8217;t really an SEO factor, is it? People are busy, they don&#8217;t want to spend valuable time waiting for a web page to load, at least I know I don&#8217;t. I have better things to do, and I&#8217;m not that weird.</p>
<p>But why would Google care? I can rationalise that they want people to look at Ads. And then click on them.  Probably a good idea to make websites faster so people don&#8217;t get bored and do something else, or find the bit of content they are looking for before the ads have loaded (because the ads come last).</p>
<h2>Time = Money</h2>
<p>Google must index billions of pages per day. It stands to reason that the faster a site loads, the faster it can be indexed. I&#8217;m guessing that it costs about the same to run a server whether it is indexing million pages per day or 10 million &#8211; but if your business is based on data the faster you can chew through data the better &#8211; and therefore it also makes sense for Google to promote an internet that lets them index more, faster.</p>
<h2>But we don&#8217;t have the time, it&#8217;s to hard&#8230;</h2>
<p>No it isn&#8217;t. Of course, as with any work there is optimum point in terms of cost vs. benefit (and that will be different for every site).</p>
<p>My gut feeling (and I don&#8217;t have any firm evidence for this) is that speed becomes more important the more traffic you get. If you&#8217;re site gets 50 visitors per day, then in a sense it is what it is &#8211; what you need to focus on is link building and content. However if your site gets 5000 visitors per day, then the chances are you&#8217;ve got quality links and good content &#8211; so how do you improve? I think the answer is the speed and user experience.</p>
<p>A fast website either means no traffic, no load on your server, no pictures, no javascript &#8211; in short a bit of old school html text&#8230; or it if is a big site, it means you care. It means that you have taken the time to think about users, you&#8217;ve spent a bit of money on hardware or code. It means that you are a quality business and therefore it is a good bet that you have better quality data on your site. It means that people will pay more to be associated with your site.</p>
<h2>How to make your site fast</h2>
<p>Hell, that&#8217;s a bold statement. It&#8217;s different for everybody. Think about the usual suspects, too much JavaScript, un-optimised images, sloooow queries with no indexes.</p>
<p>There are a myriad of solutions, and you don&#8217;t have to have Prototype, Jquery and Mootools all running on the same page, choose a single framework at a time &#8211; you will be amazed.</p>
<ul>
<li>Use a CDN. </li>
<li>Use a cache server like <a href="https://www.varnish-cache.org/">Varnish</a>.</li>
<li>If you&#8217;re a bit lazy &#8211; try out <a href="http://code.google.com/speed/page-speed/docs/module.html">mod_pagespeed</a> (sometimes it&#8217;s fab, sometimes it&#8217;ll melt your server)</li>
<li>Be brave, leave the Apache comfort zone and use <a href="http://nginx.org/">Nginx</a> or <a href="http://www.lighttpd.net/">Lighttpd</a></li>
<li>Use <a href="http://code.google.com/p/minify/">minify</a></li>
</ul>
<h2>Fringe benefits</h2>
<p>Chances are you&#8217;ll end up using some kind of caching and you&#8217;ll start setting sensible expires headers for your static content. But just think you&#8217;ll never have to tell somebody at the end of the phone to clear their browser cache again. And remember, the client is not an idiot because their browser hasn&#8217;t magically detected that a style sheet or an image has changed, and the website they have paid for looks a bit rubbish.</p>
<p>(by the way I don&#8217;t always practice what I&#8217;ve just preached, but at least I feel bad about it)</p>
<p><a href="http://googlewebmastercentral.blogspot.com/2010/04/using-site-speed-in-web-search-ranking.html">http://googlewebmastercentral.blogspot.com/2010/04/using-site-speed-in-web-search-ranking.html</a><br />
<a href="http://www.mattcutts.com/blog/site-speed/">http://www.mattcutts.com/blog/site-speed/</a><br />
<a href="http://www.google.co.uk/search?sourceid=chrome&#038;ie=UTF-8&#038;q=google+speed+as+factor+in+search+engine+ranking" title="google speed as factor in search engine ranking">etc.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flipflops.org/2012/01/13/speed-matters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first bit of Mootools and centering a Google Map in a hidden div</title>
		<link>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/</link>
		<comments>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 22:56:10 +0000</pubDate>
		<dc:creator>Flipflops</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/</guid>
		<description><![CDATA[Started a new job last week for a really cool agency in a place I really want to work* &#8211; but they are Mootools users not jQuery folk, so I am been thrown headlong into (among other things) the world of Mootools. I&#8217;m used to just sitting down and being able to make things work [...]]]></description>
			<content:encoded><![CDATA[<p>Started a new job last week for a really cool agency in a place I really want to work* &#8211; but they are Mootools users not jQuery folk, so I am been thrown headlong into (among other things) the world of Mootools. I&#8217;m used to just sitting down and being able to make things work quickly and painlessly with jQuery and it is funny being back to basics again. Today I wrote my first useful bit of Mootools code, which in the grand scheme of things is nothing &#8211; just a nice fading toggle to show and hide a Google Map &#8211; but it still felt good.</p>
<p>Along the way I had to ran into a problem with my map &#8211; when I showed it the centre-ing was gone &#8211; I tried all sorts of things&#8230; map.checkResize() didn&#8217;t work and map.setCenter() didn&#8217;t work.</p>
<p>Eventually I deduced that first you actually need to call both functions &#8211; reset, then centre e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
    map.<span style="color: #660066;">checkResize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    map.<span style="color: #660066;">setCenter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">51.90568</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1.33214</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Along my way I have found a <a href="http://jqueryvsmootools.com/">great article comparing jQuery and Mootools</a> &#8211; which I would recommend to anyone going either way.</p>
<p>*But it is a kind of a personal philosophy not to ever say on my blog where I do work, just because. I&#8217;ve taken over a big project running on a Cloud server written by a load of other people, the sort of thing that is hard but very rewarding.<br />
** I have no idea where those coordinates are. Maybe Up North somewhere?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flipflops.org/2009/10/26/my-first-bit-of-mootools-and-centering-a-google-map-in-a-hidden-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When Google Maps go bad&#8230;</title>
		<link>http://www.flipflops.org/2008/10/30/when-google-maps-go-bad/</link>
		<comments>http://www.flipflops.org/2008/10/30/when-google-maps-go-bad/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 21:04:04 +0000</pubDate>
		<dc:creator>Flipflops</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Things]]></category>

		<guid isPermaLink="false">http://www.flipflops.org/2008/10/30/when-google-maps-go-bad/</guid>
		<description><![CDATA[This week I noticed that a number of google maps had stopped working out of the blue, not dying in a spectacular javascript car crash, just a subdued failure and no map. Looking in Firefox error console I see G_MAP_TYPE is not defined; &#8211; WTF? it was working&#8230; Well looking into it, it is an [...]]]></description>
			<content:encoded><![CDATA[<p>This week I noticed that a number of google maps had stopped working out of the blue, not dying in a spectacular javascript car crash, just a subdued failure and no map.</p>
<p>Looking in Firefox error console I see <strong>G_MAP_TYPE is not defined</strong>; &#8211; WTF? it was working&#8230;</p>
<p>Well looking into it, it is an easy fix. It seems that a lot of people (myself included) have been using depreceated constant names for the maps types, and that there will be quite a few Javascript Plugins (for things like <a href="http://www.jquery.com">jQuery</a>) that may need updating.</p>
<p>The usual (i.e. correct) types we should now be using now are:
</p>
<table class="exam_table mtable">
<thead>
<tr>
<th>Old Constant name </th>
<th><nobr>New Constant Name</nobr></th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>G_MAP_TYPE</td>
<td><strong>G_NORMAL_MAP</strong></td>
<td>This map type (which is the default) displays a normal street map.</td>
</tr>
<tr>
<td>G_SATELLITE_TYPE</td>
<td><strong>G_SATELLITE_MAP</strong></td>
<td>This map type displays satellite images.</td>
</tr>
<tr>
<td>G_HYBRID_TYPE</td>
<td><strong>G_HYBRID_MAP</strong></td>
<td>This map type displays a transparent layer of major streets on satellite images.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><strong>G_PHYSICAL_MAP</strong></td>
<td>
<p>This map type displays maps with physical features such as terrain and vegetation. This map type is not displayed within map type controls by default. (Since 2.94)</p>
</td>
</tr>
</tbody>
</table>
<p>See: <a href="http://code.google.com/apis/maps/documentation/reference.html#GMapType">http://code.google.com/apis/maps/documentation/reference.html#GMapType</a></p>
<p>For a bit of an actual explanation I found this post on <a href="http://groups.google.com.au/group/Google-Maps-API/browse_thread/thread/eec00441339c0a52/2c3c93119f02b509?lnk=raot">Google Groups</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flipflops.org/2008/10/30/when-google-maps-go-bad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

