Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Recover a Deleted File in Linux?

Mead Naji
Mead Naji
Updated on 04-Nov-2024 380 Views

There is no doubt that the idea of losing an important file or deleting it unintentionally is certainly annoying and almost all of us have been in the same situation, especially if the files are very important, whether they are work files, personal photos or videos that you cannot do without and want to recover. If you are exposed to this problem, do not worry. There are many solutions and programs dedicated to recovering files, especially if you are using the famous Linux distribution. There are also many diverse and free programs dedicated to all famous distributions. Linux ...

Read More

How to Parse XML File in Bash Script?

Mead Naji
Mead Naji
Updated on 04-Nov-2024 2K+ Views

XML stands for Extensible Markup Language. It's a widely used format that is used to exchange data between systems. Many applications are based on XML as their configuration files. Even the very well-known document application, Office, is based on XML. What makes XML very popular is that it is written in plain text, which makes it easy to work with and also independent. It can be used in any programming language. Unlike HTML and other markup languages, XML doesn't come with predefined tags that you need to remember and use. With XML, you can use tags of your choice ...

Read More

How to Parse a CSV File in Bash

Mead Naji
Mead Naji
Updated on 04-Nov-2024 640 Views

CSV files are a common file format that we use on the Internet a lot. They are basically a file type that consists of lines, with each line considered a row in a simple table. As the name suggests, CSV (Comma-Separated Values) means that data in each line is separated by commas. CSV files are just plain text that we can view and edit in any editor. The common fields we see using this type of file are in spreadsheets, databases, storing configuration data, and data exchange between APIs. In Linux, there are many ways to parse a file like ...

Read More

Hello World in Bash Script

Mead Naji
Mead Naji
Updated on 04-Nov-2024 563 Views

A command line or terminal is an important component of the Linux operating system, as it allows for inclusive administration and management of the operating system as a whole. Even if we are talking about a Linux distribution that uses a graphical interface, you will still need a terminal to unleash all the power and potential of Linux. Linux provides a "shell" to work on the command line. The shell is a command interpreter responsible for executing commands based on what you enter on the command line. The most popular shell is bash (short for "Bourne Again Shell, " ...

Read More

How to Get the names of the table in SQL

SQL
guru
guru
Updated on 01-Nov-2024 618 Views

In SQL databases, it is often necessary to retrieve the list of table names within a database to understand the structure or to perform the certain operations. Each SQL-based database system offers specific ways to query its metadata to extract the table names. In this article, we will explore how to get the names of tables in popular relational database systems including the MySQL, SQL Server, PostgreSQL and Oracle. We will cover the built-in SQL queries and functions that are commonly used for this task. Need to Retrieve Table Names? Database Exploration: When working with ...

Read More

Delete middle element of a stack in Java

Sourav Sarkar
Sourav Sarkar
Updated on 01-Nov-2024 678 Views

In order to delete the middle element of a stack, then first we need to remove the elements above the middle element. After removing the middle element, we restore the elements above it to maintain the original sequence. We can achieve this using a recursive approach, as explained step-by-step below. We cannot delete the middle element of the stack directly because, according to the stack property, we can perform only push and pop operations on the top of the stack. Steps to Delete the Middle Element of a Stack Step 1: Determine the Position of the Middle Element, First ...

Read More

Minimum number of jumps to reach end using Java

Pushpa kumari
Pushpa kumari
Updated on 01-Nov-2024 451 Views

In this article, we will learn how to solve the "Minimum Number of Jumps to Reach the End" problem using Java. Let's break it down step-by-step. The idea is to find the smallest number of jumps needed to get from the start to the end of an array. Each element in the array represents the maximum number of steps you can take from that position. Problem StatementGiven an array arr[], where each element represents the maximum number of steps you can move forward from that position, the goal is to start from the beginning of the array and ...

Read More

Difference Between Markov Chains and Hidden Markov Models

Moksh Gupta
Moksh Gupta
Updated on 01-Nov-2024 1K+ Views

When exploring machine learning, and artificial intelligence especially in probabilistic models and time-series analysis, you’ll likely come across two crucial concepts: Discrete & Continuous Markov Chains as well as Hidden Markov Models. Of them, the first one is the approach based purely on probability theory while the second one has certain differences in the structure, application and in fact, in the complexity level. To effectively use these differences it is crucial to comprehend them by employing into practical application such as speech to text conversion, finance, and natural language processing. This article will provide an overview of Markov Chains and ...

Read More

Java program to put value to a Properties list

karthikeya Boyini
karthikeya Boyini
Updated on 30-Oct-2024 588 Views

In this article, we will learn how to use the Properties class in Java to store and display key-value pairs. The Properties class is useful for handling configuration settings or storing data in a structured way, where both keys and values are strings. By using the put() method, we can easily add values to a property list and later retrieve or display these key-value pairs. This approach provides a simple and efficient way to manage data in a key-value format in Java applications. Problem Statement A properties list contains country-year pairs. Write a Java program to store values ...

Read More

Java program to sort the elements of the stack in descending order

AYUSH MISHRA
AYUSH MISHRA
Updated on 30-Oct-2024 11K+ Views

In this article, we will learn to sort the elements of the stack in descending order. A stack is a data structure that works on the LIFO (Last In First Out) principle which means that the last added item is removed first. One real-life example of a stack is browser history where the last used website appears first. In this article, we are going to discuss, how we can sort the element of stack in descending order in Java.  Problem Statement In the given problem, we have a stack of unsorted integer elements, which we have to sort in descending ...

Read More
Showing 31761–31770 of 61,299 articles
Advertisements