This article provides an introduction to OpenCV Library in Python and demonstrates some examples of using this library. In fact, OpenCV (Open Source Computer Vision) is a cross-platform library. Also, it works on both images and videos. In the case of the Python programming language, the OpenCV library is available with the cv2 package. The cv2 package contains methods …
Examples of Tuples in Python
Today I will show some examples of Tuples in Python. Basically, a tuple is a collection of values. Unlike a list, a tuple is immutable. Also, the values in a tuple are separated by a comma. Therefore, if a tuple contains a single value, a comma should be there after the value. Moreover, a tuple …
Python List Practice Exercise
The Python List Practice Exercise given below consists of simple programs on python lists. Basically, a list is a data structure in python that contains multiple elements. Moreover, all elements in a python list need not be of the same data type. Further, the values in a list are not unique. In other words, we …
Callback Functions in JavaScript
Basically, Callback Functions in JavaScript provide us a way to pass a function as a parameter to another function. In fact, callback functions are very useful in performing asynchronous operations and registering an event listener. Examples of Callback Functions in JavaScript As an illustration, the following is an example of a simple callback function that …
Arrow Functions in JavaScript
Basically, Arrow Functions in JavaScript provide us a way to simplify coding the user-defined functions. Further, they let us define anonymous functions. Since, arrow functions provide us a way to write shorter syntax, by including arrow functions in script single statement functions can be created fast and prevent unnecessaey coding. However, there are certain differences …
XML Documents and DataSet in ASP.NET
In this post on XML Documents and DataSet in ASP.NET, I will explain how to create an XML Document from a DataSet and vice versa. Also, I will explain how to display XML data in a data-bound control like GridView. An Example Demonstrating XML Documents and DataSet The following example shows how to work with XML …
Code Render Block in ASP.NET
Examples of Using Code Render Block: https://www.programmingempire.com/examples-of-using-code-render-block-in-asp-net/ This article describes Code Render Block in ASP.NET. Basically, a Code Render Block in ASP.NET refers to the inline code that we use in the ASPX page along with server-side and client-side tags. What is Code Render Block? Basically, a code render block is a block containing programming statements within a …
ASP.NET Core Features and Advantages
In this post on ASP.NET Core Features and Advantages, I will discuss the core features of ASP.NET technology that make it a choice for web developers. ASP.NET Core Basically, ASP.NET Core is another version of ASP.NET. Also, it is open-source and available on Windows, Linux, and MacOS platform. The following section describes ASP.NET Core Features and Advantages. ASP.NET Core Features Open-Source Excellent Performance Support for Containerization Several Hosting Options Dependency …
Understanding Blockchain Concepts
In this post on Understanding Blockchain Concepts, I will explain what is blockchain and its application. What is a Blockchain? Basically, a blockchain is a distributed database. Significantly, Decentralization and Scalability are the two most important features of a Blockchain. As the name suggests, a Blockchain is a chain of blocks with each block containing …
JavaScript Code Examples
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 …