Author Archives: ashokabhat

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer

Episode 84: Kubernetes POD Configurations and Settings

POD – CONFIGURATIONS : POD – Create and Display : Kubectl create -f nginx-pod.yaml Verify the Pod is Created : Kubectl get pod Check the POD IP Address : Kubectl get pod -o wide Describe the POD Details : Kubectl … Continue reading

Rate this:

Tagged , , , , | Leave a comment

Episode 83 : Kubernetes Installations and Configurations

Kubeadm init         ==> Master Creation Kubeadm   join      ==> Worker Creation Swapoff -a            ==> Disable Swap for Performance Setenforce 0        ==> Disable SELinux                                a] sed -I ‘s/enforcing/disabled/g’ etc/selinux/config                                b] grep disabled /etc/selinux/config | grep -v ‘#’ Install Docker : … Continue reading

Rate this:

Tagged , , , , | Leave a comment

Episode 82 : Airline Problem Solution – Java Utility Function

Determine if airlines can be moved from airline to another based on network of airline partners Sample Input file : airlines.txt Delta,Air Canada,Aero Mexico,Ocean Air United,Aria,Lufthansa,Ocean Air,Quantas,British Airways Northwest,Air Alaska,BMI,Avolar,EVA Air Canjet,Girjet Air Canada,Areo Mexico,Delta,Air Alaska Aero Mexico,Delta,Air Canda,British Airways … Continue reading

Rate this:

Tagged , , , , | Leave a comment

Episode 81: Java Utility Functions – Histogram Display in Java Applications

import java.math.BigDecimal;import java.math.RoundingMode;import java.util.ArrayList;import java.util.Collections;import java.util.List; public class Histogram {private final List<Double> values;private final String label;private final String unit;private double totalValue;private double minValue = Double.MAX_VALUE;private double maxValue = Double.MIN_VALUE;private int countValue = 0;private int numBins;private final Double binSize; public Histogram(int … Continue reading

Rate this:

Leave a comment

Episode 80: Java Utility functions – Help Display in the java Applications using the Resources

public static void main(String[] args) {if (shouldDisplayUsageInformation(args)) {return;}SpringApplication.run(DemoApplication.class, args);} private static boolean shouldDisplayUsageInformation(String[] args) {var shouldDisplay = Arrays.stream(args).anyMatch(x -> x.equalsIgnoreCase(“-h”) || x.equalsIgnoreCase(“–help”));if (shouldDisplay) {ApplicationInfo applicationInfo = new ApplicationInfo();applicationInfo.showUsageHelp();}return shouldDisplay;} public void showUsageHelp() {Stream.of(“usage.txt”, “version.properties”).map(ClassPathResource::new).map(ApplicationInfo::readResource).map(x -> “\n” + x).forEach(logger::info);} private static … Continue reading

Rate this:

Leave a comment

Episode 79 : Java Utility functions – Calculate the Total Execution Time in Applications

long startTime = System.currentTimeMillis(); long endTime = System.currentTimeMillis();long milliSec = endTime – startTime;String executionTime = getExecutionTimeFromMilliseconds(milliSec); private String getExecutionTimeFromMilliseconds(long milliseconds) {String format = String.format(“%%0%dd”, 2);long elapsedTime = milliseconds / 1000;String seconds = String.format(format, elapsedTime % 60);String minutes = String.format(format, (elapsedTime … Continue reading

Rate this:

Leave a comment

Episode 78: Java Utility functions – Generate Framed output display in terminal

private void titleHeadingFrameGenerator(String title,String contentBody){StringBuilder titleFrameBuilder = new StringBuilder();int headerLength = 100;titleFrameBuilder.append(“\n\n”);titleFrameBuilder.append(String.join(“”, Collections.nCopies((headerLength – title.length()) / 2, “*”)));titleFrameBuilder.append(title);titleFrameBuilder.append(String.join(“”, Collections.nCopies((headerLength – title.length()) / 2, “*”)));titleFrameBuilder.append(“\n\n”);titleFrameBuilder.append(contentBody);titleFrameBuilder.append(“\n\n”);titleFrameBuilder.append(String.join(“”, Collections.nCopies(headerLength, “*”)));logger.info(titleFrameBuilder.toString());}

Rate this:

Leave a comment

NVISION 2022 – BCSD SD SDU BSS IN DM – Demo – Multi Data Visualizer and Analyzer [Exploratory Visualization and analysis ]

NVISIO 2022 – BCSD SD SDU BSS IN DM – Demo – PPT Presentation – Multi Data Visualizer and Analyzer [Exploratory Visualization and Analysis]

Rate this:

Leave a comment

Episode 77 : R Programming Questions and Answers – Version 12

21. What do you know about the rattle package in R? Rattle is a popular GUI for data mining using R. It presents statistical and visual summaries of data, transforms data so that it can be readily modelled, builds both unsupervised and … Continue reading

Rate this:

Leave a comment

Episode 76 : R Programming Questions and Answers – Version 11

16. What is clustering? What is the difference between kmeans clustering and hierarchical clustering? Cluster is a group of objects that belongs to the same class. Clustering is the process of making a group of abstract objects into classes of … Continue reading

Rate this:

Leave a comment