Per esempio questo funziona:
http://www.subclosure.com/generate-n...-database.html
solo che vorrei sapere come è fatto