Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by roryokane on Sunday May 12, 2013 @07:59PM
(#5696449)
Shortly compresses the text using the DEFLATE algorithm (http://en.wikipedia.org/wiki/DEFLATE) followed by Base64 encoding (https://en.wikipedia.org/wiki/Base64) before storing it in the URL. Base64 increases the size of data by 33%, but DEFLATE usually decreases the size by more than that. Thus, the link will usually be shorter than the content.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by habosa on Sunday May 12, 2013 @08:08PM
(#5696476)
I'm sure it will be somewhat shorter than the content but it will definitely be in the same order of magnitude and likely within a factor of 2. A link that is half as long as its content is pretty unwieldy and will take non-trivial time to transmit at longer lengths. Sort of defeats the point of a link in the first place.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by calinet6 on Sunday May 12, 2013 @08:44PM
(#5696577)
Yes. You might as well just send a gzip'd file directly. It will be higher compression than Deflate (or if not, use BZip or 7zip), won't have the Base64 overhead, and (gasp) won't depend on a web service to decode. It also has the distinct advantage of not being really friggin annoying.
In other words, this is entirely useless, except as an amusement. Because it's funny how useless it is.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by jychang on Monday May 13, 2013 @12:16AM
(#5697163)
Well, no. To people, a pastebin.com/asdovnasdofnvopdsisadvasdfgv link is just as unmemorable as a base64 encode of an actual 1kb code data. However, nowadays, if I have a 1kb snippet I want fairly securely shared, sticking it in a chat box isn't a problem.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by lelandbatey on Monday May 13, 2013 @02:07AM
(#5697408)
Well, except that it's a web site. That's why I would be attracted to this: it's something that I can send to anybody and it will always, always work. No hassle.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by calinet6 on Monday May 13, 2013 @08:51AM
(#5698340)
True, as a service in that respect it's useful.
But it still seems a bit unreliable. Accidentally clip a character off the URL and you're basically screwed.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by tfb on Monday May 13, 2013 @09:52AM
(#5698621)
You could say the same about any computer generated (hashed) URL.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by dbaupp on Monday May 13, 2013 @05:51AM
(#5697914)
Gzip is just a container format around DEFLATE.
Re:Shortly: a Serverless Pastebin Service - All Data is Stor...
by colbyh on Sunday May 12, 2013 @08:34PM
(#5696543)
Seconded on offloading the work to bit.ly (or at least an option to). I'd rather click a box to give me a bit.ly link back since you're not /truly/ running without a server here.
And/or throw the url to a hidden box on the screen that will automatically copy when I hit cmd/ctrl C. Fun trick otherwise.
Then again, you could just offload the work to bit.ly and get around that issue.