Recent Articles and Tutorials

AngularJS ng-dblclick examples

Example1 AngularJS ng-gblclick example to increment a variable on every double click. Example2 AngularJS ng-dblclick example to increment a variable on every double click. This read more

AngularJS ng-click examples

Example1 AngularJS ng-click example to increment a variable on every click. Example2 AngularJS ng-click example to increment a variable on every click. This time use read more

Java – this keyword

Using this to access a field In case a field is shadowed by method or constructor parameter, the field can be accessed using this keyword. read more

Chrome – remove an accepted certificate

Steps to remove an accepted certificate (e.g. a self signed certificate) from Chrome browser. Click on Chrome settings. On settings page click on advanced settings read more

Rsync – exclude specific file extension

To exclude a specific file extension (say .class) we can use –exclude “*.class” (or –exclude=”*.class”). Note that it can be repeated multiple time. $ rsync read more

Git – show log of one user’s commits

git log –author=pattern can be used to show log of all users matching a specific pattern. $ git log –author=Ram $ git log –author=”R.*m” // read more

Java – static and instance variables

Static variables are created once for a class and shared by all instances. Static variable is created the moment class is loaded. static variable example read more

Git – checkout remote branch

To checkout remote branch and track it from its remote origin $ git fetch $ git branch -v -a ##List available remote branches $ git read more

Ubuntu – reload iptables rules during boot

Steps to load iptable rules automatically on Ubuntu Linux using package iptables-persistent. Install iptables-persistent $ sudo apt-get install iptables-persistent When asked during installation should it read more

Java – Arrays.sort custom Comparator example