Copying (duplicating) Documents (Rows) in MongoDB

Duplicating a record in MongoDB can be accomplished in just a couple of steps. First, you’ll need to identify the records that you want to duplicate and obtain a cursor. Then, you will need to iterate over the records in the cursor and insert them. In the example below we will find all records in…

Data Binding With AngularJS

In the previous knockout example, we showed how KnockoutJS dealt with two way data binding. Now let’s show the same example using angular. AngularJS is an MVC framework that allows you to build web applications at the speed of light. Like Knockout, angular allows us to bind to the DOM and avoid doing any DOM…

Data Binding With Knockout JS

KnockoutJS is a wonderful Javascript framework that allows us to build web applications without the need to manipulate the DOM. For example, you would typically use jquery to get or set the value of a text input. With Knockout, there is no need to ever touch the DOM, rather, you build rich javascript objects that…

What is Tomcat’s Default Username and Password

You can use tomcat’s application manager page to upload a war by going to the following url: http://localhost:8080/manager/html If you just installed tomcat, you will be presented with a prompt for a username and password. Let’s setup a user that has permissions to upload a war.