[OT] fon.nu feature set is getting famous
Phil Davis
revdev at pdslabs.net
Sun May 15 22:42:21 EDT 2011
Thanks for sharing the whole enchilada, Andre! I imagine a lot of people (like
myself) learn best by studying examples and tinkering with them to suit our needs.
Great job!
Phil
On 5/15/11 1:58 PM, Andre Garzia wrote:
> Matthias,
>
> Fon.nu works fairly easy. When we want to shorten a URL, we compute an md5
> of the url then we convert it to base 23 so that is becomes something like
> A123FG and the short url is something like http://fon.nu/A123FG, so for a
> given URL always generate the same small code. This code is stored as a text
> file inside a data folder in the server, the first line of that folder is
> the long URL. When someone tries to access http://fon.nu/something the irev
> file picks the something part and checks to see if a file exists, if it
> exists, then it issues a "301 Location changed HTTP header" pointing to the
> long URL. The other lines in the text files are used for the single use
> feature and the email sending feature but it is all very basic. An .htaccess
> file is used in the fon.nu domain to map the /code part to a specific GET
> request case but that is all.
>
> You can get all the source code from here: http://hg.andregarzia.com/fon.nu/
>
> :-D
>
>
>
> On Sun, May 15, 2011 at 10:09 AM, Matthias Rebbe<runrev260805 at m-r-d.de>wrote:
>
>> Hi Andre,
>>
>> very very impressive. I have done something similar, but only for inhouse
>> use.
>> I created a desktop app, which creates for each "long url" a short url e.g
>> http://m-r-d.de/x where x is a number. For each new short url the
>> number increases.
>> I then create a folder (with the name of the increased number) under that
>> domain and place a .htaccess file with a "mod_rewrite" in it. For that i am
>> using ftp.
>> The long and short url and some other information are also stored in a
>> database, so i can list all redirections in my desktop app for modification
>> like deletion,
>> enable or disable or change them.
>>
>> Are you also using .htaccess?. How did you solve that e-mail thing?
>> Are you doing a redirection through an .irev file instead of using
>> .htaccess, so you can include also the mail alert function?
>>
>> It would very nice, if you could share that information with us.
>>
>>
>> Regards,
>>
>> Matthias
>>
>>
>>
>>
>> Am 15.05.2011 um 05:53 schrieb Andre Garzia:
>>
>>> Hello Folks,
>>>
>>> During RunRevLive.11, more precisely at 4:00 AM in the morning, I created
>>> fon.nu, a minimalist url shortening service. I created that because at
>> 9:00
>>> AM on the same day, I was going to give a presentation on social networks
>>> and wanted the URLs on my slides to be short. So, fon.nu domain was
>> cheap
>>> and I quickly created some easy code. In the following weeks, I've been
>>> using my own url shortening service more and more and added more features
>> to
>>> it.
>>>
>>> Today I was checking my referrals in Google Analytics and I saw traffic
>>> comming from yourls project page. Yourls is an open source project for
>> url
>>> shortening, you can install it on your own service and create your own
>>> version of a bitly-like service for example. When I went to the referral
>>> link to see how people were being driven from there to my own
>>> fon.nuservice, I saw something that made me very happy. One of their
>>> users saw
>>> value in some features that I think may be unique do fon.nu such as
>> single
>>> use URLs and the like so he opened an enhancement request in yourls
>> project
>>> page to add features from fon.nu to yourls. The developers refused with
>> a
>>> very good answer, yourls has a plugin architecture so those features
>> could
>>> easily be made into a plugin and thus the enhancement was rejected but
>>> still, seeing my little toy project used with an enhancement request for
>> a
>>> major open source project made me smile.
>>>
>>> http://fon.nu is created with LiveCode server deployment, it is just 2
>> files
>>> of LiveCode code and the RevSpark libraries. It works great and now it is
>>> inspiring some people...
>>>
>>> check out the enhancement request at:
>>> http://code.google.com/p/yourls/issues/detail?id=798&can=1&q=fon.nu
>>>
>>> :-D
>>>
>>>
>>> --
>>> http://www.andregarzia.com All We Do Is Code.
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
More information about the use-livecode
mailing list