NOTE -
- Remove -h option if you are doing operation on same machine
- Remove -u , -p option if your database don't have username and password
Import database
mongorestore -h IP:port -d DB_Name -u user_name -p password <input db directory>
var hms = '02:04:33'; // your input string | |
var a = hms.split(':'); // split it at the colons | |
// minutes are worth 60 seconds. Hours are worth 60 minutes. | |
var seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]); | |
console.log(seconds); |
.replace(/ /g, '') |
var res = [{"s1":5},{"s2":3},{"s3":8}].sort(function(obj1,obj2){
var prop1;
var prop2;
for(prop in obj1) {
prop1=prop;
}
for(prop in obj2) {
prop2=prop;
}
Follow Phusion Passenger URL for Ubuntu setup https://www.phusionpassenger.com/library/install/nginx/install/oss/trusty/ ( If in future above URL is not present then visit to Phusion Passenger site to select Ubuntu OS and futher instaltion steps.)