What is a Docker file, image, container !

What is Dockerfile, Docker image and Docker container? When I started reading about Docker, I was confused about the relationship between Docker file vs docker image vs docker container ! Docker file is where I need to script my steps on what actions to be done before I make a docker image.a sample docker file…

How to take snapshot of browser using selenium

Code sample as below: File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(srcFile, new File(“snapshot.png”));

How to run selenium on linux server using Firefox binary

How to run selenium on linux server using Firefox binary String Xport = System.getProperty(“lmportal.xvfb.id”, “:1”); // setup firefox binary to start Xvfb final File ffPath…

How to handle the error popup on site security certificate is not trusted with chrome selenium python automation

How to handle the error popup on site security certificate is not trusted with chrome selenium python automation For Chrome, add –ignore-certificate-errors in following code…

Nested Java program loops

Nested Java program loops import java.util.Scanner; class NestedIfElse { public static void main(String[] args) { int marksObtained, passingMarks; char grade; passingMarks = 40; Scanner input…

If else program in Java

If else program in Java import java.util.Scanner; class IfElse { public static void main(String[] args) { int marksObtained, passingMarks; passingMarks = 40; Scanner input =…

4 Dimensional Arrays in Java

4 Dimensional Arrays in Java   Sample code for 4 Dimensional Arrays in Java   package javaArrays; import java.util.Scanner;   public class FourDimArray {       …

What is Block chain and cryptocurrency

What is Blockchain and cryptocurrency To understand more about Blockchain and cryptocurrency, lets explain about current Banking system works. Current Banking systems : when a user…

Top 20 cryptocurrency 2017

Top 20 cryptocurrency 2017 bitcoin BTC ethereum ETH bitcoincash BCH ethereumclassic ETC litecoin LTC einsteinium EMC2 dash DASH ripple XRP bitcoingold BTG zcash ZEC eos…

How to reverse an array in java

How to reverse an array in java package arrays; import java.util.Arrays;   public class ArrayReverse  {     public static void main(String[] args)  {   int…

What is LinkedList and an example in Java?

What is LinkedList and an example in Java? LinkedList is a linear collections of data elements.      // Declaring LinkedList        LinkedList<String>…

How to use JMeter for login authentication?

How to use JMeter for login authentication? Regular Expression Extractor is used to handle this situation. Following steps may be used, First find out the…

How to Use WhatsApp in a Web Browser?

Solution: 1) Go to web.whatsapp.com in a web browser on a computer. 2) Then, on your iOS/Android/Windows mobile phone, open WhatsApp and press the Options…

How to use while loop in java

While loop in Java import java.util.Scanner; class WhileLoop { public static void main(String[] args) { int i; Scanner input = new Scanner(System.in); System.out.println(“Please input an…

How to implement Multiplication program in java

How to implement Multiplication program in java: import java.util.Scanner; class TableForMultiplication { public static void main(String args[]) { int i, j; System.out.println(“Enter an integer to…

Breaking while loop in Java

import java.util.Scanner; class TestingBreakWhileLoop { public static void main(String[] args) { int i; Scanner input = new Scanner(System.in); while (true) { System.out.println(“Input an integer for…

What is difference between select and select distinct

What is the difference between select  and select distinct SELECT DISTINCT statement is used for returning only distinct (different) values from a column. SELECT statement…