View Source:
TwitterResourceIdentifer
Note:
This page has been locked and cannot be edited.
!!! Twitter Resource Identifer Something I was pondering today: is there a compact way to describe external resources in twitter posts? I thought up an answer I'm going to call the Twitter Resource Identifier (TRI). The canonical way to point to an external resource in twitter is to use an URL shortener such as [bit.ly|http://bitly]. If you use the j.mp bitly domain you can get an 18 character URL such as <code>http://j.mp/hELRJ9</code> which points to an external URL (in this case <code>http://www.hollenback.net/index.php/CaltrainClipperFailure</code>). That's not bad, except for the fact that [URL shorteners suck|http://boingboing.net/2009/04/04/why-url-shorteners-s.html], and 18 characters is significant chunk of the 140 character twitter limit. Here's the best idea I could come up with: encode the locator in a 3 digit alphanumeric code at the end of the tweet, and reference that against a URL in your [twitter profile|http://twitter.com/#!/philiph]. I chose 3 alphanumeric digits (including both lower and uppercase ASCII) because it gives a reasonably large search space. In this case the valid characters are <code>0-9a-zA-Z</code>, which gives you <code>56^3</code>, or 175,616 possible codes. If you assume each locator maps to one web page, 175,000 locators seems like a reasonable upper bound on the number of pages you would want to reference on one website. Ideally then you would post a tweet like this: <verbatim> Check out my hot new blog post about Pokemon! d2E </verbatim> and your web server would have a database mapping valid TRIs on the website. Note this could be automated by the webserver as it could generate TRIs for every new page in your content management system. Then a user could manually use the TRI as follows: * look at your twitter profile for the base URL. * get the TRI from the post * combine in the browser location bar: <code>http://www.hollenback.net/d2E</code> * the webserver would send the user to <code>http://www.hollenback.net/index.php/CaltrainClipperFailure</code> This process could be automated by twitter clients as they could do the profile lookup and TRI combination in one step. Then the TRI could be displayed as a direct clickable link in the tweet. One nice feature of this approach is it puts control in the web server instead of in a third-party link shortening service. I wonder if anyone can think of a better solution to this issue? Also, what are the problems with my proposal? One I can think of is this could be trivially exploited by spammers. Note that this is not specific to twitter, it could be used with any social media website which offers a profile where you can store a link. I thought specifically of twitter because of the 140 character posting limit. Anyway, that's my random Sunday idea that I wanted to share. Comments welcome.
Please enable JavaScript to view the
comments powered by Disqus.
HollenbackDotNet
Home Page
Popular Pages
All Categories
Main Categories
General Interest
Geek Stuff
DevOps
Linux Stuff
Pictures
Search
Toolbox
RecentChanges
RecentNewPages
What links here
Printable version
AllPages
RecentChanges
Recent Changes Cached
No changes found
Favorite Categories
ActionPage
(150)
WikiPlugin
(149)
GeekStuff
(137)
PhpWikiAdministration
(102)
Help/PageList
(75)
Help/MagicPhpWikiURLs
(75)
Blog
(69)
Pictures
(60)
GeneralInterest
(44)
LinuxStuff
(38)
Views
View Page
View Source
History
Diff
Sign In