title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Initialization of a multidimensional arrays in C/C++ | In multidimensional array, the array should have dimension more that 1. The following diagram shows the memory allocation strategy for a multidimensional array with dimension 3 x 3 x 3.
This is a C++ program to initialize a multidimensional array.
Begin
Initialize the elements of a multidimensional array.
Print t... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "In multidimensional array, the array should have dimension more that 1. The following diagram shows the memory allocation strategy for a multidimensional array with dimension 3 x 3 x 3."
},
{
"code": null,
"e": 1310,
"s": 1248,
"text... |
How to add center align text it in each subplot graph in seaborn? - GeeksforGeeks | 11 Jun, 2021
In this article, we are going to see how to add text in the center above each subplot using seaborn. Centering a title is a great way to represent the variability in your data. It can be applied to graphs to provide an additional layer of information on the presented data.
FacetGrid: It is a general way o... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 25922,
"s": 25647,
"text": "In this article, we are going to see how to add text in the center above each subplot using seaborn. Centering a title is a great way to represent the variability ... |
Measuring and enhancing image quality attributes | by Marian Stefanescu | Towards Data Science | Before starting our discussion about measuring or enhancing image quality attributes, we have to first properly introduce them. For this, I’ve taken inspiration from the book Camera Image Quality Benchmarking, which describes in great detail the attributes that I will be speaking about here. It’s important to note that... | [
{
"code": null,
"e": 698,
"s": 171,
"text": "Before starting our discussion about measuring or enhancing image quality attributes, we have to first properly introduce them. For this, I’ve taken inspiration from the book Camera Image Quality Benchmarking, which describes in great detail the attribute... |
Caret vs. tidymodels — create reusable machine learning workflows | by Hannah Roos | Towards Data Science | If you use machine learning models in R, you probably use either caret or tidymodels. Interestingly, both packages were developed by the same author among many others: Max Kuhn. But how do they compare to each other in terms of feasibility and performance?
You may wonder which package you should learn for predictive mo... | [
{
"code": null,
"e": 429,
"s": 172,
"text": "If you use machine learning models in R, you probably use either caret or tidymodels. Interestingly, both packages were developed by the same author among many others: Max Kuhn. But how do they compare to each other in terms of feasibility and performance... |
How to make phone call in iOS 10 using Swift? | In this post we will be seeing how to make phone in iOS programmatically.
So let’s get started.
Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “MakeCall”
Step 2 − Open Main.storyboard and add one text field and one button as shown below
Step 3 − Create @IBOutlet for the text field, name it ... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "In this post we will be seeing how to make phone in iOS programmatically."
},
{
"code": null,
"e": 1158,
"s": 1136,
"text": "So let’s get started."
},
{
"code": null,
"e": 1245,
"s": 1158,
"text": "Step 1 − Open X... |
Java Threads | Threads allows a program to operate more efficiently by doing multiple things at the same
time.
Threads can be used to perform complicated tasks in the background without interrupting
the main program.
There are two ways to create a thread.
It can be created by extending the Thread class and overriding its run()
metho... | [
{
"code": null,
"e": 96,
"s": 0,
"text": "Threads allows a program to operate more efficiently by doing multiple things at the same\ntime."
},
{
"code": null,
"e": 202,
"s": 96,
"text": "Threads can be used to perform complicated tasks in the background without interrupting\nthe ... |
rev command in Linux with Examples - GeeksforGeeks | 24 May, 2019
rev command in Linux is used to reverse the lines characterwise. This utility basically reverses the order of the characters in each line by copying the specified files to the standard output. If no files are specified, then the standard input will read.
Syntax:
rev [option] [file...]
Example 1: Taking in... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n24 May, 2019"
},
{
"code": null,
"e": 24270,
"s": 24015,
"text": "rev command in Linux is used to reverse the lines characterwise. This utility basically reverses the order of the characters in each line by copying the specified ... |
Length of intercept cut off from a line by a Circle - GeeksforGeeks | 08 Jun, 2021
Given six integers, a, b, c, i, j, and k representing the equation of the circle and equation of the line , the task is to find the length of the intercept cut off from the given line to the circle.
Examples:
Input: a = 0, b = 0, c = -4, i = 2, j = -1, k = 1 Output: 3.89872
Input: a = 5, b = 6, c = -16, i... | [
{
"code": null,
"e": 24945,
"s": 24917,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 25145,
"s": 24945,
"text": "Given six integers, a, b, c, i, j, and k representing the equation of the circle and equation of the line , the task is to find the length of the intercept cut of... |
How to convert Object's array to an array using JavaScript ? - GeeksforGeeks | 27 Apr, 2020
Given an array of objects and the task is to convert the object values to an array with the help of JavaScript. There are two approaches that are discussed below:
Approach 1: We can use the map() method and return the values of each object which makes the array.
Example:<!DOCTYPE HTML><html> <head> <ti... | [
{
"code": null,
"e": 25442,
"s": 25414,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 25605,
"s": 25442,
"text": "Given an array of objects and the task is to convert the object values to an array with the help of JavaScript. There are two approaches that are discussed below:"... |
How to get all the collections from all the MongoDB databases? | To get all the collections from all the databases, let us first get all the databases using the following query
> switchDatabaseAdmin = db.getSiblingDB("admin");
admin
> allDatabaseName = switchDatabaseAdmin.runCommand({ "listDatabases": 1 }).databases;
This will produce the following output
[
{
"name" : "admi... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "To get all the collections from all the databases, let us first get all the databases using the following query"
},
{
"code": null,
"e": 1316,
"s": 1174,
"text": "> switchDatabaseAdmin = db.getSiblingDB(\"admin\");\nadmin\n> allDatab... |
Multiple COUNT() for multiple conditions in a single MySQL query? | You can count multiple COUNT() for multiple conditions in a single query using GROUP BY.
The syntax is as follows -
SELECT yourColumnName,COUNT(*) from yourTableName group by yourColumnName;
To understand the above syntax, let us first create a table. The query to create a table is as follows.
mysql> create table Multi... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "You can count multiple COUNT() for multiple conditions in a single query using GROUP BY."
},
{
"code": null,
"e": 1178,
"s": 1151,
"text": "The syntax is as follows -"
},
{
"code": null,
"e": 1253,
"s": 1178,
"tex... |
How to use SearchView in Android Kotlin? | This example demonstrates how to use SearchView in Android Kotlin.
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"?>
<RelativeLayout xmln... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "This example demonstrates how to use SearchView in Android Kotlin."
},
{
"code": null,
"e": 1258,
"s": 1129,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a... |
Maximum sum of hour glass in matrix in C++ | In this problem, we are given a matrix. Our task is to create a program that finds the maximum sum of the hourglass in a matrix in C++.
Program description − Here, we will find the maximum sum of all hourglasses that can be created for the given matrix elements.
Hour glass is a 7 element shape made in the matrix in the... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "In this problem, we are given a matrix. Our task is to create a program that finds the maximum sum of the hourglass in a matrix in C++."
},
{
"code": null,
"e": 1325,
"s": 1198,
"text": "Program description − Here, we will find the m... |
Tutorial: Selfie Filters Using Deep Learning And OpenCV (Facial Landmarks Detection) | by Akshay L Chandra | Towards Data Science | This is a tutorial on how to build a python application that can put various sunglasses on a detected face (I am calling them ‘Selfie Filters’) by finding the Facial Keypoints (15 unique points). These keypoints mark important areas of the face — the eyes, corners of the mouth, the nose, etc.
OpenCV is often used in pr... | [
{
"code": null,
"e": 466,
"s": 172,
"text": "This is a tutorial on how to build a python application that can put various sunglasses on a detected face (I am calling them ‘Selfie Filters’) by finding the Facial Keypoints (15 unique points). These keypoints mark important areas of the face — the eyes... |
Ethical Hacking - Fingerprinting | The term OS fingerprinting in Ethical Hacking refers to any method used to determine what operating system is running on a remote computer. This could be −
Active Fingerprinting − Active fingerprinting is accomplished by sending specially crafted packets to a target machine and then noting down its response and analyzi... | [
{
"code": null,
"e": 2635,
"s": 2479,
"text": "The term OS fingerprinting in Ethical Hacking refers to any method used to determine what operating system is running on a remote computer. This could be −"
},
{
"code": null,
"e": 2980,
"s": 2635,
"text": "Active Fingerprinting − Ac... |
SQL Query to Convert FLOAT to NVARCHAR - GeeksforGeeks | 23 Apr, 2021
Here we will see, how to convert FLOAT data to NVARCHAR data in an MS SQL Server’s database table using the CAST(), CONVERT(), and FORMAT() functions.
We will be creating a person table in a database called “geeks”.
CREATE DATABASE geeks;
USE geeks;
We have the following Employee table in our geeks databas... | [
{
"code": null,
"e": 25623,
"s": 25595,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 25774,
"s": 25623,
"text": "Here we will see, how to convert FLOAT data to NVARCHAR data in an MS SQL Server’s database table using the CAST(), CONVERT(), and FORMAT() functions."
},
{
... |
How to Analyze Data Using Mito in Python | Towards Data Science | Data contains so many meaningful insights. Data Analysis is the way for getting those insights. Sometimes, we get confused about choosing which tools we want to use, whether using spreadsheet software like Excel. Or we can use a programming language like Python.
And for some people, they prefer to use the spreadsheet t... | [
{
"code": null,
"e": 434,
"s": 171,
"text": "Data contains so many meaningful insights. Data Analysis is the way for getting those insights. Sometimes, we get confused about choosing which tools we want to use, whether using spreadsheet software like Excel. Or we can use a programming language like ... |
Mid() and Len() Function in MS Access - GeeksforGeeks | 01 Sep, 2020
1. Mid() function :In MS Access the mid() function will extract the string from a given position. In this function 3 parameters will be passed first will be the string and second will be the starting position and last will be the length of the string.
Syntax :
Mid(string, start, length)
Example-1 :
SELECT... | [
{
"code": null,
"e": 23877,
"s": 23849,
"text": "\n01 Sep, 2020"
},
{
"code": null,
"e": 24129,
"s": 23877,
"text": "1. Mid() function :In MS Access the mid() function will extract the string from a given position. In this function 3 parameters will be passed first will be the st... |
What is the use of Passthru parameter in Stop-Process in PowerShell? | With the Passthru parameter, PowerShell returns the output in the console. For example, below notepad.exe process with ID 12344 will be stopped and the same will be displayed in the console with the Passthru parameter. Earlier it was not the case with only Stop-Process.
PS C:\WINDOWS\system32> Stop-Process -Id 12344 -P... | [
{
"code": null,
"e": 1333,
"s": 1062,
"text": "With the Passthru parameter, PowerShell returns the output in the console. For example, below notepad.exe process with ID 12344 will be stopped and the same will be displayed in the console with the Passthru parameter. Earlier it was not the case with o... |
Collectors collectingAndThen() method in Java 8 | The collectingAndThen() method in Java Collectors class acclimates a Collector to perform an additional finishing transformation. It returns collector which performs the action of the downstream collector, followed by an additional ending step.
The syntax is as follows.
static <T,A,R,RR> Collector<T,A,RR> collectingAnd... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "The collectingAndThen() method in Java Collectors class acclimates a Collector to perform an additional finishing transformation. It returns collector which performs the action of the downstream collector, followed by an additional ending step."
},
... |
Running an Apache Beam Data Pipeline on Databricks | Towards Data Science | A brief walk-through on how to execute your Apache Beam Pipeline on Databricks
When we think about data-parallel pipelines, Apache Spark immediately comes to mind, but there are also promising and fresher models able to achieve the same results and performances.
This is the case of Apache Beam, an open source, unified ... | [
{
"code": null,
"e": 250,
"s": 171,
"text": "A brief walk-through on how to execute your Apache Beam Pipeline on Databricks"
},
{
"code": null,
"e": 434,
"s": 250,
"text": "When we think about data-parallel pipelines, Apache Spark immediately comes to mind, but there are also pro... |
Python program to find common elements in three lists using sets | Given three user input lists, our task is to find out common elements from these three lists. Here we are applying intersection method.
Input
A=[2, 3, 4, 5, 6]
B=[2, 3, 7, 6, 90]
C=[2, 3, 45, 34]
Common elements=[2, 3]
Step1: input the elements of three lists.
Step2: Use intersection method, first convert lists to set... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "Given three user input lists, our task is to find out common elements from these three lists. Here we are applying intersection method."
},
{
"code": null,
"e": 1282,
"s": 1198,
"text": "Input\nA=[2, 3, 4, 5, 6]\nB=[2, 3, 7, 6, 90]\n... |
How to work with MySQL in Lua Programming? | Lua provides different libraries that once can be used to work with MySQL. The most popular framework that enables us to work with MySQL in Lua is LuaSQL.
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to −
Connect to ODBC, ADO, Oracle, MySQL, SQLite, Firebird and PostgreSQL databases;
Execut... | [
{
"code": null,
"e": 1217,
"s": 1062,
"text": "Lua provides different libraries that once can be used to work with MySQL. The most popular framework that enables us to work with MySQL in Lua is LuaSQL."
},
{
"code": null,
"e": 1296,
"s": 1217,
"text": "LuaSQL is a simple interfac... |
Character.equals() method in Java with examples - GeeksforGeeks | 06 Dec, 2018
The java.lang.Character.equals() is a function in Java which compares this object against the specified object. If the argument is not null then the result is true and is a Character object that represents the same char value as this object.
Syntax:
public boolean equals(Object obj)
Parameters: The functio... | [
{
"code": null,
"e": 24474,
"s": 24446,
"text": "\n06 Dec, 2018"
},
{
"code": null,
"e": 24716,
"s": 24474,
"text": "The java.lang.Character.equals() is a function in Java which compares this object against the specified object. If the argument is not null then the result is true... |
setjump() and longjump() in C | In this section, we will see what are the setjump and longjump in C. The setjump() and longjump() is located at setjmp.h library. The syntax of these two functions is like below.
setjump(jmp_buf buf) : uses buf to store current position and returns 0.
longjump(jmp_buf buf, i) : Go back to place pointed by buf and retur... | [
{
"code": null,
"e": 1241,
"s": 1062,
"text": "In this section, we will see what are the setjump and longjump in C. The setjump() and longjump() is located at setjmp.h library. The syntax of these two functions is like below."
},
{
"code": null,
"e": 1387,
"s": 1241,
"text": "set... |
Scanner delimiter() method in Java with Examples - GeeksforGeeks | 10 Oct, 2018
The delimiter() method ofjava.util.Scanner class returns the Pattern this Scanner is currently using to match delimiters.
Syntax:
public Pattern delimiter()
Return Value: The function returns the scanner’s delimiting pattern.
Below programs illustrate the above function:
Program 1:
// Java program to illus... | [
{
"code": null,
"e": 24029,
"s": 24001,
"text": "\n10 Oct, 2018"
},
{
"code": null,
"e": 24151,
"s": 24029,
"text": "The delimiter() method ofjava.util.Scanner class returns the Pattern this Scanner is currently using to match delimiters."
},
{
"code": null,
"e": 2415... |
VBScript If Statement | An If statement consists of a Boolean expression followed by one or more statements. If the condition is said to be True, the statements under If condition(s) are Executed. If the Condition is said to be False, the statements after the If loop are executed.
The syntax of an If statement in VBScript is −
If(boolean_expr... | [
{
"code": null,
"e": 2338,
"s": 2080,
"text": "An If statement consists of a Boolean expression followed by one or more statements. If the condition is said to be True, the statements under If condition(s) are Executed. If the Condition is said to be False, the statements after the If loop are execu... |
Show all columns of Pandas DataFrame in Jupyter Notebook - GeeksforGeeks | 30 Nov, 2021
In this article, we will discuss how to show all the columns of a pandas data frame in jupyter notebook.
Pandas have a very handy method called get option(), by this method, we can customize the output screen and work without any inconvenient form of outputs. set_option() used to set the value. This is us... | [
{
"code": null,
"e": 24364,
"s": 24333,
"text": " \n30 Nov, 2021\n"
},
{
"code": null,
"e": 24469,
"s": 24364,
"text": "In this article, we will discuss how to show all the columns of a pandas data frame in jupyter notebook."
},
{
"code": null,
"e": 24812,
"s": 24... |
Check whether K-th bit is set or not - GeeksforGeeks | 09 Jun, 2021
Given a number n, check if the Kth bit of n is set or not.
Examples:
Input : n = 5, k = 1
Output : SET
5 is represented as 101 in binary and has its first bit set.
Input : n = 2, k = 3
Output : NOT SET
2 is represented as 10 in binary, all higher i.e. beyond MSB, bits are NOT SET.
Method 1 (Using Left S... | [
{
"code": null,
"e": 24654,
"s": 24626,
"text": "\n09 Jun, 2021"
},
{
"code": null,
"e": 24714,
"s": 24654,
"text": "Given a number n, check if the Kth bit of n is set or not. "
},
{
"code": null,
"e": 24725,
"s": 24714,
"text": "Examples: "
},
{
"code... |
Program for Surface Area of Octahedron in C++ | The word ‘dodecahedron’ is derived from the Greek words where, Octa means ‘Eight’ and hedron specifies ‘faces’. octahedron in geometric is a 3-D platonic or regular solid with eight faces. Like, other figures octahedrons also have properties and that are −
6 polyhedron vertices
12 polyhedron edges
8 equilateral faces
G... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "The word ‘dodecahedron’ is derived from the Greek words where, Octa means ‘Eight’ and hedron specifies ‘faces’. octahedron in geometric is a 3-D platonic or regular solid with eight faces. Like, other figures octahedrons also have properties and that ar... |
How to write data to .csv file in Java? | A library named OpenCSV provides API’s to read and write data from/into a.CSV file. Here it is explained how to write the contents of a .csv file using a Java program.
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>org.... | [
{
"code": null,
"e": 1230,
"s": 1062,
"text": "A library named OpenCSV provides API’s to read and write data from/into a.CSV file. Here it is explained how to write the contents of a .csv file using a Java program."
},
{
"code": null,
"e": 1489,
"s": 1230,
"text": "<dependency>\n... |
Decimal.ToString() Method in C# | The Decimal.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation.
Following is the syntax −
public override string ToString ();
Let us now see an example to implement the Decimal.ToString() method −
using System;
public class Demo{
public static void M... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "The Decimal.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation."
},
{
"code": null,
"e": 1219,
"s": 1193,
"text": "Following is the syntax −"
},
{
"code": nul... |
Predict malignancy in cancer tumors with your own neural network | by Javier Ideami | Towards Data Science | In part 1 of this series, we understood in depth the architecture of our neural network. In part 2, we built it using Python. We also understood in depth back-propagation and the gradient descent optimization algorithm.
In the final part 3, we will use the Wisconsin Cancer data-set. We will learn to prepare our data, r... | [
{
"code": null,
"e": 392,
"s": 172,
"text": "In part 1 of this series, we understood in depth the architecture of our neural network. In part 2, we built it using Python. We also understood in depth back-propagation and the gradient descent optimization algorithm."
},
{
"code": null,
"e"... |
Can we use reserved word ‘index’ as MySQL column name? | Yes, but you need to add a backtick symbol to the reserved word (index) to avoid error while using it as a column name.
Let us first create a table −
mysql> create table DemoTable
(
`index` int
);
Query OK, 0 rows affected (0.48 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTabl... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "Yes, but you need to add a backtick symbol to the reserved word (index) to avoid error while using it as a column name."
},
{
"code": null,
"e": 1212,
"s": 1182,
"text": "Let us first create a table −"
},
{
"code": null,
... |
Spring MVC - Properties Method Name Resolver Example | The following example shows how to use the Properties Method Name Resolver method of a Multi Action Controller using Spring Web MVC framework. The MultiActionController class helps to map multiple URLs with their methods in a single controller respectively.
package com.tutorialspoint;
import javax.servlet.http.HttpSer... | [
{
"code": null,
"e": 3049,
"s": 2791,
"text": "The following example shows how to use the Properties Method Name Resolver method of a Multi Action Controller using Spring Web MVC framework. The MultiActionController class helps to map multiple URLs with their methods in a single controller respectiv... |
Count characters at same position as in English alphabet - GeeksforGeeks | 29 Apr, 2021
Given a string of lower and uppercase characters, the task is to find that how many characters are at same position as in English alphabet.Examples:
Input: ABcED
Output : 3
First three characters are at same position
as in English alphabets.
Input: geeksforgeeks
Output : 1
Only 'f' is at same posi... | [
{
"code": null,
"e": 25003,
"s": 24975,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 25154,
"s": 25003,
"text": "Given a string of lower and uppercase characters, the task is to find that how many characters are at same position as in English alphabet.Examples: "
},
{
... |
How to change Table Engine in MySQL? | You can change table engine with the help of alter command. The syntax is as follows −
alter table yourTableName ENGINE = yourEngineName;
To understand the above syntax let us create a table with engine MyISAM. Later you can change any other engine. The following is the query to create a table.
mysql> create table Chan... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "You can change table engine with the help of alter command. The syntax is as follows −"
},
{
"code": null,
"e": 1200,
"s": 1149,
"text": "alter table yourTableName ENGINE = yourEngineName;"
},
{
"code": null,
"e": 1358,
... |
Content of a Polynomial - GeeksforGeeks | 22 Apr, 2021
Given an array arr[] which denotes the integer coefficients of the polynomial, the task is to find the content of the polynomial.
Content of polynomials with integer coefficients is defined as the greatest common divisor of its integer coefficients.That is for:
F(x) = amxm + am-1xm-1 + ........+a1x + a0Th... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 24457,
"s": 24326,
"text": "Given an array arr[] which denotes the integer coefficients of the polynomial, the task is to find the content of the polynomial. "
},
{
"code": null,
... |
AWT CheckBoxGroup Class | The CheckboxGroup class is used to group the set of checkbox.
Following is the declaration for java.awt.CheckboxGroup class:
public class CheckboxGroup
extends Object
implements Serializable
CheckboxGroup() ()
Creates a new instance of CheckboxGroup.
Checkbox getCurrent()
Deprecated. As of JDK version 1.1, r... | [
{
"code": null,
"e": 1809,
"s": 1747,
"text": "The CheckboxGroup class is used to group the set of checkbox."
},
{
"code": null,
"e": 1872,
"s": 1809,
"text": "Following is the declaration for java.awt.CheckboxGroup class:"
},
{
"code": null,
"e": 1947,
"s": 1872,... |
How can I capture network traffic of a specific page using Selenium? | We can capture network traffic on a specific page using Selenium webdriver in Python. To achieve this, we take the help of the JavaScript Executor. Selenium can execute JavaScript commands with the help of the execute_script method.
JavaScript command to be executed is passed as a parameter to this method. To capture t... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "We can capture network traffic on a specific page using Selenium webdriver in Python. To achieve this, we take the help of the JavaScript Executor. Selenium can execute JavaScript commands with the help of the execute_script method."
},
{
"code"... |
JDBC Class.forName vs DriverManager.registerDriver | To connect with a database using JDBC you need to select get the driver for the respective database and register the driver. You can register a database driver in two ways −
Using Class.forName() method − The forName() method of the class named Class accepts a class name as a String parameter and loads it into the memo... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "To connect with a database using JDBC you need to select get the driver for the respective database and register the driver. You can register a database driver in two ways −"
},
{
"code": null,
"e": 1455,
"s": 1236,
"text": "Using Cl... |
C++ Program to Calculate Sum of Natural Numbers | The natural numbers are the positive integers starting from 1.
The sequence of natural numbers is −
1, 2, 3, 4, 5, 6, 7, 8, 9, 10......
Sum of the first n natural numbers can be calculated using the for loop or the formula.
Programs specifying both of these methods are given as follows −
The program to calculate the su... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "The natural numbers are the positive integers starting from 1."
},
{
"code": null,
"e": 1162,
"s": 1125,
"text": "The sequence of natural numbers is −"
},
{
"code": null,
"e": 1198,
"s": 1162,
"text": "1, 2, 3, 4,... |
How to iterate two Lists or Arrays with one foreach statement in C#? | Set two arrays.
var val = new [] { 20, 40, 60};
var str = new [] { "ele1", "ele2", "ele3"};
Use the zip() method to process the two arrays in parallel.
var res = val.Zip(str, (n, w) => new { Number = n, Word = w });
The above fetches both the arrays with int and string elements respectively.
Now, use foreach to iterate... | [
{
"code": null,
"e": 1078,
"s": 1062,
"text": "Set two arrays."
},
{
"code": null,
"e": 1154,
"s": 1078,
"text": "var val = new [] { 20, 40, 60};\nvar str = new [] { \"ele1\", \"ele2\", \"ele3\"};"
},
{
"code": null,
"e": 1214,
"s": 1154,
"text": "Use the zip(... |
Check if words are sorted according to new order of alphabets - GeeksforGeeks | 09 Dec, 2018
Given a sequence of Words and the Order of the alphabet. The order of the alphabet is some permutation of lowercase letters. The task is to check whether the given words are sorted lexicographically according to order of alphabets. Return “True” if it is, otherwise “False”.
Examples:
Input : Words = [“hell... | [
{
"code": null,
"e": 24636,
"s": 24608,
"text": "\n09 Dec, 2018"
},
{
"code": null,
"e": 24911,
"s": 24636,
"text": "Given a sequence of Words and the Order of the alphabet. The order of the alphabet is some permutation of lowercase letters. The task is to check whether the given... |
Auto comment on a facebook post using JavaScript - GeeksforGeeks | 29 Jul, 2020
In this article, we are going to learn how to comment automatically in a Facebook post. You can use this method to wish your friends a happy birthday or just comment on anything. It is useful when you want to comment a number of times on a post. You just need to specify the count and message that will be a... | [
{
"code": null,
"e": 24518,
"s": 24490,
"text": "\n29 Jul, 2020"
},
{
"code": null,
"e": 24934,
"s": 24518,
"text": "In this article, we are going to learn how to comment automatically in a Facebook post. You can use this method to wish your friends a happy birthday or just comme... |
BufferedReader read() method in Java with Examples - GeeksforGeeks | 28 May, 2020
The read() method of BufferedReader class in Java is of two types:
1. The read() method of BufferedReader class in Java is used to read a single character from the given buffered reader. This read() method reads one character at a time from the buffered stream and return it as an integer value.
Syntax:
pub... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 24015,
"s": 23948,
"text": "The read() method of BufferedReader class in Java is of two types:"
},
{
"code": null,
"e": 24244,
"s": 24015,
"text": "1. The read() method of... |
How to create a delete confirmation modal with CSS and JavaScript? | To create a delete confirmation modal with CSS and JavaScript, the code is as
follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
.modal {
text-align: center;
disp... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "To create a delete confirmation modal with CSS and JavaScript, the code is as\nfollows −"
},
{
"code": null,
"e": 1161,
"s": 1150,
"text": " Live Demo"
},
{
"code": null,
"e": 3224,
"s": 1161,
"text": "<!DOCTYPE h... |
How to Create Empty List in R? - GeeksforGeeks | 03 Dec, 2021
In this article, we will discuss how to create an empty list in R Programming Language.
Here we are going to create an empty list with length 0 by using list() function.
Syntax:
data=list()
Example:
R
# create empty listdata = list() print(data) # display lengthprint(length(data))
Output:
list()
[1] 0
Here... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 25330,
"s": 25242,
"text": "In this article, we will discuss how to create an empty list in R Programming Language."
},
{
"code": null,
"e": 25412,
"s": 25330,
"text": "He... |
Numbers in Ruby - GeeksforGeeks | 10 Sep, 2021
Ruby supports two types of numbers:
Integers: An integer is simply a sequence of digits, e.g., 12, 100. Or in other words, numbers without decimal points are called Integers. In Ruby, Integers are object of class Fixnum(32 or 64 bits) or Bignum(used for bigger numbers).Floating-point numbers: Numbers with ... | [
{
"code": null,
"e": 23986,
"s": 23958,
"text": "\n10 Sep, 2021"
},
{
"code": null,
"e": 24022,
"s": 23986,
"text": "Ruby supports two types of numbers:"
},
{
"code": null,
"e": 24406,
"s": 24022,
"text": "Integers: An integer is simply a sequence of digits, e... |
R Visualizations: Flow Charts in R | by Paul Aleksis | Towards Data Science | In the field of data analytics, data visualization is one of the single most important tools when starting new projects. It aids discovery and allows data scientists to read the story of their data. I have recently noticed how much I love R over Python for my data visualization needs. Because of this, I have started a ... | [
{
"code": null,
"e": 620,
"s": 172,
"text": "In the field of data analytics, data visualization is one of the single most important tools when starting new projects. It aids discovery and allows data scientists to read the story of their data. I have recently noticed how much I love R over Python fo... |
How to write to CSV in R without index ? - GeeksforGeeks | 07 Apr, 2021
We know that when we write some data from DataFrame to CSV file then a column is automatically created for indexing. We can remove it by some modifications. So, in this article, we are going to see how to write CSV in R without index.
To write to csv file write.csv() is used.
Syntax:
write.csv(data,path)
L... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 26722,
"s": 26487,
"text": "We know that when we write some data from DataFrame to CSV file then a column is automatically created for indexing. We can remove it by some modifications. So, in... |
Stack Permutations (Check if an array is stack permutation of other) - GeeksforGeeks | 28 Apr, 2022
A stack permutation is a permutation of objects in the given input queue which is done by transferring elements from input queue to the output queue with the help of a stack and the built-in push and pop functions.The well defined rules are:
Only dequeue from the input queue.Use inbuilt push, pop functio... | [
{
"code": null,
"e": 25881,
"s": 25853,
"text": "\n28 Apr, 2022"
},
{
"code": null,
"e": 26125,
"s": 25881,
"text": "A stack permutation is a permutation of objects in the given input queue which is done by transferring elements from input queue to the output queue with the help ... |
How to set icon in the ToolTip in C#? - GeeksforGeeks | 19 Jul, 2019
In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it provides a brief description about the control present in the windows form. In ToolTip, you are allowed to set an icon in the ToolTip window wi... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 26011,
"s": 25547,
"text": "In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it... |
Ruby | Range first() function - GeeksforGeeks | 06 Jan, 2020
The first() is an inbuilt method in Ruby returns an array of first X elements. If X is not mentioned, it returns the first element only.
Syntax: range1.first(X)
Parameters: The function accepts X which is the number of elements from the beginning.
Return Value: It returns an array of first X elements.
Exam... | [
{
"code": null,
"e": 25217,
"s": 25189,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 25354,
"s": 25217,
"text": "The first() is an inbuilt method in Ruby returns an array of first X elements. If X is not mentioned, it returns the first element only."
},
{
"code": null... |
How to set the Visibility of the ComboBox in C#? - GeeksforGeeks | 27 Jun, 2019
In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at a time and the rest of the items are present in the drop-down menu. You are allowed to set the visibility of the ComboBox by using ... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 26105,
"s": 25547,
"text": "In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is ... |
Flatten a Stream of Arrays in Java using forEach loop - GeeksforGeeks | 11 Dec, 2018
Given a Stream of Arrays in Java, the task is to Flatten the Stream using forEach() method.
Examples:
Input: arr[][] = {{ 1, 2 }, { 3, 4, 5, 6 }, { 7, 8, 9 }}
Output: [1, 2, 3, 4, 5, 6, 7, 8, 9]
Input: arr[][] = {{'G', 'e', 'e', 'k', 's'}, {'F', 'o', 'r'}}
Output: [G, e, e, k, s, F, o, r]
Approach:
Get t... | [
{
"code": null,
"e": 25251,
"s": 25223,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 25343,
"s": 25251,
"text": "Given a Stream of Arrays in Java, the task is to Flatten the Stream using forEach() method."
},
{
"code": null,
"e": 25353,
"s": 25343,
"text":... |
Length of the longest subsequence such that xor of adjacent elements is non-decreasing - GeeksforGeeks | 04 Jun, 2021
Given a sequence arr of N positive integers, the task is to find the length of the longest subsequence such that xor of adjacent integers in the subsequence must be non-decreasing.
Examples:
Input: N = 8, arr = {1, 100, 3, 64, 0, 5, 2, 15} Output: 6 The subsequence of maximum length is {1, 3, 0, 5, 2, 15}... | [
{
"code": null,
"e": 26171,
"s": 26143,
"text": "\n04 Jun, 2021"
},
{
"code": null,
"e": 26352,
"s": 26171,
"text": "Given a sequence arr of N positive integers, the task is to find the length of the longest subsequence such that xor of adjacent integers in the subsequence must b... |
How to Set the Foreground Color of the ComboBox in C#? - GeeksforGeeks | 27 Jun, 2019
In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at a time and the rest of the items are present in the drop-down menu. You are allowed to set the foreground color of the ComboBox by ... | [
{
"code": null,
"e": 25357,
"s": 25329,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 25807,
"s": 25357,
"text": "In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is ... |
C# Program to Sort a List of Employees Based on Salary using LINQ - GeeksforGeeks | 06 Dec, 2021
Given a list of employees, now we sort the list of employees according to their salary using LINQ. So to this task, we use the OrderBy() method. This method is used to sort the elements of the specified sequence in ascending order.
Example:
Input:
{id = 101, Name = Rohit, Salary = 50000, Department = HR... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n06 Dec, 2021"
},
{
"code": null,
"e": 25780,
"s": 25547,
"text": "Given a list of employees, now we sort the list of employees according to their salary using LINQ. So to this task, we use the OrderBy() method. This method is use... |
Structured binding in C++ - GeeksforGeeks | 07 May, 2018
Prerequisite : Tuples in C++
Structured binding is one of the newest features of C++17 that binds the specified names to subobjects or elements of initializer. In simple words, Structured Bindings give us the ability to declare multiple variables initialized from a tuple or struct. The main purpose of Stru... | [
{
"code": null,
"e": 25367,
"s": 25339,
"text": "\n07 May, 2018"
},
{
"code": null,
"e": 25396,
"s": 25367,
"text": "Prerequisite : Tuples in C++"
},
{
"code": null,
"e": 25915,
"s": 25396,
"text": "Structured binding is one of the newest features of C++17 tha... |
std::inserter in C++ - GeeksforGeeks | 27 Jul, 2017
std::inserter constructs an insert iterator that inserts new elements into x in successive locations starting at the position pointed by it. It is defined inside the header file .
An insert iterator is a special type of output iterator designed to allow algorithms that usually overwrite elements (such as c... | [
{
"code": null,
"e": 25627,
"s": 25599,
"text": "\n27 Jul, 2017"
},
{
"code": null,
"e": 25807,
"s": 25627,
"text": "std::inserter constructs an insert iterator that inserts new elements into x in successive locations starting at the position pointed by it. It is defined inside t... |
Mahout - Quick Guide | We are living in a day and age where information is available in abundance. The information overload has scaled to such heights that sometimes it becomes difficult to manage our little mailboxes! Imagine the volume of data and records some of the popular websites (the likes of Facebook, Twitter, and Youtube) have to co... | [
{
"code": null,
"e": 2158,
"s": 1705,
"text": "We are living in a day and age where information is available in abundance. The information overload has scaled to such heights that sometimes it becomes difficult to manage our little mailboxes! Imagine the volume of data and records some of the popula... |
How to create a read-only list in Java? | Let us first create a List in Java −
List<String>list = new ArrayList<String>();
list.add("A");
list.add("B");
list.add("C");
Now to convert the above list to read-only, use Collections −
list = Collections.unmodifiableList(list);
We have converted the above list to read-only. Now, if you will try to add more elements ... | [
{
"code": null,
"e": 1099,
"s": 1062,
"text": "Let us first create a List in Java −"
},
{
"code": null,
"e": 1188,
"s": 1099,
"text": "List<String>list = new ArrayList<String>();\nlist.add(\"A\");\nlist.add(\"B\");\nlist.add(\"C\");"
},
{
"code": null,
"e": 1250,
... |
What is the difference between dynamic type variables and object type variables? | You can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time.
The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). The object is an alias for System. Object class. The object types can be assigned values of... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "You can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time."
},
{
"code": null,
"e": 1464,
"s": 1197,
"text": "The Object Type is the ultimate base class for ... |
Check for NULL or NOT NULL values in a column in MySQL | For this, use IS NOT NULL in MySQL. Let us see the syntax−
select yourColumnName IS NOT NULL from yourTableName;
The above query returns 1 if the column does not have NULL value otherwise 0. Let us first create a −
mysql> create table DemoTable1408
-> (
-> FirstName varchar(30)
-> );
Query OK, 0 rows affected ... | [
{
"code": null,
"e": 1121,
"s": 1062,
"text": "For this, use IS NOT NULL in MySQL. Let us see the syntax−"
},
{
"code": null,
"e": 1175,
"s": 1121,
"text": "select yourColumnName IS NOT NULL from yourTableName;"
},
{
"code": null,
"e": 1277,
"s": 1175,
"text":... |
Using neural networks for a functional connectivity classification of fMRI data | by Gelana Tostaeva | Towards Data Science | In this tutorial you will:
explore a neuroimaging dataset from nilearn;
perform a canonical independent component analysis in nilearn;
extract functional connectivity coefficients between regions determined by the component analysis;
use the coefficients for a classification multilayer perceptron model using Keras.
All... | [
{
"code": null,
"e": 199,
"s": 172,
"text": "In this tutorial you will:"
},
{
"code": null,
"e": 244,
"s": 199,
"text": "explore a neuroimaging dataset from nilearn;"
},
{
"code": null,
"e": 307,
"s": 244,
"text": "perform a canonical independent component ana... |
Primitive data type vs. Object data type in Java with Examples - GeeksforGeeks | 22 Mar, 2021
Primitive Data Type: In Java, the primitive data types are the predefined data types of Java. They specify the size and type of any standard values. Java has 8 primitive data types namely byte, short, int, long, float, double, char and boolean. When a primitive data type is stored, it is the stack that the... | [
{
"code": null,
"e": 24378,
"s": 24350,
"text": "\n22 Mar, 2021"
},
{
"code": null,
"e": 24949,
"s": 24378,
"text": "Primitive Data Type: In Java, the primitive data types are the predefined data types of Java. They specify the size and type of any standard values. Java has 8 pri... |
Generating password in Java | Generate temporary password is now a requirement on almost every website now-a-days. In case a user forgets the password, system generates a random password adhering to password policy of the company. Following example generates a random password adhering to following conditions −
It should contain at least one capital... | [
{
"code": null,
"e": 1344,
"s": 1062,
"text": "Generate temporary password is now a requirement on almost every website now-a-days. In case a user forgets the password, system generates a random password adhering to password policy of the company. Following example generates a random password adheri... |
Maximum Likelihood Estimation in R | by Andrew Hetherington | Towards Data Science | Often, you’ll have some level of intuition — or perhaps concrete evidence — to suggest that a set of observations has been generated by a particular statistical distribution. Similar phenomena to the one you are modelling may have been shown to be explained well by a certain distribution. The setup of the situation or ... | [
{
"code": null,
"e": 715,
"s": 47,
"text": "Often, you’ll have some level of intuition — or perhaps concrete evidence — to suggest that a set of observations has been generated by a particular statistical distribution. Similar phenomena to the one you are modelling may have been shown to be explaine... |
Installing MySQL on Unix/Linux Using Generic Binaries | Oracle comes with a set of binary distributions of MySQL. This includes generic binary distributions in the form of compressed tar files (files that have a .tar.xz extension) for many platforms, and binaries in platform-specific package formats for specific platforms.
MySQL compressed tar file binary distributions have... | [
{
"code": null,
"e": 1331,
"s": 1062,
"text": "Oracle comes with a set of binary distributions of MySQL. This includes generic binary distributions in the form of compressed tar files (files that have a .tar.xz extension) for many platforms, and binaries in platform-specific package formats for spec... |
Dynamic Topic Modeling with BERTopic | by Sejal Dua | Towards Data Science | This marks the last article of a three-part investigation to better understand my Medium suggested reads by way of an NLP technique called topic modeling. In this article, I will introduce what I believe to be the most powerful topic modeling algorithm in the field today: BERTopic. I will also attempt to illustrate how... | [
{
"code": null,
"e": 658,
"s": 171,
"text": "This marks the last article of a three-part investigation to better understand my Medium suggested reads by way of an NLP technique called topic modeling. In this article, I will introduce what I believe to be the most powerful topic modeling algorithm in... |
Find the difference between two datetime values with MySQL? | To find the difference between two datetime values, you can use TIMESTAMPDIFF(). Let us first create a table −
mysql> create table DemoTable
-> (
-> DueDatetime1 datetime,
-> DueDatetime2 datetime
-> );
Query OK, 0 rows affected (0.86 sec)
Insert some records in the table using insert command −
mysql> inser... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "To find the difference between two datetime values, you can use TIMESTAMPDIFF(). Let us first create a table −"
},
{
"code": null,
"e": 1314,
"s": 1173,
"text": "mysql> create table DemoTable\n -> (\n -> DueDatetime1 datetime,\n ... |
Count triplets in a sorted doubly linked list whose sum is equal to a given value x - GeeksforGeeks | 06 Jul, 2021
Given a sorted doubly linked list of distinct nodes(no two nodes have the same data) and a value x. Count triplets in the list that sum up to a given value x.
Examples:
Method 1 (Naive Approach): Using three nested loops generate all triplets and check whether elements in the triplet sum up to x or not.
C... | [
{
"code": null,
"e": 24859,
"s": 24831,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 25018,
"s": 24859,
"text": "Given a sorted doubly linked list of distinct nodes(no two nodes have the same data) and a value x. Count triplets in the list that sum up to a given value x."
}... |
Explain the role of HttpContext class in ASP.NET Core | The HttpContext encapsulates all the HTTP-specific information about a single HTTP request.
When an HTTP request arrives at the server, the server processes the request and builds an HttpContext object. This object represents the request which your application code can use to create the response.
The HttpContext object... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "The HttpContext encapsulates all the HTTP-specific information about a single HTTP request."
},
{
"code": null,
"e": 1360,
"s": 1154,
"text": "When an HTTP request arrives at the server, the server processes the request and builds an... |
DAX Other - EXCEPT function | Returns the rows of one table which do not appear in another table. DAX EXCEPT function is new in Excel 2016.
EXCEPT (<table_expression1>, <table_expression2>)
A table that contains the rows of one table minus all the rows of another table.
If a row appears in both tables, that row and its duplicates are not present ... | [
{
"code": null,
"e": 2111,
"s": 2001,
"text": "Returns the rows of one table which do not appear in another table. DAX EXCEPT function is new in Excel 2016."
},
{
"code": null,
"e": 2163,
"s": 2111,
"text": "EXCEPT (<table_expression1>, <table_expression2>) \n"
},
{
"code... |
4 Different Ways to Center an Element using CSS - GeeksforGeeks | 22 Feb, 2021
When we create a web page, we most probably have come across the issue to center an element. So let us take a look at 4 different ways to center an element using CSS:
Using FlexMargin PropertyGrid PropertyAbsolute Property
Using Flex
Margin Property
Grid Property
Absolute Property
Now let’s have a look at ... | [
{
"code": null,
"e": 24985,
"s": 24957,
"text": "\n22 Feb, 2021"
},
{
"code": null,
"e": 25152,
"s": 24985,
"text": "When we create a web page, we most probably have come across the issue to center an element. So let us take a look at 4 different ways to center an element using C... |
atomic.CompareAndSwapInt32() Function in Golang With Examples - GeeksforGeeks | 01 Apr, 2020
In Go language, atomic packages supply lower level atomic memory that is helpful is implementing synchronization algorithms. The CompareAndSwapInt32() function in Go language is used to perform the compare and swap operation for an int32 value. This function is defined under the atomic package. Here, you n... | [
{
"code": null,
"e": 24069,
"s": 24041,
"text": "\n01 Apr, 2020"
},
{
"code": null,
"e": 24445,
"s": 24069,
"text": "In Go language, atomic packages supply lower level atomic memory that is helpful is implementing synchronization algorithms. The CompareAndSwapInt32() function in ... |
How to Create a Timeline in Jupyter Notebook | by Alon Lekhtman | Towards Data Science | When dealing with temporal data it is always useful to be able to see the data on a timeline in order to understand it better.
There are some built-in python solutions like this and this. However, I found them not flexible enough. I want to propose another solution that is a bit more complex but gives you much more fle... | [
{
"code": null,
"e": 298,
"s": 171,
"text": "When dealing with temporal data it is always useful to be able to see the data on a timeline in order to understand it better."
},
{
"code": null,
"e": 693,
"s": 298,
"text": "There are some built-in python solutions like this and this... |
pow() function in C | The function pow() is used to calculate the power raised to the base value. It takes two arguments. It returns the power raised to the base value. It is declared in “math.h” header file.
Here is the syntax of pow() in C language,
double pow(double val1, double val2);
Here,
val1 − The base value whose power is to be cal... | [
{
"code": null,
"e": 1249,
"s": 1062,
"text": "The function pow() is used to calculate the power raised to the base value. It takes two arguments. It returns the power raised to the base value. It is declared in “math.h” header file."
},
{
"code": null,
"e": 1292,
"s": 1249,
"tex... |
Predicting a Hotel Booking Demand | by Dimas Adnan | Towards Data Science | Here in this article, I want to write about how to build a prediction model using Python with Jupyter Notebook. The data that I am using for this experiment is the Hotel Booking Demand dataset from Kaggle.
In this article, I will only show you the modeling stage, with just the Logistic Regression model, but you can acc... | [
{
"code": null,
"e": 378,
"s": 172,
"text": "Here in this article, I want to write about how to build a prediction model using Python with Jupyter Notebook. The data that I am using for this experiment is the Hotel Booking Demand dataset from Kaggle."
},
{
"code": null,
"e": 603,
"s"... |
Differentiate the NULL pointer with Void pointer in C language | The difference between Null pointer and Void pointer is that Null pointer is a value and Void pointer is a type.
A null pointer means it is not pointing to anything. If, there is no address that is assigned to a pointer, then set it to null.
A pointer type, i.e., int *, char * each have a null pointer value.
The syntax... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "The difference between Null pointer and Void pointer is that Null pointer is a value and Void pointer is a type."
},
{
"code": null,
"e": 1304,
"s": 1175,
"text": "A null pointer means it is not pointing to anything. If, there is no ... |
Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted in Python | Suppose we have a given unsorted array A[0..n-1] of size n, we have to find the minimum length subarray A[s..e] so that by sorting this subarray the whole array will be sorted. So, if the array is like [2,6,4,8,10,9,15], then the output will be 5. The subarray will be [6,4,8,10,9].
To solve this, we will follow these s... | [
{
"code": null,
"e": 1345,
"s": 1062,
"text": "Suppose we have a given unsorted array A[0..n-1] of size n, we have to find the minimum length subarray A[s..e] so that by sorting this subarray the whole array will be sorted. So, if the array is like [2,6,4,8,10,9,15], then the output will be 5. The s... |
How to create circular ProgressBar in Android using Kotlin? | This example demonstrates how to create a circular ProgressBar in Android using Kotlin.
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"?>... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "This example demonstrates how to create a circular ProgressBar in Android using Kotlin."
},
{
"code": null,
"e": 1279,
"s": 1150,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require... |
Sum of Square Numbers in C++ | Suppose we have a non-negative integer c, we have to decide whether there're two integers a and b such that it satisfies a^2 + b^2 = c.
So, if the input is like 61, then the output will be True, as 61 = 5^2 + 6^2.
To solve this, we will follow these steps −
Define a function isPerfect(), this will take x,
Define a func... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "Suppose we have a non-negative integer c, we have to decide whether there're two integers a and b such that it satisfies a^2 + b^2 = c."
},
{
"code": null,
"e": 1276,
"s": 1198,
"text": "So, if the input is like 61, then the output w... |
Narrowing Conversion in Java | Narrowing conversion is needed when you convert from a larger size type to a smaller size. This is for incompatible data types, wherein automatic conversions cannot be done.
Let us see an example wherein we are converting long to integer using Narrowing Conversion.
Live Demo
public class Demo {
public static void ... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "Narrowing conversion is needed when you convert from a larger size type to a smaller size. This is for incompatible data types, wherein automatic conversions cannot be done."
},
{
"code": null,
"e": 1328,
"s": 1236,
"text": "Let us s... |
Angular PrimeNG Steps Component - GeeksforGeeks | 28 Oct, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Steps component in Angular PrimeNG. We will also learn about t... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n28 Oct, 2021"
},
{
"code": null,
"e": 25506,
"s": 25109,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
Predictive Maintenance of Turbofan Engine | by Deepak Honakeri | Towards Data Science | Predictive maintenance is very important for manufacturers as well as the maintainers, which lowers maintenance cost, extend equipment life, reduce downtime and improve production quality by addressing problems before they cause equipment failures.
“Predictive maintenance techniques are designed to help determine the c... | [
{
"code": null,
"e": 420,
"s": 171,
"text": "Predictive maintenance is very important for manufacturers as well as the maintainers, which lowers maintenance cost, extend equipment life, reduce downtime and improve production quality by addressing problems before they cause equipment failures."
},
... |
Plotly - Adding Buttons Dropdown | Plotly provides high degree of interactivity by use of different controls on the plotting area – such as buttons, dropdowns and sliders etc. These controls are incorporated with updatemenu attribute of the plot layout. You can add button and its behaviour by specifying the method to be called.
There are four possible m... | [
{
"code": null,
"e": 2655,
"s": 2360,
"text": "Plotly provides high degree of interactivity by use of different controls on the plotting area – such as buttons, dropdowns and sliders etc. These controls are incorporated with updatemenu attribute of the plot layout. You can add button and its behavio... |
How to use viewFlipper in Android? | This example demonstrates how do I use viewFlipper 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"?>
<RelativeLayout
xmlns... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "This example demonstrates how do I use viewFlipper in android."
},
{
"code": null,
"e": 1254,
"s": 1125,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new... |
Java Program to Find the Surface Area and Volume of a Cone - GeeksforGeeks | 01 Dec, 2020
Given the dimensions of the cone, find the Surface area and Volume of a cone. The formula’s to calculate the area and volume are given below.
Cone
Cone is a three-dimensional geometric shape. It consists of a base having the shape of a circle and a curved side (the lateral surface) ending up in a tip calle... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n01 Dec, 2020"
},
{
"code": null,
"e": 24090,
"s": 23948,
"text": "Given the dimensions of the cone, find the Surface area and Volume of a cone. The formula’s to calculate the area and volume are given below."
},
{
"code":... |
Convert an object to associative array in PHP - GeeksforGeeks | 01 Aug, 2021
An object is an instance of a class. It is simply a specimen of a class and has memory allocated. Array is the data structure that stores one or more similar type of values in a single name but associative array is different from a simple PHP array. An array which contains string index is called associativ... | [
{
"code": null,
"e": 24987,
"s": 24959,
"text": "\n01 Aug, 2021"
},
{
"code": null,
"e": 25622,
"s": 24987,
"text": "An object is an instance of a class. It is simply a specimen of a class and has memory allocated. Array is the data structure that stores one or more similar type ... |
WebSockets - Quick Guide | In literal terms, handshaking can be defined as gripping and shaking of right hands by two individuals, as to symbolize greeting, congratulations, agreement or farewell. In computer science, handshaking is a process that ensures the server is in sync with its clients. Handshaking is the basic concept of Web Socket prot... | [
{
"code": null,
"e": 2445,
"s": 2119,
"text": "In literal terms, handshaking can be defined as gripping and shaking of right hands by two individuals, as to symbolize greeting, congratulations, agreement or farewell. In computer science, handshaking is a process that ensures the server is in sync wi... |
How to Get Started with C++ Programming? | So you've decided to learn how to program in C++ but don't know where to start. Here's a brief overview of how you can get started.
This is the first step you'd want to do before starting learning to program in C++. There are good free C++ compilers available for all major OS platforms. Download one that suits your pla... | [
{
"code": null,
"e": 1194,
"s": 1062,
"text": "So you've decided to learn how to program in C++ but don't know where to start. Here's a brief overview of how you can get started."
},
{
"code": null,
"e": 1501,
"s": 1194,
"text": "This is the first step you'd want to do before sta... |
Tryit Editor v3.7 | Tryit: HTML image map - rectangle area | [] |
Gold Mine Problem | Practice | GeeksforGeeks | Given a gold mine called M of (n x m) dimensions. Each field in this mine contains a positive integer which is the amount of gold in tons. Initially the miner can start from any row in the first column. From a given cell, the miner can move
to the cell diagonally up towards the right
to the right
to the cell diagona... | [
{
"code": null,
"e": 480,
"s": 238,
"text": "Given a gold mine called M of (n x m) dimensions. Each field in this mine contains a positive integer which is the amount of gold in tons. Initially the miner can start from any row in the first column. From a given cell, the miner can move "
},
{
... |
How to install OpenCV in Python? | OpenCV is a Python library that is used to solve computer vision problems. Computer vision include understanding and analyzing digital images by the computer and process the images or provide relevant data after analyzing the image.
OpenCV is an open-source library used in machine learning and image processing.It perfo... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "OpenCV is a Python library that is used to solve computer vision problems. Computer vision include understanding and analyzing digital images by the computer and process the images or provide relevant data after analyzing the image."
},
{
"code"... |
Reading Clocks using Neural Nets. Can Neural Network detect time from... | by Shiva Verma | Towards Data Science | I was really interested in an idea, which was to read the time from Analog Clock Images using Neural Nets. To do this task, I needed a dataset containing clock images, but there was not any dataset available on the web. One other way was to download the clock images from the web and manually label them. Which is a quit... | [
{
"code": null,
"e": 518,
"s": 172,
"text": "I was really interested in an idea, which was to read the time from Analog Clock Images using Neural Nets. To do this task, I needed a dataset containing clock images, but there was not any dataset available on the web. One other way was to download the c... |
How to convert a dictionary to a Pandas series? - GeeksforGeeks | 08 Oct, 2021
Let’s discuss how to convert a dictionary into pandas series in Python. A series is a one-dimensional labeled array which can contain any type of data i.e. integer, float, string, python objects, etc. while dictionary is an unordered collection of key : value pairs. We use series() function of pandas libra... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 24680,
"s": 24292,
"text": "Let’s discuss how to convert a dictionary into pandas series in Python. A series is a one-dimensional labeled array which can contain any type of data i.e. integer... |
NLP: Analysis On Tweets Using Python and TWINT | Towards Data Science | Ever heard of Twint?
Twint is an advanced web scraping tool built in Python which scrapes the web instead of collecting data through the twitter API like tweepy. It is short for Twitter Intelligence Tool. You can download it using:
pip3 install twint
The twint documentation can be found here.
In this article, we will u... | [
{
"code": null,
"e": 192,
"s": 171,
"text": "Ever heard of Twint?"
},
{
"code": null,
"e": 403,
"s": 192,
"text": "Twint is an advanced web scraping tool built in Python which scrapes the web instead of collecting data through the twitter API like tweepy. It is short for Twitter ... |
Spiral Matrix II in Python | Suppose we have a positive integer n, we have to generate a square matrix with n2 elements in spiral order. So if n = 5, then the matrix will be −
Let us see the steps −
set (row1, col1) := (0, 0) and (row2, col2) := (n, n), and create one matrix called res, then fill it with 0s, and set num := 1
while num <= n2,for i ... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "Suppose we have a positive integer n, we have to generate a square matrix with n2 elements in spiral order. So if n = 5, then the matrix will be −"
},
{
"code": null,
"e": 1232,
"s": 1209,
"text": "Let us see the steps −"
},
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.