Articles on Trending Technologies

Technical articles with clear explanations and examples

How to create a container using Podman?

Mead Naji
Mead Naji
Updated on 21-Nov-2024 260 Views

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

Java program to merge contents of all the files in a directory

AmitDiwan
AmitDiwan
Updated on 20-Nov-2024 1K+ Views

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

Pass by reference vs value in Python

SaiKrishna Tavva
SaiKrishna Tavva
Updated on 20-Nov-2024 12K+ Views

In Python Call by Value and Call by Reference are two types of generic methods to pass parameters to a function. In the Call-by-value method, the original value cannot be changed, whereas in Call-by-reference, the original value can bechanged. Call by Value in Python When we pass an argument to a function, it is stored locally (in the stack memory), i.e the scope of these variables lies with in the function and these will not have effect the values of the golbal variables (variables outside function). In Python, "passing by value" is possible only with the immutable types such as integers, floats, strings, ...

Read More

SQL Query to Delete Duplicate Rows

SQL
Mithlesh Upadhyay
Mithlesh Upadhyay
Updated on 20-Nov-2024 273 Views

While working with a database to avoid duplicates, we should follow certain practices when we create the database table. Define primary key to identify rows cluster and non-cluster indexes. Use constraints for data integrity in performance. Database tables may have duplicate rows after following best practices. These duplicate rows create issues while we retrieve data from the database. So we must ensure unique database rows. To do so, first of all, we need to verify whether a table has duplicate rows, If duplicate rows exist, we must remove them by altering the table data. This article will ...

Read More

How to Select a Random Element from Array in JavaScript?

Rohan Singh
Rohan Singh
Updated on 20-Nov-2024 4K+ Views

To select a random element from array in Javascript, means getting any random element from the given array. We will understand various approaches for selecting a random element from array. In this article, we are having an array and our task is to select a random element from array in JavaScript Approaches to select a random element from array Here is a list of approaches to select a random element from array in JavaScript which we will be discussing in this article with stepwise explaination and complete example codes. Using Math.random() Method ...

Read More

How to Add New Value to an Existing Array in JavaScript?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 20-Nov-2024 4K+ Views

To add new value to an existing array in Javascript, it can be achieved using various ways. We will be understanding seven different approaches for adding a new element to existing array. In this article we are having an array of numbers and our task is to add new value to an existing array in JavaScript. Approaches to Add New Value to Existing Array Here is a list of approaches to add new value to an existing array in JavaScript which we will be discussing in this article with stepwise explaination and complete example codes. ...

Read More

Lumen vs Phalcon - What are the differences?

Mithlesh Upadhyay
Mithlesh Upadhyay
Updated on 20-Nov-2024 141 Views

Both Lumen and Phalcon are frameworks used for backend web development. We will discuss what is Lumen, features of Lumen, advantages and disadvantages and applications of Lumen. Similarly we will discuss Phalcon in this article. Then we will discuss differences between Lumen and Phalcon.What is Lumen?Lumen is framework used for small project. It is micro-framework used in backend web development. We use PHP programming language in Lumen. Lumen is lightweight version of Laravel. Lumen is a open-source framework. You can learn Lumen if you know PHP programming language.Features of LumenThese are various features of Lumen given as below -ORM: Lumen ...

Read More

7 Ways AI Can Improve Software Documentation

Harleen Kaur
Harleen Kaur
Updated on 20-Nov-2024 4K+ Views

Artificial Intelligence is the leading technology in this modern era. AI and software development go hand-in-hand in many cases. One of them is improving the software documentation. Storing the documentation/information that is correct, complete, and easy is vital as software development turns more complex. All the information can be absolutely transformed by means of integrating AI into documentation procedures. Here is a list of seven significant ways in which AI may improve software documentation, increasing its effectiveness and usability.7 Ways AI Can Improve Software Documentation1. Generation of Documentation AutomaticallyTools with AI features can automatically produce documentation from code. Programs like ...

Read More

Java program to add and remove elements from a set which maintains the insertion order

karthikeya Boyini
karthikeya Boyini
Updated on 19-Nov-2024 721 Views

In this article, we will learn how to use a LinkedHashSet in Java to add and remove elements while maintaining the insertion order. You will see how elements are stored, removed, and updated in a LinkedHashSet without altering the sequence in which they were added. Problem Statement Write a Java program to add elements to a LinkedHashSet, remove specific elements, and display the updated set while ensuring the insertion order of the elements remains unchanged. Below is a demonstration of the same − Input Set = [20, 60, 80, 120, 150, 200, 220, 260, 380] Output Set = [20, 60, ...

Read More

Nested Classes in C++

Ankith Reddy
Ankith Reddy
Updated on 19-Nov-2024 29K+ Views

A nested class is a class that is declared in another class. The nested class is also a member variable of the enclosing class and has the same access rights as the other members. However, the member functions of the enclosing class have no special access to the members of a nested class. Syntax Here is the basic syntax defining and using nested classes in C++. class OuterClass { // Members of the outer classpublic: // Nested class definition class InnerClass { // Members of the inner class };}; Accessing Nested Classes To access a nested class from outside ...

Read More
Showing 13301–13310 of 61,248 articles
Advertisements