title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to Set Plot Background Color in Matplotlib? | 11 Dec, 2020
Prerequisites:
Matplotlib
Numpy
From the below figure one can infer that a plot consists of X-axis, Y-axis, plot title and the axes. By default, the color of the plot is white. If we have to set the background color of the plot so that our plot looks beautiful, we have to make the axes object, by using ax... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 70,
"s": 54,
"text": "Prerequisites: "
},
{
"code": null,
"e": 81,
"s": 70,
"text": "Matplotlib"
},
{
"code": null,
"e": 87,
"s": 81,
"text": "Numpy"
},
... |
OpenCV – Invert Mask | 30 Jun, 2021
In this article, we will learn how to invert a mask created on an image in OpenCV. Masking is a technique used to highlight a specific object from the image. It can be defined as setting certain pixels of an image to some null value such as 0 (black color) so only that portion of our image is highlighted w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 367,
"s": 28,
"text": "In this article, we will learn how to invert a mask created on an image in OpenCV. Masking is a technique used to highlight a specific object from the image. It can be defined... |
GOCC14: Google’s Online Coding Challenge – New Grad (India) | 25 Aug, 2020
The Google online challenge 2020 for new graduate 2021 was held on August 22. It was a 60-minute online test having 2 questions to code.
The exam was conducted on HackerEarth. But first, your resume should be shortlisted for the exam then they will send you link & passkey with the time span of 5 hr
i.e(min... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Aug, 2020"
},
{
"code": null,
"e": 191,
"s": 54,
"text": "The Google online challenge 2020 for new graduate 2021 was held on August 22. It was a 60-minute online test having 2 questions to code."
},
{
"code": null,
"e": ... |
Getting started with Classification | 03 Jul, 2022
As the name suggests, Classification is the task of “classifying things” into sub-categories. But, by a machine! If that doesn’t sound like much, imagine your computer being able to differentiate between you and a stranger. Between a potato and a tomato. Between an A grade and an F. Now, it sounds interest... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jul, 2022"
},
{
"code": null,
"e": 631,
"s": 52,
"text": "As the name suggests, Classification is the task of “classifying things” into sub-categories. But, by a machine! If that doesn’t sound like much, imagine your computer being ... |
Grids in Matplotlib | 22 Apr, 2020
Grids are made up of intersecting straight (vertical, horizontal and angular) or curved lines used to structure our content. Matplotlib helps us to draw plain graphs but it sometimes necessary to use grids for better understanding and get a reference for our data points. Thus, Matplotlib provides a grid() ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 396,
"s": 28,
"text": "Grids are made up of intersecting straight (vertical, horizontal and angular) or curved lines used to structure our content. Matplotlib helps us to draw plain graphs but it so... |
How to find the Index of value in Numpy Array ? | 08 Jun, 2022
In this article, we are going to find the index of the elements present in a NumPy array. The where() method is used to specify the index of a particular element specified in the condition.
Syntax:
numpy.where(condition)
Here, the condition is the condition specified.
Example 1:
In this program, we are goi... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 243,
"s": 53,
"text": "In this article, we are going to find the index of the elements present in a NumPy array. The where() method is used to specify the index of a particular element specified in... |
Path startsWith() method in Java with Examples | 23 Jul, 2019
startsWith() method of java.nio.file.Path usec to check if this path object starts with the given path or string which we passed as parameter.There are two types of startsWith() methods.
startsWith(String other) method of java.nio.file.Path used to check if this path starts with a Path, constructed by conv... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 215,
"s": 28,
"text": "startsWith() method of java.nio.file.Path usec to check if this path object starts with the given path or string which we passed as parameter.There are two types of startsWith... |
How to remove the table row in a table using JavaScript ? | 23 May, 2019
The remove() method is used to remove the table row from an HTML table using JavaScript.
remove() Method: This method removes the selected elements alongwith text and child nodes. This method also removes data and events of the selected elements.
Syntax:
node.remove()
Example 1: This example first selects ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 143,
"s": 54,
"text": "The remove() method is used to remove the table row from an HTML table using JavaScript."
},
{
"code": null,
"e": 301,
"s": 143,
"text": "remove() Method:... |
Hangman Game in Java | 26 Oct, 2020
Hangman is a popular word guessing game where the player endeavors to construct a lost word by speculating one letter at a time. After a certain number of off base surmises, the game finishes and the player loses. The game also finishes when the player accurately distinguishes all the letters of the lost w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Oct, 2020"
},
{
"code": null,
"e": 397,
"s": 28,
"text": "Hangman is a popular word guessing game where the player endeavors to construct a lost word by speculating one letter at a time. After a certain number of off base surmises, t... |
Java Program to Convert String to Float Value | 05 Aug, 2021
Given a string “str” in Java, the task is to convert this string to float type.
Methods:
This can be done by two methods as listed below:
Using parseFloat() Method Using valueOf() Method
Using parseFloat() Method
Using valueOf() Method
Let us discuss above two ways of implementing the methods to get a f... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 133,
"s": 53,
"text": "Given a string “str” in Java, the task is to convert this string to float type."
},
{
"code": null,
"e": 142,
"s": 133,
"text": "Methods:"
},
{
"c... |
Python | Make a simple window using kivy | 27 Jul, 2021
Kivy is a platform independent as it can be run on Android, IOS, linux and Windows etc. Kivy provides you the functionality to write the code for once and run it on different platforms. It is basically used to develop the Android application, but it Does not mean that it can not be used on Desktops applica... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Jul, 2021"
},
{
"code": null,
"e": 402,
"s": 53,
"text": "Kivy is a platform independent as it can be run on Android, IOS, linux and Windows etc. Kivy provides you the functionality to write the code for once and run it on different... |
Position of an element after stable sort | 06 Jul, 2022
Given an array of integers which may contain duplicate elements, an element of this array is given to us, we need to tell the final position of this element in the array, if a stable sort algorithm is applied.
Examples :
Input : arr[] = [3, 4, 3, 5, 2, 3, 4, 3, 1, 5], index = 5
Output : 4
Element initial... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 262,
"s": 52,
"text": "Given an array of integers which may contain duplicate elements, an element of this array is given to us, we need to tell the final position of this element in the array, if ... |
turtle.clearstamp() method in Python - GeeksforGeeks | 21 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
The turtle.clearstamp() method is used to delete all or first/last n of turtle’s stamps. T... | [
{
"code": null,
"e": 24468,
"s": 24440,
"text": "\n21 Jul, 2020"
},
{
"code": null,
"e": 24685,
"s": 24468,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it... |
Arduino - Blinking LED | LEDs are small, powerful lights that are used in many different applications. To start, we will work on blinking an LED, the Hello World of microcontrollers. It is as simple as turning a light on and off. Establishing this important baseline will give you a solid foundation as we work towards experiments that are more ... | [
{
"code": null,
"e": 3199,
"s": 2870,
"text": "LEDs are small, powerful lights that are used in many different applications. To start, we will work on blinking an LED, the Hello World of microcontrollers. It is as simple as turning a light on and off. Establishing this important baseline will give y... |
GATE | GATE-CS-2015 (Set 2) | Question 65 - GeeksforGeeks | 28 Jun, 2021
Consider the basic COCOMO model where E is the effort applied in person-months, D is the development time in chronological months, KLOC is the estimated number of delivered lines of code (in thousands) and ab, bb, cb, db have their usual meanings. The basic COCOMO equations are of the form.(A) E = ab(KLOC)... | [
{
"code": null,
"e": 24075,
"s": 24047,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24593,
"s": 24075,
"text": "Consider the basic COCOMO model where E is the effort applied in person-months, D is the development time in chronological months, KLOC is the estimated number of ... |
How to get a specific column record from SELECT query in MySQL? | Let us first create a table −
mysql> create table DemoTable1837
(
StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
StudentName varchar(20)
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1837(StudentName) values('Chris');
... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1263,
"s": 1092,
"text": "mysql> create table DemoTable1837\n (\n StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n StudentName varchar(20)\n );\nQuery OK, 0 r... |
Divide each row by a vector element using NumPy - GeeksforGeeks | 11 Oct, 2020
Prerequisite: Numpy module
The following article depicts how the rows of a Numpy array can be divided by a vector element. The vector element can be a single element, multiple element, or an array. Division operator ( / ) is employed to produce the required functionality. We can divide rows of 1-D, 2-D, o... | [
{
"code": null,
"e": 24683,
"s": 24655,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 24710,
"s": 24683,
"text": "Prerequisite: Numpy module"
},
{
"code": null,
"e": 25098,
"s": 24710,
"text": "The following article depicts how the rows of a Numpy array can... |
Every Data Scientist Should Know The Basics Of Linear Algebra | by Maurizio Sluijmers | Towards Data Science | Linear algebra is a field of mathematics that is widely used in various disciplines. The field of data science also leans on many different applications of linear algebra. This does not mean that every data scientist needs to have an extraordinary mathematical background, since the amount of math you will be dealing wi... | [
{
"code": null,
"e": 870,
"s": 172,
"text": "Linear algebra is a field of mathematics that is widely used in various disciplines. The field of data science also leans on many different applications of linear algebra. This does not mean that every data scientist needs to have an extraordinary mathema... |
Count of SubTrees with digit sum of all nodes equals to X - GeeksforGeeks | 16 Feb, 2022
Given a binary tree consisting of N nodes and a positive integer X. The task is to count the number of subtrees with the digit sum of nodes equals X.
Examples:
Input: N = 7, X = 29
10 / \ 2 3 / \ / \ 9 3 4 7
Output: 2Explanation: The whole binary tree... | [
{
"code": null,
"e": 24638,
"s": 24610,
"text": "\n16 Feb, 2022"
},
{
"code": null,
"e": 24789,
"s": 24638,
"text": "Given a binary tree consisting of N nodes and a positive integer X. The task is to count the number of subtrees with the digit sum of nodes equals X. "
},
{
... |
Determine the Weekday on a Specific Date in R Programming - weekdays() Function - GeeksforGeeks | 24 Jun, 2020
weekdays() function in R Language is used to determine the weekday on a specific date passed to it as argument.
Syntax: weekdays(date, abbreviate)
Parameters:date: Date to be checkedabbreviate: Boolean value to abbreviate weekday
Example 1:
# R program to find the weekday # on a specific date # Specifying... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n24 Jun, 2020"
},
{
"code": null,
"e": 25274,
"s": 25162,
"text": "weekdays() function in R Language is used to determine the weekday on a specific date passed to it as argument."
},
{
"code": null,
"e": 25309,
"s"... |
Python Program to Implement Depth First Search Traversal using Post Order | When it is required to implement depth first search using post order traversal, a tree class is created with methods to add element, search for a specific element, and perform post order traversal and so on. An instance of the class is created, and it can be used to access the methods.
Below is the demonstration of the... | [
{
"code": null,
"e": 1349,
"s": 1062,
"text": "When it is required to implement depth first search using post order traversal, a tree class is created with methods to add element, search for a specific element, and perform post order traversal and so on. An instance of the class is created, and it c... |
Tuning the Hyperparameters of your Machine Learning Model using GridSearchCV | by Wei-Meng Lee | Towards Data Science | Two of the key challenges in machine learning are finding the right algorithm to use and optimizing your model. If you are familiar with machine learning, you may have worked with algorithms like Linear Regression, Logistic Regression, Decision Trees, Support Vector Machines, etc. Once you have decided on using a parti... | [
{
"code": null,
"e": 928,
"s": 172,
"text": "Two of the key challenges in machine learning are finding the right algorithm to use and optimizing your model. If you are familiar with machine learning, you may have worked with algorithms like Linear Regression, Logistic Regression, Decision Trees, Sup... |
How to Fix: ‘numpy.ndarray’ object has no attribute ‘index’ - GeeksforGeeks | 28 Nov, 2021
‘numpy.ndarray’ object has no attribute ‘index’ is an attribute error which indicates that there is no index method or attribute available to use in Numpy array.
This error occurs when we try to find the index of a particular element in a Numpy array using the index method. Below code is an example when th... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 24374,
"s": 24212,
"text": "‘numpy.ndarray’ object has no attribute ‘index’ is an attribute error which indicates that there is no index method or attribute available to use in Numpy array."
... |
Maximum number of nodes which can be reached from each node in a graph. | 08 Nov, 2021
Given a graph with N nodes and K bidirectional edges between them find the number of nodes which can be reachable from a particular. Two nodes X and Y are said to be reachable if we can start at X and end at Y using any number of edges.
Note : A Node is reachable to itself.
Input : N = 7
1 ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 292,
"s": 54,
"text": "Given a graph with N nodes and K bidirectional edges between them find the number of nodes which can be reachable from a particular. Two nodes X and Y are said to be reachabl... |
What happens when more restrictive access is given to a derived class method in C++? | 18 May, 2021
We have discussed a similar topic in Java here. Unlike Java, C++ allows to give more restrictive access to derived class methods. For example the following program compiles fine.
C++
#include<iostream>using namespace std; class Base {public: virtual int fun(int i) { }}; class Derived: public Base {priv... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 234,
"s": 54,
"text": "We have discussed a similar topic in Java here. Unlike Java, C++ allows to give more restrictive access to derived class methods. For example the following program compiles f... |
Basic Syntax in R Programming | 22 Apr, 2020
R is the most popular language used for Statistical Computing and Data Analysis with the support of over 10, 000+ free packages in CRAN repository.
Like any other programming language, R has a specific syntax which is important to understand if you want to make use of its powerful features.
This article as... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 201,
"s": 53,
"text": "R is the most popular language used for Statistical Computing and Data Analysis with the support of over 10, 000+ free packages in CRAN repository."
},
{
"code": null... |
Find all Tables that contain a specific Column name in SQL Server - GeeksforGeeks | 21 Jan, 2021
As a SQL DBA, we might need to write a SQL Query to Find all Tables that Contain Specific Column Name with example.Below screenshot will show you the tables inside the database ‘SQL_DBA‘
Find all tables that contain a specific column name in SQL Database :In the below example, we are using INFORMATION_SCHE... | [
{
"code": null,
"e": 24268,
"s": 24240,
"text": "\n21 Jan, 2021"
},
{
"code": null,
"e": 24455,
"s": 24268,
"text": "As a SQL DBA, we might need to write a SQL Query to Find all Tables that Contain Specific Column Name with example.Below screenshot will show you the tables inside... |
Node.js Handling invalid routes - GeeksforGeeks | 14 Oct, 2021
While developing Node.Js application it is important to handle invalid routes.It can be done by writing a custom route or redirecting all the invalid routes to any custom page.
Step 1: Create a project folderCreate a separate folder for invalid routes project.
Step 2: Create package.jsonPackage.json will b... | [
{
"code": null,
"e": 24836,
"s": 24808,
"text": "\n14 Oct, 2021"
},
{
"code": null,
"e": 25013,
"s": 24836,
"text": "While developing Node.Js application it is important to handle invalid routes.It can be done by writing a custom route or redirecting all the invalid routes to any... |
How to use the ValidateScript attribute in PowerShell function? | The ValidateScript attribute is to validate the script before entering inside the function. For example, let say you want to validate the path of the file, validate the remote computer connectivity, etc. We will take here remote server connectivity example.
Without the ValidateScript attribute, we would have written th... | [
{
"code": null,
"e": 1320,
"s": 1062,
"text": "The ValidateScript attribute is to validate the script before entering inside the function. For example, let say you want to validate the path of the file, validate the remote computer connectivity, etc. We will take here remote server connectivity exam... |
PyQt5 - QLabel Widget | A QLabel object acts as a placeholder to display non-editable text or image, or a movie of animated GIF. It can also be used as a mnemonic key for other widgets. Plain text, hyperlink or rich text can be displayed on the label.
The following table lists the important methods defined in QLabel class −
setAlignment()
Ali... | [
{
"code": null,
"e": 2191,
"s": 1963,
"text": "A QLabel object acts as a placeholder to display non-editable text or image, or a movie of animated GIF. It can also be used as a mnemonic key for other widgets. Plain text, hyperlink or rich text can be displayed on the label."
},
{
"code": nul... |
Escape Sequences in Java - GeeksforGeeks | 29 Apr, 2020
A character with a backslash (\) just before it is an escape sequence or escape character. We use escape characters to perform some specific task. The total number of escape sequences or escape characters in Java is 8. Each escape character is a valid character literal.The list of Java escape sequences:
Wh... | [
{
"code": null,
"e": 24357,
"s": 24329,
"text": "\n29 Apr, 2020"
},
{
"code": null,
"e": 24662,
"s": 24357,
"text": "A character with a backslash (\\) just before it is an escape sequence or escape character. We use escape characters to perform some specific task. The total numbe... |
How to Create an Animated Splash Screen in Android? - GeeksforGeeks | 24 Nov, 2021
Prerequisites: How to Create a Splash Screen in Android using Kotlin?
Android Splash Screen is the first screen visible to the user when the application’s launched. Splash Screen is the user’s first experience with the application that’s why it is considered to be one of the most vital screens in the appli... | [
{
"code": null,
"e": 24263,
"s": 24235,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24333,
"s": 24263,
"text": "Prerequisites: How to Create a Splash Screen in Android using Kotlin?"
},
{
"code": null,
"e": 24888,
"s": 24333,
"text": "Android Splash Scree... |
Batch Script - VER | This batch command shows the version of MS-DOS you are using.
ver
@echo off
ver
The output of the above command is as follows. The version number will depend upon the operating system you are working on.
Microsoft Windows [Version 6.3.9600]
Print
Add Notes
Bookmark this page | [
{
"code": null,
"e": 2231,
"s": 2169,
"text": "This batch command shows the version of MS-DOS you are using."
},
{
"code": null,
"e": 2236,
"s": 2231,
"text": "ver\n"
},
{
"code": null,
"e": 2251,
"s": 2236,
"text": "@echo off \nver"
},
{
"code": null,... |
Regular Expression \b Metacharacter in Java | The subexpression/metacharacter “\b” matches the word boundaries when outside the brackets. Matches the backspace (0x08) when inside the brackets.
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexExample {
public static void main( String args[] ) {
Str... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "The subexpression/metacharacter “\\b” matches the word boundaries when outside the brackets. Matches the backspace (0x08) when inside the brackets."
},
{
"code": null,
"e": 1748,
"s": 1209,
"text": "import java.util.Scanner;\nimport ... |
Construct expression tree | Practice | GeeksforGeeks | Given a postfix expression. Your task is to complete the method constructTree(). The output of the program will print the infix expression of the given postfix expression.
Input:
The constructTree() function takes a single argument as input, character array containing the given postfix expression.
Output:
Infix expres... | [
{
"code": null,
"e": 1051,
"s": 238,
"text": "Given a postfix expression. Your task is to complete the method constructTree(). The output of the program will print the infix expression of the given postfix expression.\n\nInput:\nThe constructTree() function takes a single argument as input, characte... |
Detecting Fake News With Deep Learning | by Aaron Abrahamson | Towards Data Science | I have been wanting to do a small project involving text classification for a while, and decided to try out an architecture that I have not used before: long short-term memory (LSTM). In short: LSTM’s are a type of recurrent neural network (RNN) that are able to remember information for a long time (an advantage over a... | [
{
"code": null,
"e": 612,
"s": 172,
"text": "I have been wanting to do a small project involving text classification for a while, and decided to try out an architecture that I have not used before: long short-term memory (LSTM). In short: LSTM’s are a type of recurrent neural network (RNN) that are ... |
Python - Scatter Plots | Scatterplots show many points plotted in the Cartesian plane. Each point represents the values of two variables. One variable is chosen in the horizontal axis and another in the vertical axis.
Scatter plot can be created using the DataFrame.plot.scatter() methods.
import pandas as pd
import numpy as np
df = pd.DataFram... | [
{
"code": null,
"e": 2722,
"s": 2529,
"text": "Scatterplots show many points plotted in the Cartesian plane. Each point represents the values of two variables. One variable is chosen in the horizontal axis and another in the vertical axis."
},
{
"code": null,
"e": 2794,
"s": 2722,
... |
How To Configure Julia Packages. An in-depth look at configuring and... | by Emmett Boudreau | Towards Data Science | Video for this article:
Repository for our project:
github.com
In the previous addition of “ The Comprehensive Julia Tutorial,” we went over the basics of working with Project.toml files and virtual environments in the Julia programming language. If you haven’t read or watched that iteration of this tutorial series, yo... | [
{
"code": null,
"e": 196,
"s": 172,
"text": "Video for this article:"
},
{
"code": null,
"e": 224,
"s": 196,
"text": "Repository for our project:"
},
{
"code": null,
"e": 235,
"s": 224,
"text": "github.com"
},
{
"code": null,
"e": 552,
"s": 235... |
How to place table text into center using Bootstrap? - GeeksforGeeks | 05 Aug, 2020
Tables allow us to aggregate a huge amount of data and present it in a clear and orderly way. A basic Bootstrap table has a light padding and only horizontal dividers. The base class is .table to any table,and after adding it we can extend with custom styles or our various included modifier classes to our... | [
{
"code": null,
"e": 28049,
"s": 28021,
"text": "\n05 Aug, 2020"
},
{
"code": null,
"e": 28387,
"s": 28049,
"text": "Tables allow us to aggregate a huge amount of data and present it in a clear and orderly way. A basic Bootstrap table has a light padding and only horizontal divid... |
Evaluation Metrics. Exploring different methods to evaluate... | by Shubham Dhingra | Towards Data Science | This is part 1 of the 2 article series where we discuss different evaluation metrics for Machine Learning (ML) problems. Evaluating an algorithm’s output is as important as modeling the algorithm itself. Evaluating a program helps in determining how impactful is the program and how it could be improved. In this article... | [
{
"code": null,
"e": 571,
"s": 172,
"text": "This is part 1 of the 2 article series where we discuss different evaluation metrics for Machine Learning (ML) problems. Evaluating an algorithm’s output is as important as modeling the algorithm itself. Evaluating a program helps in determining how impac... |
How to get rows and columns of 2D array in Java? | Following example helps to determine the rows and columns of a two-dimensional array with the use of arrayname.length.
Following example helps to determine the upper bound of a two dimensional array with the use of arrayname.length.
public class Main {
public static void main(String args[]) {
String[][] data ... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "Following example helps to determine the rows and columns of a two-dimensional array with the use of arrayname.length."
},
{
"code": null,
"e": 1296,
"s": 1181,
"text": "Following example helps to determine the upper bound of a two d... |
Cypress - Quick Guide | Cypress is an open-source and free test automation tool, which can be used extensively in the long run. It is mainly used for front end test automation. This tool is mainly developed to solve the issues that the teams face, while automating an application.
Cypress helps to achieve the following −
Configure tests.
Confi... | [
{
"code": null,
"e": 2754,
"s": 2497,
"text": "Cypress is an open-source and free test automation tool, which can be used extensively in the long run. It is mainly used for front end test automation. This tool is mainly developed to solve the issues that the teams face, while automating an applicati... |
How to create a fixed side navigation menu with CSS? | Following is the code to create a fixed side navigation menu 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;
}
na... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "Following is the code to create a fixed side navigation menu using CSS −"
},
{
"code": null,
"e": 1146,
"s": 1135,
"text": " Live Demo"
},
{
"code": null,
"e": 2186,
"s": 1146,
"text": "<!DOCTYPE html>\n<html lang... |
Amazon SageMaker and 🤗 Transformers: Train and Deploy a Summarization Model with a Custom Dataset | by João Moura | Towards Data Science | On March 25th 2021, Amazon SageMaker and HuggingFace announced a collaboration which intends to make it easier to train state-of-the-art NLP models, using the accessible Transformers library. HuggingFace Deep Learning Containers open up a vast collection of pre-trained models for direct use with the SageMaker SDK, maki... | [
{
"code": null,
"e": 1008,
"s": 172,
"text": "On March 25th 2021, Amazon SageMaker and HuggingFace announced a collaboration which intends to make it easier to train state-of-the-art NLP models, using the accessible Transformers library. HuggingFace Deep Learning Containers open up a vast collection... |
java.time.OffsetDateTime.of() Method Example | The java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) method obtains an instance of OffsetDateTime from a date, time and offset.
Following is the declaration for java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) method.
public static OffsetDateTime of(LocalDate ... | [
{
"code": null,
"e": 2073,
"s": 1915,
"text": "The java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) method obtains an instance of OffsetDateTime from a date, time and offset."
},
{
"code": null,
"e": 2193,
"s": 2073,
"text": "Following is the declara... |
Java Examples - Play sound using Applet? | How to play sound using Applet?
Following example demonstrates how to play a sound using an applet image using getAudioClip(), play() & stop() methods of AudioClip() class.
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class PlaySoundApplet extends Applet implements ActionListener {
Butto... | [
{
"code": null,
"e": 2100,
"s": 2068,
"text": "How to play sound using Applet?"
},
{
"code": null,
"e": 2241,
"s": 2100,
"text": "Following example demonstrates how to play a sound using an applet image using getAudioClip(), play() & stop() methods of AudioClip() class."
},
{... |
Scala Collections - FoldLeft Method | foldLeft() method is a member of TraversableOnce trait, it is used to collapse elements of collections. It navigates elements from Left to Right order. It is primarily used in recursive functions and prevents stack overflow exceptions.
The following is the syntax of fold method.
def foldLeft[B](z: B)(op: (B, A) ? B): ... | [
{
"code": null,
"e": 3119,
"s": 2882,
"text": "foldLeft() method is a member of TraversableOnce trait, it is used to collapse elements of collections. It navigates elements from Left to Right order. It is primarily used in recursive functions and prevents stack overflow exceptions."
},
{
"c... |
DataTables info Option - GeeksforGeeks | 31 May, 2021
DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to be searched, sorted, and filtered according to the needs of the user. The DataTable also exposes a powerful API that can be further used to mod... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 25638,
"s": 25300,
"text": "DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to... |
Difference between constants and final variables in Java? | A constant variable is the one whose value is fixed and only one copy of it exists in the program. Once you declare a constant variable and assign value to it, you cannot change its value again throughout the program.
Unlike in C language constants are not supported in Java(directly). But, you can still create a consta... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "A constant variable is the one whose value is fixed and only one copy of it exists in the program. Once you declare a constant variable and assign value to it, you cannot change its value again throughout the program."
},
{
"code": null,
"e"... |
accept command in Linux with Examples - GeeksforGeeks | 30 Jun, 2020
In Linux, accept command is used to request the printer to start accepting print requests in the print queue for a named destination that could be a printer or a class of printer. It also enables the user to submit the print requests to the printer, even when the printer is not connected to the system. The... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n30 Jun, 2020"
},
{
"code": null,
"e": 24779,
"s": 24406,
"text": "In Linux, accept command is used to request the printer to start accepting print requests in the print queue for a named destination that could be a printer or a c... |
How to Perform Explainable Machine Learning Classification — Without Any Trees | by Ilan Moscovitz | Towards Data Science | Strict and clear rules... appear to us as something in the background — hidden in the medium of the understanding. - Ludwig Wittgenstein
Decision trees are a popular technique for classification. They’re intuitive, easy to interpret, and often perform well out-of-the-box.
Tree models are paths of rules that humans can ... | [
{
"code": null,
"e": 308,
"s": 171,
"text": "Strict and clear rules... appear to us as something in the background — hidden in the medium of the understanding. - Ludwig Wittgenstein"
},
{
"code": null,
"e": 444,
"s": 308,
"text": "Decision trees are a popular technique for classi... |
QTP Interview Questions | Dear readers, these QTP Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of QTP. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start wi... | [
{
"code": null,
"e": 2552,
"s": 2122,
"text": "Dear readers, these QTP Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of QTP. As per my experience good interviewers hardly plan to ask any par... |
Android - AutoCompleteTextView Control | A AutoCompleteTextView is a view that is similar to EditText, except that it shows a list of completion suggestions automatically while the user is typing.
The list of suggestions is displayed in drop down menu. The user can choose an item from there to replace the content of edit box with.
Following are the important ... | [
{
"code": null,
"e": 3763,
"s": 3607,
"text": "A AutoCompleteTextView is a view that is similar to EditText, except that it shows a list of completion suggestions automatically while the user is typing."
},
{
"code": null,
"e": 3899,
"s": 3763,
"text": "The list of suggestions is... |
MomentJS - Start of Time | Start of Time method will set the display to the start of the unit given.
moment().startOf(String);
var day = moment().startOf('year');
This will display the first day of the year and will set the time, that is hours, minutes, seconds to 00:00:00 as shown below −
var day = moment().startOf('month');
This will display ... | [
{
"code": null,
"e": 2034,
"s": 1960,
"text": "Start of Time method will set the display to the start of the unit given."
},
{
"code": null,
"e": 2061,
"s": 2034,
"text": "moment().startOf(String);\n"
},
{
"code": null,
"e": 2097,
"s": 2061,
"text": "var day =... |
How to properly ship and deploy your machine learning model | by Tivadar Danka | Towards Data Science | As a data scientist, training your machine learning model is only a part of providing a solution for the client. Besides generating and cleaning the data, selecting and tuning the algorithms, you also need to deliver and deploy your results so that it is usable in production. This is a large field in itself with consta... | [
{
"code": null,
"e": 1123,
"s": 172,
"text": "As a data scientist, training your machine learning model is only a part of providing a solution for the client. Besides generating and cleaning the data, selecting and tuning the algorithms, you also need to deliver and deploy your results so that it is... |
NLP Preprocessing and Latent Dirichlet Allocation (LDA) Topic Modeling with Gensim | by Sejal Dua | Towards Data Science | In my last article, I walked through how to extract metadata from email newsletters. Specifically, I demonstrated how to use the Gmail API to collect Title, Subtitle, Author, Publication, and Minutes (an estimate of article length in reading time) for each suggested article in my Medium Daily Digest newsletter. With th... | [
{
"code": null,
"e": 656,
"s": 171,
"text": "In my last article, I walked through how to extract metadata from email newsletters. Specifically, I demonstrated how to use the Gmail API to collect Title, Subtitle, Author, Publication, and Minutes (an estimate of article length in reading time) for eac... |
Checking the Cluster Health in Cassandra - GeeksforGeeks | 16 Apr, 2020
In this article, we are going to discuss checking the cluster health by using nodetool in Cassandra. Nodetool is one of the monitoring tools which helps in monitoring a cluster and performing routine maintenance tasks.
We will discuss three nodetool commands which will often use for checking the cluster’s ... | [
{
"code": null,
"e": 25227,
"s": 25199,
"text": "\n16 Apr, 2020"
},
{
"code": null,
"e": 25446,
"s": 25227,
"text": "In this article, we are going to discuss checking the cluster health by using nodetool in Cassandra. Nodetool is one of the monitoring tools which helps in monitor... |
SQLAlchemy ORM - Updating Objects | In this chapter, we will see how to modify or update the table with desired values.
To modify data of a certain attribute of any object, we have to assign new value to it and commit the changes to make the change persistent.
Let us fetch an object from the table whose primary key identifier, in our Customers table with... | [
{
"code": null,
"e": 2424,
"s": 2340,
"text": "In this chapter, we will see how to modify or update the table with desired values."
},
{
"code": null,
"e": 2565,
"s": 2424,
"text": "To modify data of a certain attribute of any object, we have to assign new value to it and commit ... |
JavaScript - Math abs Method | This method returns the absolute value of a number.
Its syntax is as follows −
Math.abs( x ) ;
x − A number.
Returns the absolute value of a number.
Try the following example program.
<html>
<head>
<title>JavaScript Math abs() Method</title>
</head>
<body>
<script type = "text/javascript... | [
{
"code": null,
"e": 2518,
"s": 2466,
"text": "This method returns the absolute value of a number."
},
{
"code": null,
"e": 2545,
"s": 2518,
"text": "Its syntax is as follows −"
},
{
"code": null,
"e": 2562,
"s": 2545,
"text": "Math.abs( x ) ;\n"
},
{
... |
Does SQL Server have an equivalent to MySQL's ENUM data type? | This works in MySQL version 8.0.12. The syntax is as follows.
create table yourTableName
(
yourColumnName enum(‘Value1’,Value2’,Value3’,......N)
default Value1’ or Value2 or Value3,..N
);
Set the enum type in MySQL with the following query.
mysql> create table EnumInMySQL
-> (
-> WebCRUD enum('CREATE','READ','UPDATE','... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "This works in MySQL version 8.0.12. The syntax is as follows."
},
{
"code": null,
"e": 1250,
"s": 1124,
"text": "create table yourTableName\n(\nyourColumnName enum(‘Value1’,Value2’,Value3’,......N)\ndefault Value1’ or Value2 or Value... |
Automatic Tableau Data Refreshing Through Google Cloud and Sheets | by Ira Rickman | Towards Data Science | This post walks through the steps needed to build an automated data refresh pipeline for Tableau Public through python, Google Sheets, and Google Cloud. In a previous post Auto Refreshing Tableau Public, I explained how to connect a Tableau Public workbook to Google Sheets to take advantage of the daily Tableau Public-... | [
{
"code": null,
"e": 944,
"s": 171,
"text": "This post walks through the steps needed to build an automated data refresh pipeline for Tableau Public through python, Google Sheets, and Google Cloud. In a previous post Auto Refreshing Tableau Public, I explained how to connect a Tableau Public workboo... |
CSS - Rotate in Down Left Effect | It provides to move or cause to move in a circle round an axis or centre.
@keyframes rotateInDownLeft {
0% {
transform-origin: left bottom;
transform: rotate(-90deg);
opacity: 0;
}
100% {
transform-origin: left bottom;
transform: rotate(0);
opacity: 1;
}
}
Transform − Tr... | [
{
"code": null,
"e": 2700,
"s": 2626,
"text": "It provides to move or cause to move in a circle round an axis or centre."
},
{
"code": null,
"e": 2932,
"s": 2700,
"text": "@keyframes rotateInDownLeft {\n 0% {\n transform-origin: left bottom;\n transform: rotate(-90deg... |
Python Bites: Manipulating Text Files | by Soner Yıldırım | Towards Data Science | Text files are commonly used to store data. Thus, they are essential in the data science system. Python provides versatile functions and methods to handle text file.
There are many options to create a text file. We will not cover all of them since the focus here is to manipulate text files, not creating them. Let’s go ... | [
{
"code": null,
"e": 337,
"s": 171,
"text": "Text files are commonly used to store data. Thus, they are essential in the data science system. Python provides versatile functions and methods to handle text file."
},
{
"code": null,
"e": 545,
"s": 337,
"text": "There are many optio... |
How can we use lambda expressions with functional interfaces in Java? | The lambda expressions are anonymous functions and don't have any return type, access modifier and not belonging to any class. It can be used to simplify the implementation of the abstract method in a functional interface. Whenever there is a functional interface, we can use lambda expressions instead of anonymous inne... | [
{
"code": null,
"e": 1393,
"s": 1062,
"text": "The lambda expressions are anonymous functions and don't have any return type, access modifier and not belonging to any class. It can be used to simplify the implementation of the abstract method in a functional interface. Whenever there is a functional... |
Express.js – app.route() Method | The app.route() method returns the instance of a single route. This single route can be used to handle the HTTP verbs with the optional middleware. This method is mainly used to avoid duplicate names.
app.route( )
Create a file with the name "appRoute.js" and copy the following code snippet. After creating the file, us... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "The app.route() method returns the instance of a single route. This single route can be used to handle the HTTP verbs with the optional middleware. This method is mainly used to avoid duplicate names."
},
{
"code": null,
"e": 1276,
"s": ... |
SQL ALTER TABLE Statement | The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.
The ALTER TABLE statement is also used to add and drop various constraints on
an existing table.
To add a column in a table, use the following syntax:
The following SQL adds an "Email" column to the "Customers" table:
To delete a... | [
{
"code": null,
"e": 90,
"s": 0,
"text": "The ALTER TABLE statement is used to add, delete, or modify columns in an existing table."
},
{
"code": null,
"e": 188,
"s": 90,
"text": "The ALTER TABLE statement is also used to add and drop various constraints on \nan existing table."
... |
Prolog - Operators | In the following sections, we will see what are the different types of operators in Prolog. Types of the comparison operators and Arithmetic operators.
We will also see how these are different from any other high level language operators, how they are syntactically different, and how they are different in their work. A... | [
{
"code": null,
"e": 2244,
"s": 2092,
"text": "In the following sections, we will see what are the different types of operators in Prolog. Types of the comparison operators and Arithmetic operators."
},
{
"code": null,
"e": 2505,
"s": 2244,
"text": "We will also see how these are... |
AWT Component Class | The class Component is the abstract base class for the non menu user-interface controls of AWT. Component represents an object with graphical representation.
Following is the declaration for java.awt.Component class:
public abstract class Component
extends Object
implements ImageObserver, MenuContainer, Serial... | [
{
"code": null,
"e": 1905,
"s": 1747,
"text": "The class Component is the abstract base class for the non menu user-interface controls of AWT. Component represents an object with graphical representation."
},
{
"code": null,
"e": 1964,
"s": 1905,
"text": "Following is the declara... |
SQLite - JOINS | SQLite Joins clause is used to combine records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using values common to each.
SQL defines three major types of joins −
The CROSS JOIN
The INNER JOIN
The OUTER JOIN
Before we proceed, let's consider two tables COMPANY and DEPA... | [
{
"code": null,
"e": 2811,
"s": 2638,
"text": "SQLite Joins clause is used to combine records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using values common to each."
},
{
"code": null,
"e": 2852,
"s": 2811,
"text": "SQL defin... |
Check if characters of one string can be swapped to form other - GeeksforGeeks | 07 May, 2021
Two strings are given, we need to find whether we can form second string by swapping the character of the first string. Examples:
Input : str1 = "geeksforgeeks"
str2 = "geegeeksksfor"
Output : YES
Input : str1 = "geeksfor"
str2 = "geeekfor"
Output : NO
First of all, we will find the... | [
{
"code": null,
"e": 24828,
"s": 24800,
"text": "\n07 May, 2021"
},
{
"code": null,
"e": 24960,
"s": 24828,
"text": "Two strings are given, we need to find whether we can form second string by swapping the character of the first string. Examples: "
},
{
"code": null,
... |
Precision and Recall Trade-off and Multiple Hypothesis Testing | by Giacomo Vianello | Towards Data Science | In my previous job as an Astrophysicist, I was working on detecting explosions of large stars (GRBs) releasing an incredible amount of energy. Our automatic analysis pipelines were searching for GRBs everywhere and anywhere because it is impossible to predict when and where such an explosion will occur. This posed an i... | [
{
"code": null,
"e": 601,
"s": 172,
"text": "In my previous job as an Astrophysicist, I was working on detecting explosions of large stars (GRBs) releasing an incredible amount of energy. Our automatic analysis pipelines were searching for GRBs everywhere and anywhere because it is impossible to pre... |
Deploying a Containerized Web App with AWS Copilot | by Edward Krueger | Towards Data Science | By: Edward Krueger and Dylan Rossi
This article will show you how to deploy a containerized web application to AWS using AWS Copilot. Copilot greatly simplifies deployment to AWS and provides a unified framework to provision architecture, build images and deploy containers as either public or private services. Addition... | [
{
"code": null,
"e": 207,
"s": 172,
"text": "By: Edward Krueger and Dylan Rossi"
},
{
"code": null,
"e": 690,
"s": 207,
"text": "This article will show you how to deploy a containerized web application to AWS using AWS Copilot. Copilot greatly simplifies deployment to AWS and pro... |
Digital Root (repeated digital sum) of the given large integer - GeeksforGeeks | 17 Aug, 2021
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is continued as long as necessary... | [
{
"code": null,
"e": 24727,
"s": 24699,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 25239,
"s": 24727,
"text": "The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root.... |
Chef - Workstation Setup | Chef follows the concept of client-server architecture, hence in order to start working with Chef one needs to set up Chef on the workstation and develop the configuration locally. Later it can be uploaded to Chef server to make them working on the Chef nodes, which needs to be configured.
Opscode provides a fully pack... | [
{
"code": null,
"e": 2671,
"s": 2380,
"text": "Chef follows the concept of client-server architecture, hence in order to start working with Chef one needs to set up Chef on the workstation and develop the configuration locally. Later it can be uploaded to Chef server to make them working on the Chef... |
Java SAX Parser - Parse XML Document | Here is the input xml file we need to parse −
<?xml version = "1.0"?>
<class>
<student rollno = "393">
<firstname>dinkar</firstname>
<lastname>kad</lastname>
<nickname>dinkar</nickname>
<marks>85</marks>
</student>
<student rollno = "493">
<firstname>Vaneet</firstname>
<... | [
{
"code": null,
"e": 2369,
"s": 2323,
"text": "Here is the input xml file we need to parse −"
},
{
"code": null,
"e": 2920,
"s": 2369,
"text": "<?xml version = \"1.0\"?>\n<class>\n <student rollno = \"393\">\n <firstname>dinkar</firstname>\n <lastname>kad</lastname>\n... |
Creating a basic pie chart using Matplotlib | by Mubarak Ganiyu | Towards Data Science | Pie charts are used to present categorical data in a format that highlights how each data point contributes to a whole, that is 100%. The chart is shaped in a circular form like a pie and each data point is represented by a certain percentage while taking a part of the pie that is shaped like a slice. The bigger its sl... | [
{
"code": null,
"e": 558,
"s": 172,
"text": "Pie charts are used to present categorical data in a format that highlights how each data point contributes to a whole, that is 100%. The chart is shaped in a circular form like a pie and each data point is represented by a certain percentage while taking... |
SQL Tryit Editor v1.6 | SELECT COUNT(CustomerID), Country
FROM Customers
GROUP BY Country
HAVING COUNT(CustomerID) > 5;
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support W... | [
{
"code": null,
"e": 34,
"s": 0,
"text": "SELECT COUNT(CustomerID), Country"
},
{
"code": null,
"e": 49,
"s": 34,
"text": "FROM Customers"
},
{
"code": null,
"e": 66,
"s": 49,
"text": "GROUP BY Country"
},
{
"code": null,
"e": 96,
"s": 66,
... |
tolower() function in C - GeeksforGeeks | 17 Dec, 2021
The tolower() function is defined in the ctype.h header file. If the character passed is an uppercase alphabet then the tolower() function converts an uppercase alphabet to a lowercase alphabet.Syntax:
int tolower(int ch);
Parameter: This method takes a mandatory parameter ch which is the character to be... | [
{
"code": null,
"e": 24373,
"s": 24345,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 24577,
"s": 24373,
"text": "The tolower() function is defined in the ctype.h header file. If the character passed is an uppercase alphabet then the tolower() function converts an uppercase al... |
Java NIO - AsynchronousFileChannel | As we know that Java NIO supports concurrency and multi-threading which allows us to deal with different channels concurrently at same time.So the API which is responsible for this in Java NIO package is AsynchronousFileChannel which is defined under NIO channels package.Hence qualified name for AsynchronousFileChannel... | [
{
"code": null,
"e": 2351,
"s": 1984,
"text": "As we know that Java NIO supports concurrency and multi-threading which allows us to deal with different channels concurrently at same time.So the API which is responsible for this in Java NIO package is AsynchronousFileChannel which is defined under NI... |
What is double address operator(&&) in C++? | && is a new reference operator defined in the C++11 standard. int&& a means "a" is an r-value reference. && is normally only used to declare a parameter of a function. And it only takes an r-value expression.
Simply put, an r-value is a value that doesn't have a memory address. E.g. the number 6, and character 'v' are ... | [
{
"code": null,
"e": 1271,
"s": 1062,
"text": "&& is a new reference operator defined in the C++11 standard. int&& a means \"a\" is an r-value reference. && is normally only used to declare a parameter of a function. And it only takes an r-value expression."
},
{
"code": null,
"e": 1450,... |
jQuery :parent Selector | The :parent selector in jQuery is used to select all elements that are the parent of another element.
The syntax is as follows −
$(":parent")
Let us now see an example to implement the jQuery :parent selector −
<!DOCTYPE html>
<html>
<head>
<style>
.one {
background-color: blue;
color: white;
font-... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "The :parent selector in jQuery is used to select all elements that are the parent of another element."
},
{
"code": null,
"e": 1191,
"s": 1164,
"text": "The syntax is as follows −"
},
{
"code": null,
"e": 1204,
"s": 1... |
Count all Palindromic Subsequence in a given String in C++ | In this tutorial, we will be discussing a program to find the number of all palindromic subsequences in a given string.
For this we will be provided with a string. Our task is to find the number of palindromic subsequences that can be made in that given string.
#include<iostream>
#include<cstring>
using namespace std;
... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to find the number of all palindromic subsequences in a given string."
},
{
"code": null,
"e": 1324,
"s": 1182,
"text": "For this we will be provided with a string. Our task is to fin... |
Using sy-datum low and high in ABAP Program | In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’.
You should declare high dates at INITIALIZATION so that it is visible on the selection screen and you can change it if required.
select-OPTIONS: so_date FOR sy-datum.
INITIALIZATION.
so_date-sign =... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’."
},
{
"code": null,
"e": 1311,
"s": 1182,
"text": "You should declare high dates at INITIALIZATION so that it is ... |
A Beginner’s Guide to Using BERT for the First Time | by Arfinda Ilmania | Towards Data Science | BERT has become a new standard for Natural Language Processing (NLP). It achieved a whole new state-of-the-art on eleven NLP task, including text classification, sequence labeling, question answering, and many more. Even better, it can also give incredible results using only a small amount of data. BERT was first relea... | [
{
"code": null,
"e": 618,
"s": 172,
"text": "BERT has become a new standard for Natural Language Processing (NLP). It achieved a whole new state-of-the-art on eleven NLP task, including text classification, sequence labeling, question answering, and many more. Even better, it can also give incredibl... |
How to create a boxplot using ggplot2 with aes_string in R? | To create a boxplot using ggplot2 with aes_string in R, we can follow the below steps −
First of all, create a data frame with one string and one numerical column.
Then, use aes_string function of ggplot2 package to create the boxplot.
Let's create a data frame as shown below −
Live Demo
X<-sample(LETTERS[1:4],20,repl... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "To create a boxplot using ggplot2 with aes_string in R, we can follow the below steps −"
},
{
"code": null,
"e": 1226,
"s": 1150,
"text": "First of all, create a data frame with one string and one numerical column."
},
{
"cod... |
Negative weight cycle | Practice | GeeksforGeeks | Given a weighted directed graph with n nodes and m edges. Nodes are labeled from 0 to n-1, the task is to check if it contains a negative weight cycle or not.
Note: edges[i] is defined as u, v and weight.
Example 1:
Input: n = 3, edges = {{0,1,-1},{1,2,-2},
{2,0,-3}}
Output: 1
Explanation: The graph contains negative... | [
{
"code": null,
"e": 445,
"s": 238,
"text": "Given a weighted directed graph with n nodes and m edges. Nodes are labeled from 0 to n-1, the task is to check if it contains a negative weight cycle or not.\nNote: edges[i] is defined as u, v and weight.\n "
},
{
"code": null,
"e": 456,
... |
Java strictfp keyword | strictfp is used to ensure that floating points operations give the same result on any platform. As floating points precision may vary from one platform to another. strictfp keyword ensures the consistency across the platforms.
strictfp can be applied to class, method or on interfaces but cannot be applied to abstract ... | [
{
"code": null,
"e": 1290,
"s": 1062,
"text": "strictfp is used to ensure that floating points operations give the same result on any platform. As floating points precision may vary from one platform to another. strictfp keyword ensures the consistency across the platforms."
},
{
"code": nul... |
PHP break statement and continue Example - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to learn about... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
A step towards industrialization: parameters your code with pyspark and argparse | by Alexandre Wrg | Towards Data Science | argparse is a python library that allows us to write our own command lines to include flexibility in our code. I personally use it in many of my scripts to make my data pipelines more flexible and to form models that are on a moving time window for example. We’ll see some use cases after a quick look at the library.
Fi... | [
{
"code": null,
"e": 489,
"s": 171,
"text": "argparse is a python library that allows us to write our own command lines to include flexibility in our code. I personally use it in many of my scripts to make my data pipelines more flexible and to form models that are on a moving time window for exampl... |
Are you still using JupyterLab?. There is a new premium product in the... | by Roman Orac | Towards Data Science | Love them or hate them, one thing’s for sure — Jupyter Notebooks have become the defacto standard for doing Data Science. While the product is not bad, it has its shortcomings. Many of those were addressed by JupyterLab, with the addition of tabs, extension manager, themes and shortcuts editor. As a heavy JupyterLabs u... | [
{
"code": null,
"e": 622,
"s": 172,
"text": "Love them or hate them, one thing’s for sure — Jupyter Notebooks have become the defacto standard for doing Data Science. While the product is not bad, it has its shortcomings. Many of those were addressed by JupyterLab, with the addition of tabs, extensi... |
How can we create a MySQL view with LEFT JOIN? | To illustrate the making of MySQL view with LEFT JOIN we are using the following data from ‘Customers’ and ‘Resreve’ tables −
mysql> Select * from customers;
+-------------+----------+
| Customer_Id | Name |
+-------------+----------+
| 1 | Rahul |
| 2 | Yashpal |
| 3 | Gaurav |
... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "To illustrate the making of MySQL view with LEFT JOIN we are using the following data from ‘Customers’ and ‘Resreve’ tables −"
},
{
"code": null,
"e": 1715,
"s": 1188,
"text": "mysql> Select * from customers;\n+-------------+--------... |
How to change the font on ttk.Entry in Tkinter? | There are times when a user wants to insert the information like Name, contact number, Email, address, etc. Tkinter has a simple way to handle these types of inputs through its Entry widgets. Tkinter Entry widgets can be styled using the ttk package.
To change other properties of the Entry widgets such as font properti... | [
{
"code": null,
"e": 1313,
"s": 1062,
"text": "There are times when a user wants to insert the information like Name, contact number, Email, address, etc. Tkinter has a simple way to handle these types of inputs through its Entry widgets. Tkinter Entry widgets can be styled using the ttk package."
... |
Find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 + ... - GeeksforGeeks | 12 Apr, 2021
Given an integer . The task is to write a program to find the N-th term of the given series:
1 + 2 + 6 + 15 + 31 + 56 + ...
Examples:
Input : N = 8
Output : 141
Input : N = 20
Output : 2471
Approach: The given series is:
1, 2, 6, 15, 31, 56, 92, 141, ...
First consecutive difference:
1 4 9 16 25 ... | [
{
"code": null,
"e": 25166,
"s": 25138,
"text": "\n12 Apr, 2021"
},
{
"code": null,
"e": 25261,
"s": 25166,
"text": "Given an integer . The task is to write a program to find the N-th term of the given series: "
},
{
"code": null,
"e": 25293,
"s": 25261,
"tex... |
Mounting a volume inside docker container | In some projects, there might be scenarios where you have created multiple containers for different parts of the project and some of those containers share common files as well. Now, you want to create a shared directory between all the containers such that from all the containers you can access that directory or volum... | [
{
"code": null,
"e": 1455,
"s": 1062,
"text": "In some projects, there might be scenarios where you have created multiple containers for different parts of the project and some of those containers share common files as well. Now, you want to create a shared directory between all the containers such ... |
Check if all elements of the array are palindrome or not in Python | Suppose we have a list of numbers nums. We have to check whether the list is palindrome or not.
So, if the input is like nums = [10, 12, 15, 12, 10], then the output will be True.
To solve this, we will follow these steps −
n := size of nums
reset is_palindrome
i := 0
while i <= quotient of (n / 2) and n is not 0, doif... | [
{
"code": null,
"e": 1158,
"s": 1062,
"text": "Suppose we have a list of numbers nums. We have to check whether the list is palindrome or not."
},
{
"code": null,
"e": 1242,
"s": 1158,
"text": "So, if the input is like nums = [10, 12, 15, 12, 10], then the output will be True."
... |
K'th Largest element in BST using constant extra space - GeeksforGeeks | 21 May, 2021
Given a binary search tree, task is to find Kth largest element in the binary search tree. Example:
Input : k = 3
Root of following BST
10
/ \
4 20
/ / \
2 15 40
Output : 15
The idea is to use Reverse Morris Traversal which ... | [
{
"code": null,
"e": 24987,
"s": 24959,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 25089,
"s": 24987,
"text": "Given a binary search tree, task is to find Kth largest element in the binary search tree. Example: "
},
{
"code": null,
"e": 25242,
"s": 25089,
... |
How to use method references with Generics in Java? | The method references are introduced in Java 8 similar to lambda expression. It can allow us to reference methods or constructors without executing them. The method references and lambda expressions require a target type that consists of a compatible functional interface. We can also use a method reference with generic... | [
{
"code": null,
"e": 1420,
"s": 1062,
"text": "The method references are introduced in Java 8 similar to lambda expression. It can allow us to reference methods or constructors without executing them. The method references and lambda expressions require a target type that consists of a compatible fu... |
CTE in SQL - GeeksforGeeks | 23 Sep, 2021
The Common Table Expressions (CTE) were introduced into standard SQL in order to simplify various classes of SQL Queries for which a derived table was just unsuitable. CTE was introduced in SQL Server 2005, the common table expression (CTE) is a temporary named result set that you can reference within a SE... | [
{
"code": null,
"e": 23485,
"s": 23457,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 23997,
"s": 23485,
"text": "The Common Table Expressions (CTE) were introduced into standard SQL in order to simplify various classes of SQL Queries for which a derived table was just unsuita... |
Definition and Overview of ODBMS - GeeksforGeeks | 10 Jun, 2021
The ODBMS which is an abbreviation for object-oriented database management system is the data model in which data is stored in form of objects, which are instances of classes. These classes and objects together make an object-oriented data model.
Components of Object-Oriented Data Model: The OODBMS is bas... | [
{
"code": null,
"e": 23988,
"s": 23960,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 24236,
"s": 23988,
"text": "The ODBMS which is an abbreviation for object-oriented database management system is the data model in which data is stored in form of objects, which are instances... |
Java Arrays | Set 1 | Practice | GeeksforGeeks | For a given array of price of items,you have to calculate the average of all prices upto 2 decimal places.
Note: Sum is printed automatically, you only need to calculate and return the average
Example 1:
Input:
5
1 2 3 4 5
Output:
15 3.00
Explanation:
Sum of the array is 15, hence
average is 15/5=3.00.
Example 2... | [
{
"code": null,
"e": 431,
"s": 238,
"text": "For a given array of price of items,you have to calculate the average of all prices upto 2 decimal places.\nNote: Sum is printed automatically, you only need to calculate and return the average"
},
{
"code": null,
"e": 444,
"s": 433,
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.