Skip to main content

Posts

How to take Full Page Screenshot using Google Developer Tools in Chrome Browser

Click on 3 vertical dots on the top right hand side of the browser. Click on 3 vertical dots again in the Developer Tools Menu and choose "Run Command" option or use keyboard combination ctrl+Shift+P. If you do not see Developer Tools you might have to go to chrome settings and enable this option in your chrome browser. Now type "Capture Full Page Screenshot" in the command bar. Thats it. You should now see the whole page you are viewing will be downloaded automatically in your PC as a PNG file.

Springboot Microservices Tools And Dependencies – Spring Cloud Config

There are various tools and dependencies which are available in Spring Starter project which are very useful in creating better spring based microservice architectures for developing mobile or web applications. Here is one such commonly used tools if you are using the springboot microservice architecture in designing your applications. Spring Cloud Config Server : This dependency is used for externalizing the configuration properties in various microservices present in your organization. The main advantage of using Spring Cloud Config Server is that you can get away from deploying or restarting your services if there is only configuration change made in your microservice. Generally, if you change any property in your microservice, you will have to restart the microservice to see that change. But if you configure your properties in the Spring Cloud Config Server, the changes will be affected automatically in the applications. Steps to activate this dependency: ·   ...

Spring Based Restful Microservice Architecture and Implementation - Part 1

In this post we will see how a spring based restful microservice architecture looks like and detailed steps to implement this architecture. Since this is a vast topic, I will divide this post into multiple posts. In the first post (Part 1), we will see the spring based Microservice Architecture for a simple use case. Identify various components and tools that will be used to implement this architecure.  Without spending too much time on the basics, we will dwelve right away into the overall architecture. Tools and Technologies used : Spring Tool Suite (https://spring.io/tools3/sts/all)  Postman (https://www.getpostman.com/apps)  mongoDB (https://www.mongodb.com/download-center/community)  Java 8  Installation of Spring Tools Suite, Postman and Java JDK 8 are straight forward and I will not go into details of these installations.  Steps Involved in creating springboot microservices: In Part 1 of this series, we will see how to implement...

Using Lambda Expressions in Java

Lambda expressions are introduced in Java 8. They help us to remove lot of bolier plate code for interface implementations using an inner class. In this blogpost, we will answer following questions: 1. What is a Functional Interface ? 2. What are Lambda Expressions  and how to use them ? 3. Can an interface have default method implementations ? 4. Can a Functional Interface have more than one abstract method ? Create a java file and name it as "TestLambda". Copy paste the below code and run the program. Read the method signatures to get more understanding :

What is Kubernetes

What is Kubernetes Kubernetes (Often denoted by K8's) is an Open Source container orchestration system for automated deployments of application Docker containers. It was originally developed by Google. It is different from Docker in the sense that Docker is a Container Platform and Kubernates helps in managing the dependencies in the containers. Docker is an open source platform for creating Containers. Containers contain the application code which can be run on any docker platform. Containers are different from  Virtual Machines. Containers will generally contain application code, bin and libraries. But Virtual machines contain Applications as wells as Guest Operating systems Docker Container Virtual Machine Application Bins/libs Docker OS Application Bins/libs Guest OS Hypervisor Main OS

Java Technology Interview Questions

Java Basics (Core Java): Explain Inheritance, Composition and Aggregation Explain Singleton Pattern Can I create  a sub class of a static/abstract class ? Difference between sleep() and wait() Where are local variables stored in JVM ? [Stack/Heap] What are Transient and Volatile Variables ? when do you use them ?   Transient: Dictionary Meaning of Transient : One who stays for only a short time. You use the  transient  keyword to indicate to the Java virtual machine that the indicated variable is  not  part of the persistent state of the object. Variables that are part of the persistent state of an object must be saved when the object is archived.  Volatile: If your class contains a member variable that is modified asynchronously by concurrently running threads, you can use Java's  volatile  keyword to notify the Java runtime system of this. What are deadlocks and how are they caused ? What is Serialization a...