title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
BitSet toString() Method in Java with Examples - GeeksforGeeks | 27 Dec, 2018
The java.util.BitSet.toString() is an inbuilt method of BitSet class that is used to get a string representation of the bits of the sets in the form of a set of entries separated by “, “. So basically the toString() method is used to convert all the elements of BitSet into String. In addition to this for e... | [
{
"code": null,
"e": 24440,
"s": 24412,
"text": "\n27 Dec, 2018"
},
{
"code": null,
"e": 24861,
"s": 24440,
"text": "The java.util.BitSet.toString() is an inbuilt method of BitSet class that is used to get a string representation of the bits of the sets in the form of a set of en... |
Creating compelling pie chart alternatives | by John Naujoks | Towards Data Science | I recently finished Storytelling with Data, a really great look at improving how we visualize data. One of it’s more blunt points is no pie charts. I have heard this before, and know this topic is somewhat divisive. The case against pie charts is fairly simple: they are not as clearly interpretable as people think. Peo... | [
{
"code": null,
"e": 964,
"s": 171,
"text": "I recently finished Storytelling with Data, a really great look at improving how we visualize data. One of it’s more blunt points is no pie charts. I have heard this before, and know this topic is somewhat divisive. The case against pie charts is fairly s... |
Java.net.MulticastSocket class in Java - GeeksforGeeks | 19 Dec, 2021
This class is used for sending and receiving multicast IP packets. It extends DatagramSocket class and provides additional functionality for joining groups. A message sent to the group IP address will be received by all the clients who have joined the group. This must be kept in mind that for sending packe... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 24218,
"s": 23557,
"text": "This class is used for sending and receiving multicast IP packets. It extends DatagramSocket class and provides additional functionality for joining groups. A mess... |
Determine which Button was pressed in Tkinter | Buttons are very useful in many applications where user interaction is required. Let us suppose that we want to know which button is pressed in a given application. In order to get the information about the Button, we can use the callback function in the Button configuration. In the Callback function, we will use the p... | [
{
"code": null,
"e": 1439,
"s": 1062,
"text": "Buttons are very useful in many applications where user interaction is required. Let us suppose that we want to know which button is pressed in a given application. In order to get the information about the Button, we can use the callback function in th... |
Boruta Explained Exactly How You Wished Someone Explained to You | by Samuele Mazzanti | Towards Data Science | Feature selection is a fundamental step in many machine learning pipelines. You dispose of a bunch of features and you want to select only the relevant ones and to discard the others. The aim is simplifying the problem by removing unuseful features which would introduce unnecessary noise (ever heard of Occam?).
Boruta ... | [
{
"code": null,
"e": 485,
"s": 172,
"text": "Feature selection is a fundamental step in many machine learning pipelines. You dispose of a bunch of features and you want to select only the relevant ones and to discard the others. The aim is simplifying the problem by removing unuseful features which ... |
C++ Program to concatenate two strings using Operator Overloading - GeeksforGeeks | 17 May, 2021
Pre-requisite: Operator Overloading in C++Given two strings. The task is to concatenate the two strings using Operator Overloading in C++.
Example:
Input: str1 = "hello", str2 = "world"
Output: helloworld
Input: str1 = "Geeks", str2 = "World"
Output: GeeksWorld
Approach 1: Using unary operator overloadin... | [
{
"code": null,
"e": 25132,
"s": 25104,
"text": "\n17 May, 2021"
},
{
"code": null,
"e": 25271,
"s": 25132,
"text": "Pre-requisite: Operator Overloading in C++Given two strings. The task is to concatenate the two strings using Operator Overloading in C++."
},
{
"code": nu... |
How to Create a Virus to Open Multiple CMD Windows Automatically ? - GeeksforGeeks | 21 Apr, 2021
The virus that we are going to create in this article will automatically open up multiple CMD windows in the victim’s Windows PC.
This is an annoying type of Virus because as per the heading this is capable of opening multiple CMD window screen in front of the user without allowing the user to open any oth... | [
{
"code": null,
"e": 26331,
"s": 26303,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 26461,
"s": 26331,
"text": "The virus that we are going to create in this article will automatically open up multiple CMD windows in the victim’s Windows PC."
},
{
"code": null,
"... |
Python | N consecutive Odd or Even Numbers - GeeksforGeeks | 29 Apr, 2019
The problem focused in this article is quite specific and may be less useful in different domains. But the way this is going to solve may open doors to solve potentially like problems, hence making it worth a read. This article solves the problem of testing if a list contains series of odd or even elements... | [
{
"code": null,
"e": 24952,
"s": 24924,
"text": "\n29 Apr, 2019"
},
{
"code": null,
"e": 25325,
"s": 24952,
"text": "The problem focused in this article is quite specific and may be less useful in different domains. But the way this is going to solve may open doors to solve poten... |
Python | How to make a terminal progress bar using tqdm | 25 Feb, 2022
Whether you’re installing software, loading a page, or doing a transaction, it always eases your mind whenever you see that small progress bar giving you an estimation of how long the process would take to complete or render. If you have a simple progress bar in your script or code, it looks very pleasing ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Feb, 2022"
},
{
"code": null,
"e": 588,
"s": 52,
"text": "Whether you’re installing software, loading a page, or doing a transaction, it always eases your mind whenever you see that small progress bar giving you an estimation of how... |
Working with RxJS & Angular | In this chapter, we will see how to use RxJs with Angular. We will not get into the installation process for Angular here, to know about Angular Installation refer this link −https://www.tutorialspoint.com/angular7/angular7_environment_setup.htm
We will directly work on an example, where will use Ajax from RxJS to load... | [
{
"code": null,
"e": 2204,
"s": 1958,
"text": "In this chapter, we will see how to use RxJs with Angular. We will not get into the installation process for Angular here, to know about Angular Installation refer this link −https://www.tutorialspoint.com/angular7/angular7_environment_setup.htm"
},
... |
scipy stats.beta() | Python | 20 Mar, 2019
scipy.stats.beta() is an beta continuous random variable that is defined with a standard format and some shape parameters to complete its specification.
Parameters :q : lower and upper tail probabilitya, b : shape parametersx : quantilesloc : [optional] location parameter. Default = 0scale : [optional] sca... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 181,
"s": 28,
"text": "scipy.stats.beta() is an beta continuous random variable that is defined with a standard format and some shape parameters to complete its specification."
},
{
"code": ... |
How to remove legend title in R with ggplot2 ? | 21 Jul, 2021
At times, the legend keys are enough to display what they are supposed to describe. Thus, in such cases, the legend title can be dropped. In this article, we will discuss how the legend title can be removed using ggplot2 in the R programming language.
Let us first draw a regular plot with a legend title:
R... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 280,
"s": 28,
"text": "At times, the legend keys are enough to display what they are supposed to describe. Thus, in such cases, the legend title can be dropped. In this article, we will discuss how ... |
How to write Pandas DataFrame as TSV using Python? | 05 Nov, 2021
In this article, we will discuss how to write pandas dataframe as TSV using Python.
Let’s start by creating a data frame. It can be done by importing an existing file, but for simplicity, we will create our own.
Python3
# importing the moduleimport pandas as pd # creating some sample datasample = {'name':... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 112,
"s": 28,
"text": "In this article, we will discuss how to write pandas dataframe as TSV using Python."
},
{
"code": null,
"e": 240,
"s": 112,
"text": "Let’s start by creatin... |
diff command in Linux with examples | 16 Sep, 2021
diff stands for difference. This command is used to display the differences in the files by comparing the files line by line. Unlike its fellow members, cmp and comm, it tells us which lines in one file have is to be changed to make the two files identical.
The important thing to remember is that diff use... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Sep, 2021"
},
{
"code": null,
"e": 311,
"s": 52,
"text": "diff stands for difference. This command is used to display the differences in the files by comparing the files line by line. Unlike its fellow members, cmp and comm, it tell... |
Sum of minimum elements of all subarrays | 04 Jul, 2022
Given an array A of n integers. The task is to find the sum of minimum of all possible (contiguous) subarray of A.Examples:
Input: A = [3, 1, 2, 4] Output: 17 Explanation: Subarrays are [3], [1], [2], [4], [3, 1], [1, 2], [2, 4], [3, 1, 2], [1, 2, 4], [3, 1, 2, 4]. Minimums are 3, 1, 2, 4, 1, 1, 2, 1, 1,... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 178,
"s": 52,
"text": "Given an array A of n integers. The task is to find the sum of minimum of all possible (contiguous) subarray of A.Examples: "
},
{
"code": null,
"e": 410,
"s... |
Performing Analysis of a Factor in R Programming – factanal() Function | 01 Jun, 2020
Factor Analysis also known as Exploratory Factor Analysis is a statistical technique used in R programming to identify the inactive relational structure and further, narrowing down a pool of variables to few variables. The main motive to use this technique is to find out which factor is most responsible fo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 381,
"s": 28,
"text": "Factor Analysis also known as Exploratory Factor Analysis is a statistical technique used in R programming to identify the inactive relational structure and further, narrowing... |
How to combine Two Lists in R | 23 Aug, 2021
In this article , we are going to merge two lists in R programming language.
This function is used to append the list to another list.
Syntax:
append(list1,list)
where
list1 is the first list
list 2 is the second list
Example: R program to create first list with strings and a second list with integers and ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 105,
"s": 28,
"text": "In this article , we are going to merge two lists in R programming language."
},
{
"code": null,
"e": 163,
"s": 105,
"text": "This function is used to appe... |
String strip() in JavaScript | 08 Jun, 2020
The task here is to remove all leading and trailing spaces and tabs from the string. We will use some methods to reach the goal.
Method 1: Here, we will be using trim() method. We can strip a string using trim() method and can remove unnecessary trailing and leading spaces and tabs from the string.
Example... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 157,
"s": 28,
"text": "The task here is to remove all leading and trailing spaces and tabs from the string. We will use some methods to reach the goal."
},
{
"code": null,
"e": 328,
... |
Find the most frequent digit without using array/string | 29 Jun, 2022
Given an integer, find the most occurring digit in it. If two or more digits occur same number of times, then return the highest of them. Input integer is given as an int variable, not as a string or array. Use of hash or array or string is not allowed.
Example:
Input: x = 12234
Output: The most frequen... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 307,
"s": 52,
"text": "Given an integer, find the most occurring digit in it. If two or more digits occur same number of times, then return the highest of them. Input integer is given as an int var... |
A Puzzle using C Program | Here we will see one C puzzle question. Suppose we have two numbers 48 and 96. We have to add the first number after the second one. So final result will be like 9648. But we cannot use any logical, arithmetic, string related operations, also cannot use any pre-defined functions. So how can we do that?
This is easy. We... | [
{
"code": null,
"e": 1366,
"s": 1062,
"text": "Here we will see one C puzzle question. Suppose we have two numbers 48 and 96. We have to add the first number after the second one. So final result will be like 9648. But we cannot use any logical, arithmetic, string related operations, also cannot use... |
PHP - Function set_error_handler() | mixed set_error_handler ( callback $error_handler [, int $error_types] );
This function can be used for defining your own way of handling errors during runtime, for example in applications in which you need to do cleanup of data/files when a critical error happens, or when you need to trigger an error under certain con... | [
{
"code": null,
"e": 2831,
"s": 2757,
"text": "mixed set_error_handler ( callback $error_handler [, int $error_types] );"
},
{
"code": null,
"e": 3086,
"s": 2831,
"text": "This function can be used for defining your own way of handling errors during runtime, for example in applic... |
Difference between default and static interface method in Java 8. | According to Oracle's Javadocs −
Default methods enable you to add new functionality to the interfaces of your libraries and ensure binary compatibility with code written for older versions of those interfaces.
A static method is a method that is associated with the class in which it is defined rather than with any obj... | [
{
"code": null,
"e": 1095,
"s": 1062,
"text": "According to Oracle's Javadocs −"
},
{
"code": null,
"e": 1273,
"s": 1095,
"text": "Default methods enable you to add new functionality to the interfaces of your libraries and ensure binary compatibility with code written for older v... |
Program to make a histogram of an array in C++ | In this tutorial, we will be discussing a program to make a histogram by the data given inside an array.
For this, we will be provided with integer values inside an array. Our task is to plot a histogram keeping the value of both coordinates x and y equal to the value provided in the array.
Live Demo
#include <bits/st... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to make a histogram by the data given inside an array."
},
{
"code": null,
"e": 1354,
"s": 1167,
"text": "For this, we will be provided with integer values inside an array. Our task i... |
Reading and Visualizing GeoTiff | Satellite Images with Python | by Mohit Kaushik | Towards Data Science | Reading images is super easy in python, as there are many libraries available for reading, editing, and visualizing different formats of images. Examples of these libraries are Matplotlib, OpenCV, Pillow, etc. These libraries work perfectly well with popular image formats such as .png, .tiff, .jpg, .jpeg, etc. but they... | [
{
"code": null,
"e": 531,
"s": 171,
"text": "Reading images is super easy in python, as there are many libraries available for reading, editing, and visualizing different formats of images. Examples of these libraries are Matplotlib, OpenCV, Pillow, etc. These libraries work perfectly well with popu... |
How To Perform Feature Selection for Regression Problems | by Serafeim Loukas | Towards Data Science | Feature selection is the procedure of selecting a subset (some out of all available) of the input variables that are most relevant to the target variable (that we wish to predict).
Target variable here refers to the variable that we wish to predict.
For this article we will assume that we only have numerical input vari... | [
{
"code": null,
"e": 352,
"s": 171,
"text": "Feature selection is the procedure of selecting a subset (some out of all available) of the input variables that are most relevant to the target variable (that we wish to predict)."
},
{
"code": null,
"e": 421,
"s": 352,
"text": "Targe... |
Data science you need to know — diagnosing linear regressions | by Michael Barber | Towards Data Science | This is an ad-hoc part of my “data science you need to know series”, exploring often overlooked aspects of data science. Part 1 and part 2 are recommended reading. Part 3 is coming soon!
In this post we will cover one of the first machine learning algorithms most students learn about, linear regression.
You will see a ... | [
{
"code": null,
"e": 359,
"s": 172,
"text": "This is an ad-hoc part of my “data science you need to know series”, exploring often overlooked aspects of data science. Part 1 and part 2 are recommended reading. Part 3 is coming soon!"
},
{
"code": null,
"e": 477,
"s": 359,
"text": ... |
Python 3 - time strftime() Method | The method strftime() converts a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument.
If t is not provided, the current time as returned by localtime() is used. format must be a string. An exception ValueError is raised if any field in t is out... | [
{
"code": null,
"e": 2502,
"s": 2340,
"text": "The method strftime() converts a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument."
},
{
"code": null,
"e": 2687,
"s": 2502,
"text": "If t is not provided... |
Change the color upon hovering over Button in Tkinter | Let us suppose that we are creating an application in which we want to change the color of the Button widget while we hover upon it. We can have the hovering property by defining the Event Callbacks.
To change the color of the Button while hovering on it, we have to bind the <Enter> and <Leave> events. For each event, ... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "Let us suppose that we are creating an application in which we want to change the color of the Button widget while we hover upon it. We can have the hovering property by defining the Event Callbacks."
},
{
"code": null,
"e": 1469,
"s": 1... |
C++ Program for Maximum and Minimum in a square matrix. - GeeksforGeeks | 06 Jan, 2022
Given a square matrix of order n*n, find the maximum and minimum from the matrix given.
Examples:
Input : arr[][] = {5, 4, 9,
2, 0, 6,
3, 1, 8};
Output : Maximum = 9, Minimum = 0
Input : arr[][] = {-5, 3,
2, 4};
Output : Maximum = 4, Minimum = -5... | [
{
"code": null,
"e": 24176,
"s": 24148,
"text": "\n06 Jan, 2022"
},
{
"code": null,
"e": 24265,
"s": 24176,
"text": "Given a square matrix of order n*n, find the maximum and minimum from the matrix given. "
},
{
"code": null,
"e": 24276,
"s": 24265,
"text": "E... |
C++ Program to Find Largest Rectangular Area in a Histogram | This is a C++ Program to find largest Rectangular Area in a Histogram
Begin
Create an empty stack.
Initialize the largest_area.
Do a while loop start from first bar for every bar hist[i], where i = 0 to
less than n:
If stack is empty or hist[i] is higher than the bar at top of stack, then
push ‘... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "This is a C++ Program to find largest Rectangular Area in a Histogram"
},
{
"code": null,
"e": 1795,
"s": 1132,
"text": "Begin\n Create an empty stack.\n Initialize the largest_area.\n Do a while loop start from first bar for e... |
C++ Comma Operator | The purpose of comma operator is to string together several expressions. The value of a comma-separated list of expressions is the value of the right-most expression. Essentially, the comma's effect is to cause a sequence of operations to be performed.
The values of the other expressions will be discarded. This means t... | [
{
"code": null,
"e": 2571,
"s": 2318,
"text": "The purpose of comma operator is to string together several expressions. The value of a comma-separated list of expressions is the value of the right-most expression. Essentially, the comma's effect is to cause a sequence of operations to be performed."... |
Electron - Hello World | We have created a package.json file for our project. Now we will create our first desktop app using Electron.
Create a new file called main.js. Enter the following code in it −
const {app, BrowserWindow} = require('electron')
const url = require('url')
const path = require('path')
let win
function createWindow(... | [
{
"code": null,
"e": 2175,
"s": 2065,
"text": "We have created a package.json file for our project. Now we will create our first desktop app using Electron."
},
{
"code": null,
"e": 2242,
"s": 2175,
"text": "Create a new file called main.js. Enter the following code in it −"
},... |
Tutorial: Running PySpark inside Docker containers | by Jean Yves | Towards Data Science | In this article we’re going to show you how to start running PySpark applications inside of Docker containers, by going through a step-by-step tutorial with code examples (see github repo).
There are multiple motivations for running Spark application inside of Docker container (we covered them in an earlier article Spa... | [
{
"code": null,
"e": 237,
"s": 47,
"text": "In this article we’re going to show you how to start running PySpark applications inside of Docker containers, by going through a step-by-step tutorial with code examples (see github repo)."
},
{
"code": null,
"e": 421,
"s": 237,
"text"... |
Create a new column in Pandas DataFrame based on the existing columns - GeeksforGeeks | 23 Jan, 2019
While working with data in Pandas, we perform a vast array of operations on the data to get the data in the desired form. One of these operations could be that we want to create new columns in the DataFrame based on the result of some operations on the existing columns in the DataFrame. Let’s discuss sever... | [
{
"code": null,
"e": 24857,
"s": 24829,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 25197,
"s": 24857,
"text": "While working with data in Pandas, we perform a vast array of operations on the data to get the data in the desired form. One of these operations could be that we ... |
PHP - session_id() Function | Sessions or session handling is a way to make the data available across various pages of a web application. The session_id() function is used to set or retrieve a custom id to the current.
session_id([$id]);
name(Optional)
This is a string value representing the id of the session, if you want to set id of the session ... | [
{
"code": null,
"e": 2946,
"s": 2757,
"text": "Sessions or session handling is a way to make the data available across various pages of a web application. The session_id() function is used to set or retrieve a custom id to the current."
},
{
"code": null,
"e": 2966,
"s": 2946,
"t... |
String in C - GeeksQuiz | 01 Jun, 2021
char c[] = "GATE2011";
// p now has the base address string "GATE2011"
char *p = c;
// p[3] is 'E' and p[1] is 'A'.
// p[3] - p[1] = ASCII value of 'E' - ASCII value of 'A' = 4
// So the expression p + p[3] - p[1] becomes p + 4 which is
// base address of string "2011"
printf("%s", p + p[3] ... | [
{
"code": null,
"e": 27610,
"s": 27582,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 27942,
"s": 27610,
"text": "\nchar c[] = \"GATE2011\"; \n \n // p now has the base address string \"GATE2011\" \nchar *p = c; \n \n// p[3] is 'E' and p[1] is 'A'. \n// p[3] - p[1] = ASCII va... |
Find the subarray with least average - GeeksforGeeks | 07 Jul, 2021
Given an array arr[] of size n and integer k such that k <= n.
Examples :
Input: arr[] = {3, 7, 90, 20, 10, 50, 40}, k = 3
Output: Subarray between indexes 3 and 5
The subarray {20, 10, 50} has the least average
among all subarrays of size 3.
Input: arr[] = {3, 7, 5, 20, -10, 0, 12}, k = 2
Output: Sub... | [
{
"code": null,
"e": 24820,
"s": 24792,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 24883,
"s": 24820,
"text": "Given an array arr[] of size n and integer k such that k <= n."
},
{
"code": null,
"e": 24895,
"s": 24883,
"text": "Examples : "
},
{
"... |
How to create permutations as a list in R? | The permutation is the combination with orders. For example, if we want to create a key for lock with a sequence of numbers then it must be order in some direction, otherwise, it will be difficult to remember and easy to unlock. We can find the permutation of some numbers or characters by using permn function of combin... | [
{
"code": null,
"e": 1394,
"s": 1062,
"text": "The permutation is the combination with orders. For example, if we want to create a key for lock with a sequence of numbers then it must be order in some direction, otherwise, it will be difficult to remember and easy to unlock. We can find the permutat... |
Java void Keyword | ❮ Java Keywords
A method without any return values:
public class Main {
static void myMethod() {
System.out.println("I just got executed!");
}
public static void main(String[] args) {
myMethod();
}
}
Try it Yourself »
The void keyword specifies that a method should not have a return value.
Tip: If ... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 54,
"s": 18,
"text": "A method without any return values:"
},
{
"code": null,
"e": 220,
"s": 54,
"text": "public class Main {\n static void myMethod() {\n System.out.pri... |
How to split a semicolon-separated string to a dictionary in Python? | If you have strings like:
"Name1=Value1;Name2=Value2;Name3=Value3"
and you want to convert it to a dictionary, it is fairly easy. You could simply split on ';' and then on '=' and pass this to dict constructor.
>>> s = "Name1=Value1;Name2=Value2;Name3=Value3"
>>> dict(item.split("=") for item in s.split(";"))
{'Name2'... | [
{
"code": null,
"e": 1088,
"s": 1062,
"text": "If you have strings like:"
},
{
"code": null,
"e": 1129,
"s": 1088,
"text": "\"Name1=Value1;Name2=Value2;Name3=Value3\""
},
{
"code": null,
"e": 1274,
"s": 1129,
"text": "and you want to convert it to a dictionary... |
Python - Import from parent directory - GeeksforGeeks | 30 May, 2021
In this article, we will learn how to Import a module from the parent directory. From Python 3.3, referencing or importing a module in the parent directory is not allowed, From the below example you can clearly understand this.
structure of directory
In the parent directory, we have a subdirectory, geeks.... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 25875,
"s": 25647,
"text": "In this article, we will learn how to Import a module from the parent directory. From Python 3.3, referencing or importing a module in the parent directory is not ... |
Check if two strings are k-anagrams or not - GeeksforGeeks | 13 Jul, 2021
Given two strings of lowercase alphabets and a value k, the task is to find if two strings are K-anagrams of each other or not.Two strings are called k-anagrams if following two conditions are true.
Both have same number of characters.Two strings can become anagram by changing at most k characters in a st... | [
{
"code": null,
"e": 26511,
"s": 26483,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 26711,
"s": 26511,
"text": "Given two strings of lowercase alphabets and a value k, the task is to find if two strings are K-anagrams of each other or not.Two strings are called k-anagrams if... |
Check if a large number is divisible by 3 or not in java | If the sum of the digits of a number is divisible by 3, then the number is divisible by 3.
Some examples of numbers divisible by 3 are as follows.
The number 85203 is divisible by 3 because the sum of its digits (8 + 5 + 2 + 0 + 3 = 18) is divisible by 3.
The number 79154 is not divisible by 3 because the sum of its di... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "If the sum of the digits of a number is divisible by 3, then the number is divisible by 3."
},
{
"code": null,
"e": 1209,
"s": 1153,
"text": "Some examples of numbers divisible by 3 are as follows."
},
{
"code": null,
"e"... |
AngularJS | angular.isUndefined() Function - GeeksforGeeks | 12 Apr, 2019
The angular.isUndefined() function in AngularJS is used to determine the value inside isUndefined function is undefined or not. It returns true if the reference is undefined otherwise returns false.
Syntax:
angular.isUndefined( value )
Return Value: It returns true if the value passed is undefined else ret... | [
{
"code": null,
"e": 28271,
"s": 28243,
"text": "\n12 Apr, 2019"
},
{
"code": null,
"e": 28470,
"s": 28271,
"text": "The angular.isUndefined() function in AngularJS is used to determine the value inside isUndefined function is undefined or not. It returns true if the reference is... |
IntStream parallel() in Java - GeeksforGeeks | 06 Dec, 2018
IntStream parallel() is a method in java.util.stream.IntStream. This method returns a parallel IntStream, i.e, it may return itself, either because the stream was already present, or because the underlying stream state was modified to be parallel.
IntStream parallel() is an intermediate operation. These op... | [
{
"code": null,
"e": 23974,
"s": 23946,
"text": "\n06 Dec, 2018"
},
{
"code": null,
"e": 24222,
"s": 23974,
"text": "IntStream parallel() is a method in java.util.stream.IntStream. This method returns a parallel IntStream, i.e, it may return itself, either because the stream was ... |
Check whether Quadrilateral is valid or not if angles are given - GeeksforGeeks | 01 Sep, 2021
Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the given quadrilateral is valid or not.
Examples:
Input: A = 80, B = 70, C = 100, D=110 Output: Valid
Input: A = 70, B = 80, C = 130, D=60 Output: Invalid
Approach: A Quadrila... | [
{
"code": null,
"e": 24632,
"s": 24604,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 24800,
"s": 24632,
"text": "Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the given quadrilateral is valid or ... |
Android & iOS App development using React Native with Expo - GeeksforGeeks | 07 Aug, 2019
EXPO! How Expo differs from React Native? Should I start my project with Expo? Many questions arise in newbies mind when he/she wants to get a start in the app development journey.
But, you are lucky as you have landed in the right place. I will try my best to explain everything in a simple manner.
As per ... | [
{
"code": null,
"e": 25206,
"s": 25178,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 25387,
"s": 25206,
"text": "EXPO! How Expo differs from React Native? Should I start my project with Expo? Many questions arise in newbies mind when he/she wants to get a start in the app dev... |
HTML | DOM Input Text value Property - GeeksforGeeks | 14 May, 2021
The Input Text value property in HTML DOM is used to set or return the value of a value attribute of the input field. The value attribute specifies the initial value of the input Text Field. It contains the default value or the user types.Syntax:
It returns the Input Text value property.
textObject.val... | [
{
"code": null,
"e": 26170,
"s": 26142,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 26419,
"s": 26170,
"text": "The Input Text value property in HTML DOM is used to set or return the value of a value attribute of the input field. The value attribute specifies the initial val... |
How to Merge multiple CSV Files into a single Pandas dataframe ? | 09 May, 2021
While working with CSV files during data analysis, we often have to deal with large datasets. Sometimes, it might be possible that a single CSV file doesn’t consist of all the data that you need. In such cases, there’s a need to merge these files into a single data frame. Luckily, the Pandas library provid... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 528,
"s": 52,
"text": "While working with CSV files during data analysis, we often have to deal with large datasets. Sometimes, it might be possible that a single CSV file doesn’t consist of all th... |
How To Annotate Clusters with Circle/Ellipse by a Variable in R ggplot2 | 24 Mar, 2022
In this article, we will discuss how to annotate Clusters with Circle/Ellipse by a categorical variable in the R Programming Language using the ggplot2 package.
To add a circle or ellipse around a cluster of data points, we use the geom_mark_circle() and geom_mark_ellipse() function of the ggforce package.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 189,
"s": 28,
"text": "In this article, we will discuss how to annotate Clusters with Circle/Ellipse by a categorical variable in the R Programming Language using the ggplot2 package."
},
{
... |
Python Tkinter – Text Widget | 24 Jan, 2022
Tkinter is a GUI toolkit used in python to make user-friendly GUIs.Tkinter is the most commonly used and the most basic GUI framework available in python. Tkinter uses an object-oriented approach to make GUIs.Note: For more information, refer to Python GUI – tkinter
Text Widget is used where a user wants ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 320,
"s": 52,
"text": "Tkinter is a GUI toolkit used in python to make user-friendly GUIs.Tkinter is the most commonly used and the most basic GUI framework available in python. Tkinter uses an obj... |
What is CAPTCHA code? | 14 Aug, 2020
Captcha is strategy used to ensure sites against spam. Objective is to prevent intuitive sites from being spammed by sifting through naturally created input.
Abbreviation CAPTCHA means ‘Totally Automated Public Turing test to distinguish Computers and Humans’. As from get-go as year 1950, PC researcher Ala... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Aug, 2020"
},
{
"code": null,
"e": 186,
"s": 28,
"text": "Captcha is strategy used to ensure sites against spam. Objective is to prevent intuitive sites from being spammed by sifting through naturally created input."
},
{
"co... |
One-vs-Rest strategy for Multi-Class Classification | 17 Jul, 2020
Prerequisite: Getting Started with Classification/
Classification is perhaps the most common Machine Learning task. Before we jump into what One-vs-Rest (OVR) classifiers are and how they work, you may follow the link below and get a brief overview of what classification is and how it is useful.
In general... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jul, 2020"
},
{
"code": null,
"e": 79,
"s": 28,
"text": "Prerequisite: Getting Started with Classification/"
},
{
"code": null,
"e": 325,
"s": 79,
"text": "Classification is perhaps the most common Machine Learnin... |
Scala List apply() method with example | 26 Jul, 2019
The apply() method is utilized to select an element in the list by its index.
Method Definition: def apply(n: Int): A
Return Type: It returns an element from the given list by its index which is present in the apply method as argument.
Example #1:
// Scala program of apply()// method // Creating objectobj... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2019"
},
{
"code": null,
"e": 106,
"s": 28,
"text": "The apply() method is utilized to select an element in the list by its index."
},
{
"code": null,
"e": 146,
"s": 106,
"text": "Method Definition: def apply... |
GRE Geometry | Triangles | 06 Sep, 2021
Triangle is one of the basic 2-D shapes in geometry. It consists of three angles, three side and three vertices, e.g.,
On the basis of measurement of sides and angles there different types of triangle listed below:
1. Equilateral triangle: All edges are equal, all angles are also equal to 60°, e.g.,
2.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 148,
"s": 28,
"text": "Triangle is one of the basic 2-D shapes in geometry. It consists of three angles, three side and three vertices, e.g., "
},
{
"code": null,
"e": 245,
"s": 148,... |
Dart Programming – If Else Statement (if , if..else, Nested if, if-else-if) | 30 Jun, 2020
Decision-making statements are those statements which allow the programmers to decide which statement should run in different conditions. There are four ways to achieve this:
This type of statements simply checks the condition and if it is true the statements within it is executed but if it in is not then... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n30 Jun, 2020"
},
{
"code": null,
"e": 229,
"s": 53,
"text": "Decision-making statements are those statements which allow the programmers to decide which statement should run in different conditions. There are four ways to achieve this:... |
Material Design Components Sliders in Android | 27 Sep, 2021
Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android applications. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android appl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 691,
"s": 28,
"text": "Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android applications. Developed by a core team of engineer... |
JavaScript Date toUTCString() Method | 21 Oct, 2021
Below is the example of Date toUTCString() method.
Example:<script> // Here a date has been assigned // while creating Date object var dateobj = new Date('October 15, 1996 05:35:32'); // Contents of above date object is converted // into a string using toUTCString() method. var B = dateobj.to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 79,
"s": 28,
"text": "Below is the example of Date toUTCString() method."
},
{
"code": null,
"e": 416,
"s": 79,
"text": "Example:<script> // Here a date has been assigned // ... |
ATSCAN – Advance Web Application Scanner in Kali Linux | 20 Apr, 2021
ATSCAN stands for Advance Web Application Scanner. ATSCAN is a free and open-source tool available on GitHub. ATSCAN is a vulnerability scanner tool. This tool is used for vulnerability scanning of websites and webapps. This tool also works as web exploitation tool. ATSCAN is written in Perl language. You ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Apr, 2021"
},
{
"code": null,
"e": 673,
"s": 28,
"text": "ATSCAN stands for Advance Web Application Scanner. ATSCAN is a free and open-source tool available on GitHub. ATSCAN is a vulnerability scanner tool. This tool is used for vul... |
C# | Converting an array of one type to an array of another type | 01 Feb, 2019
Array.ConvertAll(TInput[], Converter<TInput, TOutput>) Method is used to convert an array of one type to an array of another type.
Syntax:
public static TOutput[] ConvertAll<TInput,TOutput> (TInput[] array,
Converter<TInput,TOutput> converter);
Here, TInput and TOutput is the source array and target array... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 159,
"s": 28,
"text": "Array.ConvertAll(TInput[], Converter<TInput, TOutput>) Method is used to convert an array of one type to an array of another type."
},
{
"code": null,
"e": 167,
... |
How to convert JSON file to CSV file using PowerShell? | To convert the JSON file to the CSV file using PowerShell, we need to use the ConvertTo-CSV command as a pipeline.
For example, we have a JSON file called PatchingServer.JSON stored at C:\temp and its content is as below.
PS C:\> Get-Content C:\Temp\PatchingServer.json
{
"Port": "9000",
"ApplicationName": "TestAp... | [
{
"code": null,
"e": 1302,
"s": 1187,
"text": "To convert the JSON file to the CSV file using PowerShell, we need to use the ConvertTo-CSV command as a pipeline."
},
{
"code": null,
"e": 1409,
"s": 1302,
"text": "For example, we have a JSON file called PatchingServer.JSON stored ... |
variables – Django Templates | 02 Dec, 2021
A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenience to rendering data in a template. Django templates not only allow passing data from view to template, but also provides some limited... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 559,
"s": 28,
"text": "A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenience... |
Python – Replace vowels in a string with a specific character K | 06 Jul, 2022
Given a string, replace all the vowels with character K.
Input : test_str = “Geeks for Geeks”; K=’#’Output : “G##ks f#r G##ks” Explanation : All the vowels in test_str are replaced by a give particular character.
Input : test_list = “GFG”; K=”$”Output : GFGExplanation : As test_str contained no vowel, so t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 111,
"s": 54,
"text": "Given a string, replace all the vowels with character K."
},
{
"code": null,
"e": 267,
"s": 111,
"text": "Input : test_str = “Geeks for Geeks”; K=’#’Outpu... |
Python set to check if string is panagram | 20 Jun, 2022
Given a string, check if the given string is pangram or not.Examples:
Input : The quick brown fox jumps over the lazy dog
Output : The string is a pangram
Input : geeks for geeks
Output : The string is not pangram
A normal way would have been to use frequency table and check if all elements were prese... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 124,
"s": 52,
"text": "Given a string, check if the given string is pangram or not.Examples: "
},
{
"code": null,
"e": 269,
"s": 124,
"text": "Input : The quick brown fox jumps... |
Can we use LIKE and OR together in MySql? | You can use LIKE with OR operator which works same as IN operator.
Let us see the syntax for both the cases −
select *from yourTableName where yourColumnName Like ‘Value1’
or yourColumnName Like ‘Value2’
or yourColumnName Like ‘Value3’
.
.
.
N
select *from yourTableName where IN(value1,value2,value3,.....N);
To underst... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "You can use LIKE with OR operator which works same as IN operator."
},
{
"code": null,
"e": 1172,
"s": 1129,
"text": "Let us see the syntax for both the cases −"
},
{
"code": null,
"e": 1306,
"s": 1172,
"text": "s... |
How to change the automatic sorting of X-axis of a bar plot using ggplot2 in R? | If there is a category for which the frequency is significantly different from others then the X-axis labels of the bar plot using ggplot2 are automatically sorted to present the values alternatively. We might want to keep the original sequence of categories that is available in the categorical variable. Therefore, we ... | [
{
"code": null,
"e": 1459,
"s": 1062,
"text": "If there is a category for which the frequency is significantly different from others then the X-axis labels of the bar plot using ggplot2 are automatically sorted to present the values alternatively. We might want to keep the original sequence of categ... |
Update field in exact element array in MongoDB? | You can update the in exact element array in MongoDB with the help of below statement. The syntax is as follows:
{"yourArrayDocumentName.$.yourNestedArrayDocument.yourPosition":"yourValue"}});
To understand the above syntax, let us create a collection with some documents. The query to create a collection with document ... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "You can update the in exact element array in MongoDB with the help of below statement. The syntax is as follows:"
},
{
"code": null,
"e": 1255,
"s": 1175,
"text": "{\"yourArrayDocumentName.$.yourNestedArrayDocument.yourPosition\":\"y... |
Sorted subsequence of size 3 | Practice | GeeksforGeeks | Given an array A of N integers, find any 3 elements in it such that A[i] < A[j] < A[k] and i < j < k.
Example 1:
Input:
N = 5
A[] = {1,2,1,1,3}
Output: 1
Explanation: a sub-sequence 1 2 3 exist.
Example 2:
Input:
N = 3
A[] = {1,1,3}
Output: 0
Explanation: no such sub-sequence exist.
Your Task:
Your task is to complet... | [
{
"code": null,
"e": 341,
"s": 238,
"text": "Given an array A of N integers, find any 3 elements in it such that A[i] < A[j] < A[k] and i < j < k. "
},
{
"code": null,
"e": 352,
"s": 341,
"text": "Example 1:"
},
{
"code": null,
"e": 435,
"s": 352,
"text": "Inp... |
Deploy a Machine Learning Model as an API on AWS Elastic Beanstalk | by Brent Lemieux | Towards Data Science | There are dozens of great articles and tutorials written every day discussing how to develop all kinds of machine learning models. However, I rarely see articles explaining how to put models into production. If you want your model to have a real-world impact, it needs to be accessible to other users and applications.
T... | [
{
"code": null,
"e": 491,
"s": 172,
"text": "There are dozens of great articles and tutorials written every day discussing how to develop all kinds of machine learning models. However, I rarely see articles explaining how to put models into production. If you want your model to have a real-world imp... |
How to set up Anaconda and Jupyter Notebook the right way | by Justin Güse | Towards Data Science | If Anaconda (conda) and Jupyter Notebook (Jupyter Lab) are set up the right way the combination of them can become the perfect team, where you are able to easily switch between Deep Learning conda environments.
Some programs requiring Tensorflow 1.15, others Tensorflow 2.0? No problem! Just switch environments and Tens... | [
{
"code": null,
"e": 383,
"s": 172,
"text": "If Anaconda (conda) and Jupyter Notebook (Jupyter Lab) are set up the right way the combination of them can become the perfect team, where you are able to easily switch between Deep Learning conda environments."
},
{
"code": null,
"e": 529,
... |
An explainable topological search engine with Giotto-tda | by Matteo Caorsi | Towards Data Science | The co-author of the blogpost: F. Cornell.
In this blog post, based on the work by F. Cornell, we explain how one can use Giotto-tda [2] to cluster words and create a semantical search engine, retrieving documents similar to one's query, thereby showing how we can use topological techniques in the context of Natural La... | [
{
"code": null,
"e": 215,
"s": 172,
"text": "The co-author of the blogpost: F. Cornell."
},
{
"code": null,
"e": 517,
"s": 215,
"text": "In this blog post, based on the work by F. Cornell, we explain how one can use Giotto-tda [2] to cluster words and create a semantical search e... |
Binary Classification of IMDB Movie Reviews | by Rakshit Raj | Towards Data Science | Binary Classification refers to classifying samples in one of two categories.
In this example, we will design a neural network to perform two-class classification, or binary classification, of reviews, from the IMDB movie reviews dataset, to determine whether the reviews are positive or negative. We will use the Python... | [
{
"code": null,
"e": 250,
"s": 172,
"text": "Binary Classification refers to classifying samples in one of two categories."
},
{
"code": null,
"e": 509,
"s": 250,
"text": "In this example, we will design a neural network to perform two-class classification, or binary classificati... |
reduce() in Python - GeeksforGeeks | 26 May, 2021
The reduce(fun,seq) function is used to apply a particular function passed in its argument to all of the list elements mentioned in the sequence passed along.This function is defined in “functools” module.
Working :
At first step, first two elements of sequence are picked and the result is obtained.
Next... | [
{
"code": null,
"e": 23992,
"s": 23964,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 24198,
"s": 23992,
"text": "The reduce(fun,seq) function is used to apply a particular function passed in its argument to all of the list elements mentioned in the sequence passed along.This ... |
SAP UI5 - Notepad Controls | A Control is used to define the appearance and screen area. It contains properties likewidth and text. These properties are used to modify the appearance or change the data displayed by the control. You can create aggregate controls or associated controls.
Associated control of a control is defined as loosely related c... | [
{
"code": null,
"e": 2298,
"s": 2041,
"text": "A Control is used to define the appearance and screen area. It contains properties likewidth and text. These properties are used to modify the appearance or change the data displayed by the control. You can create aggregate controls or associated contro... |
How to selectively retrieve value from json output JavaScript | We have the following data inside a json file data.json −
data.json
{
"names": [{
"name": "Ramesh",
"readable": true
}, {
"name": "Suresh",
"readable": false
}, {
"name": "Mahesh",
"readable": true
}, {
"name": "Gourav",
"readable": true
}, {
"name": ... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "We have the following data inside a json file data.json −"
},
{
"code": null,
"e": 1130,
"s": 1120,
"text": "data.json"
},
{
"code": null,
"e": 1423,
"s": 1130,
"text": "{\n \"names\": [{\n \"name\": \"Rame... |
Keras Callbacks and How to Save Your Model from Overtraining | by Josh Johnson | Towards Data Science | In this article, you will learn how to use the ModelCheckpoint callback in Keras to save the best version of your model during training.
I love building predictive deep learning models. I love watching the training outputs, seeing the loss fall and watching for the diverging losses between training and validation sets ... | [
{
"code": null,
"e": 309,
"s": 172,
"text": "In this article, you will learn how to use the ModelCheckpoint callback in Keras to save the best version of your model during training."
},
{
"code": null,
"e": 904,
"s": 309,
"text": "I love building predictive deep learning models. ... |
Handling EOFError Exception in Python | 02 Sep, 2020
EOFError is raised when one of the built-in functions input() or raw_input() hits an end-of-file condition (EOF) without reading any data. This error is sometimes experienced while using online IDEs. This occurs when we have asked the user for input but have not provided any input in the input box. We can ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 461,
"s": 52,
"text": "EOFError is raised when one of the built-in functions input() or raw_input() hits an end-of-file condition (EOF) without reading any data. This error is sometimes experienced... |
Reading Text from the Image using Tesseract | 30 Aug, 2020
Pytesseract or Python-tesseract is an Optical Character Recognition (OCR) tool for python. It will read and recognize the text in images, license plates, etc. Here, we will use the tesseract package to read the text from the given image.
Mainly, 3 simple steps are involved here as shown below:-
Loading... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Aug, 2020"
},
{
"code": null,
"e": 268,
"s": 28,
"text": "Pytesseract or Python-tesseract is an Optical Character Recognition (OCR) tool for python. It will read and recognize the text in images, license plates, etc. Here, we will us... |
Place_forget() method using Tkinter in Python | 01 Aug, 2020
To hide or forget a widget from the parent widget or screen in tkinter, the place_forget() method is used on that widget based on place geometry management.
Syntax: widget.place_forget()
Parameter: NoneReturn: None
Below is the implementation :
Python3
# Imports everything from tkinter# and ttk modulefro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 185,
"s": 28,
"text": "To hide or forget a widget from the parent widget or screen in tkinter, the place_forget() method is used on that widget based on place geometry management."
},
{
"cod... |
XQuery - If Then Else | XQuery provides a very useful if-then-else construct to check the validity of the input values passed. Given below is the syntax of the if-then-else construct.
if (condition) then
...
else
...
We will use the following books.xml file and apply to it XQuery expression containing an if-then-else construct to retrieve... | [
{
"code": null,
"e": 2032,
"s": 1872,
"text": "XQuery provides a very useful if-then-else construct to check the validity of the input values passed. Given below is the syntax of the if-then-else construct."
},
{
"code": null,
"e": 2069,
"s": 2032,
"text": "if (condition) then\n ... |
Java ResultSet wasNull() 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": 1150,
"s": 1062,
"text": "When we execute certain SQL queries (SELECT query in general) they return tabular data."
},
{
"code": null,
"e": 1244,
"s": 1150,
"text": "The java.sql.ResultSet interface represents such tabular data returned by the SQL statements."... |
Dynamic Mode Decomposition for Multivariate Time Series Forecasting | by Xinyu Chen (陈新宇) | Towards Data Science | Dynamic mode decomposition (DMD) is a data-driven dimensionality reduction algorithm developed by Peter Schmid in 2008 (paper published in 2010, see [1, 2]), which is similar to matrix factorization and principle component analysis (PCA) algorithms. Given a multivariate time series data set, DMD computes a set of dynam... | [
{
"code": null,
"e": 1058,
"s": 172,
"text": "Dynamic mode decomposition (DMD) is a data-driven dimensionality reduction algorithm developed by Peter Schmid in 2008 (paper published in 2010, see [1, 2]), which is similar to matrix factorization and principle component analysis (PCA) algorithms. Give... |
How to Add Google Charts on a Webpage? - GeeksforGeeks | 21 Oct, 2021
What is a pie chart?A pie chart (or a circle chart) is a circular statistical graphic which is divided into slices to illustrate numerical proportion. In a pie chart, the arc length of each slice (and consequently its central angle and area), is proportional to the quantity it represents. While it is named... | [
{
"code": null,
"e": 25103,
"s": 25075,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 25516,
"s": 25103,
"text": "What is a pie chart?A pie chart (or a circle chart) is a circular statistical graphic which is divided into slices to illustrate numerical proportion. In a pie cha... |
R - Random Forest | In the random forest approach, a large number of decision trees are created. Every observation is fed into every decision tree. The most common outcome for each observation is used as the final output. A new observation is fed into all the trees and taking a majority vote for each classification model.
An error estimat... | [
{
"code": null,
"e": 2706,
"s": 2402,
"text": "In the random forest approach, a large number of decision trees are created. Every observation is fed into every decision tree. The most common outcome for each observation is used as the final output. A new observation is fed into all the trees and tak... |
Perl | Use of STDIN for Input - GeeksforGeeks | 24 Jun, 2019
Perl allows the programmer to accept input from the user to perform operations on. This makes it easier for the user to give input of its own and not only the one provided as Hardcoded input by the programmer. This Input can then be processed and printed with the use of print() function.
Input to a Perl pr... | [
{
"code": null,
"e": 23631,
"s": 23603,
"text": "\n24 Jun, 2019"
},
{
"code": null,
"e": 23920,
"s": 23631,
"text": "Perl allows the programmer to accept input from the user to perform operations on. This makes it easier for the user to give input of its own and not only the one ... |
How to Auto-Update PDF When Working on LaTeX | by Shinichi Okada | Towards Data Science | Table of ContentsIntroduction1. Installing LaTeX2. Creating PDF from a terminal using latexmk3. Installing LaTeX Workshop Extension to VS Code4. Create your own snippets5. Testing the snippet6. LaTeX Workshop error7. Automatically update PDF when you saveConclusion
I am an occasional LaTeX user. I use Typora for writin... | [
{
"code": null,
"e": 438,
"s": 172,
"text": "Table of ContentsIntroduction1. Installing LaTeX2. Creating PDF from a terminal using latexmk3. Installing LaTeX Workshop Extension to VS Code4. Create your own snippets5. Testing the snippet6. LaTeX Workshop error7. Automatically update PDF when you save... |
Tryit Editor v3.6 - Show Python | mydb = mysql.connector.connect(
host="localhost",
user="myusername",
password="mypassword"
)
mycursor = mydb.cursor()
mycursor.execute("CREATE DATABASE mydatabase") | [
{
"code": null,
"e": 57,
"s": 25,
"text": "mydb = mysql.connector.connect("
},
{
"code": null,
"e": 77,
"s": 57,
"text": " host=\"localhost\","
},
{
"code": null,
"e": 98,
"s": 77,
"text": " user=\"myusername\","
},
{
"code": null,
"e": 122,
... |
MFC - Slider Controls | A Slider Control (also known as a trackbar) is a window containing a slider and optional tick marks. When the user moves the slider, using either the mouse or the direction keys, the control sends notification messages to indicate the change. There are two types of sliders — horizontal and vertical. It is represented b... | [
{
"code": null,
"e": 2408,
"s": 2067,
"text": "A Slider Control (also known as a trackbar) is a window containing a slider and optional tick marks. When the user moves the slider, using either the mouse or the direction keys, the control sends notification messages to indicate the change. There are ... |
About Text Vectorization. The magic of converting text to numbers | by Mohamed Gharibi | Towards Data Science | This post will walk you through the basics of text vectorization which is converting text to vectors (list of numbers). In this post, we present Bag of Words (BOW) and its flavors: Frequency Vectors, One Hot Encoding (OHE), and Term Frequency/Inverse Document Frequency (TF/IDF).
Representing text with numbers has many ... | [
{
"code": null,
"e": 451,
"s": 171,
"text": "This post will walk you through the basics of text vectorization which is converting text to vectors (list of numbers). In this post, we present Bag of Words (BOW) and its flavors: Frequency Vectors, One Hot Encoding (OHE), and Term Frequency/Inverse Docu... |
Set addAll() method in Java with Examples - GeeksforGeeks | 31 Dec, 2018
The java.util.Set.addAll(Collection C) method is used to append all of the elements from the mentioned collection to the existing set. The elements are added randomly without following any specific order.
Syntax:
boolean addAll(Collection C)
Parameters: The parameter C is a collection of any type that is t... | [
{
"code": null,
"e": 24414,
"s": 24386,
"text": "\n31 Dec, 2018"
},
{
"code": null,
"e": 24619,
"s": 24414,
"text": "The java.util.Set.addAll(Collection C) method is used to append all of the elements from the mentioned collection to the existing set. The elements are added rando... |
How to send an email with a file attachment in Android using Kotlin? | This example demonstrates how to send an email with a file attachment in Android using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="u... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "This example demonstrates how to send an email with a file attachment in Android using Kotlin."
},
{
"code": null,
"e": 1286,
"s": 1157,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ... |
Difference Between BufferedReader and FileReader in Java - GeeksforGeeks | 26 Jul, 2021
BufferedReader and FileReader both classes are used to read data from a given character stream. Both of them have some pros and some cons. In this article, we will discuss the differences between them. Though the most important difference is in the way they work, but we will discuss the other details also.... | [
{
"code": null,
"e": 24883,
"s": 24855,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 25192,
"s": 24883,
"text": "BufferedReader and FileReader both classes are used to read data from a given character stream. Both of them have some pros and some cons. In this article, we will... |
How to Remove Duplicate Values From an Array in C#? - GeeksforGeeks | 23 Nov, 2021
An array is a group of homogeneous elements that are referred to by a common name and can contain duplicate values. In C#, we cannot remove elements from the specified array but we can create a new array that contains the distinct elements. So to do this we use the Distinct() function. This function gives ... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 24334,
"s": 23911,
"text": "An array is a group of homogeneous elements that are referred to by a common name and can contain duplicate values. In C#, we cannot remove elements from the speci... |
The 5 Classification Evaluation metrics every Data Scientist must know | by Rahul Agarwal | Towards Data Science | What do we want to optimize for? Most of the businesses fail to answer this simple question.
Every business problem is a little different, and it should be optimized differently.
We all have created classification models. A lot of time we try to increase evaluate our models on accuracy. But do we really want accuracy a... | [
{
"code": null,
"e": 265,
"s": 172,
"text": "What do we want to optimize for? Most of the businesses fail to answer this simple question."
},
{
"code": null,
"e": 351,
"s": 265,
"text": "Every business problem is a little different, and it should be optimized differently."
},
... |
What are the differences between switch_to_default_content() and switch_to.parent_frame() methods in Selenium with python? | There are differences between switch_to.parent_frame() and switch_to_default_content() in frames. They are listed below −
switch_to_parent_frame()This method is used to come out of the present frame, then we can access the elements outside that frame and not inside of that frame. Thus the control is switched; the outer... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "There are differences between switch_to.parent_frame() and switch_to_default_content() in frames. They are listed below −"
},
{
"code": null,
"e": 1483,
"s": 1184,
"text": "switch_to_parent_frame()This method is used to come out of t... |
K-Means in Marketing Analysis: Clustering 210 US DMAs | by Bonnie Ma | Towards Data Science | It makes me really excited when I can apply machine learning techniques on day to day marketing problems. To give you some background, I am working in a big advertising agency and some of my clients are top advertisers in the U.S. whose products and services cover the whole country and they have a lot of marketing budg... | [
{
"code": null,
"e": 606,
"s": 172,
"text": "It makes me really excited when I can apply machine learning techniques on day to day marketing problems. To give you some background, I am working in a big advertising agency and some of my clients are top advertisers in the U.S. whose products and servi... |
Method Chaining in JavaScript | Chaining Methods, also known as Cascading, means repeatedly calling one method after another on an object, in one continuous line of code. Let us look at an example where method chaining can help us avoid repetition.
Take the following class car for example -
class Car {
constructor() {
this.wheels = 4
t... | [
{
"code": null,
"e": 1404,
"s": 1187,
"text": "Chaining Methods, also known as Cascading, means repeatedly calling one method after another on an object, in one continuous line of code. Let us look at an example where method chaining can help us avoid repetition."
},
{
"code": null,
"e":... |
C# Currency ("C") Format Specifier | The "C" (or currency) format specifier is used to convert a number to a string representing a currency amount.
Let us see an example.
double value = 139.87;
Now to display the above number until three decimal places, use (“C3”) currency format specifier.
value.ToString("C3", CultureInfo.CurrentCulture)
Let us see anoth... | [
{
"code": null,
"e": 1298,
"s": 1187,
"text": "The \"C\" (or currency) format specifier is used to convert a number to a string representing a currency amount."
},
{
"code": null,
"e": 1321,
"s": 1298,
"text": "Let us see an example."
},
{
"code": null,
"e": 1344,
... |
How to add 24 hours to a unix timestamp in php? | 17 May, 2020
The Unix timestamp is designed to track time as a running total of seconds from the Unix Epoch on January 1st, 1970 at UTC. To add 24 hours to a Unix timestamp we can use any of these methods:
Method 1: Convert 24 hours to seconds and add the result to current Unix time.
Program:<?php echo time() + (24*6... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "The Unix timestamp is designed to track time as a running total of seconds from the Unix Epoch on January 1st, 1970 at UTC. To add 24 hours to a Unix timestamp we can use any ... |
Cypress - Fixtures | Cypress fixtures are added to maintain and hold the test data for automation. The fixtures are kept inside the fixtures folder (example.json file) in the Cypress project. Basically, it helps us to get the data input from external files.
Cypress fixtures folder can have files in JSON or other formats and the data is mai... | [
{
"code": null,
"e": 2868,
"s": 2631,
"text": "Cypress fixtures are added to maintain and hold the test data for automation. The fixtures are kept inside the fixtures folder (example.json file) in the Cypress project. Basically, it helps us to get the data input from external files."
},
{
"c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.