title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
HTML - <doctype> Tag | The HTML <doctype> tag is used for specifying which version of HTML the document is using. This is referred to as the document type declaration (DTD).
NOTE − The <!DOCTYPE> tag does not have an end tag!.
<!DOCTYPE html>
<html>
<head>
<title>HTML doctype Tag</title>
</head>
<body>
<p>doctype decla... | [
{
"code": null,
"e": 2659,
"s": 2508,
"text": "The HTML <doctype> tag is used for specifying which version of HTML the document is using. This is referred to as the document type declaration (DTD)."
},
{
"code": null,
"e": 2712,
"s": 2659,
"text": "NOTE − The <!DOCTYPE> tag does ... |
TypeScript | Array every() Method | 18 Jun, 2020
The Array.every() is an inbuilt TypeScript function which is used to check for all the elements in an array passes the test implemented by the provided function. Syntax:
array.every(callback[, thisObject])
Parameter: This method accepts two parameter as mentioned above and described below:
callback : This ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 198,
"s": 28,
"text": "The Array.every() is an inbuilt TypeScript function which is used to check for all the elements in an array passes the test implemented by the provided function. Syntax:"
},... |
Select Rows With Multiple Filters in Pandas | 24 Jan, 2021
In this article, we are going to select rows using multiple filters in pandas. We will select multiple rows in pandas using multiple conditions, logical operators and using loc() function.
Selecting rows with logical operators i.e. AND and OR can be achieved easily with a combination of >, <, <=, >= and ==... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 217,
"s": 28,
"text": "In this article, we are going to select rows using multiple filters in pandas. We will select multiple rows in pandas using multiple conditions, logical operators and using lo... |
Recursive Relationships in ER diagrams | 10 Jun, 2021
Prerequisite – ER Model A relationship between two entities of a similar entity type is called a recursive relationship. Here the same entity type participates more than once in a relationship type with a different role for each instance. In other words, a relationship has always been between occurrences i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 491,
"s": 54,
"text": "Prerequisite – ER Model A relationship between two entities of a similar entity type is called a recursive relationship. Here the same entity type participates more than once... |
How to convert a string into kebab case using JavaScript ? | 01 Apr, 2021
Given a string with space-separated or camel case or snake case letters, the task is to find the kebab case of the following string.
For examples :
Input: Geeks For Geeks
Output: geeks-for-geeks
Input: GeeksForGeeks
Output: geeks-for-geeks
Input: Geeks_for_geeks
Output: geeks-for-geeks
This can be ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 162,
"s": 28,
"text": "Given a string with space-separated or camel case or snake case letters, the task is to find the kebab case of the following string. "
},
{
"code": null,
"e": 177,... |
Top 50 Blockchain Interview Questions and Answers | 11 Nov, 2021
Blockchain is one of the most trending technologies out there in the tech world. It is basically concerned with a distributed database that maintains the records of all transactions that have been executed and shared across the network of computer systems globally. From payment processing to healthcare to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Nov, 2021"
},
{
"code": null,
"e": 766,
"s": 28,
"text": "Blockchain is one of the most trending technologies out there in the tech world. It is basically concerned with a distributed database that maintains the records of all transa... |
SAS - Correlation Analysis | Correlation analysis deals with relationships among variables. The correlation coefficient is a measure of linear association between two variables.Values of the correlation coefficient are always between -1 and +1. SAS provides the procedure PROC CORR to find the correlation coefficients between a pair of variables in... | [
{
"code": null,
"e": 2915,
"s": 2583,
"text": "Correlation analysis deals with relationships among variables. The correlation coefficient is a measure of linear association between two variables.Values of the correlation coefficient are always between -1 and +1. SAS provides the procedure PROC CORR ... |
Interactive Visualization with Dash and Plotly | by Alper Aydın | Towards Data Science | Interactive data visualization has an important impact on exploratory data analysis. Before applying any descriptive or predictive algorithm to a dataset we must first understand how the features are related with each other and how they are distributed inside. It is obvious that many visualization libraries provide num... | [
{
"code": null,
"e": 706,
"s": 171,
"text": "Interactive data visualization has an important impact on exploratory data analysis. Before applying any descriptive or predictive algorithm to a dataset we must first understand how the features are related with each other and how they are distributed in... |
Sort a String in Java (2 different ways) - GeeksforGeeks | 14 Sep, 2021
String class doesn’t have any method that directly sorts a string, but we can sort a string by applying other methods one after other. String is a sequence of characters. In java, objects of String are immutable which means a constant and cannot be changed once created.
Creating a String
There are two ways... | [
{
"code": null,
"e": 24444,
"s": 24416,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 24715,
"s": 24444,
"text": "String class doesn’t have any method that directly sorts a string, but we can sort a string by applying other methods one after other. String is a sequence of char... |
Find the position of the last removed element from the array - GeeksforGeeks | 03 May, 2021
Given an array of size and an integer . Perform the following operations on the given array:
If a[i] > M then push a[i] – M to end of the array, otherwise remove it from the array.Perform the first operation while the array is non-empty.
If a[i] > M then push a[i] – M to end of the array, otherwise remove... | [
{
"code": null,
"e": 24740,
"s": 24712,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 24834,
"s": 24740,
"text": "Given an array of size and an integer . Perform the following operations on the given array: "
},
{
"code": null,
"e": 24979,
"s": 24834,
"text... |
How to use IF-THEN-ELSE in Python the way you do it in SAS | by Valentin Nordstroem | Towards Data Science | I think I’ve used IF-THEN-ELSE Statement or conditional coding in almost every analysis or program I have developed in the last 30 years. It is very useful in both preparing and cleaning data.
IF-THEN-ELSE is an integrated part of the data step in SAS. We don’t have an object for a data step in Python, but can step thr... | [
{
"code": null,
"e": 365,
"s": 172,
"text": "I think I’ve used IF-THEN-ELSE Statement or conditional coding in almost every analysis or program I have developed in the last 30 years. It is very useful in both preparing and cleaning data."
},
{
"code": null,
"e": 577,
"s": 365,
"t... |
IntegerField - Django Models - GeeksforGeeks | 12 Feb, 2020
IntegerField is a integer number represented in Python by a int instance. This field is generally used to store integer numbers in the database. The default form widget for this field is a NumberInput when localize is False or TextInput otherwise. It supports values from -2147483648 to 2147483647 are safe ... | [
{
"code": null,
"e": 23939,
"s": 23911,
"text": "\n12 Feb, 2020"
},
{
"code": null,
"e": 24409,
"s": 23939,
"text": "IntegerField is a integer number represented in Python by a int instance. This field is generally used to store integer numbers in the database. The default form w... |
Embedded Systems - I/O Programming | In 8051, I/O operations are done using four ports and 40 pins. The following pin diagram shows the details of the 40 pins. I/O operation port reserves 32 pins where each port has 8 pins. The other 8 pins are designated as Vcc, GND, XTAL1, XTAL2, RST, EA (bar), ALE/PROG (bar), and PSEN (bar).
It is a 40 Pin PDIP (Plasti... | [
{
"code": null,
"e": 2176,
"s": 1883,
"text": "In 8051, I/O operations are done using four ports and 40 pins. The following pin diagram shows the details of the 40 pins. I/O operation port reserves 32 pins where each port has 8 pins. The other 8 pins are designated as Vcc, GND, XTAL1, XTAL2, RST, EA... |
Python | Get Kth Column of Matrix - GeeksforGeeks | 30 Dec, 2020
Sometimes, while working with Python Matrix, one can have a problem in which one needs to find the Kth column of Matrix. This is a very popular problem in Machine Learning Domain and having solution to this is useful. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using list co... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 25843,
"s": 25561,
"text": "Sometimes, while working with Python Matrix, one can have a problem in which one needs to find the Kth column of Matrix. This is a very popular problem in Machine ... |
PHP | mt_rand( ) Function - GeeksforGeeks | 07 Mar, 2018
While working with algorithms we often come across situations when we need to generate random integers. The most common way to generate random numbers is using Mersenne Twister.The Mersenne Twister is a pseudorandom number generator which got its name derived from the fact that its period length is chosen ... | [
{
"code": null,
"e": 26113,
"s": 26085,
"text": "\n07 Mar, 2018"
},
{
"code": null,
"e": 26788,
"s": 26113,
"text": "While working with algorithms we often come across situations when we need to generate random integers. The most common way to generate random numbers is using Mer... |
How to Convert a String to ArrayList in Java? - GeeksforGeeks | 19 Jan, 2021
Converting String to ArrayList means each character of the string is added as a separator character element in the ArrayList.
Example:
Input: 0001
Output: 0
0
0
1
Input: Geeks
Output: G
e
e
k
s
We can easily convert String to ArrayList in Jav... | [
{
"code": null,
"e": 25249,
"s": 25221,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 25375,
"s": 25249,
"text": "Converting String to ArrayList means each character of the string is added as a separator character element in the ArrayList."
},
{
"code": null,
"e": ... |
Python | sympy.Pow() method - GeeksforGeeks | 28 Aug, 2019
With the help of sympy.Pow() method, we can find a raised to the power of b where a and b are parameters to the method.
Syntax: Pow(a, b)Parameter:a – It denotes an integer.b – It denotes an integer.
Returns: Returns an integer which is equal to a raised to the power of b, i. e., a^b.
Example #1:
# import ... | [
{
"code": null,
"e": 26031,
"s": 26003,
"text": "\n28 Aug, 2019"
},
{
"code": null,
"e": 26151,
"s": 26031,
"text": "With the help of sympy.Pow() method, we can find a raised to the power of b where a and b are parameters to the method."
},
{
"code": null,
"e": 26231,... |
quit driver method - Selenium Python - GeeksforGeeks | 15 May, 2020
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n15 May, 2020"
},
{
"code": null,
"e": 26276,
"s": 25537,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi... |
How to Install Cockpit on Linux CentOS 7? - GeeksforGeeks | 01 Feb, 2021
The cockpit is a free, open-source Linux Server Management Tool which provides you the facility to control your server using the mouse on the web-interface. The cockpit can be used to perform any server related task such as start containers, storage administration, and network configuration and much more. ... | [
{
"code": null,
"e": 26197,
"s": 26169,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 26584,
"s": 26197,
"text": "The cockpit is a free, open-source Linux Server Management Tool which provides you the facility to control your server using the mouse on the web-interface. The co... |
Minimum substring flips required to convert given binary string to another - GeeksforGeeks | 11 Jun, 2021
Given two binary strings A and B, the task is to find the minimum number of times a substring starting from the first character of A needs to be flipped, i.e. convert 1s to 0s and 0s to 1s, to convert A to B.
Examples:
Input: A = “0010”, B = “1011”Output; 3Explanation:Step 1: Flip the entire string A. Ther... | [
{
"code": null,
"e": 26537,
"s": 26509,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 26746,
"s": 26537,
"text": "Given two binary strings A and B, the task is to find the minimum number of times a substring starting from the first character of A needs to be flipped, i.e. conv... |
Powerful Number - GeeksforGeeks | 07 Mar, 2022
A number n is said to be Powerful Number if for every prime factor p of it, p2 also divides it. For example:- 36 is a powerful number. It is divisible by both 3 and square of 3 i.e, 9.The first few Powerful Numbers are: 1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64 ....Given a number n, our task is to check if th... | [
{
"code": null,
"e": 26268,
"s": 26240,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 26611,
"s": 26268,
"text": "A number n is said to be Powerful Number if for every prime factor p of it, p2 also divides it. For example:- 36 is a powerful number. It is divisible by both 3 an... |
Maximum product of an increasing subsequence - GeeksforGeeks | 12 May, 2022
Given an array of numbers, find the maximum product formed by multiplying numbers of an increasing subsequence of that array.Note: A single number is supposed to be an increasing subsequence of size 1.Examples:
Input : arr[] = { 3, 100, 4, 5, 150, 6 }
Output : 45000
Maximum product is 45000 formed by the... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 26278,
"s": 26065,
"text": "Given an array of numbers, find the maximum product formed by multiplying numbers of an increasing subsequence of that array.Note: A single number is supposed to b... |
Rename Columns of a Data Frame in R Programming - rename() Function - GeeksforGeeks | 19 Jun, 2020
rename() function in R Language is used to rename the column names of a data frame, based on the older names.
Syntax: rename(x, names)
Parameters:x: Data framenames: Old name and new name
Example 1:
# R program to rename a Data Frame # Adding Package df <- library(plyr) # Creating a Data Frame df<-... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 26597,
"s": 26487,
"text": "rename() function in R Language is used to rename the column names of a data frame, based on the older names."
},
{
"code": null,
"e": 26622,
"s": ... |
Spatial Filters - Averaging filter and Median filter in Image Processing - GeeksforGeeks | 09 Nov, 2021
Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has a specific center pixel. This mask is moved on the image such that the center of the mask traverses all image pixels.In this article, we are going to cover the following topics ... | [
{
"code": null,
"e": 26037,
"s": 26009,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 26347,
"s": 26037,
"text": "Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has a specific center pixel. This mas... |
How to use Rating Component in ReactJS ? - GeeksforGeeks | 13 Apr, 2021
Rating Component helps capture the user feedback in form of rating. With the help of this feature, users can also rate the products they have purchased. Material UI for React has this component available for us, and it is very easy to integrate. We can use the following approach in ReactJS to use the Ratin... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 26391,
"s": 26071,
"text": "Rating Component helps capture the user feedback in form of rating. With the help of this feature, users can also rate the products they have purchased. Material U... |
How to disable tabs in Bootstrap ? - GeeksforGeeks | 24 Jun, 2021
To disable a tab, we can remove the attribute : data-toggle=”tab” from the tab part enclosed under ‘a’ element. Further we can add the class .disabled to the parent list item element to make it look visually disabled. (like class=”disabled” inside list item)To show a case of disabling tabs, first, we go th... | [
{
"code": null,
"e": 25679,
"s": 25651,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 26024,
"s": 25679,
"text": "To disable a tab, we can remove the attribute : data-toggle=”tab” from the tab part enclosed under ‘a’ element. Further we can add the class .disabled to the paren... |
TypeScript Tuples - GeeksforGeeks | 11 Apr, 2022
As we know array consists of values of homogeneous (same) types but sometimes when we need to store a collection of a different types values in a single variable, then we will go with Tuples. They are just like structure in C programming and can also be passed as parameters in a function call. Tuples may b... | [
{
"code": null,
"e": 25701,
"s": 25673,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 26104,
"s": 25701,
"text": "As we know array consists of values of homogeneous (same) types but sometimes when we need to store a collection of a different types values in a single variable, ... |
Find maximum distance between any city and station - GeeksforGeeks | 14 May, 2021
Given the number of cities n numbered from 0 to n-1 and the cities in which stations are located, the task is to find the maximum distance between any city and its nearest station. Note that the cities with stations can be given in any order.Examples:
Input: numOfCities = 6, stations = [1, 4]
Output: 1
... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 26533,
"s": 26279,
"text": "Given the number of cities n numbered from 0 to n-1 and the cities in which stations are located, the task is to find the maximum distance between any city and its... |
Program to multiply two Matrix by taking data from user - GeeksforGeeks | 11 Aug, 2021
Given two matrices, the task is to multiply them. The size and number of elements of matrices are to be read from the keyboard.
Examples:
Input: row1 = 2, col1 = 2,
mat1[][] = {{1, 2},
{3, 4}},
row2 = 2, col2 = 2,
mat2[][] = {{1, 1},
{1, 1}}
Ou... | [
{
"code": null,
"e": 25917,
"s": 25889,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 26045,
"s": 25917,
"text": "Given two matrices, the task is to multiply them. The size and number of elements of matrices are to be read from the keyboard."
},
{
"code": null,
"e"... |
What does $$ (dollar dollar or double dollar) means in PHP ? - GeeksforGeeks | 22 Feb, 2019
The $x (single dollar) is the normal variable with the name x that stores any value like string, integer, float, etc. The $$x (double dollar) is a reference variable that stores the value which can be accessed by using $ symbol before $x value.From the given figure below, it can be easily understood that:
... | [
{
"code": null,
"e": 26217,
"s": 26189,
"text": "\n22 Feb, 2019"
},
{
"code": null,
"e": 26524,
"s": 26217,
"text": "The $x (single dollar) is the normal variable with the name x that stores any value like string, integer, float, etc. The $$x (double dollar) is a reference variab... |
HTML5 <dialog> Tag - GeeksforGeeks | 17 Mar, 2022
The <dialog> tag is used to specify the dialog box or window. This tag is used to create a popup dialog and models on a web page. This tag is new in HTML5.
Syntax:
<dialog open> Contents... </dialog>
Attributes: This tag accepts a single attribute open which is used to specify the dialog element is activ... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 24801,
"s": 24644,
"text": "The <dialog> tag is used to specify the dialog box or window. This tag is used to create a popup dialog and models on a web page. This tag is new in HTML5. "
},
... |
Plant Disease Detection using Advanced Deep Learning and ReactJS | by Dhruvil Shah | Towards Data Science | Myriads of papers and articles are available for the detection of leaf or plant disease using deep learning. Convolutional Neural Networks have revolutionized the agriculture field by providing the models that are helping detect the disease of the plant accurately. But detecting the disease is not enough and one should... | [
{
"code": null,
"e": 1072,
"s": 172,
"text": "Myriads of papers and articles are available for the detection of leaf or plant disease using deep learning. Convolutional Neural Networks have revolutionized the agriculture field by providing the models that are helping detect the disease of the plant ... |
How to change the font size of scientific notation in Matplotlib? | To change the fontsize of scientific notation in matplotlib, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Set the figure size and adjust the padding between and around the subplots.
Make a list of x and y values.
Make a list of x and y values.
Plot x and ... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "To change the fontsize of scientific notation in matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1233,
"s": 1157,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
... |
How to read a cookie using JavaScript? | Following is the code to read a cookie using JavaScript −
Note − A local server would be needed to run this example.
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-f... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "Following is the code to read a cookie using JavaScript −"
},
{
"code": null,
"e": 1179,
"s": 1120,
"text": "Note − A local server would be needed to run this example."
},
{
"code": null,
"e": 1190,
"s": 1179,
"te... |
How to set locale programmatically in android app? | This example demonstrates how do I set locale programmatically in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLay... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "This example demonstrates how do I set locale programmatically in android."
},
{
"code": null,
"e": 1266,
"s": 1137,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to ... |
Clinical Notes — The “Negative” Story | by Ranga Sampath (youplusai) | Towards Data Science | Abstract: In this article, you will learn what a clinical note is, why understanding clinical notes may be useful, what are some special characteristics of such notes, what is negation and how may it be useful, what are ways in which information in a clinical note may be retrieved and some ideas to explore further once... | [
{
"code": null,
"e": 523,
"s": 171,
"text": "Abstract: In this article, you will learn what a clinical note is, why understanding clinical notes may be useful, what are some special characteristics of such notes, what is negation and how may it be useful, what are ways in which information in a clin... |
Functions that are executed before and after main() in C | Here we will see how to write a code where two functions are present, and one function will be executed before the main function, and another function will be executed after the main function. These features are used to do some startup task before executing the main, and some cleanup task after executing main.
To do th... | [
{
"code": null,
"e": 1374,
"s": 1062,
"text": "Here we will see how to write a code where two functions are present, and one function will be executed before the main function, and another function will be executed after the main function. These features are used to do some startup task before execu... |
Boundary Traversal of binary tree | Practice | GeeksforGeeks | Given a Binary Tree, find its Boundary Traversal. The traversal should be in the following order:
Left boundary nodes: defined as the path from the root to the left-most node ie- the leaf node you could reach when you always travel preferring the left subtree over the right subtree.
Leaf nodes: All the leaf nodes ex... | [
{
"code": null,
"e": 337,
"s": 238,
"text": "Given a Binary Tree, find its Boundary Traversal. The traversal should be in the following order: "
},
{
"code": null,
"e": 929,
"s": 337,
"text": "\nLeft boundary nodes: defined as the path from the root to the left-most node ie- the ... |
Support Vector Machines explained with Python examples | by Carolina Bento | Towards Data Science | Support vector machines (SVM) is a supervised machine learning technique. And, even though it’s mostly used in classification, it can also be applied to regression problems.
SVMs define a decision boundary along with a maximal margin that separates almost all the points into two classes. While also leaving some room fo... | [
{
"code": null,
"e": 345,
"s": 171,
"text": "Support vector machines (SVM) is a supervised machine learning technique. And, even though it’s mostly used in classification, it can also be applied to regression problems."
},
{
"code": null,
"e": 513,
"s": 345,
"text": "SVMs define ... |
|| operator in Java - GeeksforGeeks | 01 Nov, 2020
|| is a type of Logical Operator and is read as “OR OR” or “Logical OR“. This operator is used to perform “logical OR” operation, i.e. the function similar to OR gate in digital electronics.
One thing to keep in mind is the second condition is not evaluated if the first one is true, i.e. it has a short-c... | [
{
"code": null,
"e": 24170,
"s": 24142,
"text": "\n01 Nov, 2020"
},
{
"code": null,
"e": 24363,
"s": 24170,
"text": "|| is a type of Logical Operator and is read as “OR OR” or “Logical OR“. This operator is used to perform “logical OR” operation, i.e. the function similar to OR g... |
Predictive maintenance using machine learning | Towards Data Science | Different types of maintenance strategies have been widely deployed in oil and gas industry. Oil and gas industry today can utilize data science or machine learning instead of relying on old maintenance practices to better predict equipment failures and for conducting root cause analysis. Maintenance activities can be ... | [
{
"code": null,
"e": 1035,
"s": 172,
"text": "Different types of maintenance strategies have been widely deployed in oil and gas industry. Oil and gas industry today can utilize data science or machine learning instead of relying on old maintenance practices to better predict equipment failures and ... |
Why do we need reference variables if we have pointers - GeeksforGeeks | 01 Dec, 2021
Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be de referenced with * operator to access the memory location it points to.References: A Reference can be called as a constant pointer that becomes de referenced implicitly. When we access the reference it ... | [
{
"code": null,
"e": 24013,
"s": 23985,
"text": "\n01 Dec, 2021"
},
{
"code": null,
"e": 24784,
"s": 24013,
"text": "Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be de referenced with * operator to access the memory location ... |
Python - Hilbert Curve using turtle - GeeksforGeeks | 27 Feb, 2020
Fractal is a curve or a figure which repeats itself. It comprises a recursive pattern that repeats itself up to a desired level of nesting. Turtle graphics are provided in the turtle module which is used for drawing various shapes and patterns in Python.
A Hilbert curve is a curve which is formed by connec... | [
{
"code": null,
"e": 24224,
"s": 24196,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 24479,
"s": 24224,
"text": "Fractal is a curve or a figure which repeats itself. It comprises a recursive pattern that repeats itself up to a desired level of nesting. Turtle graphics are pro... |
Bootstrap - Button Groups | Button groups allow multiple buttons to be stacked together on a single line. This is useful when you want to place items like alignment buttons together. You can add on optional JavaScript radio and checkbox style behavior with Bootstrap Button Plugin.
Following table summarizes the important classes Bootstrap provide... | [
{
"code": null,
"e": 3585,
"s": 3331,
"text": "Button groups allow multiple buttons to be stacked together on a single line. This is useful when you want to place items like alignment buttons together. You can add on optional JavaScript radio and checkbox style behavior with Bootstrap Button Plugin.... |
Random list of M non-negative integers whose sum is N - GeeksforGeeks | 19 Mar, 2022
Given two integers M and N, the task is to create a list of M non-negative integers whose sum is N. In case when more than one list is possible, find any one.Examples:
Input: M = 4, N = 8 Output: 1 3 3 1 1 + 3 + 3 + 1 = 8Input: M = 5, N = 3 Output: 0 1 1 0 1
Approach: To get a complete random list of... | [
{
"code": null,
"e": 24629,
"s": 24601,
"text": "\n19 Mar, 2022"
},
{
"code": null,
"e": 24799,
"s": 24629,
"text": "Given two integers M and N, the task is to create a list of M non-negative integers whose sum is N. In case when more than one list is possible, find any one.Examp... |
Adding options to a <select> using jQuery? | To add options to a <select>, you need to use append(). Following is the JavaScript code −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/th... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "To add options to a <select>, you need to use append(). Following is the JavaScript code −"
},
{
"code": null,
"e": 1164,
"s": 1153,
"text": " Live Demo"
},
{
"code": null,
"e": 1866,
"s": 1164,
"text": "<!DOCTYPE... |
Syntax Tree – Natural Language Processing | 12 Jul, 2021
Natural Language Processing (NLP) is a field of study that deals with understanding, interpreting, and manipulating human spoken languages using computers. Since most of the significant information is written down in natural languages such as English, French, German, etc. thus, NLP helps computers communic... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Jul, 2021"
},
{
"code": null,
"e": 744,
"s": 54,
"text": "Natural Language Processing (NLP) is a field of study that deals with understanding, interpreting, and manipulating human spoken languages using computers. Since most of the ... |
Read and Write path in Cassandra | 24 Jul, 2020
Prerequisites –
Introduction to Apache Cassandra
Apache Cassandra (NOSQL database)
Architecture of Cassandra
Write Path Execution in Cassandra :
In Cassandra, while writing data, writes are written to any node in the cluster (coordinator).
when any user will insert data, it means they write the data first ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jul, 2020"
},
{
"code": null,
"e": 44,
"s": 28,
"text": "Prerequisites –"
},
{
"code": null,
"e": 77,
"s": 44,
"text": "Introduction to Apache Cassandra"
},
{
"code": null,
"e": 111,
"s": 77,
"... |
Python: Pillow (a fork of PIL) | 03 Jul, 2021
Python Imaging Library (expansion of PIL) is the de facto image processing package for Python language. It incorporates lightweight image processing tools that aids in editing, creating and saving images. Support for Python Imaging Library got discontinued in 2011, but a project named pillow forked the ori... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Jul, 2021"
},
{
"code": null,
"e": 778,
"s": 53,
"text": "Python Imaging Library (expansion of PIL) is the de facto image processing package for Python language. It incorporates lightweight image processing tools that aids in editin... |
jQuery | trigger() Method | 01 Mar, 2019
The trigger() method is a method in jQuery which is used to trigger a specified event handler on selected element.
Syntax:
$(selector).trigger(event, param1, param2)
Note: Extra parameters can be passed in trigger() method.
Example 1: This method triggered two methods to increase the value of method.
<!DOC... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Mar, 2019"
},
{
"code": null,
"e": 143,
"s": 28,
"text": "The trigger() method is a method in jQuery which is used to trigger a specified event handler on selected element."
},
{
"code": null,
"e": 151,
"s": 143,
... |
Finding Inverse of a Matrix in R Programming - inv() Function - GeeksforGeeks | 19 Jun, 2020
inv() function in R Language is used to calculate inverse of a matrix.
Note: Determinant of the matrix must not be zero
Syntax: inv(x)
Parameters:x: Matrix
Example 1:
# R program to calculate # inverse of a matrix # Loading librarylibrary(matlib) # Create 3 different vectors. a1 <- c(3, 2, 8) a2 <- c(6, ... | [
{
"code": null,
"e": 25867,
"s": 25839,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 25938,
"s": 25867,
"text": "inv() function in R Language is used to calculate inverse of a matrix."
},
{
"code": null,
"e": 25987,
"s": 25938,
"text": "Note: Determinant o... |
Arrays.toString() in Java with Examples - GeeksforGeeks | 07 Dec, 2018
Today we are going to discuss the simplest way to print the array as a string in Java: Arrays.toString() method.
How to use Arrays.toString() method?
Description:Returns a string representation of the contents of the specified array. The string representation consists of a list of the array’s elements, enc... | [
{
"code": null,
"e": 26289,
"s": 26261,
"text": "\n07 Dec, 2018"
},
{
"code": null,
"e": 26402,
"s": 26289,
"text": "Today we are going to discuss the simplest way to print the array as a string in Java: Arrays.toString() method."
},
{
"code": null,
"e": 26439,
"s... |
Python | Pandas Series.shape - GeeksforGeeks | 28 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique bu... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 25775,
"s": 25561,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
Scala Stack toList() method with example - GeeksforGeeks | 03 Nov, 2019
In Scala Stack class, the toList() method is utilized to return a list consisting of all the elements of the stack.
Method Definition: def toList: List[A]
Return Type: It returns a list consisting of all the elements of the stack.
Example #1:
// Scala program of toList() // method // Import Stack import ... | [
{
"code": null,
"e": 25353,
"s": 25325,
"text": "\n03 Nov, 2019"
},
{
"code": null,
"e": 25469,
"s": 25353,
"text": "In Scala Stack class, the toList() method is utilized to return a list consisting of all the elements of the stack."
},
{
"code": null,
"e": 25508,
... |
Machine Instructions - GeeksforGeeks | 17 Jan, 2022
Machine Instructions are commands or programs written in machine code of a machine (computer) that it can recognize and execute.
A machine instruction consists of several bytes in memory that tells the processor to perform one machine operation.
The processor looks at machine instructions in main memory on... | [
{
"code": null,
"e": 28709,
"s": 28681,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 28838,
"s": 28709,
"text": "Machine Instructions are commands or programs written in machine code of a machine (computer) that it can recognize and execute."
},
{
"code": null,
"e... |
Java Program to Print Diamond Shape Star Pattern - GeeksforGeeks | 08 Mar, 2022
In this article, we are going to learn how to print diamond shape star patterns in Java.
Illustration:
Input: number = 7
Output:
*
***
*****
*******
*********
***********
*************
***********
*********
*******
*****
***
*
Methods: When it come... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n08 Mar, 2022"
},
{
"code": null,
"e": 25603,
"s": 25513,
"text": "In this article, we are going to learn how to print diamond shape star patterns in Java. "
},
{
"code": null,
"e": 25617,
"s": 25603,
"text": "... |
Precedence Graph For Testing Conflict Serializability in DBMS - GeeksforGeeks | 15 Nov, 2021
Prerequisite: Conflict Serializability
Precedence Graph or Serialization Graph is used commonly to test Conflict Serializability of a schedule.It is a directed Graph (V, E) consisting of a set of nodes V = {T1, T2, T3..........Tn} and a set of directed edges E = {e1, e2, e3..................em}.The graph c... | [
{
"code": null,
"e": 30871,
"s": 30843,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 30910,
"s": 30871,
"text": "Prerequisite: Conflict Serializability"
},
{
"code": null,
"e": 31470,
"s": 30910,
"text": "Precedence Graph or Serialization Graph is used com... |
Matcher group() method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The group() method of Matcher Class is used to get the input subsequence matched by the previous match result.
Syntax:
public String group()
Parameters: This method do not takes any parameter.
Return Value: This method returns the String which is the input subsequence matched by the previous match.
Except... | [
{
"code": null,
"e": 26309,
"s": 26281,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 26420,
"s": 26309,
"text": "The group() method of Matcher Class is used to get the input subsequence matched by the previous match result."
},
{
"code": null,
"e": 26428,
"s":... |
Exponential Squaring (Fast Modulo Multiplication) - GeeksforGeeks | 07 Feb, 2020
Given two numbers base and exp, we need to compute baseexp under Modulo 10^9+7
Examples:
Input : base = 2, exp = 2
Output : 4
Input : base = 5, exp = 100000
Output : 754573817
In competitions, for calculating large powers of a number we are given a modulus value(a large prime number) because as the valu... | [
{
"code": null,
"e": 25849,
"s": 25821,
"text": "\n07 Feb, 2020"
},
{
"code": null,
"e": 25928,
"s": 25849,
"text": "Given two numbers base and exp, we need to compute baseexp under Modulo 10^9+7"
},
{
"code": null,
"e": 25938,
"s": 25928,
"text": "Examples:"
... |
How to create PDF document in Node.js ? - GeeksforGeeks | 24 Feb, 2022
In this article, we will see how to generate PDF documents in NodeJS.
Prerequisites:
Basic knowledge of Node.js. Node.js installed (version 12+).npm installed (version 6+).
Node.js installed (version 12+).npm installed (version 6+).
Node.js installed (version 12+).
npm installed (version 6+).
Step 1: Insta... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 26337,
"s": 26267,
"text": "In this article, we will see how to generate PDF documents in NodeJS."
},
{
"code": null,
"e": 26352,
"s": 26337,
"text": "Prerequisites:"
},... |
Node.js os.freemem() Method - GeeksforGeeks | 13 Oct, 2021
The os.freemem() method is an inbuilt application programming interface of the os module which is used to get the amount of free system memory.
Syntax:
os.freemem()
Parameters: This method does not accept any parameters.
Return Value: This method returns an integer value that specifies the amount of free s... | [
{
"code": null,
"e": 38501,
"s": 38473,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 38645,
"s": 38501,
"text": "The os.freemem() method is an inbuilt application programming interface of the os module which is used to get the amount of free system memory."
},
{
"code... |
HTML | DOM baseURI Property - GeeksforGeeks | 13 Aug, 2021
The DOM baseURI property is used to return the base Uniform Resource Identifier (URI) of the document. This property is used for read-only. This property returns a string value that represents the base URI of the page.Syntax:
node.baseURI
Return Value: It returns a string value which represents the URL o... | [
{
"code": null,
"e": 31624,
"s": 31596,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 31852,
"s": 31624,
"text": "The DOM baseURI property is used to return the base Uniform Resource Identifier (URI) of the document. This property is used for read-only. This property returns a... |
Python calendar module : monthdatescalendar() method - GeeksforGeeks | 05 Jul, 2021
Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions.
monthdatescalendar() method in Pyt... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 25810,
"s": 25537,
"text": "Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calenda... |
Difference between Traditional and Agile Software Development - GeeksforGeeks | 03 Oct, 2019
Traditional Software Development:Traditional software development is the software development process used to design and develop the simple software. It is basically used when the security and many other factors of the software are not much important. It is used by freshers in order to develop the software... | [
{
"code": null,
"e": 26327,
"s": 26299,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 26663,
"s": 26327,
"text": "Traditional Software Development:Traditional software development is the software development process used to design and develop the simple software. It is basical... |
How to access cache data in Node.js ? - GeeksforGeeks | 15 Mar, 2021
Cache: Caching is a technique used for improving the performance of servers and a lot of devices used in day-to-day life.In caching, the result of certain computation or task is stored somewhere, and if the same computation is required again, it is served from that location itself rather than doing the com... | [
{
"code": null,
"e": 26293,
"s": 26265,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 26958,
"s": 26293,
"text": "Cache: Caching is a technique used for improving the performance of servers and a lot of devices used in day-to-day life.In caching, the result of certain computat... |
Difference between ServletConfig and ServletContext in Java Servlet - GeeksforGeeks | 20 Aug, 2019
ServletConfig and ServletContext, both are objects created at the time of servlet initialization and used to provide some initial parameters or configuration information to the servlet. But, the difference lies in the fact that information shared by ServletConfig is for a specific servlet, while informatio... | [
{
"code": null,
"e": 26017,
"s": 25989,
"text": "\n20 Aug, 2019"
},
{
"code": null,
"e": 26405,
"s": 26017,
"text": "ServletConfig and ServletContext, both are objects created at the time of servlet initialization and used to provide some initial parameters or configuration infor... |
How to add custom google search bar inside your web-page? - GeeksforGeeks | 28 May, 2020
A search bar is necessary for a good website. Creating your own search engine from scratch might be a difficult task but this task can be skipped with the help of Google. Google has created a website to create a custom search bar, to create your own check the below link.
https://programmablesearchengine.go... | [
{
"code": null,
"e": 26713,
"s": 26685,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 26985,
"s": 26713,
"text": "A search bar is necessary for a good website. Creating your own search engine from scratch might be a difficult task but this task can be skipped with the help of ... |
Python | Pandas Panel.add() - GeeksforGeeks | 28 Jan, 2019
In Pandas, Panel is a very important container for three-dimensional data. The names for the 3 axes are intended to give some semantic meaning to describing operations involving panel data and, in particular, econometric analysis of panel data.
In Pandas Panel.add() function is used for element-wise additi... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 25782,
"s": 25537,
"text": "In Pandas, Panel is a very important container for three-dimensional data. The names for the 3 axes are intended to give some semantic meaning to describing operat... |
Commonly asked DBMS interview questions|Set 2 | 28 Jun, 2021
This article is extension of Commonly asked DBMS interview questions | Set 1.
Q. There is a table where only one row is fully repeated. Write a Query to find the Repeated row
In the above table, we can find duplicate row using below query.
SELECT name, section FROM tbl
GROUP BY name, section
HAVING COUNT(*... | [
{
"code": null,
"e": 25497,
"s": 25469,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25575,
"s": 25497,
"text": "This article is extension of Commonly asked DBMS interview questions | Set 1."
},
{
"code": null,
"e": 25672,
"s": 25575,
"text": "Q. There is ... |
Practice Quiz for Sudo Placement - GeeksforGeeks | 28 Dec, 2020
main()
{
char g[] = "geeksforgeeks";
printf("%s", g + g[6] - g[8]);
}
char g[] = “geeksforgeeks”;
// g now has the base address string “geeksforgeeks”
// g[6] is ‘o’ and g[1] is ‘e’.
// g[6] – g[1] = ASCII value of ‘o’ – ASCII value of ‘e’ = 8
// So the expression g + g[6] – g[8] becomes g + 8 w... | [
{
"code": null,
"e": 28855,
"s": 28827,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 28925,
"s": 28855,
"text": "main()\n{\nchar g[] = \"geeksforgeeks\";\nprintf(\"%s\", g + g[6] - g[8]);\n}"
},
{
"code": null,
"e": 29259,
"s": 28925,
"text": "char g[] = “... |
Node.js querystring.decode() Function - GeeksforGeeks | 08 Mar, 2021
The querystring.decode() method is used to parse a URL query string into an object that contains the key and pair values of the query URL. The object returned does not inherit prototypes from the JavaScript object, therefore usual Object methods will not work. During parsing, the UTF-8 encoding format is a... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 26732,
"s": 26267,
"text": "The querystring.decode() method is used to parse a URL query string into an object that contains the key and pair values of the query URL. The object returned does... |
Strict mode in JavaScript - GeeksforGeeks | 20 Nov, 2021
Strict Mode was a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” operating context. This strict context prevents certain actions from being taken and throws more exceptions. The statement “use strict”; instructs the browser to use the Strict mode, which is a re... | [
{
"code": null,
"e": 25767,
"s": 25739,
"text": "\n20 Nov, 2021"
},
{
"code": null,
"e": 26117,
"s": 25767,
"text": "Strict Mode was a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” operating context. This strict context prevents cert... |
BigInt in JavaScript - GeeksforGeeks | 25 Jun, 2020
BigInt is a built-in object in JavaScript that provides a way to represent whole numbers larger than 253-1. The largest number that JavaScript can reliably represent with the Number primitive is 253-1, which is represented by the MAX_SAFE_INTEGER constant. This has various uses where operations on large nu... | [
{
"code": null,
"e": 26021,
"s": 25993,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 26348,
"s": 26021,
"text": "BigInt is a built-in object in JavaScript that provides a way to represent whole numbers larger than 253-1. The largest number that JavaScript can reliably represe... |
Python OpenCV - waitKeyEx() Function - GeeksforGeeks | 17 Oct, 2021
Python OpenCv waitKeyEx() method is similar to waitKey() method but it also returns the full key code. The key code which is returned is implementation-specific and depends on the used backend: QT/GTK/Win32/etc.
Syntax: cv2.waitKey(delay)
Parameters:
delay: The time in milliseconds after which windows need... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n17 Oct, 2021"
},
{
"code": null,
"e": 25749,
"s": 25537,
"text": "Python OpenCv waitKeyEx() method is similar to waitKey() method but it also returns the full key code. The key code which is returned is implementation-specific an... |
Pandigital number in a given base - GeeksforGeeks | 10 Mar, 2022
Given an integer n and its base b. The task is to check if given number is Pandigital Number in the given base or not. A Pandigital number is an integer that has each digit of its base at least once.It may be assumed that base is smaller than or equal to 36. In base 36, digits are [0, 1, ...9. A, B, ...Z]E... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n10 Mar, 2022"
},
{
"code": null,
"e": 26280,
"s": 25961,
"text": "Given an integer n and its base b. The task is to check if given number is Pandigital Number in the given base or not. A Pandigital number is an integer that has e... |
fileinput.input() in Python - GeeksforGeeks | 22 Apr, 2020
With the help of fileinput.input() method, we can get the file as input and to can be used to update and append the data in the file by using fileinput.input() method.
Syntax : fileinput.input(files)
Return : Return the data of the file.
Example #1 :In this example we can see that by using fileinput.input(... | [
{
"code": null,
"e": 25571,
"s": 25543,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25739,
"s": 25571,
"text": "With the help of fileinput.input() method, we can get the file as input and to can be used to update and append the data in the file by using fileinput.input() met... |
Style <input> elements with a "readonly" attribute with CSS | To select elements that are read-only, use the CSS :read-only selector.
You can try to run the following code to implement the :read-only selector
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
input:read-only {
background-color: blue;
color: white;
}
</style>
... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To select elements that are read-only, use the CSS :read-only selector."
},
{
"code": null,
"e": 1209,
"s": 1134,
"text": "You can try to run the following code to implement the :read-only selector"
},
{
"code": null,
"e"... |
What is $(document).ready() method in jQuery? | The ready() method is used to make a function available after the document is loaded. Whatever code you write inside the $(document ).ready() method will run once the page DOM is ready to execute JavaScript code.
You can try to run the following code to learn how to use $(document).ready() method in jQuery:
Live Demo
<... | [
{
"code": null,
"e": 1275,
"s": 1062,
"text": "The ready() method is used to make a function available after the document is loaded. Whatever code you write inside the $(document ).ready() method will run once the page DOM is ready to execute JavaScript code."
},
{
"code": null,
"e": 137... |
Mahotas – Convolution of Image - GeeksforGeeks | 29 Jul, 2021
In this article, we will see how we can do convolution of the image in mahotas. Convolution is a simple mathematical operation which is fundamental to many common image processing operators. Convolution provides a way of `multiplying together’ two arrays of numbers, generally of different sizes, but of the... | [
{
"code": null,
"e": 24693,
"s": 24665,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 25086,
"s": 24693,
"text": "In this article, we will see how we can do convolution of the image in mahotas. Convolution is a simple mathematical operation which is fundamental to many common ... |
Using proptypes in React.js | Use of proptypes ensures the type safety of receiving props on the components and also helps in making correct calculation.
Example − If we are receiving name as string and age as number then it should be received with the same type. If we receive age in string then it can result into incorrect calculation.
To use prop... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "Use of proptypes ensures the type safety of receiving props on the components and also helps in making correct calculation."
},
{
"code": null,
"e": 1371,
"s": 1186,
"text": "Example − If we are receiving name as string and age as nu... |
Arden's Theorem and Challenging Applications | Set 2 - GeeksforGeeks | 24 Sep, 2020
Having gained the knowledge of how to draw a basic Finite State Machine ( DFA, NFA or -NFA ). We head to deriving a Regular Expression from the provided state machine.
For certain examples provided below, it’s fairly simple to derive it.
But for the following example, it’s fairly hard to derive the Regu... | [
{
"code": null,
"e": 24376,
"s": 24348,
"text": "\n24 Sep, 2020"
},
{
"code": null,
"e": 24545,
"s": 24376,
"text": "Having gained the knowledge of how to draw a basic Finite State Machine ( DFA, NFA or -NFA ). We head to deriving a Regular Expression from the provided state mach... |
Perl gmtime Function | This function returns a list of values corresponding to the date and time as specified by EXPR, or date and time returned by the time function if EXPR is omitted, localized for the standard Greenwich mean time. The values returned are as follows −
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time);
Al... | [
{
"code": null,
"e": 2468,
"s": 2220,
"text": "This function returns a list of values corresponding to the date and time as specified by EXPR, or date and time returned by the time function if EXPR is omitted, localized for the standard Greenwich mean time. The values returned are as follows −"
},... |
Kth Largest Element in an Array | From a set of data, this algorithm will find the largest element to kth largest element of the array.
This problem can be solved easily by sorting the array. We can sort them either in ascending order or in descending order. Solving it in descending order, we can get first k elements to find our result.
Input:
The elem... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "From a set of data, this algorithm will find the largest element to kth largest element of the array."
},
{
"code": null,
"e": 1367,
"s": 1164,
"text": "This problem can be solved easily by sorting the array. We can sort them either ... |
Simple steps to create custom colormaps in Python | by Guangyuan(Frank) Li | Towards Data Science | Imagine you find a pretty colormap that other people used in their publications, and you want to use that in your results as well. However, unfortunately, it is not a built-in colormap in matplotlib. Is there a solution around?
So today I am going to show you how I usually resolve this problem by creating my custom col... | [
{
"code": null,
"e": 400,
"s": 172,
"text": "Imagine you find a pretty colormap that other people used in their publications, and you want to use that in your results as well. However, unfortunately, it is not a built-in colormap in matplotlib. Is there a solution around?"
},
{
"code": null,... |
Embeeding and clustering combining Knime and Python | Towards Data Science | Knime is a free and open-source data analytics, reporting and integration platform. KNIME integrates various components for machine learning and data mining through its modular data pipelining concept. For people like me, who do not have a strong coding background, Knime has been the open door to end to end data scienc... | [
{
"code": null,
"e": 733,
"s": 172,
"text": "Knime is a free and open-source data analytics, reporting and integration platform. KNIME integrates various components for machine learning and data mining through its modular data pipelining concept. For people like me, who do not have a strong coding b... |
How to Rename Columns in Pandas - A Quick Guide | Towards Data Science | Ensuring that dataframe columns are appropriately named is essential to understand what data is contained within, especially when we pass our data on to others. In this short article, we will cover a number of ways to rename columns within a pandas dataframe.
But first, what is Pandas? Pandas is a powerful, fast, and c... | [
{
"code": null,
"e": 432,
"s": 172,
"text": "Ensuring that dataframe columns are appropriately named is essential to understand what data is contained within, especially when we pass our data on to others. In this short article, we will cover a number of ways to rename columns within a pandas datafr... |
How to create a bold text using JavaScript? | To create a bold text using JavaScript, use the bold() text. This method causes a string to be displayed as bold as if it were in a <b> tag.
You can try to run the following code to create a bold text with JavaScript −
Live Demo
<html>
<head>
<title>JavaScript String bold() Method</title>
</head>
<body>... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "To create a bold text using JavaScript, use the bold() text. This method causes a string to be displayed as bold as if it were in a <b> tag."
},
{
"code": null,
"e": 1281,
"s": 1203,
"text": "You can try to run the following code to ... |
Ensemble Learning: Stacking, Blending & Voting | by Fernando López | Towards Data Science | We have heard the phrase “unity is strength”, whose meaning can be transferred to different areas of life. Sometimes correct answers to a specific problem are supported by several sources and not just one. This is what Ensemble Learning tries to do, that is, to put together a group of ML models to improve solutions to ... | [
{
"code": null,
"e": 511,
"s": 172,
"text": "We have heard the phrase “unity is strength”, whose meaning can be transferred to different areas of life. Sometimes correct answers to a specific problem are supported by several sources and not just one. This is what Ensemble Learning tries to do, that ... |
Apache Flink - API Concepts | Flink has a rich set of APIs using which developers can perform transformations on both batch and real-time data. A variety of transformations includes mapping, filtering, sorting, joining, grouping and aggregating. These transformations by Apache Flink are performed on distributed data. Let us discuss the different AP... | [
{
"code": null,
"e": 2413,
"s": 2069,
"text": "Flink has a rich set of APIs using which developers can perform transformations on both batch and real-time data. A variety of transformations includes mapping, filtering, sorting, joining, grouping and aggregating. These transformations by Apache Flink... |
Building a Complete AI Based Search Engine with Elasticsearch, Kubeflow and Katib | by Will Fuks | Towards Data Science | Building search systems is hard. Preparing them to work with machine learning is really hard. Developing a complete search engine framework integrated with AI is really really hard.
So let’s make one. ✌️
In this post, we’ll build a search engine from scratch and discuss on how to further optimize results by adding a ma... | [
{
"code": null,
"e": 354,
"s": 172,
"text": "Building search systems is hard. Preparing them to work with machine learning is really hard. Developing a complete search engine framework integrated with AI is really really hard."
},
{
"code": null,
"e": 376,
"s": 354,
"text": "So l... |
Flip Card Animation in Android - GeeksforGeeks | 25 Aug, 2021
In this article, we are going to see how to build a Flip Card Animation app in Android Studio. Animation makes our app more attractive, convincing, and user-friendly. A sample GIF is given below to get an idea about what we are going to do in this article. Please note that we will be using Kotlin as the pr... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 26709,
"s": 26381,
"text": "In this article, we are going to see how to build a Flip Card Animation app in Android Studio. Animation makes our app more attractive, convincing, and user-friend... |
Python Program to find the factorial of a number without recursion | When it is required to find the factorial of a number without using recursion, the ‘while’ loop can be used.
Below is a demonstration for the same −
Live Demo
my_num = int(input("Enter a number :"))
my_factorial = 1
while(my_num>0):
my_factorial = my_factorial*my_num
my_num=my_num-1
print("The factorial of the n... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "When it is required to find the factorial of a number without using recursion, the ‘while’ loop can be used."
},
{
"code": null,
"e": 1211,
"s": 1171,
"text": "Below is a demonstration for the same −"
},
{
"code": null,
"... |
Keras - Regression Prediction using MPL | In this chapter, let us write a simple MPL based ANN to do regression prediction. Till now, we have only done the classification based prediction. Now, we will try to predict the next possible value by analyzing the previous (continuous) values and its influencing factors.
The Regression MPL can be represented as below... | [
{
"code": null,
"e": 2325,
"s": 2051,
"text": "In this chapter, let us write a simple MPL based ANN to do regression prediction. Till now, we have only done the classification based prediction. Now, we will try to predict the next possible value by analyzing the previous (continuous) values and its ... |
RequireJS - Dojo | Dojo is a JavaScript toolkit which is based on the AMD module architecture that provides additional modules to add extra functionality to the web application and also saves time and scale in the web application development process.
The following example shows the usage of Dojo along with RequireJS. Create an html file ... | [
{
"code": null,
"e": 2074,
"s": 1842,
"text": "Dojo is a JavaScript toolkit which is based on the AMD module architecture that provides additional modules to add extra functionality to the web application and also saves time and scale in the web application development process."
},
{
"code":... |
EM Algorithm. Mathematical Background and Example | by Mengsay Loem | Towards Data Science | Working with a stochastic approach based-machine learning, we consider the information origin as a type of probability distribution. Once we estimate the distribution, it is straightforward to classifier unknown data as well as to predict future generated data. There are two phases to estimate a probability distributio... | [
{
"code": null,
"e": 771,
"s": 172,
"text": "Working with a stochastic approach based-machine learning, we consider the information origin as a type of probability distribution. Once we estimate the distribution, it is straightforward to classifier unknown data as well as to predict future generated... |
ONNX for image processing from scratch | by Maurits Kaptein | Towards Data Science | ONNX has been around for a while, and it is becoming a successful intermediate format to move, often heavy, trained neural networks from one training tool to another (e.g., move between pyTorch and Tensorflow), or to deploy models in the cloud using the ONNX runtime. However, ONNX can be put to a much more versatile us... | [
{
"code": null,
"e": 817,
"s": 171,
"text": "ONNX has been around for a while, and it is becoming a successful intermediate format to move, often heavy, trained neural networks from one training tool to another (e.g., move between pyTorch and Tensorflow), or to deploy models in the cloud using the O... |
TypeScript - Bitwise Operators Examples | Assume variable A = 2 and B = 3
var a:number = 2; // Bit presentation 10
var b:number = 3; // Bit presentation 11
var result;
result = (a & b);
console.log("(a & b) => ",result)
result = (a | b);
console.log("(a | b) => ",result)
result = (a ^ b);
console.log("(a ^ b)... | [
{
"code": null,
"e": 2080,
"s": 2048,
"text": "Assume variable A = 2 and B = 3"
},
{
"code": null,
"e": 2549,
"s": 2080,
"text": "var a:number = 2; // Bit presentation 10 \nvar b:number = 3; // Bit presentation 11\n \nvar result; \n \nresult = (a & b); \nconsole.log(\... |
How to Rotate image in image view by an angle in Android? | This example demonstrates how to Rotate image in image view by an angle.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout ... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "This example demonstrates how to Rotate image in image view by an angle."
},
{
"code": null,
"e": 1264,
"s": 1135,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to cr... |
C++ program to demonstrate exception handling | Suppose there is a function that calculates some serious complex mathematical operations. But during the operations, some exceptions can occur. We have to handle the different types of exceptions that can occur and perform the following.
If the computer is unable to allocate the memory for computation, we have to print... | [
{
"code": null,
"e": 1300,
"s": 1062,
"text": "Suppose there is a function that calculates some serious complex mathematical operations. But during the operations, some exceptions can occur. We have to handle the different types of exceptions that can occur and perform the following."
},
{
"... |
How to filter object array based on attributes in jQuery? | To filter object array based on attributes in jQuery, use the map() method with JSON.
You can try to run the following code to learn how to filter object array based on attributes in jQuery,
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "To filter object array based on attributes in jQuery, use the map() method with JSON."
},
{
"code": null,
"e": 1253,
"s": 1148,
"text": "You can try to run the following code to learn how to filter object array based on attributes in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.