News for hackers. Stuff that matters.
Re:Fry.IO - An ultra simple URL shortener by bencevans on Tuesday April 09, 2013 @08:58AM (#5517732)
You might want to put some sort of URL validation as at the moment it could be used to store other data.

Also by entering what I've put at http://hastebin.com/ruxixitunu I'm provided with http://fry.io/9m which returns a 502 Bad Gateway error from your nginx server (BUG?).

Re:Fry.IO - An ultra simple URL shortener by hostyle on Tuesday April 09, 2013 @09:05AM (#5517763)
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:31AM (#5518788)
I've added URL validation now. Apparently the way I was doing it before wasn't as robust as I would've hoped. Thanks!
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:12AM (#5518615)
There are a few bugs to iron out! I didn't anticipate that this submission would really get any views so it's in early development. Thanks for all the comments, I'll certainly take everything on board and work on it ASAP :-)

Just as a note, there's a feature that isn't really obvious yet. If you go to:

http://fry.io/8o/manage

(8o being your particular shortcode) it displays an analytics screen. I'm planning to improve this and add some kind of API.

Re:Fry.IO - An ultra simple URL shortener by yashg on Thursday April 11, 2013 @03:50AM (#5530545)
Add spam filtering ASAP. In the past I had created a URL shortner, even created an API and the usage exploded but most of the links were created by spammers and I used to get regular warnings from my host. In the end I just shut the whole thing down. if you just want to shorten the links with your own short domain, better use bit.ly. They even have basic analytics and it's free.
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Thursday April 11, 2013 @04:17AM (#5530638)
bit.ly isn't an option as it's a side project haha. In terms of spam filtering, I haven't had any problems as of yet touch wood but I'll look out :-)
Re:Fry.IO - An ultra simple URL shortener by voyou on Tuesday April 09, 2013 @09:41AM (#5517958)
What's the use case for a URL shortener? I think the first time I heard about them, the pitch was to stop long URLs getting split over lines in Usenet messages; then they became popular because of Twitter's 140 character limit. But not very many people use Usenet now, and Twitter shortens URLs itself, so I'm not sure what people are using URL shorteners for now.
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:32AM (#5518793)
I made this one because I use it when posting articles. I think a small link looks a lot better than a large one. But I guess that's preference.
Re:Fry.IO - An ultra simple URL shortener by b6 on Tuesday April 09, 2013 @09:57AM (#5518043)
I like them for sharing URLs on IRC. If they're too long, they can be hard to select in text clients like Irssi or WeeChat.
Re:Fry.IO - An ultra simple URL shortener by milliams on Tuesday April 09, 2013 @09:50AM (#5518008)
I see them in print newspapers and magazines to provide more information or sources.
Re:Fry.IO - An ultra simple URL shortener by billN on Tuesday April 09, 2013 @09:28AM (#5517893)
Simple.

To be ultra useful, add a "copy to clipboard" link, more spacing between the generated url and the search box, maybe wrap the generated url in a textbox, bigger font and more centered.

Re:Fry.IO - An ultra simple URL shortener by yashg on Thursday April 11, 2013 @03:54AM (#5530567)
One more feature suggestion: Let people customize the short code. That would be your USP. I can't get a preferred short code on more popular url shortner like bitly because chances are it's already taken. You can provide that.

Another: add password protection. Say I want to share my daughter's birthday photos with my friends, I can have a url like fry.io/{hername} and also have it password protected. That will add value over bitly or goo.gl.

Just my $0.02.

Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:29AM (#5518773)
Thanks, will do!
Re:Fry.IO - An ultra simple URL shortener by latterd on Tuesday April 09, 2013 @09:29AM (#5517900)
Useful, but just an observation do you think you actually need 9 JS files and 3 CSS for such a page? maybe you don't need all of them? or you can minify the JS into one file and use that?
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:51AM (#5518936)
That is very true. I'll get on that ASAP. I wanted to get something up as soon as I could so I used the 'FlatUI' template which seems to include a lot of that stuff.
Re:Fry.IO - An ultra simple URL shortener by Down_n_Out on Tuesday April 09, 2013 @08:50AM (#5517687)
Nice, always wanted to set up one of these for myself, but never found a good example. I'm wondering if you would like to tell us (me), what you used to set it up?
Re:Fry.IO - An ultra simple URL shortener by joeblau on Tuesday April 09, 2013 @09:22AM (#5517860)
Here is the start of some code. Wrote the core in 3 hours for a job interview. Python, GAE, Test Cases, UI and all of that. Have fun.

site - http://jjbshort.appspot.com/

source - https://github.com/joeblau/jjbshort

edit: I realize the URL's aren't short... the code just needs a short domain :)

Re:Fry.IO - An ultra simple URL shortener by Down_n_Out on Tuesday April 09, 2013 @09:54AM (#5518029)
Thanks! And thanks for the others that posted as well of course :)
Re:Fry.IO - An ultra simple URL shortener by rustc on Tuesday April 09, 2013 @09:03AM (#5517755)
I'm not OP, but HTTP Headers show:

    X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.19
So most likely a Ruby app, and probably not Rails as no asset pipeline has been used.
Re:Fry.IO - An ultra simple URL shortener by Brocked on Tuesday April 09, 2013 @09:15AM (#5517826)
Looks like they're using Sinatra (http://www.sinatrarb.com/) if the above erroring pages are anything to go by (http://fry.io/b2).
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:09AM (#5518579)
It's a really simple sinatra app at the moment. I got the domain a few months ago thinking I would sell it on. But then I decided I wanted to start up a little project with it. :-)
Re:Fry.IO - An ultra simple URL shortener by mrThe on Tuesday April 09, 2013 @09:04AM (#5517760)
Also, self-redirect bug: http://fry.io/bk
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:33AM (#5518795)
Hmm, thanks! That should be fixed from now on.
Re:Fry.IO - An ultra simple URL shortener by quaj on Tuesday April 09, 2013 @10:50AM (#5518424)
Is this site live with traceback enabled?
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Tuesday April 09, 2013 @11:33AM (#5518803)
That was a rather stupid mistake on my part. The environment was wrong. Thanks!
Re:Fry.IO - An ultra simple URL shortener by coke on Thursday April 11, 2013 @11:41AM (#5532664)
... is it broken? Doesn't work for me.
Re:Fry.IO - An ultra simple URL shortener by andyhmltn on Friday April 12, 2013 @11:19AM (#5538961)
How so? Everything is perfect on this end
Re:Fry.IO - An ultra simple URL shortener by logicode on Tuesday April 09, 2013 @10:38AM (#5518336)
Its not working