Posts

How to Remove Oracle Java JDK 6/7/8 Ubuntu

Check installed JDKs list sudo dpkg --list | grep -i jdk Just check Java plugins with firefox about:plugins Remove the desired package sudo apt-get purge oracle-java7-installer Check whether the removed JDK is still there. sudo dpkg --list | grep -i jdk Just check Java plugins with firefox about:plugins

How To Install Java on Ubuntu with Apt-Get

Introduction As a lot of articles and programs require to have Java installed, this article will guide you through the process of installing and managing different versions of Java. Installing default JRE/JDK This is the recommended and easiest option. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and on 12.10+ it will install OpenJDK 7. Installing Java with  apt-get  is easy. First, update the package index: sudo apt-get update Then, check if Java is not already installed: java -version If it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command: sudo apt-get install default-jre This will install the Java Runtime Environment (JRE). If you instead need the Java Development Kit (JDK), which is usually needed to compile Java applications (for example  Apache Ant ,  Apache Maven ,  Eclipse and  IntelliJ IDEA  execute the following command: sudo ap...

Swagger

http://swagger.io/

How to Start your Node JS + Angular JS Project (UI web project)

The detailed tutorial you can find here ...  http://yeoman.io/codelab.html#toc http://juristr.com/blog/2014/08/node-grunt-yeoman-bower/ The tools and frameworks you have to use are :: Node JS for creating server and event driven implementations related to UI server Yeoman as the build tool for project Angular JS for UI side components WebStorm as an IDE Karma and Jasmine for Unit Testing Jetbrains Chrome Extension for debugging the application with WebStorm. Bunyan for logging -  https://github.com/trentm/node-bunyan Wreck - REST API Calls Crypto - Encrypt and Decrypt Xero -    three-legged oAuth  for authentication Hapi - building applications and services

What do you understand by the terms optimistic locking versus pessimistic locking?

Q.  What do you understand by the terms  optimistic locking  versus  pessimistic locking ? A. Optimistic locking  means a specific record in the database table is open for all users/sessions. Optimistic locking uses a strategy where you read a record, make a note of the version number and check that the version number hasn't changed before you write the record back. When you write the record back, you filter the update on the version to make sure that it hasn't been updated between when you check the version and write the record to the disk. If the record is dirty (i.e. different version to yours) you abort the transaction and the user can re-start it. You could also use other strategies like checking  the timestamp or all the modified fields (this is useful for legacy tables that don't have version number or timestamp column).  Note : The strategy to compare version numbers and timestamp will work well with detached hibernate objects as we...