title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
When and why to ‘return false’ in JavaScript? | 14 Apr, 2020
Return statements, in programming languages, are used to skip the currently executing function and return to the caller function. Return statements may/may not return any value. Below is the example of a return statement in JavaScript.
Example 1:// The return statement returns// the product of 'a' and 'b'f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Apr, 2020"
},
{
"code": null,
"e": 290,
"s": 54,
"text": "Return statements, in programming languages, are used to skip the currently executing function and return to the caller function. Return statements may/may not return any val... |
HTML | <font> color Attribute | 28 Jul, 2021
The HTML <font> color Attribute is used to specify the text color inside the <font> element.
Syntax:
<font color="color_name|hex_number|rgb_number">
Attribute Values:
color_name: It sets the text color by using color name. For example: “red”.
hex_number: It sets the text color by using color hex code. For ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 147,
"s": 54,
"text": "The HTML <font> color Attribute is used to specify the text color inside the <font> element."
},
{
"code": null,
"e": 155,
"s": 147,
"text": "Syntax:"
}... |
Creating a C++ template in vim in Linux | 25 Jun, 2020
Vim allows users to create specific templates for files ending with certain extensions.
step 1: Create a template in ~/.vim/templates/ directory.A template is a skeleton content that can be fit into all the files ending with a certain specific extension.step 2: Add commands to ~/.vimrc file that directs vi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 140,
"s": 52,
"text": "Vim allows users to create specific templates for files ending with certain extensions."
},
{
"code": null,
"e": 427,
"s": 140,
"text": "step 1: Create a ... |
PL/SQL Transactions | 05 Dec, 2018
Prerequisites – PL/SQL Introduction, PL/SQL | User InputWrite a PL/SQL code that will accept an account number from user. Check if user balance is less than minimum balance than only deduct Rs 100 from balance. The process is fired on the acct_mstr.
Example – Consider the following scenario,
acct_master (a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Dec, 2018"
},
{
"code": null,
"e": 278,
"s": 28,
"text": "Prerequisites – PL/SQL Introduction, PL/SQL | User InputWrite a PL/SQL code that will accept an account number from user. Check if user balance is less than minimum balance th... |
How to get client IP address using JavaScript ? | 25 Nov, 2021
In this article, we will know how to get the client’s IP address in Javascript. An IP address is a combination of numbers that uniquely identifies one’s system. It’s like a house that has an address to get mail. Similarly, your computer has an address to receive the data from the web. The word protocol ref... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 568,
"s": 52,
"text": "In this article, we will know how to get the client’s IP address in Javascript. An IP address is a combination of numbers that uniquely identifies one’s system. It’s like a h... |
Reshaping Pandas Dataframes using Melt And Unmelt | 01 Oct, 2020
Pandas is an open-source, BSD-licensed library written in Python Language. Pandas provide high performance, fast, easy to use data structures and data analysis tools for manipulating numeric data and time series. Pandas is built on the Numpy library and written in languages like Python, Cython, and C. In 2... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 550,
"s": 28,
"text": "Pandas is an open-source, BSD-licensed library written in Python Language. Pandas provide high performance, fast, easy to use data structures and data analysis tools for manip... |
Import and Export Data using SQOOP | 10 Sep, 2020
SQOOP is basically used to transfer data from relational databases such as MySQL, Oracle to data warehouses such as Hadoop HDFS(Hadoop File System). Thus, when data is transferred from a relational database to HDFS, we say we are importing data. Otherwise, when we transfer data from HDFS to relational data... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Sep, 2020"
},
{
"code": null,
"e": 372,
"s": 28,
"text": "SQOOP is basically used to transfer data from relational databases such as MySQL, Oracle to data warehouses such as Hadoop HDFS(Hadoop File System). Thus, when data is transfe... |
Java Program to Compute GCD | 26 Nov, 2020
GCD (Greatest Common Divisor) of two given numbers A and B is the highest number that can divide both A and B completely, i.e., leaving remainder 0 in each case. GCD is also called HCF(Highest Common Factor). There are various approaches to find the GCD of two given numbers.
Approaches:
The GCD of the giv... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 304,
"s": 28,
"text": "GCD (Greatest Common Divisor) of two given numbers A and B is the highest number that can divide both A and B completely, i.e., leaving remainder 0 in each case. GCD is also c... |
MATLAB – Image Edge Detection using Sobel Operator from Scratch | 17 May, 2020
Sobel Operator: It is a discrete differentiation gradient-based operator. It computes the gradient approximation of image intensity function for image edge detection. At the pixels of an image, the Sobel operator produces either the normal to a vector or the corresponding gradient vector. It uses two 3 x 3... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 476,
"s": 28,
"text": "Sobel Operator: It is a discrete differentiation gradient-based operator. It computes the gradient approximation of image intensity function for image edge detection. At the p... |
ReactJS Evergreen Menu Component | 11 Jun, 2021
React Evergreen is a popular front-end library with a set of React components for building beautiful products as this library is flexible, sensible defaults, and User friendly. Menu Component allows the user to show a list of actions that the user can take. We can use the following approach in ReactJS to u... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 368,
"s": 28,
"text": "React Evergreen is a popular front-end library with a set of React components for building beautiful products as this library is flexible, sensible defaults, and User friendly... |
What is README.md File? | 08 Oct, 2021
A README file is an essential guide that gives other developers a detailed description of your GitHub project.
You may be wondering, Why anyone should spend time writing a README file. Well, here are some reasons to help convince you that it’s a good idea:
A good README helps your project to stand out from... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 163,
"s": 52,
"text": "A README file is an essential guide that gives other developers a detailed description of your GitHub project."
},
{
"code": null,
"e": 309,
"s": 163,
"te... |
Java Program to Convert Fahrenheit into Celsius | 24 Nov, 2020
Here we are converting Fahrenheit temperature value to Celsius temperature value. Fahrenheit and Celsius are the measures of temperature having Unit in degrees as oF and oC respectively.
Formula
Celsius = (Fahrenheit - 32) / 1.8
Approach
Initialize the value of Fahrenheit as 50.0 and Celsius as 0.0Calcula... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2020"
},
{
"code": null,
"e": 215,
"s": 28,
"text": "Here we are converting Fahrenheit temperature value to Celsius temperature value. Fahrenheit and Celsius are the measures of temperature having Unit in degrees as oF and oC re... |
Difference between Anonymous Inner Class and Lambda Expression | 16 Aug, 2021
It is an inner class without a name and for which only a single object is created. An anonymous inner class can be useful when making an instance of an object with certain “extras” such as overloading methods of a class or interface, without having to actually subclass a class.Anonymous inner classes are u... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 504,
"s": 52,
"text": "It is an inner class without a name and for which only a single object is created. An anonymous inner class can be useful when making an instance of an object with certain “e... |
Maximum number of characters between any two same character in a string | 08 Jul, 2022
Given a string, find the maximum number of characters between any two characters in the string. If no character repeats, print -1.
Examples:
Input : str = "abba"
Output : 2
The maximum number of characters are
between two occurrences of 'a'.
Input : str = "baaabcddc"
Output : 3
The maximum number of ch... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 186,
"s": 54,
"text": "Given a string, find the maximum number of characters between any two characters in the string. If no character repeats, print -1. "
},
{
"code": null,
"e": 198,
... |
Node.js GM write() Function | 11 Oct, 2021
The write() function is an inbuilt function in the GraphicsMagick library which is used to write an image to a file. If a file already exists, then it will be overwritten. The function returns the true value on success.Syntax:
write( filename )
Parameters: This function accepts single parameters as mentio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 256,
"s": 28,
"text": "The write() function is an inbuilt function in the GraphicsMagick library which is used to write an image to a file. If a file already exists, then it will be overwritten. The... |
Java ResultSet isBeforeFirst() method with example | When we execute certain SQL queries (SELECT query in general) they return tabular data.
The java.sql.ResultSet interface represents such tabular data returned by the SQL statements.
i.e. the ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database (executeQue... | [
{
"code": null,
"e": 1275,
"s": 1187,
"text": "When we execute certain SQL queries (SELECT query in general) they return tabular data."
},
{
"code": null,
"e": 1369,
"s": 1275,
"text": "The java.sql.ResultSet interface represents such tabular data returned by the SQL statements."... |
Ignore Outliers in ggplot2 Boxplot in R | 30 Jun, 2021
In this article, we will understand how we can ignore or remove outliers in ggplot2 Boxplot in R programming language.
Removing/ ignoring outliers is generally not a good idea because highlighting outliers is generally one of the advantages of using box plots. However, sometimes extreme outliers, on the ot... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 171,
"s": 52,
"text": "In this article, we will understand how we can ignore or remove outliers in ggplot2 Boxplot in R programming language."
},
{
"code": null,
"e": 809,
"s": 171,... |
crontab - Unix, Linux Command | crontab - Schedules commands execution at Specified time or time interval.
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
crontab [ -u user ] [ -i ] { -e | -l | -r }
crontab [ -u user ] [ -l | -r | -e ] [-i] [-s]
crontab is the program used to install, deinstall or list the tables used to drive the cron ... | [
{
"code": null,
"e": 10786,
"s": 10711,
"text": "crontab - Schedules commands execution at Specified time or time interval."
},
{
"code": null,
"e": 10939,
"s": 10786,
"text": "crontab [ -u user ] file\ncrontab [ -u user ] { -l | -r | -e }\ncrontab [ -u user ] [ -i ] { -e | -l | ... |
Python program to print all the common elements of two lists. | Given two lists, print all the common element of two lists.
Input : L1 = [5, 6, 7, 8, 9]
L2 = [5, 13, 34, 22, 90]
Output : {5}
The common elements of both the list is 5.
Step1 : create two user input lists.
Step2 : Convert the lists to sets and then print set1&set2.
Step3 : set1 and set2 returns the common el... | [
{
"code": null,
"e": 1247,
"s": 1187,
"text": "Given two lists, print all the common element of two lists."
},
{
"code": null,
"e": 1324,
"s": 1247,
"text": "Input : L1 = [5, 6, 7, 8, 9] \n L2 = [5, 13, 34, 22, 90]\nOutput : {5}\n"
},
{
"code": null,
"e": 1367,... |
Eggs dropping puzzle | Set 2 | 02 Jun, 2021
Given N eggs and K floors, the task is to find the minimum number of trials needed, in the worst case, to find the floor below which all floors are safe. A floor is safe if dropping an egg from it does not break the egg. Please refer n eggs and k floors for more insight.
Examples:
Input: N = 2, K = 10 Out... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 324,
"s": 52,
"text": "Given N eggs and K floors, the task is to find the minimum number of trials needed, in the worst case, to find the floor below which all floors are safe. A floor is safe if d... |
HTTP headers | X-Forwarded-Proto | 07 Nov, 2020
The HTTP headers are used to communicate between client and server. HTTP headers let the client and server pass additional information with an HTTP request or response. X-Forwarded-Proto (XPF) header is used to identifying the protocol that the client used to connect with a proxy or load balancer. It can b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Nov, 2020"
},
{
"code": null,
"e": 774,
"s": 28,
"text": "The HTTP headers are used to communicate between client and server. HTTP headers let the client and server pass additional information with an HTTP request or response. X-Forw... |
C# | Object Class | 08 Jun, 2022
The Object class is the base class for all the classes in the .Net Framework. It is present in the System namespace. In C#, the .NET Base Class Library(BCL) has a language-specific alias which is Object class with the fully qualified name as System.Object. Every class in C# is directly or indirectly derive... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 782,
"s": 52,
"text": "The Object class is the base class for all the classes in the .Net Framework. It is present in the System namespace. In C#, the .NET Base Class Library(BCL) has a language-sp... |
Finding All Wifi-Devices using Scapy Python - GeeksforGeeks | 24 Feb, 2021
Scapy is a library supported by both Python2 and Python3. It is used for interacting with the packets on the network. It has several functionalities through which we can easily forge and manipulate the packet. Through scapy module, we can create different network tools like ARP Spoofer, Network Scanner, pa... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 26094,
"s": 25665,
"text": "Scapy is a library supported by both Python2 and Python3. It is used for interacting with the packets on the network. It has several functionalities through which ... |
How to convert matrix rows into a list in R? | Depending on our objective, a matrix rows might be needed to converted into a list that means each row will be an element of the list. This can be done by using the function as.list but firstly we need to convert the matrix into data frame after transposing. For example, if we have a matrix called M then it’s rows will... | [
{
"code": null,
"e": 1440,
"s": 1062,
"text": "Depending on our objective, a matrix rows might be needed to converted into a list that means each row will be an element of the list. This can be done by using the function as.list but firstly we need to convert the matrix into data frame after transpo... |
Java Program to calculate the area of a triangle using Heron's Formula | Heron’s formula gives the area of a triangle when the length of all three sides are already known.
Let’s say we have the following three sides of a triangle −
s1 = 15191235.0;
s2 = 15191235.0;
s3 = 1.01235479;
Now, use the Heron’s formulae to find the area −
area = (s1+s2+s3)/2.0d;
resArea = Math.sqrt(area* (area - s1)... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "Heron’s formula gives the area of a triangle when the length of all three sides are already known."
},
{
"code": null,
"e": 1221,
"s": 1161,
"text": "Let’s say we have the following three sides of a triangle −"
},
{
"code": n... |
How to find minimum value in MongoDB? | To find the minimum value in MongoDB, you can use sort() along with limit(1). The syntax is as follows −
db.yourCollectionName.find().sort({yourFieldName: 1}).limit(1);
To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.findMinV... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "To find the minimum value in MongoDB, you can use sort() along with limit(1). The syntax is as follows −"
},
{
"code": null,
"e": 1231,
"s": 1167,
"text": "db.yourCollectionName.find().sort({yourFieldName: 1}).limit(1);"
},
{
... |
Shortest distance between given nodes in a bidirectional weighted graph by removing any K edges - GeeksforGeeks | 11 Oct, 2021
Given a positive integer K and a weighted undirected connected graph of N nodes and E edges as an array Edges[] of the type {u, v, W} representing the edges between Node u and Node v having weight W, the task is to find the shortest distance between the two given nodes S and D after reducing the cost of at... | [
{
"code": null,
"e": 24982,
"s": 24954,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 25310,
"s": 24982,
"text": "Given a positive integer K and a weighted undirected connected graph of N nodes and E edges as an array Edges[] of the type {u, v, W} representing the edges betwee... |
Length of longest subarray | Practice | GeeksforGeeks | Given an array A[] of size N, return length of the longest subarray of non- negative integers.
Note: Subarray here means a continuous part of the array.
Example 1:
Input :
N = 9
A[] = {2, 3, 4, -1, -2, 1, 5, 6, 3}
Output :
4
Explanation :
The subarray [ 1, 5, 6, 3] has longest length 4 and
contains no negative inte... | [
{
"code": null,
"e": 333,
"s": 238,
"text": "Given an array A[] of size N, return length of the longest subarray of non- negative integers."
},
{
"code": null,
"e": 393,
"s": 333,
"text": "Note: Subarray here means a continuous part of the array.\n "
},
{
"code": null,
... |
Tryit Editor v3.7 | CSS Grid Container
Tryit: Using align-content: space-evenly | [
{
"code": null,
"e": 28,
"s": 9,
"text": "CSS Grid Container"
}
] |
Include a header for a document or section in HTML5? | Use the <header> tag in HTML5 to add a header. The HTML <header> tag specifies a header for a document or section.
You can try to run the following code to include a header for a document −
<!DOCTYPE html>
<html>
<head>
<title>HTML Header Tag</title>
</head>
<body>
<header>
<h1>Simply Easy... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "Use the <header> tag in HTML5 to add a header. The HTML <header> tag specifies a header for a document or section."
},
{
"code": null,
"e": 1252,
"s": 1177,
"text": "You can try to run the following code to include a header for a doc... |
Explained: Deep Learning in Tensorflow — Chapter 0 | by Sonu Sharma | Towards Data Science | I guess people like to read about the things that they want the most and experience the least.— Bernard Lowe (Westworld)
And guess what? embarking on this series. The series illustrates Deep Learning. ML / DL! Hmm. Actually, DL is not different from ML, but DL(Deep Learning) is a subfield of ML(Machine Learning) concer... | [
{
"code": null,
"e": 292,
"s": 171,
"text": "I guess people like to read about the things that they want the most and experience the least.— Bernard Lowe (Westworld)"
},
{
"code": null,
"e": 727,
"s": 292,
"text": "And guess what? embarking on this series. The series illustrates ... |
Kotlin If ... Else Expressions | Kotlin supports the usual logical conditions from mathematics:
Less than: a < b
Less than or equal to: a <= b
Greater than: a > b
Greater than or equal to: a >= b
Equal to a == b
Not Equal to: a != b
You can use these conditions to perform different actions for different decisions.
Kotlin has the following conditionals... | [
{
"code": null,
"e": 63,
"s": 0,
"text": "Kotlin supports the usual logical conditions from mathematics:"
},
{
"code": null,
"e": 80,
"s": 63,
"text": "Less than: a < b"
},
{
"code": null,
"e": 110,
"s": 80,
"text": "Less than or equal to: a <= b"
},
{
... |
Load that &%$*# Checkpoint!. Tips and Tricks for a Successful... | by Anne Bonner | Towards Data Science | Having trouble loading that checkpoint?
ME TOO.
Being a part of the Udacity Facebook AI PyTorch Challenge has been unbelievably awesome and I’ve learned so much along the way. Having completed the final challenge, I wanted to share the tips and tricks made it possible to successfully submit my checkpoint for the deep l... | [
{
"code": null,
"e": 211,
"s": 171,
"text": "Having trouble loading that checkpoint?"
},
{
"code": null,
"e": 219,
"s": 211,
"text": "ME TOO."
},
{
"code": null,
"e": 550,
"s": 219,
"text": "Being a part of the Udacity Facebook AI PyTorch Challenge has been un... |
Analyzing Lending Club Loans with Python - A Tutorial | Towards Data Science | Marketplace lending is the site of possible discrimination or unfair lending practices. In this post series we study the spacial correlation between Redlining from 1935–40 and the peer-2-peer lending landscape of today.
As an Equal Housing Lender, a peer-2-peer lending marketplace should screen loan applications “witho... | [
{
"code": null,
"e": 392,
"s": 172,
"text": "Marketplace lending is the site of possible discrimination or unfair lending practices. In this post series we study the spacial correlation between Redlining from 1935–40 and the peer-2-peer lending landscape of today."
},
{
"code": null,
"e"... |
How to Visualize Decision Tree from a Random Forest Model? | by Satyam Kumar | Towards Data Science | Random Forest or Random Decision Forest is a supervised ensemble machine learning technique, for training classification and regression models. The training algorithm of random forest uses bagging or bootstrap aggregation technique, using decision tree as base learners. Random Forest uses randomization to reduce the bi... | [
{
"code": null,
"e": 520,
"s": 172,
"text": "Random Forest or Random Decision Forest is a supervised ensemble machine learning technique, for training classification and regression models. The training algorithm of random forest uses bagging or bootstrap aggregation technique, using decision tree as... |
How to remove Duplicate Records except a single record in MySQL? | You can use DELETE command with some condition for this since we need to keep one record and delete rest of the duplicate records.
Let us first create a table −
mysql> create table DemoTable
(
StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
StudentName varchar(40)
);
Query OK, 0 rows affected (0.48 sec)
Insert... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "You can use DELETE command with some condition for this since we need to keep one record and delete rest of the duplicate records."
},
{
"code": null,
"e": 1223,
"s": 1193,
"text": "Let us first create a table −"
},
{
"code":... |
How can I prevent a window from being resized with Tkinter? | Tkinter windows can be resized automatically by hovering and pulling over the window. We can disable the resizable property using the resizable(boolean value) method. We will pass false value to this method which will disable the window to be resized.
#Import the tkinter library
from tkinter import *
#Create an instan... | [
{
"code": null,
"e": 1314,
"s": 1062,
"text": "Tkinter windows can be resized automatically by hovering and pulling over the window. We can disable the resizable property using the resizable(boolean value) method. We will pass false value to this method which will disable the window to be resized."
... |
Java Files | File handling is an important part of any application.
Java has several methods for creating, reading, updating, and
deleting files.
The File class from the java.io package, allows
us to work with files.
To use the File class, create an object of
the class, and specify the filename or directory name:
import java.... | [
{
"code": null,
"e": 55,
"s": 0,
"text": "File handling is an important part of any application."
},
{
"code": null,
"e": 134,
"s": 55,
"text": "Java has several methods for creating, reading, updating, and \ndeleting files."
},
{
"code": null,
"e": 206,
"s": 134,... |
Introduction to Spark NLP: Foundations and Basic Components | by Veysel Kocaman | Towards Data Science | * This is the first article in a series of blog posts to help Data Scientists and NLP practitioners learn the basics of Spark NLP library from scratch and easily integrate it into their workflows. During this series, we will do our best to produce high-quality content and clear instructions with accompanying codes both... | [
{
"code": null,
"e": 957,
"s": 172,
"text": "* This is the first article in a series of blog posts to help Data Scientists and NLP practitioners learn the basics of Spark NLP library from scratch and easily integrate it into their workflows. During this series, we will do our best to produce high-qu... |
Multiply Matrices | Practice | GeeksforGeeks | Given two square Matrices A[][] and B[][]. Your task is to complete the function multiply which stores the multiplied matrices in a new matrix C[][].
Example 1:
Input:
N = 2
A[][] = {{7, 8}, {2 , 9}}
B[][] = {{14, 5}, {5, 18}}
Output:
C[][] = {{138, 179}, {73, 172}}
Example 2:
Input:
N = 2
A[][] = {{17, 4}, {17... | [
{
"code": null,
"e": 390,
"s": 238,
"text": "Given two square Matrices A[][] and B[][]. Your task is to complete the function multiply which stores the multiplied matrices in a new matrix C[][].\n "
},
{
"code": null,
"e": 401,
"s": 390,
"text": "Example 1:"
},
{
"code": ... |
Matplotlib.axes.Axes.annotate() in Python - GeeksforGeeks | 13 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute.
The Axe... | [
{
"code": null,
"e": 24567,
"s": 24539,
"text": "\n13 Apr, 2020"
},
{
"code": null,
"e": 24867,
"s": 24567,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ... |
Tryit Editor v3.7 | Tryit: Simple text shadow effect | [] |
Excel DAX - Working with Text and Dates | DAX can be used in the scenarios involving working along with text, extracting and composing date and time values or creating values based on a condition. You can do the following with DAX −
Create a key column in a table by concatenation.
Compose a date based on date parts extracted from a text date.
Define a custom d... | [
{
"code": null,
"e": 2440,
"s": 2249,
"text": "DAX can be used in the scenarios involving working along with text, extracting and composing date and time values or creating values based on a condition. You can do the following with DAX −"
},
{
"code": null,
"e": 2489,
"s": 2440,
... |
IDE | GeeksforGeeks | A computer science portal for geeks | Please enter your email address or userHandle.
12345678910111213141516171819202122232425262728293031323334353637/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online.Write your code in th... | [
{
"code": null,
"e": 164,
"s": 117,
"text": "Please enter your email address or userHandle."
}
] |
Coordinates of rectangle with given points lie inside - GeeksforGeeks | 03 May, 2021
Given two arrays X[] and Y[] with n-elements, where (Xi, Yi) represent a point on coordinate system, find the smallest rectangle such that all points from given input lie inside that rectangle and sides of rectangle must be parallel to Coordinate axis. Print all four coordinates of an obtained rectangle. N... | [
{
"code": null,
"e": 25402,
"s": 25374,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 25771,
"s": 25402,
"text": "Given two arrays X[] and Y[] with n-elements, where (Xi, Yi) represent a point on coordinate system, find the smallest rectangle such that all points from given in... |
Extremely Imbalanced data — Fraud detection | by Samir Gadkari | Towards Data Science | To fight fraud, we have to detect it first. When finding fraud, you have to consider:
if you try to find all cases of fraud, some of those cases will be mislabeled. This will cause innocent people to be charged with committing fraud.
if you try to keep innocent people from being charged, you will mislabel some of the f... | [
{
"code": null,
"e": 258,
"s": 172,
"text": "To fight fraud, we have to detect it first. When finding fraud, you have to consider:"
},
{
"code": null,
"e": 406,
"s": 258,
"text": "if you try to find all cases of fraud, some of those cases will be mislabeled. This will cause innoc... |
How can we retrieve file from database using JDBC? | The ResultSet interface provides the methods named getClob() and getCharacterStream() to retrieve Clob datatype, In which the contents of a file are typically stored.
These methods accept an integer representing the index of the column (or, a String value representing the name of the column) and retrieves the value at ... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "The ResultSet interface provides the methods named getClob() and getCharacterStream() to retrieve Clob datatype, In which the contents of a file are typically stored."
},
{
"code": null,
"e": 1404,
"s": 1229,
"text": "These methods a... |
How to Detect Random Walk and White Noise in Time Series Forecasting | by Bex T. | Towards Data Science | No matter how powerful, machine learning cannot predict everything. A well-known area where it can become pretty helpless is related to time series forecasting.
Despite the availability of a large suite of autoregressive models and many other algorithms for time series, you cannot predict the target distribution if it ... | [
{
"code": null,
"e": 333,
"s": 172,
"text": "No matter how powerful, machine learning cannot predict everything. A well-known area where it can become pretty helpless is related to time series forecasting."
},
{
"code": null,
"e": 533,
"s": 333,
"text": "Despite the availability ... |
Box-Cox Transformation: Explained | by Andrew Plummer | Towards Data Science | I recently started (re-)reading Forecasting: Principles and Practices to get a quick refresher on (you’ll never guess) forecasting!
The textbook is short, easy for beginners, and a wonderful appendage to the monstrous mess of books, YouTube videos, and MOOCs that aspiring data scientists simply “must” learn.
More impor... | [
{
"code": null,
"e": 303,
"s": 171,
"text": "I recently started (re-)reading Forecasting: Principles and Practices to get a quick refresher on (you’ll never guess) forecasting!"
},
{
"code": null,
"e": 481,
"s": 303,
"text": "The textbook is short, easy for beginners, and a wonde... |
Automatically Generate Machine Learning Code with Just a Few Clicks | by Kenneth Leung | Towards Data Science | Repeatedly writing template codes to train your machine learning (ML) models can be a huge pain.
While you may have base codes to work with (e.g., past projects, other teammates’ work), the manual customization of many code components like hyperparameters and input type can still cause unnecessary hassle.
This article ... | [
{
"code": null,
"e": 269,
"s": 172,
"text": "Repeatedly writing template codes to train your machine learning (ML) models can be a huge pain."
},
{
"code": null,
"e": 479,
"s": 269,
"text": "While you may have base codes to work with (e.g., past projects, other teammates’ work), ... |
Python - Replace negative values with latest preceding positive value in Pandas DataFrame | We want to replace the negative values with latest preceding positive value. With that, if there’s no positive preceding value, then the value should update to 0.
For example, the input is −
DataFrame:
One two
0 -2 -3
1 4 -7
2 6 5
3 0 -9
The output should be −
One two
0 0 0
1 7 0
2 4 2... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "We want to replace the negative values with latest preceding positive value. With that, if there’s no positive preceding value, then the value should update to 0."
},
{
"code": null,
"e": 1253,
"s": 1225,
"text": "For example, the in... |
C++ Casting Operators | A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator.
The most general cast supported by most of the C++ compilers is as follows −
(type) expression
Where type is the desired data type. There are ot... | [
{
"code": null,
"e": 2492,
"s": 2318,
"text": "A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator."
},
{
"code": null,
"e": 2569,
"s": 2492,
"text": "The most... |
Tryit Editor v3.7 | Tryit: HTML picture element | [] |
How to use string.Empty or String.Empty to initialize a string in C#? | Set the string as empty using the string.Empty in C# −
string myStr = string.Empty;
To check whether it is a string or not, use the IsNullOrEmpty() method −
if (string.IsNullOrEmpty(myStr)) {
Console.WriteLine("String is empty or null!");
}
The following is an example −
Live Demo
using System;
namespace Demo {
... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "Set the string as empty using the string.Empty in C# −"
},
{
"code": null,
"e": 1146,
"s": 1117,
"text": "string myStr = string.Empty;"
},
{
"code": null,
"e": 1219,
"s": 1146,
"text": "To check whether it is a st... |
Delete Edge to minimize subtree sum difference - GeeksforGeeks | 24 Nov, 2021
Given an undirected tree whose each node is associated with a weight. We need to delete an edge in such a way that difference between sum of weight in one subtree to sum of weight in other subtree is minimized.
Example:
In above tree,
We have 6 choices for edge deletion,
edge 0-1, subtree sum difference... | [
{
"code": null,
"e": 24743,
"s": 24715,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24954,
"s": 24743,
"text": "Given an undirected tree whose each node is associated with a weight. We need to delete an edge in such a way that difference between sum of weight in one subtree ... |
Visualizing Keras Models. Create an Image of the Model Summary | by Himanshu Sharma | Towards Data Science | Have you ever wondered how your neural network is actually connecting different neurons? Wouldn’t it be nice if you can visualize the model architecture that you have designed? Wouldn't it be nice if you can download your model architecture as an image that you can use while presenting? If you have a YES for all of thi... | [
{
"code": null,
"e": 526,
"s": 171,
"text": "Have you ever wondered how your neural network is actually connecting different neurons? Wouldn’t it be nice if you can visualize the model architecture that you have designed? Wouldn't it be nice if you can download your model architecture as an image th... |
Java 8 - Nashorn JavaScript | With Java 8, Nashorn, a much improved javascript engine is introduced, to replace the existing Rhino. Nashorn provides 2 to 10 times better performance, as it directly compiles the code in memory and passes the bytecode to JVM. Nashorn uses invoke dynamics feature, introduced in Java 7 to improve performance.
For Nasho... | [
{
"code": null,
"e": 2185,
"s": 1874,
"text": "With Java 8, Nashorn, a much improved javascript engine is introduced, to replace the existing Rhino. Nashorn provides 2 to 10 times better performance, as it directly compiles the code in memory and passes the bytecode to JVM. Nashorn uses invoke dynam... |
Time Series Analysis with Prophet: Air Passenger Data | by Michael Grogan | Towards Data Science | Prophet is a forecasting model by Facebook that forecasts time series using special adjustments for factors such as seasonality, holiday periods, and changepoints.
Let’s investigate this further by building a Prophet model to forecast air passenger numbers.
The dataset is sourced from the San Francisco International Ai... | [
{
"code": null,
"e": 335,
"s": 171,
"text": "Prophet is a forecasting model by Facebook that forecasts time series using special adjustments for factors such as seasonality, holiday periods, and changepoints."
},
{
"code": null,
"e": 429,
"s": 335,
"text": "Let’s investigate this... |
Three Jupyter Notebook Extensions That Minimize Distractions | by Lukas Frei | Towards Data Science | Jupyter notebook extensions, also known as nbextensions, are tools to help you improve your productivity. They provide many useful features, such as the so-called “Variable Inspector” that lets you keep track of all the variables you have defined. Nevertheless, there is a particular class of some lesser known nbextensi... | [
{
"code": null,
"e": 724,
"s": 172,
"text": "Jupyter notebook extensions, also known as nbextensions, are tools to help you improve your productivity. They provide many useful features, such as the so-called “Variable Inspector” that lets you keep track of all the variables you have defined. Neverth... |
Buffered Channel in Golang - GeeksforGeeks | 21 Dec, 2021
Channels can be defined as a pipes using which Goroutines communicate. Similar to water flows from one end to another in a pipe, data can be sent from one end and received from the another end using channels. By default channels are unbuffered, which states that they will only accept sends (chan <-) if the... | [
{
"code": null,
"e": 25739,
"s": 25711,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 26442,
"s": 25739,
"text": "Channels can be defined as a pipes using which Goroutines communicate. Similar to water flows from one end to another in a pipe, data can be sent from one end and ... |
Decimal.Truncate() Method in C# - GeeksforGeeks | 17 Feb, 2019
This method is used to get the integral digits of the specified Decimal by discarding any fractional digits. This method rounds the specified value to the nearest whole number by removing the digits after the decimal point.
Syntax: public static decimal Truncate (decimal d);Here, d is the decimal number wh... | [
{
"code": null,
"e": 24112,
"s": 24084,
"text": "\n17 Feb, 2019"
},
{
"code": null,
"e": 24336,
"s": 24112,
"text": "This method is used to get the integral digits of the specified Decimal by discarding any fractional digits. This method rounds the specified value to the nearest ... |
How to Color a Pandas DataFrame | by Roman Orac | Towards Data Science | Pandas needs no introduction as it became the de facto tool for Data Analysis in Python. As a Data Scientist, I use pandas daily and it never ceases to amaze me with better ways of achieving my goals.
Another useful feature that I learned recently is how to color a pandas Dataframe.
Here are few links that might intere... | [
{
"code": null,
"e": 372,
"s": 171,
"text": "Pandas needs no introduction as it became the de facto tool for Data Analysis in Python. As a Data Scientist, I use pandas daily and it never ceases to amaze me with better ways of achieving my goals."
},
{
"code": null,
"e": 455,
"s": 372... |
Difference Between Hashtable and Synchronized Map in Java - GeeksforGeeks | 22 Feb, 2021
The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve objects from a Hashtable, the objects used as keys must implement the hashCode method and also the equals method.
Features of Hashtable:
It is... | [
{
"code": null,
"e": 24858,
"s": 24830,
"text": "\n22 Feb, 2021"
},
{
"code": null,
"e": 25137,
"s": 24858,
"text": "The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve ... |
How To Save And Share your Machine Learning Models (Plus More), All With One File | by Victor Saenger | Towards Data Science | When dealing with Machine Learning models, it is usually recommended that you store them somewhere. At the private sector, you oftentimes train them and store them before production, while in research and for future model tuning it is a good idea to store them locally. I always use the amazing Python module pickle to d... | [
{
"code": null,
"e": 373,
"s": 47,
"text": "When dealing with Machine Learning models, it is usually recommended that you store them somewhere. At the private sector, you oftentimes train them and store them before production, while in research and for future model tuning it is a good idea to store ... |
How to add form validation for empty input fields with JavaScript? | To add form validation for empty input fields with JavaScript, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head></head>
<h1>JavaScript empty input field validation example</h1>
<form
name="Form1"
onsubmit="return emptyValidation()"
required>
Name: <input type="text" name="firstName" />
<input type="subm... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "To add form validation for empty input fields with JavaScript, the code is as follows −"
},
{
"code": null,
"e": 1161,
"s": 1150,
"text": " Live Demo"
},
{
"code": null,
"e": 1729,
"s": 1161,
"text": "<!DOCTYPE ht... |
How to create an event in React ? - GeeksforGeeks | 15 Aug, 2021
Each and every modern webpage that we create today tend to have user interactions. When the user interacts with the web application events are fired. That event can be a mouse click, a keypress, or something rare like connecting the battery with a charger. From the developer side, we need to ‘listen’ to su... | [
{
"code": null,
"e": 24397,
"s": 24369,
"text": "\n15 Aug, 2021"
},
{
"code": null,
"e": 24977,
"s": 24397,
"text": "Each and every modern webpage that we create today tend to have user interactions. When the user interacts with the web application events are fired. That event ca... |
visudo - Unix, Linux Command | There is a hard-coded list of editors that visudo will use set
at compile-time that may be overridden via the editor sudoers
Default variable. This list defaults to the path to vi(1) on
your system, as determined by the configure script. Normally,
visudo does not honor the VISUAL or EDITOR environment
variables unles... | [
{
"code": null,
"e": 11271,
"s": 10577,
"text": "\nThere is a hard-coded list of editors that visudo will use set\nat compile-time that may be overridden via the editor sudoers\nDefault variable. This list defaults to the path to vi(1) on\nyour system, as determined by the configure script. Normal... |
Be more efficient to produce ML models with mlflow | by Jean-Michel D | Towards Data Science | Hello, In this article I am going to make an experiment on a tool called mlflow that come out last year to help data scientist to better manage their machine learning model.
The idea of this article is not to build the perfect model for the use case where I am going to build a machine learning model, but more to dive o... | [
{
"code": null,
"e": 221,
"s": 47,
"text": "Hello, In this article I am going to make an experiment on a tool called mlflow that come out last year to help data scientist to better manage their machine learning model."
},
{
"code": null,
"e": 537,
"s": 221,
"text": "The idea of t... |
How can we do date and time math in Python? | It is very easy to do date and time maths in Python using timedelta objects. Whenever you want to add or subtract to a date/time, use a datetime.datetime(), then add or subtract datetime.timedelta() instances. A timedelta object represents a duration, the difference between two dates or times. The timedelta constructor... | [
{
"code": null,
"e": 1422,
"s": 1062,
"text": "It is very easy to do date and time maths in Python using timedelta objects. Whenever you want to add or subtract to a date/time, use a datetime.datetime(), then add or subtract datetime.timedelta() instances. A timedelta object represents a duration, t... |
C# Program to display the number of days in a month | Use the DaysInMonth to display the number of days in a month.
Add the year and month as a parameter for the DaysInMonth() method −
DateTime.DaysInMonth(2018, 8);
The following is an example −
Live Demo
using System;
using System.Collections.Generic;
using System.Linq;
public class Demo {
public static void Main() {... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "Use the DaysInMonth to display the number of days in a month."
},
{
"code": null,
"e": 1193,
"s": 1124,
"text": "Add the year and month as a parameter for the DaysInMonth() method −"
},
{
"code": null,
"e": 1224,
"s":... |
MySQLi - Regexps | You have seen MySQL pattern matching with LIKE ...%. MySQL supports another type of pattern matching operation based on regular expressions and the REGEXP operator. If you are aware of PHP or PERL, then it's very simple for you to understand because this matching is very similar to those scripting regular expressions.
... | [
{
"code": null,
"e": 2583,
"s": 2263,
"text": "You have seen MySQL pattern matching with LIKE ...%. MySQL supports another type of pattern matching operation based on regular expressions and the REGEXP operator. If you are aware of PHP or PERL, then it's very simple for you to understand because thi... |
How to determine the row that have min and max values in an R data frame column? | In data analysis, often we require to determine the minimum and maximum values because these values help us to understand the limits of a column or variable under consideration. This can be done by using which.max for maximum and which.min for minimum with single square brackets to extract the rows.
Consider the below ... | [
{
"code": null,
"e": 1363,
"s": 1062,
"text": "In data analysis, often we require to determine the minimum and maximum values because these values help us to understand the limits of a column or variable under consideration. This can be done by using which.max for maximum and which.min for minimum w... |
Find the first element of a Stream in Java - GeeksforGeeks | 04 Apr, 2020
Given a stream containing some elements, the task is to get the first element of the Stream in Java.
Example:
Input: Stream = {“Geek_First”, “Geek_2”, “Geek_3”, “Geek_4”, “Geek_Last”}Output: Geek_First
Input: Stream = {1, 2, 3, 4, 5, 6, 7}Output: 1
There are many methods to the find first elements in a Str... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n04 Apr, 2020"
},
{
"code": null,
"e": 23658,
"s": 23557,
"text": "Given a stream containing some elements, the task is to get the first element of the Stream in Java."
},
{
"code": null,
"e": 23667,
"s": 23658,
... |
Bootstrap 4 | Button Groups - GeeksforGeeks | 23 Jul, 2021
Bootstrap offers classes which allow to group buttons along the same line, horizontally or vertically. The buttons to be grouped are nested inside a <div> element with the class .btn-group.Horizontally arranged button groups: The .btn-group class is used to create horizontally arranged button groups.Exampl... | [
{
"code": null,
"e": 28360,
"s": 28332,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 28672,
"s": 28360,
"text": "Bootstrap offers classes which allow to group buttons along the same line, horizontally or vertically. The buttons to be grouped are nested inside a <div> element ... |
No slicer selected — No chart in Power BI | by Nikola Ilic | Towards Data Science | When working with Power BI on a daily basis, from time to time I like to “challenge” the tool and see how it behaves in some non-standard set-ups. I mean, we all like when our task is done in a short period of time, and Power BI has a whole variety of features to help us achieve that, but sometimes I feel like changing... | [
{
"code": null,
"e": 543,
"s": 172,
"text": "When working with Power BI on a daily basis, from time to time I like to “challenge” the tool and see how it behaves in some non-standard set-ups. I mean, we all like when our task is done in a short period of time, and Power BI has a whole variety of fea... |
Gson - Quick Guide | Google Gson is a simple Java-based library to serialize Java objects to JSON and vice versa. It is an open-source library developed by Google.
The following points highlight why you should be using this library −
Standardized − Gson is a standardized library that is managed by Google.
Standardized − Gson is a standardi... | [
{
"code": null,
"e": 2075,
"s": 1932,
"text": "Google Gson is a simple Java-based library to serialize Java objects to JSON and vice versa. It is an open-source library developed by Google."
},
{
"code": null,
"e": 2145,
"s": 2075,
"text": "The following points highlight why you ... |
How to plot a function in R? | Plotting a function in R is not a difficult task. We can do it simply with curve function but if the function is very complex then it inside curve function might be difficult. It totally depends on the understand of the person who wants to plot the function, if he or she is well versed with the function then it won’t t... | [
{
"code": null,
"e": 1427,
"s": 1062,
"text": "Plotting a function in R is not a difficult task. We can do it simply with curve function but if the function is very complex then it inside curve function might be difficult. It totally depends on the understand of the person who wants to plot the func... |
What is the difference between na.omit and na.rm in R? | The na.omit performs any calculation by considering the NA values but do not include them in the calculation, on the other hand, na.rm remove the NA values and then perform any calculation. For example, if a vector has one NA and 5 values in total then their sum using na.omit will be calculated by excluding NA and by u... | [
{
"code": null,
"e": 1431,
"s": 1062,
"text": "The na.omit performs any calculation by considering the NA values but do not include them in the calculation, on the other hand, na.rm remove the NA values and then perform any calculation. For example, if a vector has one NA and 5 values in total then ... |
Run Your Local Database in Docker! 🐳 | by Marte Løge | Towards Data Science | When setting up a new project there is sometimes a comprehensive list of prerequisites to be able to run a project. In this short tutorial, we will set up a local database using the docker image. As an example, we will use PostgreSQL but you are free to pick your database of choice.
Prerequisite: The first and only thi... | [
{
"code": null,
"e": 456,
"s": 172,
"text": "When setting up a new project there is sometimes a comprehensive list of prerequisites to be able to run a project. In this short tutorial, we will set up a local database using the docker image. As an example, we will use PostgreSQL but you are free to p... |
Android - MediaPlayer | Android provides many ways to control playback of audio/video files and streams. One of this way is through a class called MediaPlayer.
Android is providing MediaPlayer class to access built-in mediaplayer services like playing audio,video e.t.c. In order to use MediaPlayer, we have to call a static Method create() of ... | [
{
"code": null,
"e": 3743,
"s": 3607,
"text": "Android provides many ways to control playback of audio/video files and streams. One of this way is through a class called MediaPlayer."
},
{
"code": null,
"e": 4020,
"s": 3743,
"text": "Android is providing MediaPlayer class to acce... |
Print "Hello World" in C/C++ without using any header file - GeeksforGeeks | 02 Jun, 2017
Write a C/C++ program that prints Hello World without including any header file.
Conceptually it’s seems impractical to write a C/C++ program that print Hello World without using a header file of “stdio.h”. Since the declaration of printf() function contains in the “stdio.h” header file.
But we can easily ... | [
{
"code": null,
"e": 24152,
"s": 24124,
"text": "\n02 Jun, 2017"
},
{
"code": null,
"e": 24233,
"s": 24152,
"text": "Write a C/C++ program that prints Hello World without including any header file."
},
{
"code": null,
"e": 24441,
"s": 24233,
"text": "Conceptua... |
Recurrent Neural Networks. RNNs and how to implement them | by Victor Roman | Towards Data Science | The goal of this article is to explore Recurrent Neural Networks in-depth, which are a kind of Neural Networks with a different architecture than the ones seen in previous articles (Link).
Concretely, the article is segmented in the following parts:
What RNNs are
Long Short-Term Memory (LSTM) networks
Implementation of... | [
{
"code": null,
"e": 360,
"s": 171,
"text": "The goal of this article is to explore Recurrent Neural Networks in-depth, which are a kind of Neural Networks with a different architecture than the ones seen in previous articles (Link)."
},
{
"code": null,
"e": 421,
"s": 360,
"text"... |
A Practical Guide to Bootstrap in R | by Leihua Ye, PhD | Towards Data Science | updated on August–11–2020
Bootstrap is a resampling method with replacement.
It allows us to estimate the distribution of the population even from a single sample.
In Machine Learning, bootstrap estimates the prediction performance while applying to unobserved data.
For the dataset and R code, please check my Github (l... | [
{
"code": null,
"e": 198,
"s": 172,
"text": "updated on August–11–2020"
},
{
"code": null,
"e": 249,
"s": 198,
"text": "Bootstrap is a resampling method with replacement."
},
{
"code": null,
"e": 336,
"s": 249,
"text": "It allows us to estimate the distributio... |
ArrayList ensureCapacity() method in Java with Examples - GeeksforGeeks | 26 Nov, 2018
The ensureCapacity() method of java.util.ArrayList class increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
Syntax:
public void ensureCapacity(int minCapacity)
Parameters: This method takes ... | [
{
"code": null,
"e": 24605,
"s": 24577,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 24830,
"s": 24605,
"text": "The ensureCapacity() method of java.util.ArrayList class increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the n... |
How to set opacity of a text canvas using Fabric.js ? - GeeksforGeeks | 04 Sep, 2021
In this article, we are going to see how to set the opacity of a canvas-like text using FabricJS. The canvas means text written is movable, rotatable, resizable and can be stretched. Further, the text itself cannot be edited like a textbox.Approach: To make it possible we are going to use a JavaScript libr... | [
{
"code": null,
"e": 25483,
"s": 25455,
"text": "\n04 Sep, 2021"
},
{
"code": null,
"e": 26120,
"s": 25483,
"text": "In this article, we are going to see how to set the opacity of a canvas-like text using FabricJS. The canvas means text written is movable, rotatable, resizable an... |
Introduction to Express - GeeksforGeeks | 28 Mar, 2019
Prerequisite – Node.js
Express is a small framework that sits on top of Node.js’s web server functionality to simplify its APIs and add helpful new features.It makes it easier to organize your application’s functionality with middle ware and routing; it adds helpful utilities to Node.js’s HTTP objects;it f... | [
{
"code": null,
"e": 30969,
"s": 30941,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 30992,
"s": 30969,
"text": "Prerequisite – Node.js"
},
{
"code": null,
"e": 31326,
"s": 30992,
"text": "Express is a small framework that sits on top of Node.js’s web serv... |
Bootstrap 4 | Wells - GeeksforGeeks | 16 Jul, 2021
A bootstrap well is something like a bootstrap panel with round borders and padding around it. This is used to create some attention towards some content of the webpage. The .well class adds a rounded border around the element with a gray background color and some padding. But we can change the text color ... | [
{
"code": null,
"e": 28049,
"s": 28021,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 28450,
"s": 28049,
"text": "A bootstrap well is something like a bootstrap panel with round borders and padding around it. This is used to create some attention towards some content of the we... |
Flask - How to Upgrade/Downgrade Database Migrations? - 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
The relational databases are very good at sto... | [
{
"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,
... |
Using Standard Deviation in Python | by Reza Rajabi | Towards Data Science | As this article mentioned, with Standard Deviation you can get a handle on whether your data are close to the average or they are spread out over a wide range. For example, if an employer wants to determine if the salaries in one of his departments seem fair for all employees, or if there is a great disparity, he can u... | [
{
"code": null,
"e": 1009,
"s": 172,
"text": "As this article mentioned, with Standard Deviation you can get a handle on whether your data are close to the average or they are spread out over a wide range. For example, if an employer wants to determine if the salaries in one of his departments seem ... |
Bootstrap 4 .rounded-circle class | To create a rounded circle with Bootstrap, use the rounded-circle class.
Add the rounded-circle class in the <div>
<div class="test rounded-circle">
</div>
Above, we also have a test class, which is a CSS class to style the circle −
.test {
width: 270px;
height: 320px;
background-color: yellow;
}
You can try to r... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To create a rounded circle with Bootstrap, use the rounded-circle class."
},
{
"code": null,
"e": 1177,
"s": 1135,
"text": "Add the rounded-circle class in the <div>"
},
{
"code": null,
"e": 1218,
"s": 1177,
"text... |
Draw a triangle with centroid using OpenCV - GeeksforGeeks | 18 Dec, 2018
Prerequisite: Geometric shapes using OpenCV
Given three vertices of a triangle, write a Python program to find the centroid of the triangle and then draw the triangle with its centroid on a black window using OpenCV.
Examples:
Input: (100, 200) (50, 50) (300, 100)
Output: (150, 116)
Libraries Needed:
Open... | [
{
"code": null,
"e": 25871,
"s": 25843,
"text": "\n18 Dec, 2018"
},
{
"code": null,
"e": 25915,
"s": 25871,
"text": "Prerequisite: Geometric shapes using OpenCV"
},
{
"code": null,
"e": 26088,
"s": 25915,
"text": "Given three vertices of a triangle, write a Py... |
Difference between 'hidden' and 'aria-hidden' attributes in HTML - GeeksforGeeks | 25 Nov, 2021
The HyperText Markup Language (HTML) is a powerful web development tool combined with CSS and JavaScript. Apart from these, HTML also uses Accessible Rich Internet Application (ARIA) to make web content affable for a person with disabilities. Although ARIA is beneficial, there are keywords common to both H... | [
{
"code": null,
"e": 24378,
"s": 24350,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 24743,
"s": 24378,
"text": "The HyperText Markup Language (HTML) is a powerful web development tool combined with CSS and JavaScript. Apart from these, HTML also uses Accessible Rich Internet... |
How to multiply large numbers using Python? | You can multiply large numbers in python directly without worrying about speed. Python supports a "bignum" integer type which can work with arbitrarily large numbers. In Python 2.5+, this type is called long and is separate from the int type, but the interpreter will automatically use whichever is more appropriate.
As ... | [
{
"code": null,
"e": 1504,
"s": 1187,
"text": "You can multiply large numbers in python directly without worrying about speed. Python supports a \"bignum\" integer type which can work with arbitrarily large numbers. In Python 2.5+, this type is called long and is separate from the int type, but the ... |
Python | pandas.date_range() method | 17 Dec, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
pandas.date_range() is one of the general functions in Pandas which is used to return a fixed... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Types of VPN Tunneling | 27 Jun, 2022
Tunneling is the technique of putting an integrated data packet into another packet (which contains routing information) and sending it over the internet. The packets travel through a path which is known as tunnel. To secure a tunneled transmission against interception, all traffic over a VPN is encrypted ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 454,
"s": 53,
"text": "Tunneling is the technique of putting an integrated data packet into another packet (which contains routing information) and sending it over the internet. The packets travel ... |
Pathlib module in Python | 03 Oct, 2019
Pathlib module in Python provides various classes representing file system paths with semantics appropriate for different operating systems. This module comes under Python’s standard utility modules.
Path classes in Pathlib module are divided into pure paths and concrete paths. Pure paths provides only com... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 228,
"s": 28,
"text": "Pathlib module in Python provides various classes representing file system paths with semantics appropriate for different operating systems. This module comes under Python’s s... |
Largest BST in a Binary Tree | Set 2 | 28 Jun, 2022
Given a Binary Tree, write a function that returns the size of the largest subtree which is also a Binary Search Tree (BST). If the complete Binary Tree is BST, then return the size of the whole tree.Examples:
Input:
5
/ \
2 4
/ \
1 3
Output: 3
The following subtree is the
maxim... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 264,
"s": 52,
"text": "Given a Binary Tree, write a function that returns the size of the largest subtree which is also a Binary Search Tree (BST). If the complete Binary Tree is BST, then return t... |
Detect the Operating System of User using JavaScript | 19 Jul, 2019
The task is detect the operating system of User with the help of JavaScript. we’re going to discuss few techniques.
Approach:
Access the navigator.appVersion or navigator.userAgent property.
Get the index of the OS using indexOf() method.
If index is other than -1, then it is the OS, that we are looking fo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 144,
"s": 28,
"text": "The task is detect the operating system of User with the help of JavaScript. we’re going to discuss few techniques."
},
{
"code": null,
"e": 154,
"s": 144,
... |
Java Error – All illegal Modifier Combinations For Methods w.r.t Abstract | 11 Jan, 2022
In Java, we can apply a variety of modifiers to classes, methods, blocks, and variables and each one has a different use case and all of these primarily define how and where those classes, methods, blocks, and variables can be accessed and modified. But not all the modifiers can be applied simultaneously d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 597,
"s": 28,
"text": "In Java, we can apply a variety of modifiers to classes, methods, blocks, and variables and each one has a different use case and all of these primarily define how and where t... |
Numbers - GeeksforGeeks | 28 Jun, 2021
TYPES OF NUMBERS
Integers : All numbers whose fractional part is 0 (zero) like -3, -2, 1, 0, 10, 100 are integers.
Natural Numbers : Counting numbers like 1, 2, 3, 4, 5, 6 ... Basically, all integers greater than 0 are natural numbers ... More on Numbers
3, 9, 27, 81..............531441 form a G.P.
with a... | [
{
"code": null,
"e": 29577,
"s": 29549,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 29594,
"s": 29577,
"text": "TYPES OF NUMBERS"
},
{
"code": null,
"e": 29692,
"s": 29594,
"text": "Integers : All numbers whose fractional part is 0 (zero) like -3, -2, 1, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.