Scott Robbin has released TinyFinder, a rev=canonical JetPack Widget:
This weekend, I started to play around with Jetpack from Mozilla Labs. [...] The widget that I created–TinyFinder–looks for rev=canonical links in a webpage, and displays them in the statusbar of the browser window. Rev=canonical links are meta tags that are used when a website wants to suggest a preferred tiny url to use. [...] Several services are starting to employ their own custom tiny urls: Dopplr, Threadless, Songza, and many more. – Scott Robin
Categories: implementation
A plugin for Ubiquity that “uses the RevCanonical API to check and see if the link provided has published a shortened version of the given page using a HTML link element with rev=”canonical”. Check it out
Categories: Uncategorized
Jeff Jones with a modest proposal
My suggestion for the whole #revcanonical #shortlink problem is a new HTTP method: GETSHORTY! – Jeff Jones
Categories: Uncategorized
Mike Migurski has coded up the simplest possible self hosted URL shortener, and published it on github
One of the small tools that I think would make rev=canonical even more useful is a rapid, brainless way to create short URLs for any domain. It’s possible, in a brief PHP script that only knows how to speak HTTP, to:
- Redirect from short URLs to long URLs
- Respond with a short URL for a given long URL
- Add a new short URL for a given long URL
Categories: Uncategorized
Jeremy rounds up a few of the recent rev=canonical implementers as a spring board for a great discussion about a “whole bunch of nice metacrapital things you can do with your visible hyperlinks”, and adoption patterns:
The rev=”canonical” convention makes a nice addition to the stable of nice semantic richness that can be added to particular flavours of hyperlinks. But it isn’t without its critics. [...] The unbelievable speed of adoption of rev=”canonical” shows that it fulfills a real need. – Jeremy Keith
Categories: Uncategorized
Tatsuhiko Miyagawa has published WWW::Shorten::RevCanonical, rev=canonical URL shortening as a Perl module. Neat!
use WWW::Shorten 'RevCanonical';
my $short_url = makeashorterlink($long_url); # Note that this could fail and return undef
# Or, use WWW::Shorten::Simple wrapper
use WWW::Shorten::Simple;
my @shorteners = (
WWW::Shorten::Simple->new('RevCanonical'), # Try this first
WWW::Shorten::Simple->new('TinyURL'), # Then fallback to TinyURL
);
my $short_url;
for my $shortener (@shorteners) {
$short_url = $shortener->shorten($long_url)
and last;
}
Categories: Uncategorized
Simon Willison has an awesome post up talking about his rev=canonical bookmarklet, and designing shorter URLs by casting unique IDs to base 62 (We’re using the same trick on flic.kr to avoid having to maintain a look up database, though we’re using base 58). He details designing his new short URLs, deploying them on Django, and built a handly bookmarklet.
The nice thing about this approach is that it makes it trivial to add custom URL shortening domains to other projects—a quick view function and a few lines of nginx configuration are all that is needed.
Bookmarklet: Shorten (drag to your browser toolbar)
Categories: Uncategorized
Chris Shiflett has a great blog post up explaining rev=”canonical” in a bit more depth, good read, especially if you’re confused:
The premise is pretty simple. In order to avoid the great linkrot apocalypse, we can opt to specify short URLs for our own pages, so that compliant services (adoption is still low, because the idea is pretty fresh) will use our short URLs instead of TinyURL.com (or some other third-party alternative) replacements. – Chris Shiflett
Categories: Uncategorized