All Categories

  • Few GUI App to Use MongoDB at Windows

    5/4/2014 -
    List of Free Mongodb Management tools.
    MongoDB
  • How to Run Node.js as Background by Using Forever

    5/1/2014 -
    This is for running at windows, I'm able to make it start but can't stop. Still looking for the solution. However, quick solution is, deploy your node.js web application to linux, seems like forever works. If you use windows for your deployment, how about try IIS-node. When get start using node.js, you'll notice when you stop the node.js command, your HTTP server is done. You might close the command by your perpose, or after a long time, the machine auto closed command. At this kind of case, your node.js Http Server will not run automatically. So, In this blog, I'll show how to use forever.
    Node.js
  • How to Use Different Environment Config with Node.js

    5/4/2014 -
    Depend on running enviroment, use different configuration files. At node.js world, following module is one of the choice. Everything is on following link. https://www.npmjs.org/package/node-env-file   1. Basically, what need to be have is, you need to install node-env-file module.  npm install node-env-file --saveThis command will update package.json and install  node-env-file module. 2. Create your enviroment file, like .env. The name could be any name. .
    Node.js
  • Code Snippet - How to Access Query String at Node.js

    5/3/2014 -
    If you want to get the query string like following  http://localhost:9000/api/myapi?id=1 at your node.js code, you can write this to get the id's value at the function you defined for you api. var url = require('url'); var url_parts = url.parse(req.url, true); console.info(url.parts.querystring.
    Node.js
  • Code Snippet - How to Handler Redirect within Node.js

    5/3/2014 -
    at node.js server side, you want to redirect to another url after you success get response from one api. you can try use request module.
    Node.js
  • Useful Linux Command

    5/1/2014 -
    delete all folder, files and sub directory. rm -rf ./{your folder location} http://www.mediacollege.com/linux/command/linux-command.
    Linux
  • Few Links About Convert Jade to Html and Vice Versa

    5/11/2014 -
    http://html2jade.org/ Nice site powered by jade, convert html to jade template and vice versa. http://naltatis.github.
    Jade
  • Few Tips for MongoDB

    5/3/2014
    MongoDB
  • Code Snippet - How to Use Extension with Enum

    5/4/2014 -
    In C# you sometime have to convert enum to Int value.
    C#
  • Few Commands about Import/Export Mongo Database

    5/11/2014 -
    With mongodb's mongodump & mongorestore command, you can achieve export and import data to your mongo database. 1. Export Database Go to your local mongo bin folder. Type mongodump --db {your database name} This command will export all your database as binary file under dump folder. When I have 200 MB, totall collection around 50,000. This command run like 2,3 second in my Windows 8 (8GB memory) PC. If you're connect to remote mongo db, following command could be use. mongodb\bin>mongodump --db {your database} --host {your host server name} --port {host server port number} --usernmae {mongodb username} --password {mongodb userpassword}   2. Restore you database to the remote connected database Asume your remote mongo database have nothing, you just want to import everything you just export from local mongo datatabase. Run following command.
    MongoDB