WebWorker has now been supported by majority of browsers (link). I have started to use WebWorkers seriously in my projects (web pages / web apps / cordova mobile apps).
Below reference pages were used while doing my study:
Run docker in docker
To create an
overlay network on multiple hosts over swarm, following are required:
All swarm-agents should have these options otherwise it will be likely get this error:
If using docker-compose, there is nothing need to do. As docker-compose will automatically create defaul network if:
Once docker-compose file finished, just run
docker-compose up -d which will create network correspondingly.
otherwise simply use following command at your
There is limitation for docker-compose build as it cannot find the target node to build the image.
The only way currently is to build on the node and tag it rather than on swarm.
Testing with web app is always fun. Angularjs makes it even better.
This quick note bootstrap any angular.js projects embracing with unit tests.
Unit testing in Angularjs is using (by default) Jasmine and Karma.
Also, angular-mocks needs to be installed. It is needed for injection and some other mock objects.
According to mongoose.js doc, it is able to set setters to a field on schema.
However, the doc is not quite detailed and obselete.
hash will be called mainly on following scenarios:
When a new doc being created.
When set a value to a doc.
However, this will not work for
For password, it is able to write beforeUpdateHook