How to upgrade/update to angular 6 ?
By using the angular cli we can upgrade to angular 6, below are the steps to upgrade
Update the NodeJS version to 8.9+
Update Angular cli to latest version
npm uninstall -g @angular/cli
npm cache verify
npm cache clean
npm install -g @angular/cli@next
npm...
Friday, May 4, 2018
Monday, April 16, 2018
MongoDB – Allow remote access
By default, MongoDB doesn’t allow remote connections. to enable the remote access bind the ip address of the machine in mongod.conf.
in linux /etc/mongod.conf
# network interfaces
net:
port: 27017
bindIp: ip-address of the machine // by default it will be 127.0.0.1
...
Wednesday, February 14, 2018
How to make @requestparam optional in spring
Question:
Make spring endpoint with optional request parameters
Solution:
To make the request parameter optional on the spring controller, user JAVA 8 feature Option type or set required attribute to false.
public void count(@RequestParam(name="name") Optional name){
if (name.isPresent()) {
...
Sunday, February 11, 2018
@angular/platform-browser/src/browser/transfer_state.d.ts (34,40): ',' expected.
Error:
`ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/browser/transfer_state.d.ts:34:40
TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/browser/transfer_state.d.ts:34:42
TS1139: Type parameter declaration expected.
ERROR in [at-loader]...
Monday, February 5, 2018
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe"
Error: MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe"
Solution
This error will be thrown on the windows machine for the node module build, to resolve this issue, run/install the windows build tools.
Run from the administrative CMD or PowerShell!
npm install...
Friday, January 19, 2018
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Issue:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain.
Bitbucket pipeline or Jenkins console output, the build is failed – “Could not find org.gradle.wrapper.GradleWrapperMain”
Solution:
This error will be thrown when gradlew build unable to find the gradle folder...
Friday, September 1, 2017
guacd:"Error: Protocol Security Negotiation Failure"

Guacamole server is unable to make rdp connection with windows system and guacd library will throw this exception because windows remote desktop setting is not enabled.
Enable remote desktop setting:
...
Sunday, August 20, 2017
error 10 cordova google plus login ionic

Below are the reason for the error 10.
Android key and web client id not used properly.
Missing debug key in .android folder of windows system
Missing SHA1 key in the fire base console.
...
Wednesday, January 13, 2016
Remove or Filter Stopping/Stemming words using java

For the better indexing or searching the data in the big text chunk we need to filter the unwanted words from the data to get the better performance on the search by indexing only the logical words.
What...
Sunday, December 27, 2015
Elastic Search 2.x sample CRUD code

What is ElasticSearch?
Elasticsearch is an open-source, restful, distributed, search engine built on top of apache-lucene, Lucene is arguably the most advanced, high-performance, and fully featured...
Monday, May 11, 2015
ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is
15/05/08 01:26:12 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
...
Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:9000 failed on...
Hadoop Set Up on Ubuntu Linux (Single-Node Cluster)

Running Hadoop on Ubuntu Linux (Single-Node Cluster)
Hadoop is a framework written in Java, Incorporates features similar to those of the Google File System (GFS) and of the MapReduce computing paradigm....
Saturday, May 9, 2015
Install Ubuntu Linux on Virtual Box

It is always good to have virtual box with our required OS installed, If u have windows box and want to learn hadoop, its good to have virtual box with ubuntu to learn.
Prerequisites :
1. Download...
Tuesday, April 28, 2015
Analyzing the application code by using the sonarqube ANT/MAVEN

SonarQube™ software (previously known as “Sonar”) is an open source project hosted at Codehaus. By using this we can analyze the source code, its very easy to configure and use.
1. Download and unzip...
web service client JAXWS by maven
Generate web service client stub class by using the JAXWS maven plugin.
"jaxws-maven-plugin" will generate the web service stub classes by using that we can implement client or test the web service.
generated stub classes will stored under src folder and by using this service classes we can communicate...
Tuesday, April 14, 2015
JMETER load testing by code/ JMETER API implementation sample by java code

This tutorial attempts to explain the basic design, functionality and usage of the Jmeter, Jmeter is excellent tool used to perform load testing on the application, By using the jmeter GUI we can create...
Wednesday, April 8, 2015
get byte or memory size of array,list,collections in java
In java lot of time we will come across the scenerio where in which we need to find the how much memory used by given list.
The ArrayList holds a pointer to a single Object array, which grows as the number of elements exceed the size of the array. The ArrayList's underlying Object array grows by about...