compared with
Current by Tsvetomir Dimitrov
on Aug 17, 2012 16:44.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
Possible solution that I found and tested:
# tinyURL  Service

* easy for use and deploy
* open-source
To work we need to download  GSON library - [http://code.google.com/p/google-gson/downloads/list|http://code.google.com/p/google-gson/downloads/list]

(gson - convert Java Objects into their JSON representation)\\
\\

2.2. Add the main jar to the build path -- the test was made on 08.14.2012, main jar was

gson-2.2.2.jar 

2.3. Import in the project next java file that I upload (Google.java) 

2.4. Invoke
The best solution is to create own url shortening service, that way we can reserve our  domain.

3. Creating custom algorithm for shortening urls

The idea:

Suppose we have a table with following columns:
* unique auto increment id (long),
* url (string),
* base62 string (string)

The trick, convert unique id to base62 string not the url, and then the url is mapped to the unique id

Base 62 converter code uploaded \!




h1. Storing and Processing