title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Bootstrap 5 | Buttons - GeeksforGeeks | 29 Jul, 2020
Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Buttons are the components provided to create various buttons. Bootstrap 5 includes several predefined button styles, each serving its own purpose.
Syntax:
<button class="badge bg-type"> Button... | [
{
"code": null,
"e": 28440,
"s": 28412,
"text": "\n29 Jul, 2020"
},
{
"code": null,
"e": 28702,
"s": 28440,
"text": "Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Buttons are the components provided to create var... |
When to use Pandas transform() function | by B. Chen | Towards Data Science | Pandas is an amazing library that contains extensive built-in functions for manipulating data. Among them, transform() is super useful when you are looking to manipulate rows or columns.
In this article, we will cover the following most frequently used Pandas transform() features:
Transforming valuesCombining groupby()... | [
{
"code": null,
"e": 359,
"s": 172,
"text": "Pandas is an amazing library that contains extensive built-in functions for manipulating data. Among them, transform() is super useful when you are looking to manipulate rows or columns."
},
{
"code": null,
"e": 454,
"s": 359,
"text": ... |
Inventory Management for Retail — Stochastic Demand | by Samir Saci | Towards Data Science | For most retailers, inventory management systems take a fixed, rule-based approach to forecast and replenishment orders management.
Considering the distribution of the demand, the objective is to build a replenishment policy that will minimize your ordering, holding and shortage costs.
In a previous article, we have bu... | [
{
"code": null,
"e": 304,
"s": 172,
"text": "For most retailers, inventory management systems take a fixed, rule-based approach to forecast and replenishment orders management."
},
{
"code": null,
"e": 459,
"s": 304,
"text": "Considering the distribution of the demand, the object... |
Node.js http.IncomingMessage.headers Method - GeeksforGeeks | 19 Jan, 2022
The http.IncomingMessage.headers is an inbuilt application programming interface of class IncomingMessage within HTTP module which is used to get all the request/response headers object.
Syntax:
const message.headers
Parameters: This method does not accept any argument as a parameter.
Return Value: This me... | [
{
"code": null,
"e": 25002,
"s": 24974,
"text": "\n19 Jan, 2022"
},
{
"code": null,
"e": 25189,
"s": 25002,
"text": "The http.IncomingMessage.headers is an inbuilt application programming interface of class IncomingMessage within HTTP module which is used to get all the request/r... |
C program to print multiplication table by using for Loop | A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.
Given below is an algorithm to print multiplication table by using for loop in C language −
Step 1: Enter a number to print table at runtime.
Step 2: Read that number from keyboard.... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times."
},
{
"code": null,
"e": 1293,
"s": 1201,
"text": "Given below is an algorithm to print multip... |
Implementing Linear Operators in Python with Google JAX | by Shailesh Kumar | Towards Data Science | A linear operator or a linear map is a mapping from a vector space to another vector space that preserves vector addition and scalar multiplication operations. In other words, if T is a linear operator then T(x+y) = T(x) + T(y) and T (a x) = a T(x) where x and y are vectors and a is a scalar.
Linear operators have wide... | [
{
"code": null,
"e": 466,
"s": 172,
"text": "A linear operator or a linear map is a mapping from a vector space to another vector space that preserves vector addition and scalar multiplication operations. In other words, if T is a linear operator then T(x+y) = T(x) + T(y) and T (a x) = a T(x) where ... |
Accuracy, Recall, Precision, F-Score & Specificity, which to optimize on? | by Salma Ghoneim | Towards Data Science | I will use a basic example to explain each performance metric on in order for you to really understand the difference between each one of them. So that in your next ML project you can choose which performance metric to improve on that best suits your project.
A school is running a machine learning primary diabetes scan... | [
{
"code": null,
"e": 431,
"s": 171,
"text": "I will use a basic example to explain each performance metric on in order for you to really understand the difference between each one of them. So that in your next ML project you can choose which performance metric to improve on that best suits your proj... |
Probability Learning II: How Bayes’ Theorem is applied in Machine Learning | by z_ai | Towards Data Science | In the previous post we saw what Bayes’ Theorem is, and went through an easy, intuitive example of how it works. You can find this post here. If you don’t know what Bayes’ Theorem is, and you have not had the pleasure to read it yet, I recommend you do, as it will make understanding this present article a lot easier.
I... | [
{
"code": null,
"e": 491,
"s": 172,
"text": "In the previous post we saw what Bayes’ Theorem is, and went through an easy, intuitive example of how it works. You can find this post here. If you don’t know what Bayes’ Theorem is, and you have not had the pleasure to read it yet, I recommend you do, a... |
Quick Sort | Practice | GeeksforGeeks | Quick Sort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot.
Given an array arr[], its starting position low and its ending position high.
Implement the partition() and quickSort() functions to sort the array.
Example 1:
Input:
N = 5
arr[] = { 4, ... | [
{
"code": null,
"e": 447,
"s": 238,
"text": "Quick Sort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot.\nGiven an array arr[], its starting position low and its ending position high."
},
{
"code": null,
"e": 518,
... |
descendants generator – Python Beautifulsoup - GeeksforGeeks | 25 Oct, 2020
descendants generator is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. The .contents and .children attribute only consider a tag’s direct children. The descendants ge... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n25 Oct, 2020"
},
{
"code": null,
"e": 24767,
"s": 24292,
"text": "descendants generator is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website u... |
Time Forecast with TPOT. a Python Automated Machine Learning... | by Susan Li | Towards Data Science | My colleague at work recommended me several wonderful Machine Learning libraries and some of them were new to me. Therefore, I decided to try them out, one by one. Today is TPOT’s turn.
The data set was about predicting engineers of Daimler’s Mercedes-Benz cars speed of testing system, the purpose is to reduce the time... | [
{
"code": null,
"e": 357,
"s": 171,
"text": "My colleague at work recommended me several wonderful Machine Learning libraries and some of them were new to me. Therefore, I decided to try them out, one by one. Today is TPOT’s turn."
},
{
"code": null,
"e": 809,
"s": 357,
"text": "... |
How to return only value of a field in MongoDB? | In order to return only value of a field in MongoDB, you need to write a query and use forEach loop. Let us first create a collection with documents
> db.returnOnlyValueOfFieldDemo.insertOne({"ClientName":"Larry"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5c9ea537d628fa4220163b6e")
}
> db.returnOnlyValu... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "In order to return only value of a field in MongoDB, you need to write a query and use forEach loop. Let us first create a collection with documents"
},
{
"code": null,
"e": 1820,
"s": 1211,
"text": "> db.returnOnlyValueOfFieldDemo.i... |
\eqalign - Tex Command | \eqalign - Used for equation alignment; for aligning multi-line displays at a single place.
{ \eqalign{ <math> & <math> \cr <repeat as needed> } }
\eqalign command is used for equation alignment; for aligning multi-line displays at a single place. The ampersand is placed where alignment is desired; a double-backslash c... | [
{
"code": null,
"e": 8078,
"s": 7986,
"text": "\\eqalign - Used for equation alignment; for aligning multi-line displays at a single place."
},
{
"code": null,
"e": 8133,
"s": 8078,
"text": "{ \\eqalign{ <math> & <math> \\cr <repeat as needed> } }"
},
{
"code": null,
... |
How to Detect the key points of an image using OpenCV Java library? | The detect() method of the org.opencv.features2d.Feature2D (abstract) class detects the key points of the given image. To this method, you need to pass a Mat the object representing the source image and an empty MatOfKeyPoint object to hold the read key points.
You can draw the draw key points on the image using the dr... | [
{
"code": null,
"e": 1324,
"s": 1062,
"text": "The detect() method of the org.opencv.features2d.Feature2D (abstract) class detects the key points of the given image. To this method, you need to pass a Mat the object representing the source image and an empty MatOfKeyPoint object to hold the read key... |
How to handle StringIndexOutOfBoundsException in Java? | Strings are used to store a sequence of characters in Java, they are treated as objects. The String class of the java.lang package represents a String.
You can create a String either by using the new keyword (like any other object) or, by assigning value to the literal (like any other primitive datatype).
public class ... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Strings are used to store a sequence of characters in Java, they are treated as objects. The String class of the java.lang package represents a String."
},
{
"code": null,
"e": 1369,
"s": 1214,
"text": "You can create a String either... |
Extend data class in Kotlin | Data class is a class that holds the data for an application. It is just like a POJO class that we use in Java in order to hold the data.
In Java, for data class, we need to create getter and setter methods in order to access the properties of that class. In Kotlin, when a class is declared as a data class, the compile... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Data class is a class that holds the data for an application. It is just like a POJO class that we use in Java in order to hold the data."
},
{
"code": null,
"e": 1602,
"s": 1200,
"text": "In Java, for data class, we need to create g... |
AtomicInteger getAndIncrement() method in Java with examples - GeeksforGeeks | 29 Jan, 2019
The java.util.concurrent.atomic.AtomicInteger.getAndIncrement() is an inbuilt method in java that increases the given value by one and returns the value before updation which is of data-type int.
Syntax:
public final int getAndIncrement()
Parameters: The function does not accepts a single parameter.
Retur... | [
{
"code": null,
"e": 24402,
"s": 24374,
"text": "\n29 Jan, 2019"
},
{
"code": null,
"e": 24598,
"s": 24402,
"text": "The java.util.concurrent.atomic.AtomicInteger.getAndIncrement() is an inbuilt method in java that increases the given value by one and returns the value before upd... |
C# | Number of elements in HashSet - GeeksforGeeks | 01 Feb, 2019
A HashSet is an unordered collection of the unique elements. It is found in System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates from being inserted in the collection. As far as performance is concerned, it is better in comparison to the list. You can use Hash... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24674,
"s": 24302,
"text": "A HashSet is an unordered collection of the unique elements. It is found in System.Collections.Generic namespace. It is used in a situation where we want to preven... |
Python | Grayscaling of Images using OpenCV - GeeksforGeeks | 26 Jul, 2021
Grayscaling is the process of converting an image from other color spaces e.g. RGB, CMYK, HSV, etc. to shades of gray. It varies between complete black and complete white.
Dimension reduction: For example, In RGB images there are three color channels and has three dimensions while grayscale images are sing... | [
{
"code": null,
"e": 25180,
"s": 25152,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 25352,
"s": 25180,
"text": "Grayscaling is the process of converting an image from other color spaces e.g. RGB, CMYK, HSV, etc. to shades of gray. It varies between complete black and complet... |
Get the last record from a table in MySQL database with Java? | To get data from MySQL database, you need to use executeQuery() method from java. First create a table in the MySQL database. Here, we will create the following table in the ‘sample’ database
mysql> create table javaGetDataDemo
- > (
- > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
- > FirstName varchar(10),
- > LastNam... | [
{
"code": null,
"e": 1254,
"s": 1062,
"text": "To get data from MySQL database, you need to use executeQuery() method from java. First create a table in the MySQL database. Here, we will create the following table in the ‘sample’ database"
},
{
"code": null,
"e": 1440,
"s": 1254,
... |
Tryit Editor v3.7 - Show Java | static void Main(string[] args)
{
string txt = "We are the so-called \"Vikings\" from the north."; | [] |
Minimum number of moves to make all elements equal using C++. | Given an array of N elements and an integer K., It is allowed to perform the following operation any number of times on the given array −
Insert the Kth element at the end of the array and delete the first element of the array.
Insert the Kth element at the end of the array and delete the first element of the array.
Th... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Given an array of N elements and an integer K., It is allowed to perform the following operation any number of times on the given array −"
},
{
"code": null,
"e": 1290,
"s": 1200,
"text": "Insert the Kth element at the end of the arr... |
Deletion in a Binary Tree in C++ Program | In this tutorial, we are going to learn how to delete a node in a binary tree.
The nodes in a binary tree don't follow any order like binary search trees. So, how to arrange the nodes after deleting a node in a binary tree?
Well, we will replace the deepest node of the tree with the deleting node. And then we will dele... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "In this tutorial, we are going to learn how to delete a node in a binary tree."
},
{
"code": null,
"e": 1286,
"s": 1141,
"text": "The nodes in a binary tree don't follow any order like binary search trees. So, how to arrange the node... |
Fabric.js Image cropX Property - GeeksforGeeks | 31 Aug, 2020
Fabric.js is a javascript library that is used to work with canvas. The canvas image is one of the class of fabric.js that is used to create image instances. The canvas image means the Image is movable and can be stretched according to requirement. The cropX property of the image is used to crop a certain ... | [
{
"code": null,
"e": 25034,
"s": 25006,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 25398,
"s": 25034,
"text": "Fabric.js is a javascript library that is used to work with canvas. The canvas image is one of the class of fabric.js that is used to create image instances. The c... |
Deep Learning For NLP with PyTorch and Torchtext | by Arie Pratama Sutiono | Towards Data Science | PyTorch has been an awesome deep learning framework that I have been working with. However, when it comes to NLP somehow I could not found as good utility library like torchvision. Turns out PyTorch has this torchtext, which, in my opinion, lack of examples on how to use it and the documentation [6] can be improved. Mo... | [
{
"code": null,
"e": 582,
"s": 172,
"text": "PyTorch has been an awesome deep learning framework that I have been working with. However, when it comes to NLP somehow I could not found as good utility library like torchvision. Turns out PyTorch has this torchtext, which, in my opinion, lack of exampl... |
Julia Programming - Data Frames | DataFrame may be defined as a table or spreadsheet which we can be used to sort as well as explore a set of related data values. In other words, we can call it a smarter array for holding tabular data. Before we use it, we need to download and install DataFrame and CSV packages as follows −
(@v1.5) pkg> add DataFrames
... | [
{
"code": null,
"e": 2370,
"s": 2078,
"text": "DataFrame may be defined as a table or spreadsheet which we can be used to sort as well as explore a set of related data values. In other words, we can call it a smarter array for holding tabular data. Before we use it, we need to download and install D... |
YAML - Quick Guide | YAML Ain't Markup Language is a data serialization language that matches user’s expectations about data. It designed to be human friendly and works perfectly with other programming languages. It is useful to manage data and includes Unicode printable characters. This chapter will give you an introduction to YAML and gi... | [
{
"code": null,
"e": 2404,
"s": 2048,
"text": "YAML Ain't Markup Language is a data serialization language that matches user’s expectations about data. It designed to be human friendly and works perfectly with other programming languages. It is useful to manage data and includes Unicode printable ch... |
Spring Boot Hibernate Example | Spring Boot Hibernate Integration | Boot CRUD Hibernate | 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 show a simp... | [
{
"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,
... |
Investigation Using Emails | The previous chapters discussed about the importance and the process of network forensics and the concepts involved. In this chapter, let us learn about the role of emails in digital forensics and their investigation using Python.
Emails play a very important role in business communications and have emerged as one of t... | [
{
"code": null,
"e": 2184,
"s": 1953,
"text": "The previous chapters discussed about the importance and the process of network forensics and the concepts involved. In this chapter, let us learn about the role of emails in digital forensics and their investigation using Python."
},
{
"code": ... |
Program to Insert new item in array on any position in PHP - GeeksforGeeks | 01 Oct, 2018
New item in an array can be inserted with the help of array_splice() function of PHP. This function removes a portion of an array and replaces it with something else. If offset and length are such that nothing is removed, then the elements from the replacement array are inserted in the place specified by t... | [
{
"code": null,
"e": 31431,
"s": 31403,
"text": "\n01 Oct, 2018"
},
{
"code": null,
"e": 31749,
"s": 31431,
"text": "New item in an array can be inserted with the help of array_splice() function of PHP. This function removes a portion of an array and replaces it with something el... |
Introducing Copula in Monte Carlo Simulation | by Rina Buoy | Towards Data Science | In the oil and gas industry, uncertainties are everywhere from the surface to the sub-surface. To embed the uncertainties in any estimation, probabilistic approaches are required.
One of the simple cases is a volumetric estimation. The formulas to estimate hydrocarbon (oil/gas) initially in place (HCIIP) are given belo... | [
{
"code": null,
"e": 352,
"s": 172,
"text": "In the oil and gas industry, uncertainties are everywhere from the surface to the sub-surface. To embed the uncertainties in any estimation, probabilistic approaches are required."
},
{
"code": null,
"e": 495,
"s": 352,
"text": "One of... |
How to write the first C++ program? | 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... |
Learn Beginner SQL in 5 steps in 5 minutes! | by Terence Shin | Towards Data Science | So you want to learn SQL? Great, you should!
In this article, I’m going to explain to you how to query with SQL in the easiest way possible. But first, let me define a couple of terms...
If this is the kind of stuff that you like, be one of the FIRST to subscribe to my new YouTube channel here! While there aren’t any v... | [
{
"code": null,
"e": 217,
"s": 172,
"text": "So you want to learn SQL? Great, you should!"
},
{
"code": null,
"e": 359,
"s": 217,
"text": "In this article, I’m going to explain to you how to query with SQL in the easiest way possible. But first, let me define a couple of terms...... |
\lbrack - Tex Command | \lbrack - Used to draw left bracket symbol.
{ \lbrack }
\lbrack command is used to draw left brace symbol.
\lbrack \frac ab, c \rbrack
[ab,c]
\left\lbrack \frac ab, c \right\rbrack
[ab,c]
\lbrack \frac ab, c \rbrack
[ab,c]
\lbrack \frac ab, c \rbrack
\left\lbrack \frac ab, c \right\rbrack
[ab,c]
\left\lbr... | [
{
"code": null,
"e": 8030,
"s": 7986,
"text": "\\lbrack - Used to draw left bracket symbol."
},
{
"code": null,
"e": 8042,
"s": 8030,
"text": "{ \\lbrack }"
},
{
"code": null,
"e": 8093,
"s": 8042,
"text": "\\lbrack command is used to draw left brace symbol."
... |
MySQL edit and update records including employee salary | The UPDATE command is used in MySQL to update records. With it, the SET command is used to set new values. Let us first create a table −
mysql> create table DemoTable
(
EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
EmployeeName varchar(50),
EmployeeSalary int
);
Query OK, 0 rows affected (0.57 sec)
Inser... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "The UPDATE command is used in MySQL to update records. With it, the SET command is used to set new values. Let us first create a table −"
},
{
"code": null,
"e": 1377,
"s": 1199,
"text": "mysql> create table DemoTable\n(\n Employee... |
When to use static methods in Java? | You should use static methods whenever,
The code in the method is not dependent on instance creation and is not using any instance variable.
A particular piece of code is to be shared by all the instance methods.
The definition of the method should not be changed or overridden.
you are writing utility classes which sho... | [
{
"code": null,
"e": 1102,
"s": 1062,
"text": "You should use static methods whenever,"
},
{
"code": null,
"e": 1203,
"s": 1102,
"text": "The code in the method is not dependent on instance creation and is not using any instance variable."
},
{
"code": null,
"e": 1275... |
Calculate the sum of the diagonal elements of a NumPy array - GeeksforGeeks | 05 Sep, 2020
Sometimes we need to find the sum of the Upper right, Upper left, Lower right, or lower left diagonal elements. Numpy provides us the facility to compute the sum of different diagonals elements using numpy.trace() and numpy.diagonal() method.
Method 1: Finding the sum of diagonal elements using numpy.trace... | [
{
"code": null,
"e": 24355,
"s": 24327,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 24598,
"s": 24355,
"text": "Sometimes we need to find the sum of the Upper right, Upper left, Lower right, or lower left diagonal elements. Numpy provides us the facility to compute the sum o... |
Achieve Glow Effect with CSS Filters | The glow effect is used to create a glow around the object. If it is a transparent image, then glow is created around the opaque pixels of it.
The following parameters can be used in this filter −
You can try to run the following code to create a glow around the object −
Live Demo
<html>
<head>
</head>
<body>... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "The glow effect is used to create a glow around the object. If it is a transparent image, then glow is created around the opaque pixels of it."
},
{
"code": null,
"e": 1259,
"s": 1205,
"text": "The following parameters can be used in... |
Comments in Octave GNU - GeeksforGeeks | 01 Aug, 2020
Octave is open-source, free available for many of the platforms. It is a high-level language. It comes up with a text interface along with an experimental graphical interface. It is also used for various Machine Learning algorithms for solving various numeric problems. You can say that it is similar to MAT... | [
{
"code": null,
"e": 24452,
"s": 24424,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 24787,
"s": 24452,
"text": "Octave is open-source, free available for many of the platforms. It is a high-level language. It comes up with a text interface along with an experimental graphica... |
Water drop problem - GeeksforGeeks | 06 Oct, 2021
Consider a pipe of length L. The pipe has N water droplets at N different positions within it. Each water droplet is moving towards the end of the pipe(x=L) at different rates. When a water droplet mixes with another water droplet, it assumes the speed of the water droplet it is mixing with. Determine the ... | [
{
"code": null,
"e": 26467,
"s": 26439,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 26855,
"s": 26467,
"text": "Consider a pipe of length L. The pipe has N water droplets at N different positions within it. Each water droplet is moving towards the end of the pipe(x=L) at dif... |
p5.js | setVolume() Function - GeeksforGeeks | 21 Nov, 2021
The setVolume() function is an inbuilt function in p5.js library. This function is used to control the volume of the played audio on the web. This function has a range of between (0.0) which means total silence to (1.0) which means full volume. This volume also can be controllable by a slider var by dividi... | [
{
"code": null,
"e": 25943,
"s": 25915,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 26280,
"s": 25943,
"text": "The setVolume() function is an inbuilt function in p5.js library. This function is used to control the volume of the played audio on the web. This function has a r... |
LISP - Cond Construct | The cond construct in LISP is most commonly used to permit branching.
Syntax for cond is −
(cond (test1 action1)
(test2 action2)
...
(testn actionn))
Each clause within the cond statement consists of a conditional test and an action to be performed.
If the first test following cond, test1, is evalua... | [
{
"code": null,
"e": 2130,
"s": 2060,
"text": "The cond construct in LISP is most commonly used to permit branching."
},
{
"code": null,
"e": 2151,
"s": 2130,
"text": "Syntax for cond is −"
},
{
"code": null,
"e": 2230,
"s": 2151,
"text": "(cond (test1 ac... |
DateTimeOffset.ToUnixTimeSeconds() Method in C# - GeeksforGeeks | 19 Mar, 2019
DateTimeOffset.ToUnixTimeSeconds Method is used to return the number of seconds that have elapsed since 1970-01-01T00:00:00Z. Before returning the Unix time, this method will convert the current instance to the UTC. And also, it will return a negative value for the date and time values before 1970-01-01T00... | [
{
"code": null,
"e": 25657,
"s": 25629,
"text": "\n19 Mar, 2019"
},
{
"code": null,
"e": 25973,
"s": 25657,
"text": "DateTimeOffset.ToUnixTimeSeconds Method is used to return the number of seconds that have elapsed since 1970-01-01T00:00:00Z. Before returning the Unix time, this ... |
Underscore.js _.first() Function - GeeksforGeeks | 24 Nov, 2021
The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without using any built-in objects.The _.first() function is used to return the first element of the array, i.e. the number at the zeroth index... | [
{
"code": null,
"e": 34957,
"s": 34929,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 35486,
"s": 34957,
"text": "The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even... |
How to convert number to words in an R data frame column? | To convert number to words in an R data frame column, we can use english function from english package. For example, if we have a data frame called df that contains a number column x then we can convert the numbers into words by using the command as.character(english(df$x)).
Consider the below data frame −
Live Demo
x... | [
{
"code": null,
"e": 1338,
"s": 1062,
"text": "To convert number to words in an R data frame column, we can use english function from english package. For example, if we have a data frame called df that contains a number column x then we can convert the numbers into words by using the command as.cha... |
How to use subList() in android CopyOnWriteArrayList? | Before getting into the example, we should know what CopyOnWriteArrayList is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.
This example demonstrates about How to use subList() in android CopyOnWriteArrayList
Step 1 − Create a new project in ... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "Before getting into the example, we should know what CopyOnWriteArrayList is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array."
},
{
"code": null,
"e": 1349,
"s":... |
wxPython - Create Static Box using Create() method - GeeksforGeeks | 08 Jul, 2020
In this article we are going to learn about Static Box in wxPython. A static box is a rectangle drawn around other windows to denote a logical grouping of items.In this article we will create Static Box using two step creation, in order to do that we will use Create() method.
Syntax: wx.StaticBox.Create(pa... | [
{
"code": null,
"e": 24134,
"s": 24106,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 24411,
"s": 24134,
"text": "In this article we are going to learn about Static Box in wxPython. A static box is a rectangle drawn around other windows to denote a logical grouping of items.In... |
Python Pandas - Extract the quarter of the date from the DateTimeIndex with specific time series frequency | To extract the quarter of the date from the DateTimeIndex with specific time series frequency, use the DateTimeIndex.quarter.
At first, import the required libraries −
import pandas as pd
Create a DatetimeIndex with period 6 and frequency as M i.e. Month. The timezone is Australia/Sydney −
datetimeindex = pd.date_range... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "To extract the quarter of the date from the DateTimeIndex with specific time series frequency, use the DateTimeIndex.quarter."
},
{
"code": null,
"e": 1230,
"s": 1188,
"text": "At first, import the required libraries −"
},
{
... |
How to create a breadcrumb navigation with CSS? | Following is the code to create breadcrumb navigation using CSS −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
margin: 0px;
margin-top: 10px;
padding: 0px;
}
.breadcrum... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Following is the code to create breadcrumb navigation using CSS −"
},
{
"code": null,
"e": 1139,
"s": 1128,
"text": " Live Demo"
},
{
"code": null,
"e": 2228,
"s": 1139,
"text": "<!DOCTYPE html>\n<html lang=\"en\"... |
Java NIO - Socket Channel | Java NIO socket channel is a selectable type channel which means it can be multiplexed using selector, used for stream oriented data flow connecting sockets.Socket channel can be created by invoking its static open() method,providing any pre-existing socket is not already present.Socket channel is created by invoking o... | [
{
"code": null,
"e": 2805,
"s": 1984,
"text": "Java NIO socket channel is a selectable type channel which means it can be multiplexed using selector, used for stream oriented data flow connecting sockets.Socket channel can be created by invoking its static open() method,providing any pre-existing so... |
Create a yellow button (warning) with Bootstrap | Use the .btn-warning class in Bootstrap to create a yellow button that indicates warning in Bootstrap.
You can try to run the following code to implement the .btn-warning class −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link rel = "stylesheet" href = "https://maxcdn.boots... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "Use the .btn-warning class in Bootstrap to create a yellow button that indicates warning in Bootstrap."
},
{
"code": null,
"e": 1241,
"s": 1165,
"text": "You can try to run the following code to implement the .btn-warning class −"
... |
Return two prime numbers | Practice | GeeksforGeeks | Given an even number N (greater than 2), return two prime numbers whose sum will be equal to given number. There are several combinations possible. Print only the pair whose minimum value is the smallest among all the minimum values of pairs and print the minimum element first.
NOTE: A solution will always exist, read ... | [
{
"code": null,
"e": 517,
"s": 238,
"text": "Given an even number N (greater than 2), return two prime numbers whose sum will be equal to given number. There are several combinations possible. Print only the pair whose minimum value is the smallest among all the minimum values of pairs and print the... |
Sort by subdocument in MongoDB | To sort by subdocument, use $sort in MongoDB. Let us create a collection with documents −
> db.demo245.insertOne(
... {
... "_id": 101,
... "deatils": [
... { "DueDate": new ISODate("2019-01-10"), "Value": 45},
... {"DueDate": new ISODate("2019-11-10"), "Value": 34 }
... ]
... }
...);... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "To sort by subdocument, use $sort in MongoDB. Let us create a collection with documents −"
},
{
"code": null,
"e": 1706,
"s": 1152,
"text": "> db.demo245.insertOne(\n... {\n... \"_id\": 101,\n... \"deatils\": [\n... ... |
init - Unix, Linux Command | Runlevels 0, 1, and 6 are reserved. Runlevel 0 is used to
halt the system, runlevel 6 is used to reboot the system, and runlevel
1 is used to get the system down into single user mode. Runlevel S
is not really meant to be used directly, but more for the scripts that are
executed when entering runlevel 1. For more infor... | [
{
"code": null,
"e": 10966,
"s": 10579,
"text": "\nRunlevels 0, 1, and 6 are reserved. Runlevel 0 is used to\nhalt the system, runlevel 6 is used to reboot the system, and runlevel\n1 is used to get the system down into single user mode. Runlevel S\nis not really meant to be used directly, but more ... |
Getting Started with OpenCV. First steps towards computer vision... | by Thiago Carvalho | Towards Data Science | A while back, I trained an object detection model for a college project, but honestly, I don’t remember much about it besides the fact it required lots of Redbulls and long nights watching my model train.
I’ve recently regained some interest in those topics, and I decided to start over and learn it again, but this time... | [
{
"code": null,
"e": 376,
"s": 171,
"text": "A while back, I trained an object detection model for a college project, but honestly, I don’t remember much about it besides the fact it required lots of Redbulls and long nights watching my model train."
},
{
"code": null,
"e": 535,
"s":... |
ByteBuffer getInt() method in Java with Examples - GeeksforGeeks | 17 Jun, 2019
The getInt() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into an int value according to the current byte order, and then increments the position by four.
Syntax:
public abstract int getInt()
Return Value: This method returns the ... | [
{
"code": null,
"e": 24211,
"s": 24183,
"text": "\n17 Jun, 2019"
},
{
"code": null,
"e": 24443,
"s": 24211,
"text": "The getInt() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into an int value according ... |
Count common elements in two arrays containing multiples of N and M - GeeksforGeeks | 15 Mar, 2021
Given two arrays such that the first array contains multiples of an integer n which are less than or equal to k and similarly, the second array contains multiples of an integer m which are less than or equal to k.The task is to find the number of common elements between the arrays.Examples:
Input :n=2 m=... | [
{
"code": null,
"e": 25560,
"s": 25532,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 25854,
"s": 25560,
"text": "Given two arrays such that the first array contains multiples of an integer n which are less than or equal to k and similarly, the second array contains multiples ... |
GATE | GATE-CS-2015 (Set 1) | Question 65 - GeeksforGeeks | 16 Nov, 2018
Consider the following C function.
int fun1 (int n){ int i, j, k, p, q = 0; for (i = 1; i<n; ++i) { p = 0; for (j = n; j > 1; j = j/2) ++p; for (k = 1; k < p; k = k*2) ++q; } return q;}
Which one of the following most closely approximates the return value of the fun... | [
{
"code": null,
"e": 24602,
"s": 24574,
"text": "\n16 Nov, 2018"
},
{
"code": null,
"e": 24637,
"s": 24602,
"text": "Consider the following C function."
},
{
"code": "int fun1 (int n){ int i, j, k, p, q = 0; for (i = 1; i<n; ++i) { p = 0; for (j = n; j > 1... |
Kali Linux – Password Cracking Tool | 02 Jun, 2021
Password cracking is a mechanism that is used in most of the parts of hacking. Exploitation uses it to exploit the applications by cracking their administrator or other account passwords, Information Gathering uses it when we have to get the social media or other accounts of the C.E.O. or other employees o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 489,
"s": 54,
"text": "Password cracking is a mechanism that is used in most of the parts of hacking. Exploitation uses it to exploit the applications by cracking their administrator or other accou... |
Using GitHub to host a free static website | 02 May, 2022
In this tutorial, we are going to learn about using GitHub to host our website, without paying anything at all, using GitHub Pages.
It’s important that you follow this link as a prerequisite to this tutorial.
A beginner may not be sure of whether to invest in buying server space, and GitHub gets their work... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 May, 2022"
},
{
"code": null,
"e": 186,
"s": 54,
"text": "In this tutorial, we are going to learn about using GitHub to host our website, without paying anything at all, using GitHub Pages."
},
{
"code": null,
"e": 263,
... |
Shapiro–Wilk Test in R Programming | 16 Jul, 2020
The Shapiro-Wilk’s test or Shapiro test is a normality test in frequentist statistics. The null hypothesis of Shapiro’s test is that the population is distributed normally. It is among the three tests for normality designed for detecting all kinds of departure from normality. If the value of p is equal to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jul, 2020"
},
{
"code": null,
"e": 681,
"s": 28,
"text": "The Shapiro-Wilk’s test or Shapiro test is a normality test in frequentist statistics. The null hypothesis of Shapiro’s test is that the population is distributed normally. It... |
Handling 404 Error in Flask | 15 Oct, 2020
Prerequisite: Creating simple application in Flask
A 404 Error is showed whenever a page is not found. Maybe the owner changed its URL and forgot to change the link or maybe they deleted the page itself. Every site needs a Custom Error page to avoid the user to see the default Ugly Error page.
GeeksforGeek... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 105,
"s": 54,
"text": "Prerequisite: Creating simple application in Flask"
},
{
"code": null,
"e": 349,
"s": 105,
"text": "A 404 Error is showed whenever a page is not found. Ma... |
Java SQL Timestamp getTime() function with examples | 06 Mar, 2019
The getTime() function is a part of Timestamp class of Java SQL.The function is used to get the time of the Timestamp object. The function returns time in milliseconds which represents the time in milliseconds after 1st January 1970.
Function Signature:
public long getTime()
Syntax:
ts1.getTime();
Paramete... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Mar, 2019"
},
{
"code": null,
"e": 262,
"s": 28,
"text": "The getTime() function is a part of Timestamp class of Java SQL.The function is used to get the time of the Timestamp object. The function returns time in milliseconds which r... |
Program to accept Strings starting with a Vowel | 20 May, 2021
Given string str consisting of alphabets, the task is to check whether the given string is starting with a Vowel or Not.
Examples:
Input: str = "Animal"
Output: Accepted
Input: str = "GeeksforGeeks"
Output: Not Accepted
Approach:
Find the first character of the string
Check if the first character of t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 May, 2021"
},
{
"code": null,
"e": 175,
"s": 54,
"text": "Given string str consisting of alphabets, the task is to check whether the given string is starting with a Vowel or Not."
},
{
"code": null,
"e": 186,
"s": 17... |
Print all the combinations of a string in lexicographical order | 23 Nov, 2021
Given a string str, print of all the combinations of a string in lexicographical order.Examples:
Input: str = "ABC"
Output:
A
AB
ABC
AC
ACB
B
BA
BAC
BC
BCA
C
CA
CAB
CB
CBA
Input: ED
Output:
D
DE
E
ED
Approach: Count the occurrences of all the characters in the string using a map, then using recursion ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 153,
"s": 54,
"text": "Given a string str, print of all the combinations of a string in lexicographical order.Examples: "
},
{
"code": null,
"e": 257,
"s": 153,
"text": "Input:... |
Java Program to Search an Element in a Linked List | 02 Nov, 2020
Prerequisite: LinkedList in java
LinkedList is a linear data structure where the elements are not stored in contiguous memory locations. Every element is a separate object known as a node with a data part and an address part. The elements are linked using pointers or references. Linked Lists are preferred ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Nov, 2020"
},
{
"code": null,
"e": 87,
"s": 54,
"text": "Prerequisite: LinkedList in java"
},
{
"code": null,
"e": 463,
"s": 87,
"text": "LinkedList is a linear data structure where the elements are not stored in... |
How to build a URL Shortener with Django ? | 26 Nov, 2020
Building a URL Shortener, Is one of the Best Beginner Project to Hone your Skills. In this article, we have shared the steps to build a URL shortener using Django Framework. To know more about Django visit – Django Tutorial
We need some things setup before we start with our project. We will be using Virtua... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 278,
"s": 54,
"text": "Building a URL Shortener, Is one of the Best Beginner Project to Hone your Skills. In this article, we have shared the steps to build a URL shortener using Django Framework. ... |
Pandas Built-in Data Visualization | ML | 24 Jun, 2019
Data Visualization is the presentation of data in graphical format. It helps people understand the significance of data by summarizing and presenting a huge amount of data in a simple and easy-to-understand format and helps communicate information clearly and effectively.
In this tutorial, we will learn ab... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2019"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "Data Visualization is the presentation of data in graphical format. It helps people understand the significance of data by summarizing and presenting a huge amount of data in ... |
Lexicographically smallest K-length substring containing maximum number of vowels | 12 May, 2022
Given string str containing only the lowercase English alphabet and an integer K, the task is to find a K length substring that contains the maximum number of vowels (i.e. ‘a’, ‘e’, ‘i’, ‘o’, ‘u’). If there are multiple such substrings, return the substring which is lexicographically smallest.
Examples: ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 351,
"s": 54,
"text": "Given string str containing only the lowercase English alphabet and an integer K, the task is to find a K length substring that contains the maximum number of vowels (i.e. ‘a... |
Working of top down parser | 12 Oct, 2021
In this article, we are going to cover working of top down parser and will see how we can take input and parse it and also cover some basics of top down.
Pre-requisite – Parsing
Top Down Parser :
In top down technique parse tree constructs from top and input will read from left to right. In top down, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 183,
"s": 28,
"text": "In this article, we are going to cover working of top down parser and will see how we can take input and parse it and also cover some basics of top down. "
},
{
"code"... |
Athena Health Interview Experience for Associate Member of Technical Staff 2020 (Virtual) - GeeksforGeeks | 04 Nov, 2020
Round 1 (Online Test – Day 1):
Platform: Hackerrank
Duration: 90 min
Mcq’s were based on Data Structure, OS, Pseudo Code Output DBMS.
Both Coding Questions were based on arrays and the difficulty level was moderate.
I was able to complete all 10 MCQ’s and one coding question of 75 marks and got shortliste... | [
{
"code": null,
"e": 24661,
"s": 24633,
"text": "\n04 Nov, 2020"
},
{
"code": null,
"e": 24692,
"s": 24661,
"text": "Round 1 (Online Test – Day 1):"
},
{
"code": null,
"e": 24714,
"s": 24692,
"text": "Platform: Hackerrank "
},
{
"code": null,
"e": ... |
How to use ImageView as a Button in Android? - GeeksforGeeks | 11 Feb, 2021
ImageView is used when we want to work with images or we want to display them in our application. So, this article will give you a complete idea of using an ImageView as a Button in android studio. So, without wasting further time let’s go to the article and read how we can achieve this task.
We will be bu... | [
{
"code": null,
"e": 24751,
"s": 24723,
"text": "\n11 Feb, 2021"
},
{
"code": null,
"e": 25045,
"s": 24751,
"text": "ImageView is used when we want to work with images or we want to display them in our application. So, this article will give you a complete idea of using an ImageV... |
Bulma - Tabs | Bulma provides tabbed navigation menu with different styles to display the content. You can create the tabbed navigation menu with base class of tabs and unordered list.
The below example demonstrates usage of tabs class to create tabbed navigation menu along with icons −
<!DOCTYPE html>
<html>
<head>
<meta ch... | [
{
"code": null,
"e": 1868,
"s": 1698,
"text": "Bulma provides tabbed navigation menu with different styles to display the content. You can create the tabbed navigation menu with base class of tabs and unordered list."
},
{
"code": null,
"e": 1971,
"s": 1868,
"text": "The below ex... |
Check if product of digits of a number at even and odd places is equal - GeeksforGeeks | 18 Jan, 2022
Given an integer N, the task is to check whether the product of digits at even and odd places of a number are equal. If they are equal, print Yes otherwise print No.
Examples:
Input: N = 2841 Output: Yes Product of digits at odd places = 2 * 4 = 8 Product of digits at even places = 8 * 1 = 8
Input: N = 43... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 24467,
"s": 24301,
"text": "Given an integer N, the task is to check whether the product of digits at even and odd places of a number are equal. If they are equal, print Yes otherwise print N... |
Beautiful Boxplots With Statistical Significance Annotation | by Serafeim Loukas | Towards Data Science | I always remember myself reading some nice scientific publications where the authors would have created some nice boxplots with statistical annotations. In most of these cases, a statistical test had been used to determine whether there was a statistically significant difference in the mean value of a specific feature ... | [
{
"code": null,
"e": 517,
"s": 171,
"text": "I always remember myself reading some nice scientific publications where the authors would have created some nice boxplots with statistical annotations. In most of these cases, a statistical test had been used to determine whether there was a statisticall... |
Machine Learning Workflow on Diabetes Data: Part 01 | by Lahiru Liyanapathirana | Towards Data Science | “Machine learning in a medical setting can help enhance medical diagnosis dramatically.”
This article will portray how data related to diabetes can be leveraged to predict if a person has diabetes or not. More specifically, this article will focus on how machine learning can be utilized to predict diseases such as diab... | [
{
"code": null,
"e": 261,
"s": 172,
"text": "“Machine learning in a medical setting can help enhance medical diagnosis dramatically.”"
},
{
"code": null,
"e": 699,
"s": 261,
"text": "This article will portray how data related to diabetes can be leveraged to predict if a person ha... |
C# | Get or set the value associated with specified key in ListDictionary - GeeksforGeeks | 01 Feb, 2019
ListDictionary.Item[Object] property is used to get or set the value associated with the specified key.
Syntax:
public object this[object key] { get; set; }
Here, key is the key whose value to get or set.
Return Value : The value associated with the specified key. If the specified key is not found, attemp... | [
{
"code": null,
"e": 24928,
"s": 24900,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 25032,
"s": 24928,
"text": "ListDictionary.Item[Object] property is used to get or set the value associated with the specified key."
},
{
"code": null,
"e": 25040,
"s": 25032,... |
A Complete Machine Learning Walk-Through in Python: Part Two | by Will Koehrsen | Towards Data Science | Assembling all the machine learning pieces needed to solve a problem can be a daunting task. In this series of articles, we are walking through implementing a machine learning workflow using a real-world dataset to see how the individual techniques come together.
In the first post, we cleaned and structured the data, p... | [
{
"code": null,
"e": 436,
"s": 172,
"text": "Assembling all the machine learning pieces needed to solve a problem can be a daunting task. In this series of articles, we are walking through implementing a machine learning workflow using a real-world dataset to see how the individual techniques come t... |
How to sum negative and positive values using GroupBy in Pandas? - GeeksforGeeks | 30 May, 2021
In this article, we will discuss how to calculate the sum of all negative numbers and positive numbers in DataFrame using the GroupBy method in Pandas.
To use the groupby() method use the given below syntax.
Syntax: df.groupby(column_name)
Step 1: Creating lambda functions to calculate positive-sum and neg... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 24053,
"s": 23901,
"text": "In this article, we will discuss how to calculate the sum of all negative numbers and positive numbers in DataFrame using the GroupBy method in Pandas."
},
{
... |
Plotly with Matplotlib and Chart Studio | This chapter deals with data visualization library titled Matplotlib and online plot maker named Chart Studio.
Matplotlib is a popular Python data visualization library capable of producing production-ready but static plots. you can convert your static matplotlib figures into interactive plots with the help of mpl_to_p... | [
{
"code": null,
"e": 2471,
"s": 2360,
"text": "This chapter deals with data visualization library titled Matplotlib and online plot maker named Chart Studio."
},
{
"code": null,
"e": 2721,
"s": 2471,
"text": "Matplotlib is a popular Python data visualization library capable of pr... |
C++ Program for Comb Sort? | The basic idea of comb sort and the bubble sort is same. In other words, comb sort is an improvement on the bubble sort. In the bubble sorting technique, the items are compared with the next item in each phase. But for the comb sort, the items are sorted in a specific gap. After completing each phase, the gap is decrea... | [
{
"code": null,
"e": 1646,
"s": 1062,
"text": "The basic idea of comb sort and the bubble sort is same. In other words, comb sort is an improvement on the bubble sort. In the bubble sorting technique, the items are compared with the next item in each phase. But for the comb sort, the items are sorte... |
Building A Deep Learning Model using Keras | by Eijaz Allibhai | Towards Data Science | Deep learning is an increasingly popular subset of machine learning. Deep learning models are built using neural networks. A neural network takes in inputs, which are then processed in hidden layers using weights that are adjusted during training. Then the model spits out a prediction. The weights are adjusted to find ... | [
{
"code": null,
"e": 638,
"s": 172,
"text": "Deep learning is an increasingly popular subset of machine learning. Deep learning models are built using neural networks. A neural network takes in inputs, which are then processed in hidden layers using weights that are adjusted during training. Then th... |
Karatsuba algorithm for fast multiplication using Divide and Conquer algorithm - GeeksforGeeks | 23 Feb, 2022
Given two binary strings that represent value of two integers, find the product of two strings. For example, if the first bit string is “1100” and second bit string is “1010”, output should be 120.
For simplicity, let the length of two strings be same and be n.
A Naive Approach is to follow the process we ... | [
{
"code": null,
"e": 24947,
"s": 24919,
"text": "\n23 Feb, 2022"
},
{
"code": null,
"e": 25145,
"s": 24947,
"text": "Given two binary strings that represent value of two integers, find the product of two strings. For example, if the first bit string is “1100” and second bit strin... |
Spring Boot - CrudRepository with Example - GeeksforGeeks | 22 Dec, 2021
Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-ready environment which enables the developers to directly focus on the logic instead of struggling with the configuration and setup. Sp... | [
{
"code": null,
"e": 24090,
"s": 24062,
"text": "\n22 Dec, 2021"
},
{
"code": null,
"e": 24564,
"s": 24090,
"text": "Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid pro... |
How do we create multiline comments in Python? | Comment is a piece of text in a computer program that is meant to be a programmer-readable explanation or annotation in the source code and not ignored by compiler/interpreter. In Python script, the symbol # indicates start of comment line.
C like block comment (/* .. */) is not available in Python. If more than one co... | [
{
"code": null,
"e": 1303,
"s": 1062,
"text": "Comment is a piece of text in a computer program that is meant to be a programmer-readable explanation or annotation in the source code and not ignored by compiler/interpreter. In Python script, the symbol # indicates start of comment line."
},
{
... |
How to compare float and double in C++? | Comparing floats and double variables depends on what your end goal is. If you want a runnable function without going too much in details and won't have a problem in some inaccurate calculations you can use the following function −
#include<iostream>
using namespace std;
// Define the error that you can tolerate
#defi... | [
{
"code": null,
"e": 1294,
"s": 1062,
"text": "Comparing floats and double variables depends on what your end goal is. If you want a runnable function without going too much in details and won't have a problem in some inaccurate calculations you can use the following function −"
},
{
"code":... |
Estimating Uncertainty in Machine Learning Models — Part 3 | by Gideon Mendels | Towards Data Science | Check out part 1 (here)and part 2 (here) of this series
Author: Dhruv Nair, data scientist, Comet.ml
In the last part of our series on uncertainty estimation, we addressed the limitations of approaches like bootstrapping for large models, and demonstrated how we might estimate uncertainty in the predictions of a neural... | [
{
"code": null,
"e": 228,
"s": 172,
"text": "Check out part 1 (here)and part 2 (here) of this series"
},
{
"code": null,
"e": 273,
"s": 228,
"text": "Author: Dhruv Nair, data scientist, Comet.ml"
},
{
"code": null,
"e": 519,
"s": 273,
"text": "In the last part... |
Python String isupper() Method | Python string method isupper() checks whether all the case-based characters (letters) of the string are uppercase.
Following is the syntax for isupper() method −
str.isupper()
NA
NA
This method returns true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise.... | [
{
"code": null,
"e": 2360,
"s": 2244,
"text": "Python string method isupper() checks whether all the case-based characters (letters) of the string are uppercase."
},
{
"code": null,
"e": 2407,
"s": 2360,
"text": "Following is the syntax for isupper() method −"
},
{
"code... |
NumPy - Quick Guide | NumPy is a Python package. It stands for 'Numerical Python'. It is a library consisting of multidimensional array objects and a collection of routines for processing of array.
Numeric, the ancestor of NumPy, was developed by Jim Hugunin. Another package Numarray was also developed, having some additional functionalitie... | [
{
"code": null,
"e": 2419,
"s": 2243,
"text": "NumPy is a Python package. It stands for 'Numerical Python'. It is a library consisting of multidimensional array objects and a collection of routines for processing of array."
},
{
"code": null,
"e": 2734,
"s": 2419,
"text": "Numeri... |
Java ResultSetMetaData getColumnCount() method with example? | The getColumnCount() method of the ResultSetMetaData (interface) retrieves the number of the columns of the current ResultSet object.
This method returns an integer value representing the number of columns.
To get the ResultSetMetaData object, you need to:
Register the Driver: Select the required database register the ... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "The getColumnCount() method of the ResultSetMetaData (interface) retrieves the number of the columns of the current ResultSet object."
},
{
"code": null,
"e": 1269,
"s": 1196,
"text": "This method returns an integer value representin... |
Arduino - Connecting Switch | Pushbuttons or switches connect two open terminals in a circuit. This example turns on the LED on pin 2 when you press the pushbutton switch connected to pin 8.
Pull-down resistors are used in electronic logic circuits to ensure that inputs to Arduino settle at expected logic levels if external devices are disconnected... | [
{
"code": null,
"e": 3031,
"s": 2870,
"text": "Pushbuttons or switches connect two open terminals in a circuit. This example turns on the LED on pin 2 when you press the pushbutton switch connected to pin 8."
},
{
"code": null,
"e": 3394,
"s": 3031,
"text": "Pull-down resistors a... |
Minimizing the cost function: Gradient descent | by XuanKhanh Nguyen | Towards Data Science | Imagine you are at the top of a mountain and want to descend. There may be many available paths, but you want to reach the bottom with a minimum number of steps. How can you come up with a solution? To answer that question, we will solve the gradient descent problem.
Gradient descent is one of the simplest algorithms t... | [
{
"code": null,
"e": 440,
"s": 172,
"text": "Imagine you are at the top of a mountain and want to descend. There may be many available paths, but you want to reach the bottom with a minimum number of steps. How can you come up with a solution? To answer that question, we will solve the gradient desc... |
🛰️ 4 Steps to Detect Coastline Changes from Satellite | by Alessio Vaccaro | Towards Data Science | Coasts are a very dynamic system in which the phenomena of erosion, and therefore of retreat, or advancement of the coastline are managed by numerous meteoclimatic, geological, biological and anthropic factors.
In the case where the action of marine abrasion is greater than the deposit, there are evident cases of coast... | [
{
"code": null,
"e": 383,
"s": 172,
"text": "Coasts are a very dynamic system in which the phenomena of erosion, and therefore of retreat, or advancement of the coastline are managed by numerous meteoclimatic, geological, biological and anthropic factors."
},
{
"code": null,
"e": 584,
... |
How to create an unordered list with disc bullets in HTML? | To create unordered list in HTML, use the <ul> tag. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which is small black circles.
For creating an unordered list with circle bullets, use CSS property list-style-t... | [
{
"code": null,
"e": 1301,
"s": 1062,
"text": "To create unordered list in HTML, use the <ul> tag. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which is small black circles."
},
{
... |
Java Program to check if a Float is Infinite or Not a Number(NAN) | To check if a Float is isInfinite, use the isInfinite() method and to check for NAN, use the isNaN() method.
Live Demo
public class Demo {
public static void main(String[] args) {
float value1 = (float) 1 / 0;
boolean res1 = Float.isInfinite(value1);
System.out.println("Checking for isInfinite? = ... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "To check if a Float is isInfinite, use the isInfinite() method and to check for NAN, use the isNaN() method."
},
{
"code": null,
"e": 1182,
"s": 1171,
"text": " Live Demo"
},
{
"code": null,
"e": 1540,
"s": 1182,
... |
Drawing a network graph with networkX and Matplotlib | To draw a network graph with networkx and matplotlib, plt.show() −
Set the figure size and adjust the padding between and around the subplots.
Set the figure size and adjust the padding between and around the subplots.
Make an object for a dataframe with the keys, from and to.
Make an object for a dataframe with the ke... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "To draw a network graph with networkx and matplotlib, plt.show() −"
},
{
"code": null,
"e": 1205,
"s": 1129,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e": 12... |
Modelling Regression Trees. How to program this classic Machine... | by Diego Lopez Yse | Towards Data Science | Decision Trees (DTs) are probably one of the most popular Machine Learning algorithms. In my post “The Complete Guide to Decision Trees”, I describe DTs in detail: their real-life applications, different DT types and algorithms, and their pros and cons. I’ve detailed how to program Classification Trees, and now it’s th... | [
{
"code": null,
"e": 520,
"s": 172,
"text": "Decision Trees (DTs) are probably one of the most popular Machine Learning algorithms. In my post “The Complete Guide to Decision Trees”, I describe DTs in detail: their real-life applications, different DT types and algorithms, and their pros and cons. I... |
What is the difference between GET and POST in Python CGI Programming? | You must have come across many situations when you need to pass some information from your browser to web server and ultimately to your CGI Program. Most frequently, browser uses two methods two pass this information to web server. These methods are GET Method and POST Method.
Passing Information using GET method
The G... | [
{
"code": null,
"e": 1340,
"s": 1062,
"text": "You must have come across many situations when you need to pass some information from your browser to web server and ultimately to your CGI Program. Most frequently, browser uses two methods two pass this information to web server. These methods are GET... |
Java Program to Count the Total Number of Vowels and Consonants in a String - GeeksforGeeks | 18 Aug, 2021
Given a String count the total number of vowels and consonants in this given string. Assuming String may contain only special characters, or white spaces, or a combination of all. The idea is to iterate the string and checks if that character is present in the reference string or not. If a character is pre... | [
{
"code": null,
"e": 25071,
"s": 25043,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 25485,
"s": 25071,
"text": "Given a String count the total number of vowels and consonants in this given string. Assuming String may contain only special characters, or white spaces, or a com... |
MVC Framework - Quick Guide | The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application. MVC is one of the most frequently used industry-standard web... | [
{
"code": null,
"e": 2412,
"s": 2025,
"text": "The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an applic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.