<?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: Geekout: How to Make Short URL&#8217;s</title>
	<atom:link href="http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/feed" rel="self" type="application/rss+xml" />
	<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls</link>
	<description>wanderings and wonderings of stan james</description>
	<pubDate>Thu, 02 Sep 2010 19:36:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bojan Babic</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-4181</link>
		<dc:creator>Bojan Babic</dc:creator>
		<pubDate>Tue, 07 Jul 2009 06:56:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-4181</guid>
		<description>nice post but need algorithm optimization

&lt;a href="http://bojanbabic.blogspot.com" rel="nofollow"&gt;Bojan Babic&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>nice post but need algorithm optimization</p>
<p><a href="http://bojanbabic.blogspot.com" rel="nofollow">Bojan Babic</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Newman</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-184</link>
		<dc:creator>Danny Newman</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-184</guid>
		<description>You rock! 

Thanks again!</description>
		<content:encoded><![CDATA[<p>You rock! </p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-186</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-186</guid>
		<description>Stan - you read my mind.  I was going to approach this problem this week.  This is cool.</description>
		<content:encoded><![CDATA[<p>Stan - you read my mind.  I was going to approach this problem this week.  This is cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-195</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-195</guid>
		<description>Thank you for this article. Users definately will benefit with this compilation of website and I will definately make good use of it.</description>
		<content:encoded><![CDATA[<p>Thank you for this article. Users definately will benefit with this compilation of website and I will definately make good use of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-196</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-196</guid>
		<description>Just give a try to http://www.stopurl.com</description>
		<content:encoded><![CDATA[<p>Just give a try to <a href="http://www.stopurl.com" rel="nofollow">http://www.stopurl.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: short url</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-197</link>
		<dc:creator>short url</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-197</guid>
		<description>Nice.. you can also try http://tubeurl.com</description>
		<content:encoded><![CDATA[<p>Nice.. you can also try <a href="http://tubeurl.com" rel="nofollow">http://tubeurl.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Scruggs</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-198</link>
		<dc:creator>Derek Scruggs</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-198</guid>
		<description>Here's another approach that allows you to preserve some of the SEO juice. It doesn't shorten the urls per se, just makes your web server more tolerant of long ones that are broken. Wouldn't be too hard to adapt.

&lt;a href="http://mttips.com/tolerate_broken_urls.html"&gt;http://mttips.com/tolerate_broken_urls.html&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another approach that allows you to preserve some of the SEO juice. It doesn&#8217;t shorten the urls per se, just makes your web server more tolerant of long ones that are broken. Wouldn&#8217;t be too hard to adapt.</p>
<p><a href="http://mttips.com/tolerate_broken_urls.html">http://mttips.com/tolerate_broken_urls.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-200</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-200</guid>
		<description>Very cool. Can you post the code for converting the URL back to a number?</description>
		<content:encoded><![CDATA[<p>Very cool. Can you post the code for converting the URL back to a number?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stan</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-201</link>
		<dc:creator>stan</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-201</guid>
		<description>Oops! Should have included that in the original post. Here you go:

&lt;pre&gt;
function convertURLcharsToNumber(URLstring) {

  // Standard unique chars valid in a URL path
  var chars = "0123456789" 
            + "abcdefghijklmnopqrstuvwxyz"
            + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
            + "$-_+*,&#124;\^~`&lt;#%/?@&amp;";
            
  // These chars will not be recognized as part 
  // of URL by certain email clients (Outlook) 
  // if they are the last char in the URL.
  chars += "=:{}()[]'&gt;,.!" + '"'; 
  
  var radix = chars.length;
  var number = 0;
  var slot = 0;
  
  while (URLstring.length &gt; 0) {
    char = URLstring.slice(-1);
    number = number + (chars.indexOf(char) * Math.pow(radix,slot)) ;
    slot++;
    URLstring = URLstring.slice(0,-1);
  }
  
  return(number);
}

// Sample: This returns the original number, 399398203 
alert(convertURLcharsToNumber("5vOOv"));
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Oops! Should have included that in the original post. Here you go:</p>
<pre>
function convertURLcharsToNumber(URLstring) {

  // Standard unique chars valid in a URL path
  var chars = "0123456789"
            + "abcdefghijklmnopqrstuvwxyz"
            + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
            + "$-_+*,|\^~`< #%/?@&#038;";

  // These chars will not be recognized as part
  // of URL by certain email clients (Outlook)
  // if they are the last char in the URL.
  chars += "=:{}()[]'>,.!" + '"'; 

  var radix = chars.length;
  var number = 0;
  var slot = 0;

  while (URLstring.length > 0) {
    char = URLstring.slice(-1);
    number = number + (chars.indexOf(char) * Math.pow(radix,slot)) ;
    slot++;
    URLstring = URLstring.slice(0,-1);
  }

  return(number);
}

// Sample: This returns the original number, 399398203
alert(convertURLcharsToNumber("5vOOv"));
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://wanderingstan.com/2007-12-05/geekout_how_to_make_short_urls/comment-page-1#comment-245</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-245</guid>
		<description>I tested this code, but i found if you do a loop from say 1m to 2m you will get clashes, which makes it kind of unsuable in its current form. shame!</description>
		<content:encoded><![CDATA[<p>I tested this code, but i found if you do a loop from say 1m to 2m you will get clashes, which makes it kind of unsuable in its current form. shame!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
