JS takeaways

January 25, 2018

js : var are automatically evaluated for values, no need to do anything.

var person = {name:’Mohd’}

to use identity:person

js every thing is object under {,[ under braces.
Simple character missing, will liead to costly debuging.


Take Away from spring one

December 14, 2017

@Controller,@Requestmapping ~ Router Functions
servlet api ~ http,reactive streams

jdk 8
programmatic/dynamic bean configuration
GenericApplicationContext ctx = new Context()

jdk 9
Modular arch –Java base, java.sql etc
Custom JVm distributions using JLink
Java 9 migration –> No hard references for java 6 packages..
module descriptor
export,openn–access level for modules

Spring boot Custom Conditions:
create custom OnCondition and expose as annotation

Git daily pull/push tips and Tricks

September 28, 2017

Revert a pull : git reset –keep HEAD@{1}

File Diff comparison after pull: git diff HEAD@{1} filename

Patching in git.
create a git patch –> .patch file –> apply patch–> .rej for rejections


Ports Connection refused Inbound tcp connection

July 17, 2017

server.xml or standalone.xml for http interface binding.
Check iptables : iptables -l -n
Firewalld (service off)
check host to ip mapping : etc/hosts

Port scanning linux ,open a port

March 23, 2017

nc -l portnumber
netstat -tulpn portno –> to check pid of process

add repository ubuntu

January 7, 2016

sudo apt-get install openjdk-8-jdk

js html element binding

October 7, 2015


JS action handler
$scope.refresh = function() {
$log.log(“fromDate: ” + $scope.fromDate);
$log.log(“toDate: ” + $scope.toDate);

Equals Method java Ex..

September 9, 2014

public Class Student{

private int ssn;

private String name;

Getters and Setters followed by


@Override public boolean equals(Object o){

//reference comparison

if(o == this) return true;

//deep comparison

else if((o instanceOf  Student) && o.ssn== this.ssn && 0.name.equalsIngnoreCase(this.name))

return true;

else return false;}




Adding a Repo in the Ubuntu using cmd terminal

February 7, 2013

sudo add-apt-repository ppa:ubuntu-wine/ppa

Websphere Heap Dump from cmd util wsadmin

January 27, 2012
set objectName [$AdminControl queryNames
 Get this info Server name and Node name from Admin console
$AdminControl invoke $objectName generateHeapDump 12:28:01 PM