Configure CentOS Local YUM Repository

Abhishek Nair
Updated on 28-Jan-2025 16:22:28

216 Views

Yum repository is a central database of software that is used for installation/upgrade of packages on a Red Hat/CentOS based Linux server. This repository includes software that are used by system as well as for user level programs. An administrator can set-up a custom local yum repository instead of using the default ones provided by the OS for several reasons like: to provide normal or specialized software packages possibly in a restricted network environment; to maintain version levels across a set of servers; to optimize network bandwidth usage; to adhere to organization policy for maintaining security or possibly a combination ... Read More

Change Apache Port in Linux

Abhishek Nair
Updated on 28-Jan-2025 16:11:41

139 Views

Apache HTTP server (often called Apache) is an open-source, cross-platform web server developed by Apache Software Foundation. It is one of the most popular web servers available used for hosting web sites and serving web content. By default, Apache works on port 80/tcp for HTTP and 443/tcp for HTTPS. There are situations (like security considerations, port conflicts with other programs or need to run multiple web servers) where one may need to modify these default ports which the web server listens on. Changing Apache Port on Linux Read this tutorial to learn how to change HTTP port for Apache on ... Read More

Generate a Resume with HTML and CSS

Souvik Chakraborty
Updated on 28-Jan-2025 15:46:31

432 Views

Generating a resume with HTML and CSS make an attractive resume that can easily be distributed. A resume is a vital document that has been used in the course of employment so as to present oneself for the job. In this article, you will learn how to create a clear and concise resume, with proper division of sections and appropriate style with HTML and CSS. We have discussed how to create a resume using HTML and CSS. The main consideration will be the hierarchy and how such sections would look and function on a professional level online across various devices. ... Read More

Show Word Document in HTML Page Using JavaScript

Souvik Chakraborty
Updated on 28-Jan-2025 14:58:43

919 Views

To show a word document in an HTML page using JavaScript is important where you are required to read Word documents within your browser. This article will discuss two approaches to accomplishing this in JavaScript. They both allow you to teach your application how to load.docx files and display them on your webpage to the user. In this article, our task is to show a word document in an HTML page using JavaScript. We will be either using a .docx file from our system or using URL. Approaches to Show a Word Document in HTML Using Mammoth.js Library ... Read More

Java NumberFormat getPercentageInstance Method

Samual Sam
Updated on 28-Jan-2025 14:58:02

624 Views

In this article, we will learn the NumberFormat.getPercentageInstance() method. Java provides powerful tools for formatting numbers, currencies, and percentages through the java.text.NumberFormatclass. One of the most useful methods in this class is the getPercentageInstance() method. NumberFormat.getPercentageInstance() method The NumberFormat.getPercentageInstance() method is a static method that returns a NumberFormat instance configured to format numbers as percentages. This method can be used with or without a Locale parameter.  Syntax − public static NumberFormat getPercentageInstance()public static NumberFormat getPercentageInstance(Locale locale) Without Locale: If no locale is specified, the method uses the default locale of the JVM. ... Read More

Get Size of Directory in Java

Shiva Keerthi
Updated on 28-Jan-2025 14:57:26

866 Views

A group of files combined stored at a common location is known as a “Directory”. A directory not only contains a group of files but also it can contain a group of other directories as well. A directory is also known as a “Folder”. Directories are a fundamental component of file systems and are used by different operating systems to provide a logical organization of files and to help us perform file management tasks such as searching, sorting, and moving files. In this section, we are going to write a Java program to get the size of a directory. What is ... Read More

Java ResultSet getType Method with Example

Arushi
Updated on 28-Jan-2025 14:57:12

1K+ Views

In JDBC (Java Database Connectivity), the ResultSet interface represents the result set of a database query in Java. One of the important methods provided by ResultSet is getType(), which returns the type of the ResultSet object. Result getType() method The getType() method is used to determine the type of cursor and its behavior when scrolling through the result set.Syntax of getType() int resultSet_Type = rs.getType(); This method returns an integer value that corresponds to one of the ResultSet type constants. These constants indicate the type of cursor used by the ResultSet: ResultSet.TYPE_FORWARD_ONLY (value: 1003): This ... Read More

Convert Array of Objects into Object of Arrays in JavaScript

AmitDiwan
Updated on 28-Jan-2025 14:56:36

1K+ Views

In this article, we will learn to convert an array of objects into an object of arrays in JavaScript. When working with JavaScript, it's common to handle arrays of objects representing structured data. A frequent challenge is grouping these objects based on a shared property and transforming the result into a new data structure. Problem Statement The goal is to convert an array of objects into an object of arrays where the keys represent a specific property (e.g., roles) and the values are arrays of corresponding data (e.g., player names). Input const team = [ { role: ... Read More

Get the Union of Two Sets in Java

karthikeya Boyini
Updated on 28-Jan-2025 14:55:40

6K+ Views

The union of two sets combines all the unique elements from both sets into one. In Java we can achieve this using the HashSet class, which ensures no duplicate elements. This article will demonstrate two approaches to finding the union of two sets.  Different Approaches  Following are the two different approaches to getting the union of two sets in Java − Using the addAll() Method Using Streams Using the addAll() Method The simplest way to find the union of two sets is by using the addAll() method of the HashSet class. This ... Read More

Convert Binary Number to Decimal Number in Java

Samual Sam
Updated on 28-Jan-2025 14:51:45

882 Views

In this article, we will learn to convert a binary number into a decimal number in Java.Binary numbers are fundamental in computer science and digital electronics, where data is represented in a base-2 numeral system consisting of only 0s and 1s. Converting binary numbers to their decimal equivalents is a common task. Problem Statement The task is to convert a binary number into its decimal equivalent using Java. − Input 1110 Output 14 Different Approaches Following are the two different approaches to converting a binary number into a decimal number in Java − Using ... Read More

Advertisements