Programming Articles

Page 564 of 2544

How to send button value to PHP backend via POST using ajax?

Mohit Panchasara
Mohit Panchasara
Updated on 10-Mar-2023 3K+ Views

AJAX (Asynchronous JavaScript and XML) makes web pages more responsive, interactive, and dynamic by enabling server communication without requiring a page to load. JavaScript is used to send and receive data from a server using various technologies, including XML, JSON, and HTML. In these, JSON is the most popular. AJAX is frequently used to transmit information from a web page to a server-side script, like a PHP script. The XMLHttpRequest object, included in most contemporary web browsers, can be used for this. You can establish a connection to a given URL, send data to that URL, and then wait ...

Read More

How to Check Orientation of 3 Ordered Points in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 10-Mar-2023 420 Views

In this article we are going to find the orientation of 3 ordered points. Here orientation means that the given points form clockwise, anticlockwise or collinear shape in space. In the above diagram a, b, c are the three points which check the orientation of shape in space. We find the orientation of three given points by calculating the slope. To calculate slope and to calculate the orientation of 3 ordered points. Slope of line segmentSlope of line segment $(a, b):\theta=\left ( y_{b}-y_{a} \right )/\left ( x_{b} -x_{a}\right )$ Slope of line segment $(b, c):\phi=\left ( y_{c} -y_{b}\right )/(x_{c}-x_{b})$ And ...

Read More

Pandas series Vs. single-column DataFrame

Premansh Sharma
Premansh Sharma
Updated on 10-Mar-2023 12K+ Views

Introduction This article compares and contrasts Python's Pandas library's single-column DataFrames and Pandas Series data structures. The goal of the paper is to clearly explain the two data structures, their similarities and differences. To assist readers in selecting the best alternative for their particular use case, it contains comparisons between the two structures and practical examples on aspects like data type, indexing, slicing, and performance. The essay is appropriate for Python programmers at the basic and intermediate levels who are already familiar with Pandas and wish to get a deeper grasp of these two key data structures. What is Pandas? ...

Read More

Java Program to Encode a Message Using Playfair Cipher

Pranay Arora
Pranay Arora
Updated on 10-Mar-2023 3K+ Views

Encrypting is the task of transforming information into an unreadable format or cipher text. It is usually done to protect the confidentiality of information. There are many ways and algorithms to encrypt data. One such example is the Playfair cipher algorithm. In this article, we are going to see how to write a Java program to encode a message using Playfair cipher. Playfair cipher makes use of a 5X5 grid or matrix and a set of pre-defined rules. To encrypt, we require a key and the plain text to be encrypted. Steps Now let us see the steps to encrypt ...

Read More

Replace the Matrix Elements by Its Square in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 09-Mar-2023 907 Views

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is replace the matrix elements by its square. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the original matrix is {{8, 3, 2}, {12, 7, 9}, {6, 4, 10}}; After replacing the matrix element by its square, the result matrix will be 64 ...

Read More

How to Get File Owner’s Name in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 09-Mar-2023 1K+ Views

As per the problem statement, we are going to find the file owner name in Java. The owner’s name here represents the owner of the PC in which file is being runned. To find the file owner in Java we will use the getOwner() method of the FileOwnerAttributeView class. FileOwnerAttributeView belongs to the java.nio class. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the given file location is “D:/saket.txt”. After checking for Owner name of the given file, the output will be − ...

Read More

How to Homogenize a Point in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 09-Mar-2023 230 Views

In this article we will see how to homogenize a point. Any point in the projective plane is represented by a triple (X, Y, Z), called homogeneous coordinates or projective coordinates of the point, where X, Y and Z are not all 0. The point represented by a given set of homogeneous coordinates is unchanged if the coordinates are multiplied by a common factor. As per the problem statement we have to homogenize a point by taking any common factor and multiplying it with the given points. Let’s start! To show you some instances Instance-1 Suppose the points are (10, ...

Read More

How to Find Single Digit Array Elements in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 09-Mar-2023 3K+ Views

In a given array with some random integer values, we have to find out the single digits available in the given array and print those single digit values as output. An array can contain positive or negative numbers irrespective of the number of digits in a number. As here all elements belong to numeric type. Note- Take a positive integer array. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Given Array= [1, 12, 3, 4, 10, 15]. The single digit elements present in the ...

Read More

Plotting stock charts in excel sheet using xlsxwriter module in python

Devesh Chauhan
Devesh Chauhan
Updated on 09-Mar-2023 272 Views

Factors such as data analysis and growth rate monitoring are very important when it comes to plotting stock charts. For any business to flourish and expand, the right strategy is needed. These strategies are built on the back of a deep fundamental research. Python programming helps us to create and compare data which in turn can be used to study a business model. Python offers several methods and functions through which we can plot graphs, analyse growth and introspect the sudden changes. In this article we will be discussing about one such operation where we will plot a stock chart ...

Read More

Find Number of Sorted Rows in a Matrix in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 06-Mar-2023 555 Views

Matrices are nothing but a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is to count all the rows in a matrix that are sorted either in strictly increasing order or in strictly decreasing order. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the original matrix is{ { 5, 6, 7, 8 , ...

Read More
Showing 5631–5640 of 25,433 articles
« Prev 1 562 563 564 565 566 2544 Next »
Advertisements