The following section provides several JavaScript Code Examples. addEventListener() Sometimes we want to attach an event listener to an HTML element dynamically. For this purpose, we can use the addEventListener() method. Even, it is possible to attach an event listener to a paragraph or div element. See Example. appendChild() Basically, this method helps us to append a child …
Edge Detection Using OpenCV
In this post on Edge Detection Using OpenCV, I will explain an important image processing function known as edge detection. Basically, edge detection results in a new image that contains the outlines or edges of the given image. Canny Edge Detection Method Basically, Canny Edge Detection is a step-by-step procedure that requires the image to …
Display Images Using DataList Control
In this post on Display Images Using DataList Control, I will explain how to show images on a web page using a DataList control in ASP.NET. An Example to Display Images Using DataList Control The following example demonstrates the use of a DataList control. Basically, in this example, we use a Database table name Flowers that contains the …
Adding Images Using Image Control
In this post on Adding Images Using Image Control, I will demonstrate the use of Image Control for creating a Web Page in ASP.NET. Basically, the Image Control available in ASP.NET allows us to display an image on the web page. Hence, it displays the image as the data. Therefore, we can display images within any container element of HTML …
Creating a Group of Radio Buttons Using RadioButtonList Control
In this post on Creating a Group of Radio Buttons Using RadioButtonList Control, I will explain how to create several radio buttons as a group using a RadioButtonList control. RadioButtonList Control In short, a RadioButtonList control provides you a single-selection group of the radio buttons that you can use to create a web page. Meanwhile, …
Example of Button Control in ASP.NET
In this post on the Example of Button Control in ASP.NET, I will explain the Button control using few examples. The Button control in ASP.NET displays a push button on a Web Form. Basically, we use the Button control to post a page on the web server. Since, a postback submits a web page to the server for …
Using MD5 Hash Algorithm
In this post on Using MD5 Hash Algorithm, I will explain the MD5 algorithm for computing hash code, the MD5 abstract class in .NET, and its implementation for computing hash code. Basically, the Message Digest algorithm named MD5 generates a 16-byte (128-bit) hash code. This algorithm is available with the MD5 class in ASP.NET. Further, the namespace System.Security.Cryptography defines this …
Predicting with Time Series
In this post on Predicting with Time Series, I will explain how to build a Time Series model for predictions and Forecasting. To begin with, let us first understand the concept of Time Series and Time Series Analysis. What is a Time Series? In short, a Time Series spreads a sequence of data points over …
Example of Multi-layer Perceptron Classifier in Python
This article demonstrates an example of a Multi-layer Perceptron Classifier in Python. In general, we use the following steps for implementing a Multi-layer Perceptron classifier. To begin with, first, we import the necessary libraries of python. After that, create a list of attribute names in the dataset and use it in a call to the read_csv() function of the …
Measuring Performance of Classification using Confusion Matrix
In this post on Measuring Performance of Classification using Confusion Matrix, I will explain what is a confusion matrix and how to use it with a Machine Learning classifier. Machine Learning offers a number of algorithms for classification and prediction. However, each algorithm performs differently. Hence, we must have some kind of performance measures to evaluate the …