title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Finding Astronauts from different countries - GeeksforGeeks | 23 Sep, 2021
Given a positive integer N denoting the number of astronauts(labelled from 0 from (N – 1))and a matrix mat[][] containing the pairs of astronauts that are from the same country, the task is to count the number of ways to choose two astronauts from different countries.
Examples:
Input: N = 6, mat[][] = {{0,... | [
{
"code": null,
"e": 24699,
"s": 24671,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 24968,
"s": 24699,
"text": "Given a positive integer N denoting the number of astronauts(labelled from 0 from (N – 1))and a matrix mat[][] containing the pairs of astronauts that are from the... |
CSV Files for Storage? Absolutely Not. Use Apache Avro Instead | by Dario Radečić | Towards Data Science | I’m not a fan of CSVs. They’re slow to query and take more disk space than required. Think expensive if you’re using the cloud to process large CSV files.
There are many alternatives — such as Excel, databases, and HDFs — but one in particular stands above the competition. That is, if you want to stick with row storage... | [
{
"code": null,
"e": 327,
"s": 172,
"text": "I’m not a fan of CSVs. They’re slow to query and take more disk space than required. Think expensive if you’re using the cloud to process large CSV files."
},
{
"code": null,
"e": 556,
"s": 327,
"text": "There are many alternatives — s... |
JSX Full Form - GeeksforGeeks | 03 Jun, 2021
JSX stands for JavaScript XML. It is simply a syntax extension of JavaScript. It allows us to directly write HTML in React (within JavaScript code). It is easy to create a template using JSX in React, but it is not a simple template language instead it comes with the full power of JavaScript.It is faster t... | [
{
"code": null,
"e": 23067,
"s": 23039,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 23632,
"s": 23067,
"text": "JSX stands for JavaScript XML. It is simply a syntax extension of JavaScript. It allows us to directly write HTML in React (within JavaScript code). It is easy to ... |
IMS DB - DL/I Functions | DL/I function is the first parameter that is used in a DL/I call. This function tells which operation is going to be performed on the IMS database by the IMS DL/I call. The syntax of DL/I function is as follows −
01 DLI-FUNCTIONS.
05 DLI-GU PIC X(4) VALUE 'GU '.
05 DLI-GHU PIC X(4) VALUE 'GHU ... | [
{
"code": null,
"e": 2159,
"s": 1946,
"text": "DL/I function is the first parameter that is used in a DL/I call. This function tells which operation is going to be performed on the IMS database by the IMS DL/I call. The syntax of DL/I function is as follows −"
},
{
"code": null,
"e": 273... |
Python - Dictionary | In Dictionary each key is separated from its value by a colon (:), the items are separated by commas, and the whole thing is enclosed in curly braces. An empty dictionary without any items is written with just two curly braces, like this − {}.
Keys are unique within a dictionary while values may not be. The values of a... | [
{
"code": null,
"e": 2571,
"s": 2327,
"text": "In Dictionary each key is separated from its value by a colon (:), the items are separated by commas, and the whole thing is enclosed in curly braces. An empty dictionary without any items is written with just two curly braces, like this − {}."
},
{... |
Measure Text Weight using TF-IDF in Python and scikit-learn | by Andrew Zhu | Towards Data Science | When dealing with text data, we want to measure the importance of a word to a document of a full text collection. One of the most intuitive solution would be counting the word appearance number, the higher the better. But simply counting the words # will lead to the result that favor to long document/article. After all... | [
{
"code": null,
"e": 531,
"s": 172,
"text": "When dealing with text data, we want to measure the importance of a word to a document of a full text collection. One of the most intuitive solution would be counting the word appearance number, the higher the better. But simply counting the words # will ... |
MYSQL - CREATE ROLE Statement | A role in MySQL is a set of privileges with name. You can create one or more roles in MySQL using the CREATE ROLE statement. To create a role, you need to have CREATE ROLE or CREATE USER privilege.
Following is the syntax of the CREATE ROLE Statement −
CREATE ROLE [IF NOT EXISTS] desiredname
Where, desiredname is the ... | [
{
"code": null,
"e": 2531,
"s": 2333,
"text": "A role in MySQL is a set of privileges with name. You can create one or more roles in MySQL using the CREATE ROLE statement. To create a role, you need to have CREATE ROLE or CREATE USER privilege."
},
{
"code": null,
"e": 2586,
"s": 253... |
HTML | <th> align Attribute - GeeksforGeeks | 31 Dec, 2021
The HTML <th> align Attribute is used to set the horizontal alignment of text content inside the table header cell.
Syntax:
<th align= "left | right | center | justify | char">
Attribute Values:
left: It sets the text left-align.
right: It sets the text right-align.
center: It sets the text center-align.
j... | [
{
"code": null,
"e": 24333,
"s": 24305,
"text": "\n31 Dec, 2021"
},
{
"code": null,
"e": 24449,
"s": 24333,
"text": "The HTML <th> align Attribute is used to set the horizontal alignment of text content inside the table header cell."
},
{
"code": null,
"e": 24457,
... |
How to conditionally add attributes to React components? - GeeksforGeeks | 05 Jan, 2021
We can conditionally add attributes to React components with the following approaches:
Approach 1:
Evidently, with some attributes, React is smart enough to omit the attribute if the value you pass to it is not truthy. For example:
state= {
disabled: false,
required: true
}
return (
<input type="t... | [
{
"code": null,
"e": 26653,
"s": 26625,
"text": "\n05 Jan, 2021"
},
{
"code": null,
"e": 26740,
"s": 26653,
"text": "We can conditionally add attributes to React components with the following approaches:"
},
{
"code": null,
"e": 26753,
"s": 26740,
"text": "App... |
Advanced Streamlit: Session State and Callbacks for Data Labelling Tool | by ChiaChong | Towards Data Science | It is very simple to create a web app using Streamlit nowadays, but there are limitations when building something complex. One of them is the lack of statefulness because variables in the code will get reinitialize every time we interact with a widget. The good news is Streamlit now has native support of session state ... | [
{
"code": null,
"e": 647,
"s": 172,
"text": "It is very simple to create a web app using Streamlit nowadays, but there are limitations when building something complex. One of them is the lack of statefulness because variables in the code will get reinitialize every time we interact with a widget. Th... |
Array Pair Sum Divisibility Problem | Practice | GeeksforGeeks | Given an array of integers and a number k, write a function that returns true if given array can be divided into pairs such that sum of every pair is divisible by k.
Example 1 :
Input : arr = [9, 5, 7, 3], k = 6
Output: True
Explanation: {(9, 3), (5, 7)} is a
possible solution. 9 + 3 = 12 is divisible
by 6 and 7 + 5... | [
{
"code": null,
"e": 406,
"s": 238,
"text": "Given an array of integers and a number k, write a function that returns true if given array can be divided into pairs such that sum of every pair is divisible by k.\n "
},
{
"code": null,
"e": 418,
"s": 406,
"text": "Example 1 :"
},... |
C# | Math.Atan() Method - GeeksforGeeks | 31 Jan, 2019
Math.Atan() is an inbuilt Math class method which returns the angle whose tangent is given as a double value argument. If the argument is NaN, then the result will be NaN.
Syntax:
public static double Atan(double num)
Parameter:
num: It is the number that represents a tangent and type of this parameter is... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 25719,
"s": 25547,
"text": "Math.Atan() is an inbuilt Math class method which returns the angle whose tangent is given as a double value argument. If the argument is NaN, then the result will... |
How to Build a JavaScript Command Line Interface (CLI) with Node.js - GeeksforGeeks | 04 Aug, 2021
In this article, we will see how to create a JavaScript CLI with the help of NodeJs.
JavaScript being an interpreter language, it is a very dynamic language, due to which it provides us with many facilities, due to which many tasks become very easy and anyone can understand them very easily, so in today’s ... | [
{
"code": null,
"e": 26403,
"s": 26375,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 26488,
"s": 26403,
"text": "In this article, we will see how to create a JavaScript CLI with the help of NodeJs."
},
{
"code": null,
"e": 26845,
"s": 26488,
"text": "JavaS... |
CakePHP - Views | The letter “V” in the MVC is for Views. Views are responsible for sending output to user based on request. View Classes is a powerful way to speed up the development process.
The View Templates file of CakePHP gets data from controller and then render the output so that it can be displayed properly to the user. We can ... | [
{
"code": null,
"e": 2417,
"s": 2242,
"text": "The letter “V” in the MVC is for Views. Views are responsible for sending output to user based on request. View Classes is a powerful way to speed up the development process."
},
{
"code": null,
"e": 2617,
"s": 2417,
"text": "The Vie... |
Data Visualization with Leaflet Using R: Tutorial for the Beginner | by Audhi Aprilliant | Towards Data Science | 1 What’s leaflet?2 Interaction Features3 Prerequisites4 Let’s Create the Data Viz5 Recap6 Conclusion7 References
The leaflet is an open-source library for easily making spatial data visualization. Because it is an open-source library and integrated into any platform and programming language, it currently becomes the mo... | [
{
"code": null,
"e": 285,
"s": 172,
"text": "1 What’s leaflet?2 Interaction Features3 Prerequisites4 Let’s Create the Data Viz5 Recap6 Conclusion7 References"
},
{
"code": null,
"e": 607,
"s": 285,
"text": "The leaflet is an open-source library for easily making spatial data visu... |
Spearman’s Rank Correlation Coefficient Using Ordinal Data | by Shinichi Okada | Towards Data Science | Table of ContentsIntroduction1. Simplified formula2. General formula3. Pandas corr4. Finding mathematically using the formula (1–1)5 Finding mathematically using the formula (1–2)6. Real-life exampleConclusion
Spearman’s rank correlation coefficient, rs shows the correlation between two ordinal data. How one ordinal da... | [
{
"code": null,
"e": 381,
"s": 171,
"text": "Table of ContentsIntroduction1. Simplified formula2. General formula3. Pandas corr4. Finding mathematically using the formula (1–1)5 Finding mathematically using the formula (1–2)6. Real-life exampleConclusion"
},
{
"code": null,
"e": 532,
... |
Biometric Signal Verification of Handwriting with Hidden Markov Models | by Tim Löhr | Towards Data Science | Digital signatures are on the rise. Since many of us are working now from home, a lot of confidential company E-Mails need to be signed online. Ian Goodfellows' invention of Generative Adversarial Networks (GAN’s) showed how easy it is nowadays to generate fake numbers on the MNIST dataset. It is actually just a tiny s... | [
{
"code": null,
"e": 623,
"s": 172,
"text": "Digital signatures are on the rise. Since many of us are working now from home, a lot of confidential company E-Mails need to be signed online. Ian Goodfellows' invention of Generative Adversarial Networks (GAN’s) showed how easy it is nowadays to generat... |
DynamoDB - Creating Items | Creating an item in DynamoDB consists primarily of item and attribute specification, and the option of specifying conditions. Each item exists as a set of attributes, with each attribute named and assigned a value of a certain type.
Value types include scalar, document, or set. Items carry a 400KB size limit, with the ... | [
{
"code": null,
"e": 2624,
"s": 2391,
"text": "Creating an item in DynamoDB consists primarily of item and attribute specification, and the option of specifying conditions. Each item exists as a set of attributes, with each attribute named and assigned a value of a certain type."
},
{
"code"... |
Introduction to One-Way ANOVA: A Test to Compare the Means between More than Two Groups | by Khuyen Tran | Towards Data Science | A t-test is useful to find out whether there is a significant difference between two groups. However, a t-test cannot be used to compare between three or more independent groups.
For example, if you are a product developer, you might want to know whether the change in the percentage of cotton used in the synthetic fibe... | [
{
"code": null,
"e": 351,
"s": 172,
"text": "A t-test is useful to find out whether there is a significant difference between two groups. However, a t-test cannot be used to compare between three or more independent groups."
},
{
"code": null,
"e": 559,
"s": 351,
"text": "For exa... |
Format specifiers in C - GeeksforGeeks | 28 Aug, 2021
The format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable during taking input using scanf() or printing using printf(). Some examples are %c, %d, %f, etc.The format specifier in printf() and scanf() are mostly the same but there is some differ... | [
{
"code": null,
"e": 24029,
"s": 24001,
"text": "\n28 Aug, 2021"
},
{
"code": null,
"e": 24361,
"s": 24029,
"text": "The format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable during taking input using scanf() or prin... |
Framework7 - Refresh | It is a special component used to refresh (reload) the page contents by pulling it.
The following code shows how to refresh the page content −
<div class = "page">
<!-- Page content should have additional "pull-to-refresh-content" class -->
<div class = "page-content pull-to-refresh-content" data-ptr-distance = "... | [
{
"code": null,
"e": 2735,
"s": 2651,
"text": "It is a special component used to refresh (reload) the page contents by pulling it."
},
{
"code": null,
"e": 2794,
"s": 2735,
"text": "The following code shows how to refresh the page content −"
},
{
"code": null,
"e": 32... |
Lagged Variable Regressions and Truth | by Ben Ogorek | Towards Data Science | Turn a nonlinear structural time-series model into a regression on lagged variables using rational transfer functions and common filters,
See bias in an ordinary least squares lagged variable regression due to remaining serial correlation in the errors,
Use generalized least squares to eliminate the bias and recover th... | [
{
"code": null,
"e": 310,
"s": 172,
"text": "Turn a nonlinear structural time-series model into a regression on lagged variables using rational transfer functions and common filters,"
},
{
"code": null,
"e": 426,
"s": 310,
"text": "See bias in an ordinary least squares lagged var... |
PySpark - StorageLevel | StorageLevel decides how RDD should be stored. In Apache Spark, StorageLevel decides whether RDD should be stored in the memory or should it be stored over the disk, or both. It also decides whether to serialize RDD and whether to replicate RDD partitions.
The following code block has the class definition of a StorageL... | [
{
"code": null,
"e": 2062,
"s": 1805,
"text": "StorageLevel decides how RDD should be stored. In Apache Spark, StorageLevel decides whether RDD should be stored in the memory or should it be stored over the disk, or both. It also decides whether to serialize RDD and whether to replicate RDD partitio... |
Row with max 1s | Practice | GeeksforGeeks | Given a boolean 2D array of n x m dimensions where each row is sorted. Find the 0-based index of the first row that has the maximum number of 1's.
Example 1:
Input:
N = 4 , M = 4
Arr[][] = {{0, 1, 1, 1},
{0, 0, 1, 1},
{1, 1, 1, 1},
{0, 0, 0, 0}}
Output: 2
Explanation: Row 2 contains 4 ... | [
{
"code": null,
"e": 385,
"s": 238,
"text": "Given a boolean 2D array of n x m dimensions where each row is sorted. Find the 0-based index of the first row that has the maximum number of 1's."
},
{
"code": null,
"e": 396,
"s": 385,
"text": "Example 1:"
},
{
"code": null,
... |
How to delete multiple files in a directory in Python? | You can delete a single file or a single empty folder with functions in the os module.
For example, if you want to delete a file my_file.txt,
>>> import os
>>> os.remove('my_file.txt')
The argument to os.remove must be absolute or relative path.
To delete multiple files, just loop over your list of files and use the ab... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "You can delete a single file or a single empty folder with functions in the os module."
},
{
"code": null,
"e": 1204,
"s": 1149,
"text": "For example, if you want to delete a file my_file.txt,"
},
{
"code": null,
"e": 124... |
How to Setup and Configure Postfix on Ubuntu 16.04 | In this article we will learn about how to set up Postfix on Ubuntu 16.04, Postfix is a very popular open-source MTA (Mail Transfer Agent) which can be used to relay the emails on Ubuntu Linux systems, most of the public mail servers over the real world use the postfix only.
To complete this demo we needed the followin... | [
{
"code": null,
"e": 1338,
"s": 1062,
"text": "In this article we will learn about how to set up Postfix on Ubuntu 16.04, Postfix is a very popular open-source MTA (Mail Transfer Agent) which can be used to relay the emails on Ubuntu Linux systems, most of the public mail servers over the real world... |
Pairs with difference k | Practice | GeeksforGeeks | Given an array Arr of N positive integers. Find the number of pairs of integers whose difference is equal to a given number K.
Note: (a, b) and (b, a) are considered same. Also, same numbers at different indices are considered different.
Example 1:
Input:
N = 5
Arr[] = {1, 5, 3, 4, 2}
K = 3
Output: 2
Explanation: Ther... | [
{
"code": null,
"e": 476,
"s": 238,
"text": "Given an array Arr of N positive integers. Find the number of pairs of integers whose difference is equal to a given number K.\nNote: (a, b) and (b, a) are considered same. Also, same numbers at different indices are considered different."
},
{
"c... |
JSON Parsing in Android using Retrofit Library - GeeksforGeeks | 23 Nov, 2021
JSON is also known as (JavaScript Object Notation) is a format to exchange the data from the server. The data stored in JSON format is lightweight and easy to handle. With the help of JSON, we can access the data in the form of JsonArray, JsonObject, and JsonStringer. In this article, we will specifically ... | [
{
"code": null,
"e": 24671,
"s": 24643,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 25067,
"s": 24671,
"text": "JSON is also known as (JavaScript Object Notation) is a format to exchange the data from the server. The data stored in JSON format is lightweight and easy to hand... |
Convert VARCHAR data to MySQL date format? | To convert VARCHAR data to date format, you can use STR_TO_DATE() −
mysql> create table DemoTable1989
(
DueDate varchar(20)
);
Query OK, 0 rows affected (0.91 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1989 values('31/01/2015');
Query OK, 1 row affected (0.52 sec)
... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "To convert VARCHAR data to date format, you can use STR_TO_DATE() −"
},
{
"code": null,
"e": 1235,
"s": 1130,
"text": "mysql> create table DemoTable1989\n (\n DueDate varchar(20)\n );\nQuery OK, 0 rows affected (0.91 sec)"
},... |
Bulma - Hero banner | Bulma provides hero banner to specify the full width banner to the webpage. Bulma uses hero class as container and hero-body as child, where you can add your page content.
Let's create a simple example of hero banner by using hero class as shown below −
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
... | [
{
"code": null,
"e": 1870,
"s": 1698,
"text": "Bulma provides hero banner to specify the full width banner to the webpage. Bulma uses hero class as container and hero-body as child, where you can add your page content."
},
{
"code": null,
"e": 1952,
"s": 1870,
"text": "Let's crea... |
MomentJS - Day of year | This method will take care of getting and setting the day of year. The range given is 0-366. If the input to set is greater than the range, it will show up the next year.
moment().dayOfYear(Number);
moment().dayOfYear();
var m = moment().dayOfYear();
var d = moment().dayOfYear(320);
var a = moment().dayOfYear(400);
P... | [
{
"code": null,
"e": 2131,
"s": 1960,
"text": "This method will take care of getting and setting the day of year. The range given is 0-366. If the input to set is greater than the range, it will show up the next year."
},
{
"code": null,
"e": 2182,
"s": 2131,
"text": "moment().da... |
How to declare constant in react class ? - GeeksforGeeks | 14 Dec, 2020
To declare a constant that can be accessed in a React class component, there are multiple approaches that could be efficiently implemented such that that constant is accessible class-wide. Constants can be declared in the following two ways:
Create a getter method in the class for getting the constant when... | [
{
"code": null,
"e": 25422,
"s": 25394,
"text": "\n14 Dec, 2020"
},
{
"code": null,
"e": 25664,
"s": 25422,
"text": "To declare a constant that can be accessed in a React class component, there are multiple approaches that could be efficiently implemented such that that constant ... |
Board Game Image Recognition using Neural Networks | by Andrew Underwood | Towards Data Science | Utilizing computer vision techniques and convolutional neural networks (CNN), the algorithms created for this project classify chess pieces and identify their location on a chessboard. The final application saves images throughout to visualize the performance and outputs a 2D image of the chessboard to see the results ... | [
{
"code": null,
"e": 669,
"s": 172,
"text": "Utilizing computer vision techniques and convolutional neural networks (CNN), the algorithms created for this project classify chess pieces and identify their location on a chessboard. The final application saves images throughout to visualize the perform... |
C Extension Module using Python - GeeksforGeeks | 27 Mar, 2019
Writing a simple C extension module directly using Python’s extension API and no other tools. It is straightforward to make a handcrafted extension module for a simple C code. But first, we have to make sure that the C code has a proper header file.
Code #1 :
#include <math.h> extern int gcd(int, int);ext... | [
{
"code": null,
"e": 26185,
"s": 26157,
"text": "\n27 Mar, 2019"
},
{
"code": null,
"e": 26435,
"s": 26185,
"text": "Writing a simple C extension module directly using Python’s extension API and no other tools. It is straightforward to make a handcrafted extension module for a si... |
A Guide to Spring Boot ConfigurationProperties for Kotlin Data Class | by billydharmawan | Towards Data Science | I describe Spring Boot as the Apple equivalent for Software Engineering framework. 🍎 The reason is because it is well designed and it allows you to write less and clean code. I mean, it’s just elegant, like Apple. (I might be a bit biased here as I am team Apple).
Spring Boot comes with a lot of annotations that make ... | [
{
"code": null,
"e": 437,
"s": 172,
"text": "I describe Spring Boot as the Apple equivalent for Software Engineering framework. 🍎 The reason is because it is well designed and it allows you to write less and clean code. I mean, it’s just elegant, like Apple. (I might be a bit biased here as I am te... |
Arrange given numbers to form the smallest number - GeeksforGeeks | 30 Jun, 2021
Given an array arr[] of integer elements, the task is to arrange them in such a way that these numbers form the smallest possible number. For example, if the given array is {5, 6, 2, 9, 21, 1} then the arrangement will be 1212569.
Examples:
Input: arr[] = {5, 6, 2, 9, 21, 1} Output: 1212569
Input: arr[] =... | [
{
"code": null,
"e": 26492,
"s": 26464,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 26723,
"s": 26492,
"text": "Given an array arr[] of integer elements, the task is to arrange them in such a way that these numbers form the smallest possible number. For example, if the given... |
How to handle chrome notification in Selenium? | We can handle Chrome notification in Selenium webdriver. These are generally known as the web push notifications and can be handled with the help of the ChromeOptions class. The below image shows a notification from the browser Chrome −
We have to create an object of this ChromeOptions class and apply the addArguments ... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "We can handle Chrome notification in Selenium webdriver. These are generally known as the web push notifications and can be handled with the help of the ChromeOptions class. The below image shows a notification from the browser Chrome −"
},
{
"c... |
Tryit Editor v3.7 | Tryit: Using media queries | [] |
Convert String to Byte Array in Java Using getBytes(encoding) Method - GeeksforGeeks | 03 Mar, 2022
In Java, any sequence of characters within double quotes is treated as String literal. String class represents the character string literal. The string class is present in java.lang package. All string literals in java are immutable i.e their value cannot be changed once created. In Java, the string litera... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n03 Mar, 2022"
},
{
"code": null,
"e": 24013,
"s": 23557,
"text": "In Java, any sequence of characters within double quotes is treated as String literal. String class represents the character string literal. The string class is pr... |
Understanding the bag of words in NLP | by Mathanraj Sharma | Towards Data Science | Natural language processing is an important branch of Artificial intelligence where many interesting and important pieces of research are going on. As a machine learning enthusiast, it is important to understand the sub-processes of NLP.
Here I would like to share one of the buzz words used in NLP with (link to noteboo... | [
{
"code": null,
"e": 410,
"s": 172,
"text": "Natural language processing is an important branch of Artificial intelligence where many interesting and important pieces of research are going on. As a machine learning enthusiast, it is important to understand the sub-processes of NLP."
},
{
"co... |
In MongoDB how do you use $set to update a nested value/embedded document? | The syntax is as follows for this −
db.yourCollectionName.update({ }, { $set: { "yourOuterFieldName.yourInnerFieldName": "yourValue" } });
To understand the syntax, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.updateNestedValueDemo.insertOne({"Custo... | [
{
"code": null,
"e": 1098,
"s": 1062,
"text": "The syntax is as follows for this −"
},
{
"code": null,
"e": 1201,
"s": 1098,
"text": "db.yourCollectionName.update({ }, { $set: { \"yourOuterFieldName.yourInnerFieldName\": \"yourValue\" } });"
},
{
"code": null,
"e": 13... |
Go - Operators Precedence | Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition operator.
For example x = 7 + 3 * 2; here, x is assigned 13, not 20 b... | [
{
"code": null,
"e": 2198,
"s": 1937,
"text": "Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition op... |
How to capture and print Python exception message? | Python exception messages can be captured and printed in different ways as shown in two code examples below. In the first one, we use the message attribute of the exception object.
try:
a = 7/0
print float(a)
except BaseException as e:
print e.message
integer division or modulo by zero
In case of given code, we import ... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "Python exception messages can be captured and printed in different ways as shown in two code examples below. In the first one, we use the message attribute of the exception object."
},
{
"code": null,
"e": 1314,
"s": 1243,
"text": "t... |
SQLite - LIMIT Clause | SQLite LIMIT clause is used to limit the data amount returned by the SELECT statement.
Following is the basic syntax of SELECT statement with LIMIT clause.
SELECT column1, column2, columnN
FROM table_name
LIMIT [no of rows]
Following is the syntax of LIMIT clause when it is used along with OFFSET clause.
SELECT colum... | [
{
"code": null,
"e": 2725,
"s": 2638,
"text": "SQLite LIMIT clause is used to limit the data amount returned by the SELECT statement."
},
{
"code": null,
"e": 2794,
"s": 2725,
"text": "Following is the basic syntax of SELECT statement with LIMIT clause."
},
{
"code": null... |
Spring WS - Writing Client | In this chapter, we will learn how to create a client for the web application server created in the Spring WS - Writing Server using Spring WS.
package com.tutorialspoint.client;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;
import com.tutorialspoint.GetCountryRequest;
import com.tutorial... | [
{
"code": null,
"e": 1954,
"s": 1810,
"text": "In this chapter, we will learn how to create a client for the web application server created in the Spring WS - Writing Server using Spring WS."
},
{
"code": null,
"e": 2600,
"s": 1954,
"text": "package com.tutorialspoint.client;\n\n... |
How to check if field is null or empty in MySQL? | To check whether a field is null or empty in MySQL, use the IF() function in MySQL. The syntax is as follows −
SELECT IF(yourColumnName IS NULL or yourColumnName = '', 'NULLId', yourColumnName) as anyVariableName from yourTableName;
To understand the above syntax, let us create a table. The following is the query to cr... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "To check whether a field is null or empty in MySQL, use the IF() function in MySQL. The syntax is as follows −"
},
{
"code": null,
"e": 1295,
"s": 1173,
"text": "SELECT IF(yourColumnName IS NULL or yourColumnName = '', 'NULLId', your... |
How to create a signup form with HTML and CSS? | Following is the code to create a signup form using HTML and CSS −
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
body{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {box-sizing: border-box}
input[type=text], input[type=password] {
width: 100%;
font-size: 28px;
padding: 15px;
margin... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "Following is the code to create a signup form using HTML and CSS −"
},
{
"code": null,
"e": 1140,
"s": 1129,
"text": " Live Demo"
},
{
"code": null,
"e": 2872,
"s": 1140,
"text": "<!DOCTYPE html>\n<html>\n<head>\n... |
How to cast and update a numeric value from string column only where applicable in MySQL? | You can use the CEIL() function from MySQL. Let us first create a table. Here, we have taken the first column as VARCHAR −
mysql> create table DemoTable
-> (
-> Value varchar(20),
-> UpdateValue int
-> );
Query OK, 0 rows affected (1.08 sec)
Insert some records in the table using insert command −
mysql> ins... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "You can use the CEIL() function from MySQL. Let us first create a table. Here, we have taken the first column as VARCHAR −"
},
{
"code": null,
"e": 1316,
"s": 1185,
"text": "mysql> create table DemoTable\n -> (\n -> Value varchar... |
bitset test() in C++ STL - GeeksforGeeks | 19 Jun, 2018
bitset::test() is an inbuilt function in C++ STL which tests whether the bit at a given index is set or not.
Syntax:
bitset_name.test(index)
Parameters: The function accepts only a single mandatory parameter index which specifies the index at which the bit is set or not.
Return Value: The function returns... | [
{
"code": null,
"e": 24161,
"s": 24133,
"text": "\n19 Jun, 2018"
},
{
"code": null,
"e": 24270,
"s": 24161,
"text": "bitset::test() is an inbuilt function in C++ STL which tests whether the bit at a given index is set or not."
},
{
"code": null,
"e": 24278,
"s": 2... |
Automated Machine Learning on the Cloud in Python | by Will Koehrsen | Towards Data Science | Two trends have recently become apparent in data science:
Data analysis and model training is done using cloud resourcesMachine learning pipelines are algorithmically developed and optimized
Data analysis and model training is done using cloud resources
Machine learning pipelines are algorithmically developed and optim... | [
{
"code": null,
"e": 230,
"s": 172,
"text": "Two trends have recently become apparent in data science:"
},
{
"code": null,
"e": 363,
"s": 230,
"text": "Data analysis and model training is done using cloud resourcesMachine learning pipelines are algorithmically developed and optim... |
Bootstrap alert-dismissable class | The .alert-dismissable class in Bootstrap is used to close the alert.
You can try to run the following code to implement the alert-dismissable class in Bootstrap
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "The .alert-dismissable class in Bootstrap is used to close the alert."
},
{
"code": null,
"e": 1224,
"s": 1132,
"text": "You can try to run the following code to implement the alert-dismissable class in Bootstrap"
},
{
"code"... |
C++ Program for BogoSort or Permutation Sort - GeeksforGeeks | 08 Jun, 2021
BogoSort also known as permutation sort, stupid sort, slow sort, shotgun sort or monkey sort is a particularly ineffective algorithm based on generate and test paradigm. The algorithm successively generates permutations of its input until it finds one that is sorted.(Wiki) For example, if bogosort is used ... | [
{
"code": null,
"e": 24215,
"s": 24187,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 24741,
"s": 24215,
"text": "BogoSort also known as permutation sort, stupid sort, slow sort, shotgun sort or monkey sort is a particularly ineffective algorithm based on generate and test par... |
Python time ctime() Method | Python time method ctime() converts a time expressed in seconds since the epoch to a string representing local time. If secs is not provided or None, the current time as returned by time() is used. This function is equivalent to asctime(localtime(secs)). Locale information is not used by ctime().
Following is the synta... | [
{
"code": null,
"e": 2542,
"s": 2244,
"text": "Python time method ctime() converts a time expressed in seconds since the epoch to a string representing local time. If secs is not provided or None, the current time as returned by time() is used. This function is equivalent to asctime(localtime(secs))... |
Understanding Assertions Cypress | Cypress has a list of common assertions that can be applied to any element on the
browser. Assertions are the checkpoints that confirm if a test step of the automated
test case passed or failed. Thus it checks the expected state of the application under
test.
Cypress bundles the Chai, JQuery and Sinon libraries for ass... | [
{
"code": null,
"e": 1322,
"s": 1062,
"text": "Cypress has a list of common assertions that can be applied to any element on the\nbrowser. Assertions are the checkpoints that confirm if a test step of the automated\ntest case passed or failed. Thus it checks the expected state of the application und... |
Rexx - interpret | Interprets or executes the defined instruction.
Interpret command
command − The command sent to the interpret instruction.
command − The command sent to the interpret instruction.
Returns the output of the command sent to the interpret instruction.
/* Main program */
options arexx_bifs interpret
say 'Hello'
When we... | [
{
"code": null,
"e": 2387,
"s": 2339,
"text": "Interprets or executes the defined instruction."
},
{
"code": null,
"e": 2407,
"s": 2387,
"text": "Interpret command \n"
},
{
"code": null,
"e": 2464,
"s": 2407,
"text": "command − The command sent to the interpre... |
Python Functools - total_ordering() - GeeksforGeeks | 26 Mar, 2020
Functools module in python helps in implementing higher-order functions. Higher-order functions are dependent functions that call other functions. Total_ordering provides rich class comparison methods that help in comparing classes without explicitly defining a function for it. So, It helps in the redundan... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24611,
"s": 24292,
"text": "Functools module in python helps in implementing higher-order functions. Higher-order functions are dependent functions that call other functions. Total_ordering p... |
How to Sort object of objects by its key value JavaScript | Let’s say, we have an object with keys as string literals and their values as objects as well like
this −
const companies = {
'landwaves ltd': {employees: 1200, worth: '1.2m', CEO: 'Rajiv Bansal'},
'colin & co': {employees: 200, worth: '0.2m', CEO: 'Sukesh Maheshwari'},
'motilal biscuits': {employees: 975, wor... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "Let’s say, we have an object with keys as string literals and their values as objects as well like\nthis −"
},
{
"code": null,
"e": 1699,
"s": 1168,
"text": "const companies = {\n 'landwaves ltd': {employees: 1200, worth: '1.2m', C... |
Check for NULL or empty variable in a MySQL stored procedure | To check for NULL or empty variable, use the IF condition. Let us create a stored procedure −
mysql> delimiter //
mysql> create procedure checkingForNullDemo(Name varchar(20))
begin
if Name is NULL OR Name='' then
select 'Adam Smith';
else
select Name;
end if ;
end
//
Query OK, 0... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "To check for NULL or empty variable, use the IF condition. Let us create a stored procedure −"
},
{
"code": null,
"e": 1427,
"s": 1156,
"text": "mysql> delimiter //\nmysql> create procedure checkingForNullDemo(Name varchar(20))\n ... |
Log Book — Guide to Distance Measuring Approaches for K- Means Clustering | by dearC | Towards Data Science | Let’s begin with a brief introduction of clustering. Clustering is the task of dividing the data points into a number of groups such that data points in the same groups are more similar to other data points in the same group than those in other groups. In simple words, the aim is to segregate groups with similar featur... | [
{
"code": null,
"e": 401,
"s": 47,
"text": "Let’s begin with a brief introduction of clustering. Clustering is the task of dividing the data points into a number of groups such that data points in the same groups are more similar to other data points in the same group than those in other groups. In ... |
Android - SQLite Database | SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation.
SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC,ODBC e.t.c
The main... | [
{
"code": null,
"e": 3751,
"s": 3607,
"text": "SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation."
},
{
"code": null,
"e": 3919,
"s": 3751,
"text": "SQLite supports all the relational dat... |
Create a sorted linked list from the given Binary Tree - GeeksforGeeks | 21 Jun, 2021
Given a binary tree, the task is to convert it into a sorted linked list.Examples:
Input:
1
/ \
2 3
Output: 1 2 3
Input:
2
/ \
4 8
/ \ / \
7 3 5 1
Output: 1 2 3 4 5 7 8
Input:
3
/
4
/
1
/
9
Output: 1 3 4... | [
{
"code": null,
"e": 26315,
"s": 26287,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 26400,
"s": 26315,
"text": "Given a binary tree, the task is to convert it into a sorted linked list.Examples: "
},
{
"code": null,
"e": 26625,
"s": 26400,
"text": "Input... |
Using Line Plots from Matplotlib to Create Simple Log Plots of Well Log Data | by Andy McDonald | Towards Data Science | Well log plots are a common visualization tool within geoscience and petrophysics. They allow easy visualization of data (for example, Gamma Ray, Neutron Porosity, Bulk Density, etc) that have been acquired along the length (depth) of a wellbore. On these plots, we display our logging measurements on the x-axis and mea... | [
{
"code": null,
"e": 541,
"s": 171,
"text": "Well log plots are a common visualization tool within geoscience and petrophysics. They allow easy visualization of data (for example, Gamma Ray, Neutron Porosity, Bulk Density, etc) that have been acquired along the length (depth) of a wellbore. On these... |
Graphics.Clear() Method in C# with Examples - GeeksforGeeks | 04 Apr, 2019
Graphics.Clear(color) Method is used to clear the canvas and paints it up with the specified background color.
Syntax: public void Clear (System.Drawing.Color color);Parameter:color: Color identifier which contains RGB values, to colour the background of canvas.
Example 1:
// C# snippet to print GeeksForGe... | [
{
"code": null,
"e": 25657,
"s": 25629,
"text": "\n04 Apr, 2019"
},
{
"code": null,
"e": 25768,
"s": 25657,
"text": "Graphics.Clear(color) Method is used to clear the canvas and paints it up with the specified background color."
},
{
"code": null,
"e": 25920,
"s":... |
How to control your mouse and keyboard using the pynput library in Python | The pynput library allows you to control and monitor/listen to your input devices such as they keyboard and mouse.
The pynput.mouse allows you control and monitor the mouse, while the pynput.keyboard allows you to control and monitor the keyboard.
In this article, we will be moving the cursor to a specific position, au... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "The pynput library allows you to control and monitor/listen to your input devices such as they keyboard and mouse."
},
{
"code": null,
"e": 1310,
"s": 1177,
"text": "The pynput.mouse allows you control and monitor the mouse, while th... |
IIF() Function in SQL Server - GeeksforGeeks | 16 Oct, 2020
The SQL Server IIF() function has three parameters. IIF() function judges or evaluates the first parameter and returns the second parameters if the first parameters is true; otherwise, it returns the third parameters. IIF() function used in SQL Server to add if-else logic to queries.>
Syntax :
IIF(boolean_... | [
{
"code": null,
"e": 24366,
"s": 24338,
"text": "\n16 Oct, 2020"
},
{
"code": null,
"e": 24652,
"s": 24366,
"text": "The SQL Server IIF() function has three parameters. IIF() function judges or evaluates the first parameter and returns the second parameters if the first parameter... |
How to install MSI file using batch file in PowerShell? | Let say we have one MSI file and we need to install the MSI file on the remote computers using PowerShell but that MSI file should be deployed with the Batch file and should be executed using PowerShell.
In this example, we have a 7-zip MSI file and batch file we will first write the installation instructions as shown ... | [
{
"code": null,
"e": 1266,
"s": 1062,
"text": "Let say we have one MSI file and we need to install the MSI file on the remote computers using PowerShell but that MSI file should be deployed with the Batch file and should be executed using PowerShell."
},
{
"code": null,
"e": 1389,
"s... |
PostgreSQL - Function Returning A Table - GeeksforGeeks | 28 Aug, 2020
In this article, we will look into the process of developing functions that returns a table. We will use the film table in the sample database for the demonstration:
The following function returns all films whose titles match a particular pattern using ILIKE operator:
CREATE OR REPLACE FUNCTION get_film (p... | [
{
"code": null,
"e": 25363,
"s": 25335,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 25529,
"s": 25363,
"text": "In this article, we will look into the process of developing functions that returns a table. We will use the film table in the sample database for the demonstratio... |
C Program for Matrix Chain Multiplication | DP-8 - GeeksforGeeks | 12 Dec, 2018
Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but merely to decide in which order to perform the multiplications.
We have many options to multiply a chain of matrices because matrix multiplication i... | [
{
"code": null,
"e": 24764,
"s": 24736,
"text": "\n12 Dec, 2018"
},
{
"code": null,
"e": 24987,
"s": 24764,
"text": "Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but mere... |
How to Replace null with “-” JavaScript | We have to write a function that takes in an object with many keys and replaces all false values
with a dash (‘ - ’). We will simply iterate over the original object, checking for the keys that
contain false values, and we will replace those false values with ‘-’ without consuming any extra
space (i.e., in place)
const... | [
{
"code": null,
"e": 1377,
"s": 1062,
"text": "We have to write a function that takes in an object with many keys and replaces all false values\nwith a dash (‘ - ’). We will simply iterate over the original object, checking for the keys that\ncontain false values, and we will replace those false val... |
A Data Science Web App to Predict Real Estate Price | by K G Prajwal | Towards Data Science | Web Development and Data Science have been a long time passion of mine. It has always been an idea to combine these two interests and merge them together and make a project. Finally, I have managed to accomplish this task by building a web app that predicts the real estate price for properties and houses across the cit... | [
{
"code": null,
"e": 636,
"s": 172,
"text": "Web Development and Data Science have been a long time passion of mine. It has always been an idea to combine these two interests and merge them together and make a project. Finally, I have managed to accomplish this task by building a web app that predic... |
Chocolate Distribution Problem | Practice | GeeksforGeeks | Given an array A[ ] of positive integers of size N, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are M students, the task is to distribute chocolate packets among M students such that :
1. Each student gets exactly one packet.
2. The diffe... | [
{
"code": null,
"e": 684,
"s": 238,
"text": "Given an array A[ ] of positive integers of size N, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are M students, the task is to distribute chocolate packets among M students ... |
Auto Search StackOverflow for Errors in Code using Python - GeeksforGeeks | 09 Dec, 2021
Ever faced great difficulty in copying the error you’re stuck with, opening the browser, pasting it, and opening the right Stack Overflow Answer? Worry Not, Here’s the solution! What we are going to do is to write a Python script, which automatically detects the error from code, search about it on Stack O... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 24616,
"s": 24212,
"text": "Ever faced great difficulty in copying the error you’re stuck with, opening the browser, pasting it, and opening the right Stack Overflow Answer? Worry Not, Here’... |
Advanced JavaScript Backend Basics | JavaScript programming language that is usually used for web scripting. It is a lightweight, interpreted programming language. JavaScript is one of the most programming languages for web development. For running JavaScript
each browser has its own engine which enables the proper functioning of JavaScript in the browser... | [
{
"code": null,
"e": 1440,
"s": 1062,
"text": "JavaScript programming language that is usually used for web scripting. It is a lightweight, interpreted programming language. JavaScript is one of the most programming languages for web development. For running JavaScript\neach browser has its own engi... |
Angular7 - Materials/CDK-Drag and Drop | The new Drag and Drop feature added to Angular 7 CDK helps to drag and drop the elements from the list. We will understand the working of Drag and Drop Module with the help of an example. The feature is added to cdk. We need to first download the dependency as shown below −
npm install @angular/cdk --save
Once the abo... | [
{
"code": null,
"e": 2336,
"s": 2061,
"text": "The new Drag and Drop feature added to Angular 7 CDK helps to drag and drop the elements from the list. We will understand the working of Drag and Drop Module with the help of an example. The feature is added to cdk. We need to first download the depend... |
hex() function in Python - GeeksforGeeks | 27 Oct, 2021
hex() function is one of the built-in functions in Python3, which is used to convert an integer number into it’s corresponding hexadecimal form.
Syntax :
hex(x)
Parameters :
x - an integer number (int object)
Returns : Returns hexadecimal string.
Errors and Exceptions :
TypeError : Returns TypeError ... | [
{
"code": null,
"e": 24652,
"s": 24624,
"text": "\n27 Oct, 2021"
},
{
"code": null,
"e": 24797,
"s": 24652,
"text": "hex() function is one of the built-in functions in Python3, which is used to convert an integer number into it’s corresponding hexadecimal form."
},
{
"cod... |
Create a large button with Bootstrap | To create a large button, use the .btn-lg class in Bootstrap.
You can try to run the following code to implement the .btn-lg class −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "To create a large button, use the .btn-lg class in Bootstrap."
},
{
"code": null,
"e": 1195,
"s": 1124,
"text": "You can try to run the following code to implement the .btn-lg class −"
},
{
"code": null,
"e": 1205,
"s... |
SVG - Polyline | <polyline> element is used to draw a connected straight lines.
Following is the syntax declaration of <polyline> element. We've shown main attributes only.
<polyline
points="list of points" >
</polyline>
<html>
<title>SVG Polyline</title>
<body>
<h1>Sample SVG Polyline Image</h1>
<... | [
{
"code": null,
"e": 2428,
"s": 2364,
"text": "<polyline> element is used to draw a connected straight lines."
},
{
"code": null,
"e": 2521,
"s": 2428,
"text": "Following is the syntax declaration of <polyline> element. We've shown main attributes only."
},
{
"code": nul... |
MySQL - LIKE Clause | We have seen the SQL SELECT command to fetch data from the MySQL table. We can also use a conditional clause called as the WHERE clause to select the required records.
A WHERE clause with the ‘equal to’ sign (=) works fine where we want to do an exact match. Like if "tutorial_author = 'Sanjay'". But there may be a requ... | [
{
"code": null,
"e": 2501,
"s": 2333,
"text": "We have seen the SQL SELECT command to fetch data from the MySQL table. We can also use a conditional clause called as the WHERE clause to select the required records."
},
{
"code": null,
"e": 2825,
"s": 2501,
"text": "A WHERE clause... |
K'th Non-repeating Character - GeeksforGeeks | 18 Nov, 2021
Given a string and a number k, find the k’th non-repeating character in the string. Consider a large input string with lacs of characters and a small character set. How to find the character by only doing only one traversal of input string? Examples:
Input : str = geeksforgeeks, k = 3
Output : r
First no... | [
{
"code": null,
"e": 24774,
"s": 24746,
"text": "\n18 Nov, 2021"
},
{
"code": null,
"e": 25027,
"s": 24774,
"text": "Given a string and a number k, find the k’th non-repeating character in the string. Consider a large input string with lacs of characters and a small character set... |
Running Jupyter Notebooks on Remote Servers | by Tobias Skovgaard Jepsen | Towards Data Science | Jupyter Notebook is a staple tool in many data scientists’ toolkit. As a tool, Jupyter Notebook can enhance productivity by making it easier to perform data analysis, model prototyping, and experiments in an interactive way, thus shortening the feedback loop from coding and seeing results.
In many cases, running a Jupy... | [
{
"code": null,
"e": 462,
"s": 171,
"text": "Jupyter Notebook is a staple tool in many data scientists’ toolkit. As a tool, Jupyter Notebook can enhance productivity by making it easier to perform data analysis, model prototyping, and experiments in an interactive way, thus shortening the feedback l... |
C - Header Files & Preprocessor Directives - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to learn about... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
All Pandas read_html() you should know for scraping data from HTML tables | by B. Chen | Towards Data Science | Web scraping is the process of collecting and parsing data from the web. The Python community has come up with some pretty powerful web scrapping tools. Among them, Pandas read_html() is a quick and convenient way for scraping data from HTML tables.
In this article, you’ll learn Pandas read_html() to deal with the foll... | [
{
"code": null,
"e": 422,
"s": 172,
"text": "Web scraping is the process of collecting and parsing data from the web. The Python community has come up with some pretty powerful web scrapping tools. Among them, Pandas read_html() is a quick and convenient way for scraping data from HTML tables."
},... |
Convolutions using Python? | Image recognition used to be done using much simpler methods such as linear regression and comparison of similarities. The results were obviously not very good, even the simple task of recognizing hand-written alphabets proved difficult. Convolution neural networks (CNNs) are supposed to be a step up from what we tradi... | [
{
"code": null,
"e": 1524,
"s": 1062,
"text": "Image recognition used to be done using much simpler methods such as linear regression and comparison of similarities. The results were obviously not very good, even the simple task of recognizing hand-written alphabets proved difficult. Convolution neu... |
Count of acute, obtuse and right triangles with given sides - GeeksforGeeks | 16 Apr, 2021
Given an array of n positive distinct integers representing lengths of lines that can form a triangle. The task is to find the number of acute triangles, obtuse triangles, and right triangles separately that can be formed from the given array.
Examples:
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.
Output :
Ac... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n16 Apr, 2021"
},
{
"code": null,
"e": 25544,
"s": 25300,
"text": "Given an array of n positive distinct integers representing lengths of lines that can form a triangle. The task is to find the number of acute triangles, obtuse tr... |
Create a Plot Matrix of Scatterplots in R Programming - pairs() Function - GeeksforGeeks | 10 Dec, 2021
pairs() function in R language is used to return a plot matrix, consisting of scatter plots corresponding to each data frame.
Syntax: pairs(data)
Parameters:
data: It is defined as value of pairs Plot.
Returns: Color, Labels, Panels, and by Group in pairs plot.
R
# Set seed for reproducibilityset.seed(... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 25368,
"s": 25242,
"text": "pairs() function in R language is used to return a plot matrix, consisting of scatter plots corresponding to each data frame."
},
{
"code": null,
"e": ... |
How to remove all classes that begin with a certain string in JavaScript? - GeeksforGeeks | 06 Sep, 2019
The task is to remove all the classes of a certain element starting with a specific prefix. Here are a few of the most used techniques discussed. We are going to use JavaScript.
Approach 1:
Select a particular element.
Use .className property to get access to all the classes.
Use .replace() method to repla... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n06 Sep, 2019"
},
{
"code": null,
"e": 26723,
"s": 26545,
"text": "The task is to remove all the classes of a certain element starting with a specific prefix. Here are a few of the most used techniques discussed. We are going to u... |
How to handle alert prompts in Selenium Python ? - GeeksforGeeks | 15 May, 2020
Selenium’s Python Module is built to perform automated testing with Python. Alerts are a way to show popups in the browser for either accepting data or displaying data. Selenium provides methods to handle alerts of all kinds. class selenium.webdriver.common.alert.Alert(driver) handles all alerts in Seleniu... | [
{
"code": null,
"e": 26069,
"s": 26041,
"text": "\n15 May, 2020"
},
{
"code": null,
"e": 26601,
"s": 26069,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Alerts are a way to show popups in the browser for either accepting data or displaying ... |
Struts 2 & Spring Integration | Spring is a popular web framework that provides easy integration with lots of common web tasks. So the question is, why do we need Spring when we have Struts2? Well, Spring is more than a MVC framework - it offers many other goodies which are not available in Struts.
For example: dependency injection that can be useful... | [
{
"code": null,
"e": 2514,
"s": 2246,
"text": "Spring is a popular web framework that provides easy integration with lots of common web tasks. So the question is, why do we need Spring when we have Struts2? Well, Spring is more than a MVC framework - it offers many other goodies which are not availa... |
Tryit Editor v3.6 - Show Node.js | var http = require('http');
//create a server object:
http.createServer(function (req, res) {
res.write('Hello World!'); //write a response to the client
res.end(); //end the response
}).listen(8080); //the server object listens on port 8080 | [
{
"code": null,
"e": 28,
"s": 0,
"text": "var http = require('http');"
},
{
"code": null,
"e": 30,
"s": 28,
"text": ""
},
{
"code": null,
"e": 56,
"s": 30,
"text": "//create a server object:"
},
{
"code": null,
"e": 96,
"s": 56,
"text": "h... |
MYBATIS - Create Operation | To perform any Create, Read, Update, and Delete (CRUD) operation using MyBATIS, you would need to create a Plain Old Java Objects (POJO) class corresponding to the table. This class describes the objects that will "model" database table rows.
The POJO class would have implementation for all the methods required to perf... | [
{
"code": null,
"e": 2114,
"s": 1871,
"text": "To perform any Create, Read, Update, and Delete (CRUD) operation using MyBATIS, you would need to create a Plain Old Java Objects (POJO) class corresponding to the table. This class describes the objects that will \"model\" database table rows."
},
... |
How to add key/value pair to a JavaScript object? - GeeksforGeeks | 22 Apr, 2019
In order to add key/value pair to a JavaScript object, Either we use dot notation or square bracket notation. Both methods are widely accepted.
Example 1: This example adds {“nextFavColor” : “red”} to the GFG_p object by using dot notation.
<!DOCTYPE html> <html> <head> <title> JavaScript | A... | [
{
"code": null,
"e": 24395,
"s": 24367,
"text": "\n22 Apr, 2019"
},
{
"code": null,
"e": 24539,
"s": 24395,
"text": "In order to add key/value pair to a JavaScript object, Either we use dot notation or square bracket notation. Both methods are widely accepted."
},
{
"code... |
Apex - Governer Limits | Governor execution limits ensure the efficient use of resources on the Force.com multitenant platform. It is the limit specified by the Salesforce.com on code execution for efficient processing.
As we know, Apex runs in multi-tenant environment, i.e., a single resource is shared by all the customers and organizations. ... | [
{
"code": null,
"e": 2247,
"s": 2052,
"text": "Governor execution limits ensure the efficient use of resources on the Force.com multitenant platform. It is the limit specified by the Salesforce.com on code execution for efficient processing."
},
{
"code": null,
"e": 2652,
"s": 2247,
... |
Closure in JavaScript - GeeksforGeeks | 13 May, 2021
Most of the JavaScript Developers use closure consciously or unconsciously. Even if they do unconsciously it works fine in most of the cases. But knowing closure will provide better control over the code when using them. And another reason for learning closure is that it is the most frequently asked questi... | [
{
"code": null,
"e": 24312,
"s": 24284,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 24715,
"s": 24312,
"text": "Most of the JavaScript Developers use closure consciously or unconsciously. Even if they do unconsciously it works fine in most of the cases. But knowing closure w... |
What is CLR (1) Parser? | CLR defines canonical lookahead. CLR parsing use the canonical collection of LR (1) items to construct the CLR (1) parsing table. CLR (1) parsing table makes the more number of states as compare to the SLR (1) parsing. In the CLR (1), it can locate the reduce node only in the lookahead symbols.
Working of CLR Parser
Co... | [
{
"code": null,
"e": 1358,
"s": 1062,
"text": "CLR defines canonical lookahead. CLR parsing use the canonical collection of LR (1) items to construct the CLR (1) parsing table. CLR (1) parsing table makes the more number of states as compare to the SLR (1) parsing. In the CLR (1), it can locate the ... |
Climbing B-tree Indexes in Postgres | by GreekDataGuy | Towards Data Science | Your query was slow so you decided to speed it up by adding an index. What type of index was it? Probably a B-tree.
Postgres has a few index types but B-trees are by far the most common. They’re good for sorting and matching; and once you understand what they look like under the hood, it’s immediately apparent why.
We’... | [
{
"code": null,
"e": 287,
"s": 171,
"text": "Your query was slow so you decided to speed it up by adding an index. What type of index was it? Probably a B-tree."
},
{
"code": null,
"e": 488,
"s": 287,
"text": "Postgres has a few index types but B-trees are by far the most common.... |
Introducing Arauto: an interactive tool for Time Series Forecasting | by Paulo Vasconcellos | Towards Data Science | Time series forecasting has been an outstanding field to apply machine learning and statistical models, although many data scientists might not see it as a field as sexy as computer vision or NLP, to name a few. The fact is that many companies depend on time series forecasting and analysis to understand the future of t... | [
{
"code": null,
"e": 569,
"s": 171,
"text": "Time series forecasting has been an outstanding field to apply machine learning and statistical models, although many data scientists might not see it as a field as sexy as computer vision or NLP, to name a few. The fact is that many companies depend on t... |
Find row number of a binary matrix having maximum number of 1s - GeeksforGeeks | 17 Aug, 2021
Given a binary matrix (containing only 0 and 1) of order n×n. All rows are sorted already, We need to find the row number with the maximum number of 1s. Also, find the number of 1 in that row. Note: in case of a tie, print the smaller row number.
Examples :
Input : mat[3][3] = {0, 0, 1,
... | [
{
"code": null,
"e": 25374,
"s": 25346,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 25622,
"s": 25374,
"text": "Given a binary matrix (containing only 0 and 1) of order n×n. All rows are sorted already, We need to find the row number with the maximum number of 1s. Also, find... |
MariaDB - Select Query | In this chapter, we will learn how to select data from a table.
SELECT statements retrieve selected rows. They can include UNION statements, an ordering clause, a LIMIT clause, a WHERE clause, a GROUP BY...HAVING clause, and subqueries.
Review the following general syntax −
SELECT field, field2,... FROM table_name, tab... | [
{
"code": null,
"e": 2426,
"s": 2362,
"text": "In this chapter, we will learn how to select data from a table."
},
{
"code": null,
"e": 2599,
"s": 2426,
"text": "SELECT statements retrieve selected rows. They can include UNION statements, an ordering clause, a LIMIT clause, a WHE... |
Neo4j CQL - Relationship Functions | Neo4j CQL has provided a set of Relationship functions to know the details of a Relationship in getting Start Node,End Node etc. details.
Here, we are going to discuss some of the important and frequently used functions
Now we will discuss each Neo4j CQL Relationship Functions in detail with examples
It takes a string... | [
{
"code": null,
"e": 2478,
"s": 2339,
"text": "Neo4j CQL has provided a set of Relationship functions to know the details of a Relationship in getting Start Node,End Node etc. details. "
},
{
"code": null,
"e": 2560,
"s": 2478,
"text": "Here, we are going to discuss some of the i... |
Multiplication of two Matrices in Single line using Numpy in Python - GeeksforGeeks | 22 Mar, 2022
Matrix multiplication is an operation that takes two matrices as input and produces single matrix by multiplying rows of the first matrix to the column of the second matrix.In matrix multiplication make sure that the number of columns of the first matrix should be equal to the number of rows of the second ... | [
{
"code": null,
"e": 25224,
"s": 25196,
"text": "\n22 Mar, 2022"
},
{
"code": null,
"e": 25608,
"s": 25224,
"text": "Matrix multiplication is an operation that takes two matrices as input and produces single matrix by multiplying rows of the first matrix to the column of the seco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.