Showing posts with label realtime. Show all posts
Showing posts with label realtime. Show all posts

July 10, 2024

EndOfLife Software packages

The "End of Life" (EOL) page for Software provides information on the release dates, support periods, and security status of different Software versions. It lists the latest supported version, the end dates for older versions, and provides links to further resources. This page is useful for understanding the support lifecycle of Software releases and ensuring that you are using a version that receives updates and security patches.Ref:...
Read more ...

June 11, 2024

Replace H2 with a real database in spring boot application

Springboot application facing bellow error or need to implement real test data base:Senario:Could not prepare statement [Table “XXXX” not found (this database is empty); SQL statementSolution:Add bellow configuration in test application.ymlspring: test: database: replace: none---Code:@DataJpaTest @TestPropertySource(properties = { ...
Read more ...

February 17, 2023

How to password pass while connect ssh in the command line

Now a days, it's very difficult remember the vm passwords while connecting in the office network. So, Connect easily using sshpass.For installation for mac/Linux:Mac:brew install hudochenkov/sshpass/sshpassLinux:yum install sshpassExample of usage:Ex:sshpass -p test123 ssh root@192.168.1.1Reafference:https://stackoverflow.com/questions/32255660/how-to-install-sshpass-on-mac&nb...
Read more ...

November 16, 2022

SRIOV CNI Plugin

The Single Root I/O Virtualization (SR-IOV) specification is a standard for a type of PCI device assignment that can share a single device with multiple pods. SR-IOV enables you to segment a compliant network device, recognized on the host node as a physical function (PF), into multiple virtual functions (VFs), and make them available...
Read more ...

Understanding the Kubernetes Node

Kubernetes is an open-source orchestration engine for automating deployments, scaling, managing, and providing the infrastructure to host containerized applications. At the infrastructure level, a Kubernetes cluster is comprised of a set of physical or virtual machines, each acting in a specific role.Master components are responsible for...
Read more ...

April 26, 2022

Create New VPN entry in Cisco AnyConnect

MacBook process to add new VPN entry:cd /opt/cisco/anyconnect/profilesudo cp clientprofile_old.xml clientprofile_new.xmlsudo vi clientprofile_new.xml    Update hostname and hostaddress    Ex:        <ServerList>                <HostEntry>                       ...
Read more ...

April 15, 2022

DevOps vs GitOps

DevOps is about cultural change and providing a way for development teams and operations teams to work together collaboratively. GitOps gives you tools and a framework to take DevOps practices, like collaboration, CI/CD, and version control, and apply them to infrastructure automation and application deployment.GitOps Free Training(LinuxFoundation):https://trainingportal.linuxfoundation.org/learn/course/introduction-to-gitops...
Read more ...

February 16, 2022

Pushing Images to artifactory or any location of docker environment

Skopeo is a tool for moving container images between different types of container storages. It allows you to copy container images between container registries like docker.io, quay.io, and your internal container registry or different types of storage on your local system.Below are the steps to push or pull images from artifactory using skopeo...
Read more ...

August 23, 2021

Python sWSGI.ini applications configurations

A note on Python threadsIf you start uWSGI without threads, the Python GIL will not be enabled, so threads generated by your application will never run. You may not like that choice, but remember that uWSGI is a language-independent server, so most of its choices are for maintaining it “agnostic”. But do not worry, there are basically no choices made by the uWSGI developers that cannot be changed with an option.If you want to...
Read more ...

Sort with given object multiple properties names, age using JAVA8

List can be sorted using Java 8 Lambda Expressions, moving right past syntactic sugar and into real and powerful functional semantics. The implementation of all of these examples and code snippets can be found over on gitHub: https://github.com/ramanujadasu/tutorials/tree/master/core-java-modules/core-java-lambdas List<Human> humans = Lists.newArrayList( new Human("Sarah", 10), new Human("Jack",...
Read more ...

Custom Marker Interface Implementation in Java

Marker interface has no method. Java has built-in marker interface like Serializable, Cloneable & Event Listener etc that are understand by JVM.We can create our own marker interface, but it has nothing to do with JVM, we can add some checks with instanceOf. Create the empty interface 
interface Marker{ } Write a class and implements the interface 
class A implements Marker { //do some...
Read more ...

Can we use return statement in finally block in java?

Bellow program output is always 2, as we are returning 2 from the finally block. Remember the finally always executes whether there is a exception or not. So when the finally block runs it will override the return value of others. Writing return statements in finally block is not required, in fact you should not write it.  public class Test { public static int test(int i) { try { if (i == 0) ...
Read more ...

August 03, 2021

Profile creation and data structure concepts examples

Found few good tutorials and capture the profile building and data-structure concepts examples.Profile creation tips and related sites:https://github.com/ramanujadasu/golden-profile-tips/tree/main/profilecreationtipsData structure concepts and example git repos:https://github.com/ramanujadasu/golden-profile-tips/tree/main/datastructuresVisual view for DataStructures:https://visualgo.net/en/bstJava 9 Features:https://www.youtu...
Read more ...

August 01, 2021

Core Concepts and Brief Explanation

Question : Why to Override equals(Object) and hashCode() method ?Solution: HashMap and HashSet use the hashcode value of an object to find out how the object would be stored in the collection, and subsequently hashcode is used to help locate the object in the collection. Hashing retrieval involves:First, find out the right bucket using hashCode().Secondly,...
Read more ...

July 31, 2021

AWS S3 CURD Operations using spring boot

AWS S3 CURD Operations including spring boot actuator featuresREADME file mentioned to run procedureGITURL: https://github.com/ramanujadasu/aws-curd-apisGIT SSH link:git@github.com:ramanujadasu/aws-curd-apis.gitSpring Boot AWS Cloud Supporthttps://spring.io/projects/spring-cloud-aws#overview Samples:https://github.com/spring-cloud-sampleshttps://github.com/ramanujadasu/aws-ref...
Read more ...

July 28, 2021

Vertical Scaling and Horizontal Scaling

    Scaling an on-premise infrastructure is hard. You need to plan for peak capacity, wait for equipment to arrive, configure the hardware and software, and hope you get everything right the first time. But deploying your application in the cloud can address these headaches.    Vertical scaling means that...
Read more ...

My Favorite Site's List

#update below script more than 500 posts