Remove values from an existing array in MongoDB

Before

After

References https://docs.mongodb.com/manual/reference/operator/update/pull/#pull http://stackoverflow.com/questions/16959099/how-to-remove-array-element-in-mongodb

Continue reading »

Setting up a Node.js Cluster

 

Express : app.js

cluster.js

References https://codequs.com/p/BkCZ1VMY/setting-up-a-node-js-cluster/ https://www.sitepoint.com/how-to-create-a-node-js-cluster-for-speeding-up-your-apps/ https://nodejs.org/api/cluster.html

Continue reading »

How to Setup SoftEther in Ubuntu

download then uninstall

command line

use port 992 to connect with Server Manager from windows Client […]

Continue reading »

How to overlay one div over another div in HTML

use position: relative on the parent and child element with position: absolute.

References http://stackoverflow.com/questions/2941189/how-to-overlay-one-div-over-another-div

Continue reading »

Remove JSON element

References http://stackoverflow.com/questions/1219630/remove-a-json-attribute http://stackoverflow.com/questions/5310304/remove-json-element

Continue reading »

Configure proxy authentication to work with Ubuntu Software Center

Go to /etc/apt. Create the file apt.conf if you don’t have it there. Write the following lines there.

Save it. You are done. Keywords […]

Continue reading »
1 2