Articles on Trending Technologies

Technical articles with clear explanations and examples

Descending order in Map and Multimap of C++ STL

Nishu Kumari
Nishu Kumari
Updated on 30-Jan-2025 4K+ Views

Generally, the default behavior of map and multimap map is to store elements is in ascending order. But we can store element in descending order by using the greater function. Map in Descending Order We use a map to store elements in descending order with the help of the greater function. We perform various operations like inserting elements, finding an element, counting occurrences of keys, and removing elements from the map. Functions are used here - m::find() – Returns an iterator to the element with key value ‘b’ in the map if found, else returns the iterator to ...

Read More

Sorting a vector in C++

Nishu Kumari
Nishu Kumari
Updated on 30-Jan-2025 20K+ Views

Sorting a vector in C++ means arranging its elements in a specific order, like ascending or descending. This is a common task when you need to organize data efficiently. C++ provides different ways to sort a vector. In this article, we will look at different ways to sort a vector in C++. Let's look at this example to better understand it: For the vector: V = {5, 3, 8, 1, 2} Sorted Output: {1, 2, 3, 5, 8} For the vector: V = {22, 23, 5, 6, 34} Sorted Output: {5, 6, 22, 23, 34} Approaches to ...

Read More

Difference Between Whole Wheat, Whole Grain, and Multigrain Bread

Mudasir Mohd Najar
Mudasir Mohd Najar
Updated on 30-Jan-2025 230 Views

Read this informative article to learn the different characteristics of Whole Wheat bread as compared to Whole Grains and Multigrain Products. The different bread types provide various nutritional features alongside distinct characteristics which make them sound healthful. The knowledge about these distinctions enables you to choose bread according to your eating requirements. What is Whole Wheat Bread? Whole wheat bread producers begin by processing wheat kernels to retain all their sections starting from the bran through the germ and ending with the endosperm. The bread-making process maintains all wheat components which keeps the original nutrients and fiber content intact providing ...

Read More

Can a bird eye view on phishing emails reduce it potentially?

Harleen Kaur
Harleen Kaur
Updated on 30-Jan-2025 1K+ Views

Phishing emails, which deceive people and organizations into disclosing private information, remain a serious cybersecurity risk. By looking at phishing efforts from a wider angle, or from a bird's-eye view, we can see trends and improve security to reduce their impact.What is a phishing email?Phishing email is either a false or real-looking email. Innocent people are typically the target of its design. Hackers use these emails in commercial contact with the goal of deceiving staff members. They can use this to access their personal data, including passwords and usernames. The web address linked to an email can be used to ...

Read More

How To Add User To Docker Group?

Harleen Kaur
Harleen Kaur
Updated on 29-Jan-2025 2K+ Views

As an efficient containerization tool,  Docker is used in applications across numerous sectors. Developers find it a very useful tool, and they don't need to rely on the target system to deploy their program in production or any other environment.It is a standard procedure to add users to a docker group. You can communicate with the docker daemon without sudo privileges by adding the user to the docker group. Superuser capabilities are usually needed to run Docker commands without adding a user to the Docker group. You can execute the commands without having docker access by adding a user to the ...

Read More

Java Program to Illustrate Use of Binary Literals

Sakshi Ghosh
Sakshi Ghosh
Updated on 28-Jan-2025 663 Views

In this article, we will learn to illustrate the use of binary literals in Java. This feature is particularly useful when working with low-level data manipulation, such as in embedded systems or when dealing with bitwise operations. What is Binary Literal? A binary literal is a number that is denoted using binary digits that are 0s and 1s. The values written in data types – byte, int, long, and short can be easily expressed in a binary number system. The prefix 0b or 0B is added to the integer to declare a binary literal. For example − ...

Read More

Java ResultSetMetaData getColumnDisplaySize() Method with Example

Alshifa Hasnain
Alshifa Hasnain
Updated on 28-Jan-2025 718 Views

In this article, we will learn the ResultSetMetaData getColumnDisplaySize() method with an example in Java. This is useful when you need to understand the display requirements of a column in a result set. Method Signature The getColumnDisplaySize(int column) method of the ResultSetMetaData class in Java retrieves the maximum width of the specified column, measured in characters. int getColumnDisplaySize(int column) Parameters: The 1-based index of the column for which you want the display size. Returns: The maximum number of characters that can be displayed for the specified column. ...

Read More

How to purge disk I/O caches on Linux?

Abhishek Nair
Abhishek Nair
Updated on 28-Jan-2025 544 Views

Most modern operating systems rely on disk I/O caching to improve system performance by storing frequently accessed data in memory. However, there are times when you might want to clear these caches, such as when benchmarking disk performance, troubleshooting, or ensuring that data is read from the disk rather than memory. This tutorial will guide you through the process of purging disk I/O caches on a Linux system but first let's dive into brief detail on what disk I/O caches are. Understanding Disk I/O Caches Linux uses a portion of system RAM to cache disk reads and writes, which speeds ...

Read More

How to Install WhatsApp on Linux?

Abhishek Nair
Abhishek Nair
Updated on 28-Jan-2025 4K+ Views

WhatsApp is one of the most popular messaging applications worldwide, known for its simplicity and robust features. It allows you to share pictures, videos, make audio and video calls, one-to-one or in groups, with your friends and family. Moreover, there are plenty of groups and channels in WhatsApp for everyone which you can explore and join as per your interests. While it is primarily designed for mobile devices running Android and iOS, many users wish to access it on their desktop systems, including those running Linux. For Windows and Mac systems, WhatsApp provides official binaries for installation on your desktop ...

Read More

How to Get the IP Address of a Machine From Bash?

Abhishek Nair
Abhishek Nair
Updated on 28-Jan-2025 550 Views

IP address stands for Internet Protocol address, which is a unique string of numbers assigned to each device connected to a computer network that uses the Internet Protocol for communication. A system needs an IP address for various networking tasks in Linux, like setting up network connections, configuring services like file sharing, SSH or FTP or troubleshooting network-related issues, etc. An IP address can be classified into two main categories, public and private. A public IP address usually can be accessed from the Internet, whereas private addresses are reserved for internal use within your private network without being directly exposed. ...

Read More
Showing 31371–31380 of 61,297 articles
Advertisements