Wednesday, July 6, 2016

How to stop node.js server?


You  can run the node server by typing:
node server.js
But how to stop it ? typing command CTRL+C  might not kill the process and then end up with error like the following 

Generate a unique N letters word sequence (by using relationship between Factoradic base system and Lexicographic Permutation Order of a String)

Lets say that you want to generate a unique 3 letters code sequence to be used as a primary key for some data recodes. Also let assume ...