Profile cover photo
Profile photo
Nikhil Ranjan
212 followers
212 followers
About
Posts

Post has attachment
Git Commands Recap : Add, rm, commit, diff
Git Add : git add <file_name1>,<file_name2> If a file need to be committed to repo, it needs to be brought first to staging area(staging index) from working directory. The "git add" command is used to move files from working directory to staging index(Chang...
Add a comment...

Post has attachment
Git Commands Recap : init. clone, status, log (--oneline, --stat, --patch) , show
Git Init : git init Create/Initialise git repository : Command  < git init >: "init"command is short for "initialise", it's the command that will do all of the initial setup of a repository. Steps to follow for initial setup:  create a directory called "dev...
Add a comment...

Post has attachment
Solve Linear regression problem mathematically with least square method : Find slope and intercept of linear classifier
Linear regression is one of basic supervised learning which is used to predict outcome. In linear regression problem, we find best fit line using sample points with one independent variable and one dependent variable. Basic idea is to finds a linear functio...
Add a comment...

Post has attachment
Spring Boot Microservice using CLI : How to start development of SpringBoot microservice using Spring Command line tool
In few clicks we can start development of microservice using Spring Boot. Follow below steps to setup SpringBoot CLI and start creating microservice. 1. Download spring-boot-cli-1.3.5.RELEASE-bin.zip file from below repo or below URL. http://repo.spring.io/...
Add a comment...

Post has attachment
Demystifying MicroServices : An architectural pattern (Functional Cohesion and Loose Coupling)
Microservices  are one of the increasingly popular architecture patterns and approach for software development to satisfy modern business demands. The architecture of microservices are influenced from " Port and Adapters design pattern " - Core logic and Se...
Add a comment...

Post has attachment
How to Convert JSON String to Java Object and Java Object to JSON String : Use Jackson API to convert JSON to Java Object
It is common use case to convert JSON string to Java Object and vice versa. Using Jackson API (a high-performance JSON processor for Java). JSON String to Java Object : Using jackson ObjectMapper class we create mapper Object and readValue() method convert ...
Add a comment...

Post has attachment
How to convert JSON String to JSON Object and fetch Specific part of JSON : Without specifying Java Class name convert JSON string to Object
It is common use case to retrieve information from JSON without converting in into Java Object. Suppose we retrieve a JSON string as response from some service and we want to retrieve some information from it and we do not have Java  class which response ca...
Add a comment...

Post has attachment
Apache Cassandra CRUD operation Using Java client : Step by step guide to setup Java client for CRUD operation with Cassandra
In previous post we used CQLSH Client for performing CRUD operation and created Keyspace, Table and inserted records in it. In this post we will use Java client to achieve the same. In order to follow below post Apache Cassandra should be up and running. He...
Add a comment...

Post has attachment
Apache Cassandra CRUD operation Using Java client : An stet by step guide to setup Java client for CRUD operation with Cassandra
1. Create Java Project and convert into maven project or Create a Maven project 2. Add dependency for Cassandra in pom.xml <dependencies> <dependency> <groupId> com.datastax.cassandra </groupId> <artifactId> cassandra-driver-core </artifactId> <version> 3.1...
Add a comment...

Post has attachment
Get started with Cassandra Query Language (CQL)
Prerequisite : In order to follow this tutorial and do hands-on, make sure you have installed Apache Cassandra and its up & running at least locally on one node. Before going into details of database operations lets familiarise with Cassandra terminologies ...
Add a comment...
Wait while more posts are being loaded