<?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>VV&#039;s Corner &#187; Uncategorized</title>
	<atom:link href="http://vinoaj.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinoaj.com/blog</link>
	<description>my collection of random thoughts, how-to&#039;s and code snippets</description>
	<lastBuildDate>Sat, 04 Dec 2010 15:05:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Getting started with Google Geo (Maps, Mapplets &amp; Earth) APIs</title>
		<link>http://vinoaj.com/blog/2008/10/getting-started-with-google-geo-maps-mapplets-earth-apis/</link>
		<comments>http://vinoaj.com/blog/2008/10/getting-started-with-google-geo-maps-mapplets-earth-apis/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 03:52:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[earth]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mapplets]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[street]]></category>
		<category><![CDATA[streetview]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=41</guid>
		<description><![CDATA[There is a great quantity of quality resources to help get you started on making your first geo mashups. This page links to all those great resources from one easy location. Google Maps API Google Streetview API Google Mapplets API Google Earth API Google Earth Google Maps API Get started with the Google Maps API [...]]]></description>
			<content:encoded><![CDATA[<p>There is a great quantity of quality resources to help get you started on making your first geo mashups. This page links to all those great resources from one easy location.</p>
<div id="contents">
<p><a href="#maps">Google Maps API</a></p>
<p><a href="#streetview">Google Streetview API</a></p>
<p><a href="#mapplets">Google Mapplets API</a></p>
<p><a href="#earthapi">Google Earth API</a></p>
<p><a href="#earth">Google Earth</a>  </div>
<p> <br/></p>
<h2><a name="maps" id="maps"></a>Google Maps API</h2>
<ul class="learnlist">
<li>Get started with the <a href="http://code.google.com/apis/maps/" target="_blank">Google Maps API</a></li>
<li>Read the <a href="http://code.google.com/apis/maps/documentation/index.html" target="_blank">API Getting Started guide</a> and <a href="http://code.google.com/apis/maps/documentation/reference.html" target="_blank">API reference documentation</a> </li>
<li>Watch <a href="http://code.google.com/apis/maps/documentation/mediagallery.html" target="_blank">Google Maps Presentations</a> on basics and advanced topics </li>
<li>Learn to create your first map, store locator, and other <a href="http://code.google.com/apis/maps/articles/" target="_blank">useful tutorials</a> </li>
<li>Participate in discussions and receive support at the <a href="http://groups.google.com/group/Google-Maps-API" target="_blank">Google Maps API Group</a></li>
<li>There are a number of open-source <a href="http://code.google.com/p/gmaps-utility-library/" target="_blank">utility libraries</a> that make developing with Google Maps easy </li>
<li>Play with some <a href="http://code.google.com/apis/maps/documentation/examples/" target="_blank">API examples</a> to see what can be done </li>
<li>Subscribe to the <a href="http://googlegeodevelopers.blogspot.com/" target="_blank">Google Geo Developers blog</a> and Google <a href="http://google-latlong.blogspot.com/2008/10/opening-door-to-geospatial-data.html" target="_blank">LatLong blog</a> to keep up to date with the latest tips and updates</li>
<li>Subscribe to the <a href="http://googlemapsmania.blogspot.com/" target="_blank">Google Maps Mania  blog</a> and see what others are doing with the Maps API </li>
<li>Use the <a href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">Static Maps API</a> to embed map images in your mobile and email content </li>
<li>Use the <a href="http://code.google.com/apis/maps/documentation/flash/" target="_blank">Flash Maps API</a>     in your Flash applications    </li>
</ul>
<p><br/> </p>
<h3>YouTube videos</h3>
<p>  View a full list of <a href="http://code.google.com/apis/maps/documentation/mediagallery.html" target="_blank">Maps API  videos here</a> </p>
<p> <br/></p>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Bbk5Zw-M23o&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Bbk5Zw-M23o&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></td>
<td><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/o1nVWtYhlEg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/o1nVWtYhlEg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></td>
</tr>
<tr>
<td>Google Maps API Intermediate (44:11) </td>
<td>Google Maps API Advanced (50:17) <a href="http://www.youtube.com/view_play_list?p=5F0F046F77B7B62A" target="_blank"></a> </td>
</tr>
</table>
<p> <br/><br />
<br/></p>
<h2><a name="streetview" id="streetview"></a>Google Street View API</h2>
<p>  The Street View API allows you to leverage Google&#8217;s unique Streetview imagery and controls within your mashups.  Streetview is currently available for selected locations in the US, Australia, and Japan.</p>
<ul class="learnlist">
<li>Get started with the <a href="http://code.google.com/apis/maps/documentation/services.html#Streetview" target="_blank">Google Street View API</a></li>
<li>Read the  <a href="http://code.google.com/apis/maps/documentation/reference.html#GStreetviewData" target="_blank">API reference</a> documentation </li>
<li>Play with some <a href="http://gmaps-samples.googlecode.com/svn/trunk/streetview/" target="_blank">API samples</a> to see what can be done</li>
</ul>
<p> <br/></p>
<h2><a name="mapplets" id="mapplets"></a>Google Mapplets API</h2>
<p>  Mapplets are a combination of the Maps API and Gadgets API, and provide a great platform for making your maps mashups discoverable and permanent via the mapplets directory.</p>
<ul class="learnlist">
<li>Get started with the <a href="http://code.google.com/apis/maps/documentation/mapplets/" target="_blank">Google Mapplets API</a></li>
<li>Read the <a href="http://code.google.com/apis/maps/documentation/mapplets/basics.html" target="_blank">API Getting Started guide</a> and <a href="http://code.google.com/apis/maps/documentation/mapplets/reference.html" target="_blank">API reference documentation</a> </li>
<li>Discover, install, and play with others&#8217; mapplets in the <a href="http://maps.google.com/ig/directory?synd=mpl&amp;pid=mpl&amp;features=sharedmap,geofeed&amp;backlink=http://maps.google.com/maps/mm%3Fie%3DUTF8%26hl%3Den%26ll%3D1.352083,103.819836%26spn%3D1.346792,2.114868%26z%3D10&amp;hl=en" target="_blank">Mapplets Directory</a></li>
</ul>
<p> <br/></p>
<h2><a name="earthapi" id="earthapi"></a>Google Earth API</h2>
<ul class="learnlist">
<li>Get started with the <a href="http://code.google.com/apis/earth/" target="_blank">Google Earth API</a></li>
<li>Read the <a href="http://code.google.com/apis/earth/documentation/index.html" target="_blank">API Getting Started guide</a> and <a href="http://code.google.com/apis/earth/documentation/reference/index.html" target="_blank">API reference</a> documentation </li>
<li>Learn about <a href="http://code.google.com/apis/kml/documentation/index.html" target="_blank">KML files</a> </li>
<li>Learn how to <a href="http://sketchup.google.com/vtutorials.html" target="_blank">create 3D models</a> using <a href="http://sketchup.google.com/index.html" target="_blank">Google Sketchup</a></li>
<li>Participate in discussions and receive support at the <a href="http://groups.google.com/group/sketchup/" target="_blank">Google SketchUp Help Group</a> and subscribe to the <a href="http://sketchupdate.blogspot.com/" target="_blank">SketchUp Blog</a> </li>
<li>Play with some <a href="http://code.google.com/apis/earth/documentation/examples.html" target="_blank">Earth API samples</a> to see what can be done </li>
<li>Subscribe to the <a href="http://googlegeodevelopers.blogspot.com/" target="_blank">Google Geo Developers blog</a> and Google <a href="http://google-latlong.blogspot.com/2008/10/opening-door-to-geospatial-data.html" target="_blank">LatLong blog</a> to keep up to date with the latest tips and updates</li>
<li>Subscribe to the <a href="http://googlemapsmania.blogspot.com/" target="_blank">Google Maps Mania  blog</a> and see what others are doing with the Earth API </li>
</ul>
<p> <br/></p>
<h2><a name="earth" id="earth"></a>Google Earth</h2>
<ul class="learnlist">
<li><a href="http://pack.google.com/intl/en/integrated_eula.html?hl=en&amp;ciint=ci_earth&amp;ci_earth=onciint=ci_earth" target="_blank">Download Google Earth</a></li>
<li>Learn about using <a href="http://earth.google.com/" target="_blank">Google Earth  </a></li>
<li>Learn about <a href="http://code.google.com/apis/kml/documentation/index.html" target="_blank">KML files</a> and how to <a href="http://code.google.com/apis/kml/documentation/kml_tut.html" target="_blank">develop content for Google Earth</a> </li>
<li>Participate in discussions and receive support at the <a href="http://bbs.keyhole.com/ubb/ubbthreads.php/Cat/0" target="_blank">Google Earth Community</a> </li>
<li>Learn how to <a href="http://sketchup.google.com/vtutorials.html" target="_blank">create 3D models</a> using <a href="http://sketchup.google.com/index.html" target="_blank">Google Sketchup</a></li>
<li>Discover, install, and play with others&#8217; Earth content in the <a href="http://earth.google.com/gallery/index.html" target="_blank">Google Earth KML Gallery</a> </li>
<li>Subscribe to the <a href="http://googlegeodevelopers.blogspot.com/" target="_blank">Google Geo Developers blog</a> and Google <a href="http://google-latlong.blogspot.com/2008/10/opening-door-to-geospatial-data.html" target="_blank">LatLong blog</a> to keep up to date with the latest tips and updates</li>
<li>Subscribe to the <a href="http://googlemapsmania.blogspot.com/" target="_blank">Google Maps Mania  blog</a> and see what others are doing with Google Earth </li>
</ul>
<p> <br/></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/10/getting-started-with-google-geo-maps-mapplets-earth-apis/&via=vinoaj&text=Getting started with Google Geo (Maps, Mapplets & Earth) APIs&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/10/getting-started-with-google-geo-maps-mapplets-earth-apis/&via=vinoaj&text=Getting started with Google Geo (Maps, Mapplets & Earth) APIs&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F10%2Fgetting-started-with-google-geo-maps-mapplets-earth-apis%2F&amp;title=Getting%20started%20with%20Google%20Geo%20%28Maps%2C%20Mapplets%20%26%20Earth%29%20APIs" id="wpa2a_2"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/10/getting-started-with-google-geo-maps-mapplets-earth-apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User-friendly 404 pages</title>
		<link>http://vinoaj.com/blog/2008/08/user-friendly-404-pages/</link>
		<comments>http://vinoaj.com/blog/2008/08/user-friendly-404-pages/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 03:30:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google webmaster tools 404 widget]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=40</guid>
		<description><![CDATA[If a user types in or follows a URL that does not exist on a website they are usually taken to a 404 (page not found) page.  Returning a standard 404 page to your user tends to provide a less-than-optimal user experience and may cause you to lose them altogether.  A solution is now at [...]]]></description>
			<content:encoded><![CDATA[<p>If a user types in or follows a URL that does not exist on a website they are usually taken to a 404 (page not found) page.  Returning a standard 404 page to your user tends to provide a less-than-optimal user experience and may cause you to lose them altogether.  <br id="s2sw" /> <br id="s2sw0" /> A solution is now at hand.  <a id="p9ry" title="Create a custom 404 page" href="http://google.com/support/webmasters/bin/answer.py?answer=93641">Create a custom 404 page</a> and embed a <a id="ngiu" title="Webmaster Tools 404 widget" href="http://googlewebmastercentral.blogspot.com/2008/08/make-your-404-pages-more-useful.html">Webmaster Tools 404 widget</a> into it.  The 404 widget helps your visitors find what they&#8217;re looking for by providing suggestions based on the incorrect URL.  It also provides a link to the parent subdirectory, a sitemap webpage, and a site search query suggestions and search box.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/user-friendly-404-pages/&via=vinoaj&text=User-friendly 404 pages&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/user-friendly-404-pages/&via=vinoaj&text=User-friendly 404 pages&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F08%2Fuser-friendly-404-pages%2F&amp;title=User-friendly%20404%20pages" id="wpa2a_4"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/08/user-friendly-404-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Google Static Maps API to include maps in your emails</title>
		<link>http://vinoaj.com/blog/2008/08/using-the-google-static-maps-api-to-include-maps-in-your-emails/</link>
		<comments>http://vinoaj.com/blog/2008/08/using-the-google-static-maps-api-to-include-maps-in-your-emails/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 09:42:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google maps api static]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=39</guid>
		<description><![CDATA[The Google Maps API is a great way to utilise Google&#8217;s Maps platform on your own website. The standard Maps API, however, does not work in e-mails as it is reliant on JavaScript which most (if not all) e-mail clients block. Luckily there is a solution thanks to the Google Static Maps API. The Static [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://code.google.com/apis/maps/" target="_blank">Google Maps API</a> is a great way to utilise Google&#8217;s Maps platform on your own website.  The standard Maps API, however, does not work in e-mails as it is reliant on JavaScript which most (if not all) e-mail clients block.<br/><br />
<br/><br />
Luckily there is a solution thanks to the <a href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">Google Static Maps API</a>.  The Static Maps API generates an image file that can be embedded into your HTML content (like below).  Because it is an image, and there is no JavaScript involved, mail clients will display such a map.  You can specify the location of the map, the size of the image, the zoom level, the type of map, and the placement of optional markers at locations on the map using the API. For example:<br/><br />
<br/><br />
<img src="http://maps.google.com/staticmap?center=1.286032,103.845434&amp;markers=1.288939,103.846936,bluea|1.293219,103.852181,blueb&amp;path=rgba:0x0000FFcc,weight:9|1.29478,103.83213|1.28895,103.83496|1.28886,103.83840|1.28946,103.84063|1.28612,103.84535&amp;zoom=14&amp;size=500x300&amp;key=ABQIAAAAhISZ-o4nxPcNq1JTRTETLhQLeGXvsK0JA63sEZyuJAvN8d-PMxSxggKvVhYClNAOt63G9NDKDsqpCw" alt="Singapore MRT stations" /><br/><br />
<br/><br />
<img src="http://maps.google.com/staticmap?center=-33.869667,151.207302&amp;markers=-33.870273,151.208224,greena|-33.869240,151.205810,greena&amp;path=rgba:0x0000FFb3,weight:5|-33.87053,151.20820|-33.87078,151.20819|-33.87070,151.21022|-33.87086,151.21019|-33.87088,151.21081&amp;zoom=16&amp;size=500x300&amp;key=ABQIAAAAhISZ-o4nxPcNq1JTRTETLhQLeGXvsK0JA63sEZyuJAvN8d-PMxSxggKvVhYClNAOt63G9NDKDsqpCw" alt="Sydney - Pitt St Mall to Hyde Park" /><br/><br />
<br/><br />
Getting started is easy!</p>
<ol>
<li><a href="http://code.google.com/apis/maps/signup.html" target="_blank">Sign up for a Google Maps API key</a></li>
<li>Use the <a href="http://gmaps-samples.googlecode.com/svn/trunk/simplewizard/makestaticmap.html" target="_blank">Google Static Map Wizard</a> to create your first static map</li>
<li>Read the <a href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">Google Maps Static API documentation</a></li>
</ol>
<p><br/><br />
This method is great for also providing map content in other mediums that don&#8217;t support JavaScript &#8211; such as mobile content.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/using-the-google-static-maps-api-to-include-maps-in-your-emails/&via=vinoaj&text=Using the Google Static Maps API to include maps in your emails&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/using-the-google-static-maps-api-to-include-maps-in-your-emails/&via=vinoaj&text=Using the Google Static Maps API to include maps in your emails&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F08%2Fusing-the-google-static-maps-api-to-include-maps-in-your-emails%2F&amp;title=Using%20the%20Google%20Static%20Maps%20API%20to%20include%20maps%20in%20your%20emails" id="wpa2a_6"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/08/using-the-google-static-maps-api-to-include-maps-in-your-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python: Inserting characters into a string</title>
		<link>http://vinoaj.com/blog/2008/08/python-inserting-characters-into-a-string/</link>
		<comments>http://vinoaj.com/blog/2008/08/python-inserting-characters-into-a-string/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 14:00:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=38</guid>
		<description><![CDATA[Disclaimer: I&#8217;m a Python newbie &#8230; if you know of a more efficient way let me know! I needed to take a sequence of 4 digits (eg 1145) and modify it to look like clock-time (eg &#8220;11:45&#8243;). After a bit of online (what else?) research I decided to take the approach of converting the integer [...]]]></description>
			<content:encoded><![CDATA[<p>Disclaimer: I&#8217;m a Python newbie &#8230; if you know of a more efficient way let me know!</p>
<p>I needed to take a sequence of 4 digits (eg 1145) and modify it to look like clock-time (eg &#8220;11:45&#8243;).  After a bit of online (what else?) research I decided to take the approach of converting the integer to a string and then to a list (of characters).  I then insert the extra character (ie the &#8220;:&#8221;) into the list at the right position.  Finally, join the list elements together to form a new string.</p>
<p><code><br />
time_int = 1145<br />
time_str = str(time_int)<br />
time_list = list(time_str)<br />
time_list.insert(2, ':')  #insert the ':' character into the list before position 2<br />
time_str = "".join(time_list)<br />
</code></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/python-inserting-characters-into-a-string/&via=vinoaj&text=Python: Inserting characters into a string&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/08/python-inserting-characters-into-a-string/&via=vinoaj&text=Python: Inserting characters into a string&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F08%2Fpython-inserting-characters-into-a-string%2F&amp;title=Python%3A%20Inserting%20characters%20into%20a%20string" id="wpa2a_8"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/08/python-inserting-characters-into-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python: removing repeated values in a list</title>
		<link>http://vinoaj.com/blog/2008/07/python-removing-repeated-values-in-a-list/</link>
		<comments>http://vinoaj.com/blog/2008/07/python-removing-repeated-values-in-a-list/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 13:56:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[set]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=37</guid>
		<description><![CDATA[PLAIN TEXT CODE: list = &#91;'one', 'two', 'three', 'one', 'one', 'four', 'two'&#93; #convert the list into a set.&#160; An element can only exist once within a set set = set&#40;list&#41; #convert the set back into a list type list = list&#40;set&#41; print list Are those variable names confusing? Let's look at that example again: PLAIN [...]]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">list = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'one'</span>, <span style="color:#CC0000;">'two'</span>, <span style="color:#CC0000;">'three'</span>, <span style="color:#CC0000;">'one'</span>, <span style="color:#CC0000;">'one'</span>, <span style="color:#CC0000;">'four'</span>, <span style="color:#CC0000;">'two'</span><span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#convert the list into a set.&nbsp; <span style="">An</span> element can only exist once within a set</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">set = set<span style="color:#006600; font-weight:bold;">&#40;</span>list<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#convert the set back into a list type</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">list = list<span style="color:#006600; font-weight:bold;">&#40;</span>set<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">print list </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Are those variable names confusing? Let's look at that example again:</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fruits = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'apple'</span>, <span style="color:#CC0000;">'bananas'</span>, <span style="color:#CC0000;">'cantaloupes'</span>, <span style="color:#CC0000;">'apple'</span>, <span style="color:#CC0000;">'apple'</span>, <span style="color:#CC0000;">'durian'</span>, <span style="color:#CC0000;">'bananas'</span><span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#convert the list into a set.&nbsp; <span style="">An</span> element can only exist once within a set</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fruits_unique = set<span style="color:#006600; font-weight:bold;">&#40;</span>fruits<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#convert the set back into a list type</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fruits = list<span style="color:#006600; font-weight:bold;">&#40;</span>fruits_unique<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">print fruits </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/python-removing-repeated-values-in-a-list/&via=vinoaj&text=Python: removing repeated values in a list&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/python-removing-repeated-values-in-a-list/&via=vinoaj&text=Python: removing repeated values in a list&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F07%2Fpython-removing-repeated-values-in-a-list%2F&amp;title=Python%3A%20removing%20repeated%20values%20in%20a%20list" id="wpa2a_10"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/07/python-removing-repeated-values-in-a-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing your regular expression Goal URLs for Google Analytics</title>
		<link>http://vinoaj.com/blog/2008/07/testing-your-regular-expression-goal-urls-for-google-analytics/</link>
		<comments>http://vinoaj.com/blog/2008/07/testing-your-regular-expression-goal-urls-for-google-analytics/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:55:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=36</guid>
		<description><![CDATA[Your dilemma: You want to create a Google Analytics Goal that defines a Goal URL using a regular expression match.  But how do you test it without having to wait 24 hours for your Google Analytics reports to be updated? Help is at hand: Regular expressions can be tested using the search box in Google Analytics [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></p>
<p id="h_zf1" style="margin: 0px;"><strong>Your dilemma:</strong> You want to create a Google Analytics Goal that defines a Goal URL using a regular expression match.  But how do you test it without having to wait 24 hours for your Google Analytics reports to be updated?</p>
<p id="cj75" style="margin: 0px;"><br id="cj750" /></p>
<p id="cj751" style="margin: 0px;"><strong>Help is at hand:</strong> Regular expressions can be tested using the search box in Google Analytics reports.  That's right - the search box available in all reports can take and interpret regular expressions.  Let's say that you intend to use the following regular expression as your Goal URL:</p>
<p id="mkr_" style="margin: 0px;"><br id="mkr_0" /></p>
<p id="mkr_1" style="margin: 0px;"><span id="b-co" class="Apple-style-span" style="font-family: 'Courier New';">/goal_page\.html\?cid=[123][abc]-.*&amp;.*<span class="Apple-converted-space"> </span></span></p>
<p id="mkr_2" style="margin: 0px;"><br id="mkr_3" /></p>
<p id="mkr_4" style="margin: 0px;">First, copy the regular expression into your clipboard.  Then navigate to the Content &gt; Top Content report.  Paste the regular expression into the search box that sits below the table of data.  Now click on the "Go" button.</p>
<p id="qh0." style="margin: 0px;"><br id="qh0.0" /></p>
<p id="qh0.1" style="margin: 0px;">Do you see your Goal URL(s) in the returned report?  If yes - great, you're good to go!  If no - you will need to spend some time refining your regular expression.  Tools like <a id="sp6z" style="color: #551a8b;" title="RegExr" href="http://gskinner.com/RegExr/">RegExr</a><span class="Apple-converted-space"> </span>and <a id="be03" style="color: #551a8b;" title="The Regex Coach" href="http://www.weitz.de/regex-coach/">The Regex Coach</a><span class="Apple-converted-space"> </span>are useful for this.</p>
<p id="cj752" style="margin: 0px;"><br id="cj753" /></p>
<p id="cj754" style="margin: 0px;">There you have it - an easy way to test your regular expressions without having to wait 24 hours for your reports to update.</p>
<p id="x-it0" style="margin: 0px;"><br id="x-it1" /></p>
<p id="cj758" style="margin: 0px;">This method can also be used to test regular expressions for your filters.  For example, if you have a custom filter for the "Visitor Country" field that uses a regular expression, test that expression in the Visitors &gt; Map Overlay report.</p>
<p></span></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/testing-your-regular-expression-goal-urls-for-google-analytics/&via=vinoaj&text=Testing your regular expression Goal URLs for Google Analytics&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/testing-your-regular-expression-goal-urls-for-google-analytics/&via=vinoaj&text=Testing your regular expression Goal URLs for Google Analytics&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F07%2Ftesting-your-regular-expression-goal-urls-for-google-analytics%2F&amp;title=Testing%20your%20regular%20expression%20Goal%20URLs%20for%20Google%20Analytics" id="wpa2a_12"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/07/testing-your-regular-expression-goal-urls-for-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics and Troubleshooting AdWords Auto-Tagging</title>
		<link>http://vinoaj.com/blog/2008/07/google-analytics-and-troubleshooting-adwords-auto-tagging/</link>
		<comments>http://vinoaj.com/blog/2008/07/google-analytics-and-troubleshooting-adwords-auto-tagging/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 00:50:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adwords]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[auto-tagging]]></category>
		<category><![CDATA[autotagging]]></category>
		<category><![CDATA[gclid]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/?p=35</guid>
		<description><![CDATA[When reading your AdWords reports in Google Analytics, there are many possible reasons why there may be discrepancies between Google Analytics visits and AdWords clicks.  If you see wildly different numbers for visits and clicks, the likely culprit is that the AdWords auto-tagging parameter is being stripped from the landing page URL. What happens when [...]]]></description>
			<content:encoded><![CDATA[<p>When reading your AdWords reports in Google Analytics, there are many <a id="awmr" title="possible reasons why there may be discrepancies in reported figures for Google Analytics visits vs. AdWords clicks" href="http://www.google.com/support/googleanalytics/bin/answer.py?answer=55610&amp;topic=11145" target="_blank">possible reasons why there may be discrepancies between Google Analytics visits and AdWords clicks</a>.  If you see wildly different numbers for visits and clicks, the likely culprit is that the AdWords auto-tagging parameter is being stripped from the landing page URL.<br id="groj5" /> <br id="groj6" /> What happens when you have auto-tagging enabled in your AdWords account?  Any time one of your ads is clicked on, AdWords will automatically append a paramater called the <span style="font-family: Courier New;">gclid </span>(Google CLick ID) on to the end of the ad's destination URL.<br id="groj7" /> <br id="groj8" /> For example, if your ad's destination URL is <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.mysite.com/landing_page.html" href="http://www.mysite.com/landing_page.html">http://www.mysite.com/landing_page.html</a></span></span> and a user clicks on your ad, AdWords will redirect the user to <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.mysite.com/landing_page.html" href="http://www.mysite.com/landing_page.html">http://www.mysite.com/landing_page.html</a></span>?</span><strong id="ki3s" style="font-family: Courier New;">gclid=123fa35fjn809080jk</strong> (the gclid value is a random string)<br id="groj9" /> <br id="groj10" /> The gclid value is a unique identifier that identifies which ad (and consequently keyword, ad group and campaign) the visitor clicked on to reach your site.  When Google Analytics processes your reports, it fills in the AdWords reports by looking up the appropriate <span style="font-family: Courier New;">gclid </span>values in the AdWords database to find the corresponding information.<br id="groj11" /> <br id="groj12" /> <strong id="plat">Here's the key point: Google Analytics <span style="text-decoration: underline;">cannot</span> tell if the visitor came from an AdWords click if the gclid parameter is missing on the page that the user eventually lands on!</strong><br id="groj13" /> <br id="groj14" /> The key is to <strong id="t2wr">test whether your landing page retains the gclid parameter</strong>.<br id="t2wr0" /> <br id="groj15" /></p>
<ol id="t2wr1">
<li id="t2wr2">Take your destination URL (eg <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.yoursite.com/landing_page.html" href="http://www.yoursite.com/landing_page.html">http://www.yoursite.com/landing_page.html</a></span></span>) and paste it into your browser's location bar (where you usually type in a web address)</li>
<li id="t2wr3">Add a test parameter on to the end of the URL.  If your URL does not already have parameters in it, append <strong id="g04z" style="font-family: Courier New;">?gclid=test</strong>.  If there are already parameters, append <strong id="zpl1" style="font-family: Courier New;">&amp;gclid=test</strong> on to the end.  (For example, <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.yoursite.com/landing_page.html" href="http://www.yoursite.com/landing_page.html">http://www.yoursite.com/landing_page.html</a></span></span> becomes <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.yoursite.com/landing_page.html" href="http://www.yoursite.com/landing_page.html">http://www.yoursite.com/landing_page.html</a></span></span><strong id="kla:" style="font-family: Courier New;">?gclid=test</strong>; and <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.yoursite.com/landing_page.html?myval=1" href="http://www.yoursite.com/landing_page.html?myval=1">http://www.yoursite.com/landing_page.html?myval=1</a></span> </span>becomes <span style="font-family: Courier New;"><span class="linkification-ext"><a class="linkification-ext" title="Linkification: http://www.yoursite.com/landing_page.html?myval=1" href="http://www.yoursite.com/landing_page.html?myval=1">http://www.yoursite.com/landing_page.html?myval=1</a></span></span><strong id="qcx8" style="font-family: Courier New;">&amp;gclid=test</strong>)</li>
<li id="t2wr4">Press enter</li>
<li id="t2wr5">Your browser will take you to your landing page.  Be mindful of redirects, especially if you are tracking with Doubleclick, Atlas, etc tags.</li>
<li id="t2wr6">Is the <span style="font-family: Courier New;">gclid=test</span> parameter still visible in your browser's location bar?</li>
</ol>
<p><br id="groj21" /> YES? Auto-tagging plays nice with your destination URLs.  You can stop reading now!<br id="groj22" /> <br id="groj23" /> NO? Oh-oh.  There is most likely an intermediate redirect that is stripping out the gclid parameter. There are two options to remedy this:<br id="groj25" /></p>
<ol id="s57v">
<li id="s57v0">First (and easiest) - change your destination URL to the ultimate page that the visitor lands on, thus bypassing any redirects</li>
<li id="s57v1">Configure your server so that the gclid parameter is passed along in the redirect</li>
</ol>
<p><br id="x372" /> (Two other common culprits are users are landing on a 404 error page or the Google Analytics tracking code missing altogether on the landing page!)<br id="x3720" /> <br id="groj28" /> There you have it - how to test if your destination URLs play nice with auto-tagging.  For more information, read <a id="pqte" title="Google's official help center article on auto-tagging" href="http://www.google.com/support/analytics/bin/answer.py?hl=en&amp;answer=55590" target="_blank">Google's help center article on auto-tagging</a>.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/google-analytics-and-troubleshooting-adwords-auto-tagging/&via=vinoaj&text=Google Analytics and Troubleshooting AdWords Auto-Tagging&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2008/07/google-analytics-and-troubleshooting-adwords-auto-tagging/&via=vinoaj&text=Google Analytics and Troubleshooting AdWords Auto-Tagging&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fvinoaj.com%2Fblog%2F2008%2F07%2Fgoogle-analytics-and-troubleshooting-adwords-auto-tagging%2F&amp;title=Google%20Analytics%20and%20Troubleshooting%20AdWords%20Auto-Tagging" id="wpa2a_14"><img src="http://vinoaj.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2008/07/google-analytics-and-troubleshooting-adwords-auto-tagging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

