Vim is a well-known text editor in the terminal, used by many developers and sysadmins around the world. However, it is also known for its complicated keybindings and modes. You may want to use Vim, but for those reasons, or if you don't want to invest much time just to learn a text editor, we have the solution: Micro, an awesome and easy-to-use terminal text editor. Micro, as the name implies, is a lightweight and easy-to-install editor that comes with a lot of features and capabilities. In this article, we will go through how to install Micro and how to ... Read More
Bash script, like other programming languages, has features such as if statements, loops, and other useful constructs that make the language powerful and versatile. One of the most important concepts to understand when working with bash, or on the path to mastering bash scripting, is conditional statements. Conditional statements allow us to execute certain code or operations based on a given condition. In this tutorial, we will learn how to use if statements in bash scripts with examples and explanations. What is a Conditional Statement? In general, a conditional statement allows us to perform an action based on the value ... Read More
Podman and its Daemonless Approach? Podman is an open-source container engine project that helps us with developing, managing, and deploying containers. What makes Podman special is its daemonless approach. With Docker, when we work with the Docker CLI, we're actually interacting with the Docker daemon, which runs in the background to handle tasks for us. Podman, however, is different; instead of using a background daemon to manage and create containers, it does everything on the client side by forking itself, and this child process becomes the container. This makes Podman more secure and lightweight compared to Docker’s ... Read More
When we talk about applications that we take and run in the container world, we call this an image, which we save somewhere and run for as long as we need it. We have a lot of places where we can find an image; we call these image registries. We may have the image locally on our machine or in a specific place like the Internet (image repository or registry). Podman helps us deal with those registries. For example, we can search for a specific image in the image repository. If you search for an image for httpd, what you ... Read More
Podman is in the official repository for almost all distributions, making it easy to install. On Ubuntu / Debian / Mint. sudo apt install podman For Red Hat / Fedora sudo dnf install podman For Windows, it’s recommended to use WSL (Windows Subsystem for Linux) to install and use Podman. You can install Podman in WSL using the command: sudo apt install podman -y If you are a Mac user, the best option is to use Homebrew to install Podman. If you don’t have Homebrew installed, first install it with the command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ... Read More
These days, we hear a lot about the terms containers and VMs, and if you are a beginner, it's hard to differentiate between these terms and technologies that are similar and almost do the same work. In this comprehensive tutorial, we will explain in an easy way what a container is, what a container engine is, and finally, we will install and use Podman as a container technology to run our first container. What is a Container? To understand what a container is, basically let's take an example where we have an application that uses PHP version 8, for instance. ... Read More
A matrix is a two-dimensional array. The elements that are present on the edges are called boundary elements, and the elements that are present inside the matrix, not present on the edges, are known as non-boundary elements. In this article, we are going to discuss how to print non-boundary elements of the matrix. Problem Description We are given a matrix and we have to print all non-boundary elements present in the matrix. Rows and columns are present ... Read More
In this article, we will learn how to check whether a string is a palindrome in Java. A palindrome reads the same forward and backward. By using the StringBuffer class and its reverse() method. Problem StatementGiven a string, write a Java program to check if it is a palindrome by reversing the string and comparing it with the original.Input "anna"Output Given String is palindrome Steps to check if a string is a palindrome The following are the steps to check if a string is a palindrome − Create a StringBuffer object by passing the ... Read More
In this article, we use the Calendar class in Java to work with dates and times. First, it retrieves the current date and time and displays it. Then, the program increments the current time by 5 hours using the add() method and displays the updated date and time. This is a simple example of modifying and handling date-time values programmatically. Subtracting hours from current time using Calendar.add() method. Calendar class The Java Calendar class is found in the java.util package. It is an abstract class that provides methods for converting a specific moment in time into various calendar fields such ... Read More
In this article, we will learn how to merge the contents of all the text files in a directory into a single file using Java. It reads the data from each file and writes it into a new file while ensuring all data is stored in an organized manner. You’ll see how to handle files, read their content, and merge them programmatically. File class The java.io package contains the Java File class, which provides an abstract representation of file and directory pathnames. It is commonly used for creating files and directories, searching for files, deleting files, and performing other file-related operations. File ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP