Archives de catégorie : Non classé

NPM

Install Node/Npm On linux : yum/apt install nodejs Important points about node install on Linux : – npm is also installed when nodejs is installed. – during the install, a /usr/bin/npm symbolic link is added and that points to ../lib/node_modules/npm/bin/npm-cli.js … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

My everyday GIT commands

Themes Definitions Git ignore Company proxy tricks Minimal config variable to set to work in good conditions Clone repositories Git init repositories Partial clone and partial checkout Manage Branches (list, deletion, creation) Update Local projects Rebase Merge Git status Git … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Java Generics

Java generics present many specificities. Here these I frequently rely on and that I consider as an unavoidable requirement to understand and work with generics.   I will illustrate these points by  endeavoring to stay as general as possible about the … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Tips and tools to analyse JVM

How to know the memory allocated to the JVM by default (XMS and XMX) ? It depends on the Java version. On JVM 8 : Xms = 1/64 of the physical memory on the machine. Xmx = 1/4 of the … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Overriding Object’s hashcode() method

  Plan The hashCode() method : principles and simple example Brief definition of the hashCode() method  Default implementation of the hashCode() method and when override it The general contract to respect when we override the hashCode() method A simple example of … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Implementing the backend of the application (9/9)

At the end of this part, we will have a Spring Boot application relying on AngularJS (seen in previous parts) and Jersey/Jackson/Hibernate that implements the backend part.  Here is the list of tasks we will perform : The Maven modules design  Setting … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Implementing client-side the contacts display (5/9)

Go back to the table of contents for Developing a Contact Management Application with Angular 1.5X and Java We have implemented the contact creation use case in the previous part. Now we will implement a related use case: the display of contacts. Here … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

weblogic tips

How to generate the maven weblogic plugin suitable for your weblogic server ? From the $WLS\server\lib, execute the command : java -jar wljarbuilder.jar -profile weblogic-maven-plugin Several jars files are generated, among the weblogic-maven-plugin.jar. Then, you must deploy weblogic-maven-plugin.jar as a … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Context binding when a function is called in Javascript

Often, we could the code : this.that = this; or this.self = this; But what represent self and that ? Contrary to this which refers the object in the current context, self and that are not Javascript reserved words. These … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

AngularJS

Use facilities provided by the JS language to have a clean code How to minimize the number of global variables ? Wrap Angular components in an IIFE (Immediately-Invoked Function Expression). Components declared in an IIFE don’t become global variables. How … Continuer la lecture

Publié dans Non classé | Marqué avec | Laisser un commentaire