Comment from Marc Grabanski
Hey! nice job Snook. I think I'll be adding this to my blog "short"ly. And since it's a CakePHP, it'll be "cake" to implement. Man, puns at 1:30AM are easy to come by.
View ArticleComment from Ulf
Hey Snook! Thanks for that article, I loved the part with the explanation about the precious bytes - nice detail! Did you know about the lilURL-Project? It's kind of the same approach. Ulf
View ArticleComment from Ivan
OK, this is sooo sweet :-) I used to simply md5 the ID and substr the first 4 characters, guess this is better ;-)
View ArticleComment from Maciej Grajcarek
That is really nice! I was thinking how to shorten links in a smart way. Your way is really good :). Thanks!
View ArticleComment from Jonathan Snook
@Ulf: I hadn't seen the lilURL project. Thanks for pointing it out. Admittedly, I prefer my approach as it leaves the database to what it does best: incrementing integers for primary keys. Converting...
View ArticleComment from Jonathan Snook
Just doing a little research after finding the lilURL library, I found the tighturl project, which is also open source. It does spam filtering, as well. Finally, and this is something I wasn't aware...
View ArticleComment from Zachary Johnson
Having just made my own URL shortener for personal use a couple weeks ago (in action here: http://a.stronaut.com/z1), I thought it was important that I share a couple of things I learned: 1. Check out...
View ArticleComment from Chris Wallace
Did you just recently add comment numbers? They are so smooth I thought they were being replaced with Cufon or sIFR, but alas, they are not. In an attempt to stay on topic, enjoy this FAQ from u.nu, a...
View ArticleComment from Jonathan Snook
@Chris Wallace: I just recently styled the comment numbers. :) They used to be a plainly styled element right next to the commenter's name. My comments are also now highlighted within the list.
View ArticleComment from Chris Shiflett
Have you considered adding rev="canonical" support? I wrote about it here: http://shiflett.org/blog/2009/apr/save-the-internet-with-rev-canonical Here's an API call that returns the advertised short...
View ArticleComment from Shimon
I've wrote a short post about using base_convert not so long time ago, check it out - http://baaltshuvaslowly.blogspot.com/2009/02/tinyurl-with-one-line-of-php-easy.html
View ArticleComment from Andrew Woods
Nicely Done! I've also thought about building a url shortener, and would've done it much the same way. Although, it'd be great to know: how often do urls get shortened?, and how often a particular...
View ArticleComment from JR
I took the liberty of converting your encode and decode functions into Python:import math codeset = 'Ts87HNB2US1dxhgMWCpAKmRXO0rnG4lDZkcFLqutzEYbfv6JQo3Pea5iw9VyjI' base = len(codeset) n = 300 def...
View ArticleComment from Jakob Heuser
@Zach: To prevent duplicate links, you can also use the canonical "link" tag that google endorses: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html As per google, it's a...
View ArticleComment from Jamie Rumbelow
Hey Jonathan, Have you considered using rev="canonical"? Drew McLellan pointed me to it when I was recording my podcast - it's a semantic way of representing a shorter link. You simply embed a link tag...
View ArticleComment from Kevin Thompson
Great article. Really serves to show how simple it can be to setup your own short URL service. However, what really stood out to me is what Chris Wallace noticed... Your comments are slick! As simple...
View ArticleComment from Kevin Thompson
Blindsided by the newly styled comments, I failed to include my original question... Now that you have a method for easily identifying your shortened URLs in social media, are you considering including...
View ArticleComment from SharonHill
Nice way of shortening URL. I generally use http://aafter.us/ that shrinks large URL. It’s an open and free source. Regards, SharonHill
View ArticleComment from Maxime Perron Caissy
Nice article snook, the super compressed url part is especially interesting! ps. the comment numbering is brilliant, I first thought you had used images but that would have been a pain in the ass....
View Article