<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Google extended encoding made easy!</title>
	<atom:link href="http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/feed/" rel="self" type="application/rss+xml" />
	<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/</link>
	<description>The blog and portfolio of an Apple iPhone Developer</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:13:42 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-1053</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 10 Jan 2010 15:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-1053</guid>
		<description>Nice work man!  Used it.</description>
		<content:encoded><![CDATA[<p>Nice work man!  Used it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Starsky</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-1051</link>
		<dc:creator>Starsky</dc:creator>
		<pubDate>Wed, 06 Jan 2010 15:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-1051</guid>
		<description>Great Work!  I modified it for C# use and it worked instantly.  Very Nice job</description>
		<content:encoded><![CDATA[<p>Great Work!  I modified it for C# use and it worked instantly.  Very Nice job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Fleming</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-1046</link>
		<dc:creator>Joseph Fleming</dc:creator>
		<pubDate>Mon, 21 Dec 2009 22:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-1046</guid>
		<description>This is awesome. Thanks!

This is the closest I could get to your code in .net.

Public Function GoogleEncode(ByVal Numbers() As Integer) As String
        Dim characters As String = &quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9,-,.&quot;
        Dim array() As String = characters.Split(&quot;,&quot;)
        Dim first As Integer
        Dim second As Integer
        Dim encoding As String = &quot;&quot;

        For Each value As Integer In Numbers
            first = Math.Floor(value / 64)
            second = value Mod 64

            encoding += array(first) &amp; array(second)
        Next

        Return encoding
    End Function

    Public Function GoogleDecode(ByVal DecodeCharacters As String) As String()
        Dim characters As String = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.&quot;
        Dim first(characters.Length) As Integer
        Dim second(characters.Length) As Integer
        Dim pairs() As String = CustomSplit(DecodeCharacters)
        Dim value As Integer
        Dim values(pairs.Length - 1) As String
        Dim iCount As Integer

        For i As Integer = 0 To characters.Length
            first(i) = i * 64
            second(i) = i
        Next

        For Each pair As String In pairs
            value = first(characters.IndexOf(pair.Substring(0, 1)))
            value += second(characters.IndexOf(pair.Substring(1, 1)))

            values(iCount) = value

            iCount += 1
        Next

        Return values
    End Function

    Private Function CustomSplit(ByVal DecodeCharacters As String) As String()
        Dim length As Integer = DecodeCharacters.Length
        Dim s(length / 2 - 1) As String
        Dim iCount As Integer

        For i As Integer = 0 To length - 1 Step 2
            s(iCount) = DecodeCharacters.Substring(i, 2)
            iCount += 1
        Next

        Return s
    End Function</description>
		<content:encoded><![CDATA[<p>This is awesome. Thanks!</p>
<p>This is the closest I could get to your code in .net.</p>
<p>Public Function GoogleEncode(ByVal Numbers() As Integer) As String<br />
        Dim characters As String = &#8220;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9,-,.&#8221;<br />
        Dim array() As String = characters.Split(&#8221;,&#8221;)<br />
        Dim first As Integer<br />
        Dim second As Integer<br />
        Dim encoding As String = &#8220;&#8221;</p>
<p>        For Each value As Integer In Numbers<br />
            first = Math.Floor(value / 64)<br />
            second = value Mod 64</p>
<p>            encoding += array(first) &amp; array(second)<br />
        Next</p>
<p>        Return encoding<br />
    End Function</p>
<p>    Public Function GoogleDecode(ByVal DecodeCharacters As String) As String()<br />
        Dim characters As String = &#8220;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.&#8221;<br />
        Dim first(characters.Length) As Integer<br />
        Dim second(characters.Length) As Integer<br />
        Dim pairs() As String = CustomSplit(DecodeCharacters)<br />
        Dim value As Integer<br />
        Dim values(pairs.Length &#8211; 1) As String<br />
        Dim iCount As Integer</p>
<p>        For i As Integer = 0 To characters.Length<br />
            first(i) = i * 64<br />
            second(i) = i<br />
        Next</p>
<p>        For Each pair As String In pairs<br />
            value = first(characters.IndexOf(pair.Substring(0, 1)))<br />
            value += second(characters.IndexOf(pair.Substring(1, 1)))</p>
<p>            values(iCount) = value</p>
<p>            iCount += 1<br />
        Next</p>
<p>        Return values<br />
    End Function</p>
<p>    Private Function CustomSplit(ByVal DecodeCharacters As String) As String()<br />
        Dim length As Integer = DecodeCharacters.Length<br />
        Dim s(length / 2 &#8211; 1) As String<br />
        Dim iCount As Integer</p>
<p>        For i As Integer = 0 To length &#8211; 1 Step 2<br />
            s(iCount) = DecodeCharacters.Substring(i, 2)<br />
            iCount += 1<br />
        Next</p>
<p>        Return s<br />
    End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ircount development &#124; nostuff.org</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-1038</link>
		<dc:creator>ircount development &#124; nostuff.org</dc:creator>
		<pubDate>Thu, 26 Nov 2009 21:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-1038</guid>
		<description>[...] chart does have an encoding which allows far more to be passed in a condensed way, and this php function looks very useful for using [...]</description>
		<content:encoded><![CDATA[<p>[...] chart does have an encoding which allows far more to be passed in a condensed way, and this php function looks very useful for using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea ferrandi</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-996</link>
		<dc:creator>andrea ferrandi</dc:creator>
		<pubDate>Tue, 03 Nov 2009 17:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-996</guid>
		<description>Scala:

	val characters = new RichString(&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.&#039;&quot;)
	def encode(lstVal : List[Int]) =
	{
	  lstVal.flatMap(x =&gt; { 
	    if(x &gt;= 0 &amp;&amp; x &lt;= 4095)
        {
		    val first = Math.floor(x.asInstanceOf[Double] / 64.0).asInstanceOf[Int]
		    val second = x % 64
		    List(characters(first),characters(second))
        }
	    else
          &quot;__&quot;
	  	}).mkString(&quot;&quot;)
	}</description>
		<content:encoded><![CDATA[<p>Scala:</p>
<p>	val characters = new RichString(&#8221;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.&#8217;&#8221;)<br />
	def encode(lstVal : List[Int]) =<br />
	{<br />
	  lstVal.flatMap(x => {<br />
	    if(x >= 0 &#038;&#038; x <= 4095)<br />
        {<br />
		    val first = Math.floor(x.asInstanceOf[Double] / 64.0).asInstanceOf[Int]<br />
		    val second = x % 64<br />
		    List(characters(first),characters(second))<br />
        }<br />
	    else<br />
          &#8220;__&#8221;<br />
	  	}).mkString(&#8221;")<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-497</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 24 Sep 2009 17:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-497</guid>
		<description>Can some expert please convert functions posted by Marcus to VB for use in access database?
I am a newby to VB.
Thanks!</description>
		<content:encoded><![CDATA[<p>Can some expert please convert functions posted by Marcus to VB for use in access database?<br />
I am a newby to VB.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex M&#8217;s Blog &#187; Google Charts API Extended Encode Scaling</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-496</link>
		<dc:creator>Alex M&#8217;s Blog &#187; Google Charts API Extended Encode Scaling</dc:creator>
		<pubDate>Thu, 17 Sep 2009 04:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-496</guid>
		<description>[...] PHP code I came up with is below, and also extends on a function written by Ben Dodson. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [...]</description>
		<content:encoded><![CDATA[<p>[...] PHP code I came up with is below, and also extends on a function written by Ben Dodson. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Bointon</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-481</link>
		<dc:creator>Marcus Bointon</dc:creator>
		<pubDate>Fri, 14 Aug 2009 14:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-481</guid>
		<description>Thanks for your example. I&#039;ve posted a new set of PHP functions for both simple and extended encodings incorporating automatic scaling, support for multiple series and more.

http://marcus.bointon.com/archives/88-Google-Charts-API-Simple-and-Extended-Encoders-in-PHP.html</description>
		<content:encoded><![CDATA[<p>Thanks for your example. I&#8217;ve posted a new set of PHP functions for both simple and extended encodings incorporating automatic scaling, support for multiple series and more.</p>
<p><a href="http://marcus.bointon.com/archives/88-Google-Charts-API-Simple-and-Extended-Encoders-in-PHP.html" rel="nofollow">http://marcus.bointon.com/archives/88-Google-Charts-API-Simple-and-Extended-Encoders-in-PHP.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Penny</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-314</link>
		<dc:creator>Penny</dc:creator>
		<pubDate>Fri, 22 May 2009 19:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-314</guid>
		<description>thank you!!!!!!!!!!!

graphs will be up soon thanks to you:)</description>
		<content:encoded><![CDATA[<p>thank you!!!!!!!!!!!</p>
<p>graphs will be up soon thanks to you:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Dodson</title>
		<link>http://bendodson.com/2008/02/28/google-extended-encoding-made-easy/comment-page-1/#comment-29</link>
		<dc:creator>Ben Dodson</dc:creator>
		<pubDate>Sun, 26 Oct 2008 19:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=18#comment-29</guid>
		<description>Thanks again for all the comments from you - I&#039;m really glad to see that these functions have helped so many people.

@patrick I&#039;m afraid I didn&#039;t have any success with data scaling which is why I wrote these functions.  The maths to do that kind of normalization is a little outside my skills!  If you manage to crack it then please let me know.</description>
		<content:encoded><![CDATA[<p>Thanks again for all the comments from you &#8211; I&#8217;m really glad to see that these functions have helped so many people.</p>
<p>@patrick I&#8217;m afraid I didn&#8217;t have any success with data scaling which is why I wrote these functions.  The maths to do that kind of normalization is a little outside my skills!  If you manage to crack it then please let me know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
