title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to create a constant array in JavaScript? Can we change its values? Explain. | To create a const array in JavaScript we need to write const before the array name. The individual array elements can be reassigned but not the whole array.
Following is the code to create a constant array in JavaScript.
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" c... | [
{
"code": null,
"e": 1344,
"s": 1187,
"text": "To create a const array in JavaScript we need to write const before the array name. The individual array elements can be reassigned but not the whole array."
},
{
"code": null,
"e": 1408,
"s": 1344,
"text": "Following is the code to ... |
SQL Full Outer Join Using Left and Right Outer Join and Union Clause | 21 Apr, 2021
An SQL join statement is used to combine rows or information from two or more than two tables on the basis of a common attribute or field. There are basically four types of JOINS in SQL.
In this article, we will discuss FULL OUTER JOIN using LEFT OUTER Join, RIGHT OUTER JOIN, and UNION clause.
Consider the... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 241,
"s": 54,
"text": "An SQL join statement is used to combine rows or information from two or more than two tables on the basis of a common attribute or field. There are basically four types of J... |
Servlet – HttpSession Login and Logout Example | 13 Jan, 2022
In general, the term “Session” in computing language, refers to a period of time in which a user’s activity happens on a website. Whenever you login to an application or a website, the server should validate/identify the user and track the user interactions across the application. To achieve this, Java Web... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 459,
"s": 28,
"text": "In general, the term “Session” in computing language, refers to a period of time in which a user’s activity happens on a website. Whenever you login to an application or a web... |
Context Variables in Python | 17 Aug, 2020
Context variable objects in Python is an interesting type of variable which returns the value of variable according to the context. It may have multiple values according to context in single thread or execution. The ContextVar class present in contextvars module, which is used to declare and work with cont... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 361,
"s": 28,
"text": "Context variable objects in Python is an interesting type of variable which returns the value of variable according to the context. It may have multiple values according to co... |
Python | Pandas dataframe.min() | 24 Nov, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas dataframe.min() function returns the minimum of the values in the given object. If the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Write on an image using openCV in C++ | 04 Feb, 2021
In this article, we will discuss how to write over an image using OpenCV C++. Function putText() from OpenCV C++ library will be used to write text on an image.
Program 1:
Below program shows how to write text over a blank background image:
C++
// C++ program to demonstrate the// above approach#include <io... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 189,
"s": 28,
"text": "In this article, we will discuss how to write over an image using OpenCV C++. Function putText() from OpenCV C++ library will be used to write text on an image."
},
{
... |
Minimum distance from a point to the line segment using Vectors | 03 May, 2022
Given the coordinates of two endpoints A(x1, y1), B(x2, y2) of the line segment and coordinates of a point E(x, y); the task is to find the minimum distance from the point to line segment formed with the given coordinates.Note that both the ends of a line can go to infinity i.e. a line has no ending points... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 479,
"s": 52,
"text": "Given the coordinates of two endpoints A(x1, y1), B(x2, y2) of the line segment and coordinates of a point E(x, y); the task is to find the minimum distance from the point to... |
How to read a XLSX file with multiple Sheets in R? | 06 Jun, 2021
In this article, we are going to see how to read an XLSX file with multiple Sheets in R Language. There are various external packages in R used to read XLSX files with multiple sheets.
File Used:
Method 1: Using readxl package
The readxl package in R is used to import and read Excel workbooks in R, which c... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 213,
"s": 28,
"text": "In this article, we are going to see how to read an XLSX file with multiple Sheets in R Language. There are various external packages in R used to read XLSX files with multipl... |
Program to find the Interior and Exterior Angle of a Regular Polygon - GeeksforGeeks | 19 Mar, 2021
Given the number of sides n of a regular polygon. The task is to find out the Interior angle and Exterior angle of the polygon.Examples:
Input : n = 6
Output : Interior angle: 120
Exterior angle: 60
Input : n = 10
Output: Interior angle: 144
Exterior angle: 36
Interior angle: The angl... | [
{
"code": null,
"e": 26227,
"s": 26199,
"text": "\n19 Mar, 2021"
},
{
"code": null,
"e": 26366,
"s": 26227,
"text": "Given the number of sides n of a regular polygon. The task is to find out the Interior angle and Exterior angle of the polygon.Examples: "
},
{
"code": nu... |
How to create Text Editor using Javascript and HTML ? - GeeksforGeeks | 16 Apr, 2021
Project Introduction: In this article, we will learn how to make a simple text editor JavaScript application where we can manipulate the user input in different styles, edit the input, capitalize, etc many string operations. Let’s see the implementation.
Approach:
Create buttons to perform operations on te... | [
{
"code": null,
"e": 39215,
"s": 39187,
"text": "\n16 Apr, 2021"
},
{
"code": null,
"e": 39470,
"s": 39215,
"text": "Project Introduction: In this article, we will learn how to make a simple text editor JavaScript application where we can manipulate the user input in different st... |
Substitute characters of a String in R Programming - chartr() Function - GeeksforGeeks | 23 Dec, 2021
chartr() function in R Programming Language is used to do string substitutions. It replaces all the matches of the existing characters of a string with the new characters specified as arguments.
Syntax: chartr(old, new, x)
Parameters:
old: old string to be substituted
new: new string
x: target string
Exam... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n23 Dec, 2021"
},
{
"code": null,
"e": 26682,
"s": 26487,
"text": "chartr() function in R Programming Language is used to do string substitutions. It replaces all the matches of the existing characters of a string with the new cha... |
Code Optimization in Compiler Design - GeeksforGeeks | 03 Jul, 2020
The code optimization in the synthesis phase is a program transformation technique, which tries to improve the intermediate code by making it consume fewer resources (i.e. CPU, Memory) so that faster-running machine code will result. Compiler optimizing process should meet the following objectives :
The op... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 26788,
"s": 26487,
"text": "The code optimization in the synthesis phase is a program transformation technique, which tries to improve the intermediate code by making it consume fewer resourc... |
Program for longest common directory path - GeeksforGeeks | 30 Jun, 2021
Given n directory paths, we need to write a program to find longest common directory path. Examples:
Input : 3
"/home/User/Desktop/gfg/test"
"/home/User/Desktop/gfg/file"
"/home/User/Desktop/geeks/folders"
Output : Longest Common Path is /home/User/Desktop!
Input : 4
"/home/User/Desktop/gfg/test",
"/ho... | [
{
"code": null,
"e": 26099,
"s": 26071,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 26202,
"s": 26099,
"text": "Given n directory paths, we need to write a program to find longest common directory path. Examples: "
},
{
"code": null,
"e": 26558,
"s": 26202,
... |
How to get names of all colorscales in Plotly-Python? - GeeksforGeeks | 28 Nov, 2021
In this article, we will learn how to hide the colorbar and legend in plotly express in Python. Color bar are gradients that go from light to dark or the other way round. They are great for visualizing datasets that goes from low to high, like income, temperature, or age.
Step 1:
Import all the required pa... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 25810,
"s": 25537,
"text": "In this article, we will learn how to hide the colorbar and legend in plotly express in Python. Color bar are gradients that go from light to dark or the other way... |
Perl | Breakpoints of a Debugger - GeeksforGeeks | 21 Feb, 2019
Controlling program execution in Perl can be done by telling the debugger to execute up to a certain specified point in the program, called a breakpoint. These breakpoints enable the user to divide the program into sections and look for the errors.
Following are some commands in a debugger which are used t... | [
{
"code": null,
"e": 25480,
"s": 25452,
"text": "\n21 Feb, 2019"
},
{
"code": null,
"e": 25729,
"s": 25480,
"text": "Controlling program execution in Perl can be done by telling the debugger to execute up to a certain specified point in the program, called a breakpoint. These bre... |
Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i - GeeksforGeeks | 29 May, 2019
Given an array arr[] of non-negative integers. We have to delete elements from this array such that arr[i + 1] > arr[j] for each valid i and this will be counted as one step. We have to apply the same operations until the array has become strictly decreasing. Now the task is to count the number of steps re... | [
{
"code": null,
"e": 25917,
"s": 25889,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 26257,
"s": 25917,
"text": "Given an array arr[] of non-negative integers. We have to delete elements from this array such that arr[i + 1] > arr[j] for each valid i and this will be counted a... |
Java Program to Get First or Last Elements from HashSet - GeeksforGeeks | 20 Jun, 2021
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. There is no guarantee made for the iteration order of the set which means that the class does not guarantee the constant order of elements over time. This class permits the null element. The class a... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n20 Jun, 2021"
},
{
"code": null,
"e": 25753,
"s": 25225,
"text": "The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. There is no guarantee made for the iteration order of ... |
Find parent of each node in a tree for multiple queries - GeeksforGeeks | 20 Dec, 2021
Given a tree with N vertices numbered from 0 to N – 1 and Q query containing nodes in the tree, the task is to find the parent node of the given node for multiple queries. Consider the 0th node as the root node and take the parent of the root node as the root itself.Examples:
Tree:
0
/ \
... | [
{
"code": null,
"e": 25917,
"s": 25889,
"text": "\n20 Dec, 2021"
},
{
"code": null,
"e": 26196,
"s": 25917,
"text": "Given a tree with N vertices numbered from 0 to N – 1 and Q query containing nodes in the tree, the task is to find the parent node of the given node for multiple ... |
Flutter - Implementing Overlay - GeeksforGeeks | 28 Jul, 2021
Overlays let independent child widgets float visual elements on top of other widgets by inserting them into the overlay’s Stack.
This article discusses the implementation of Overlays in Flutter. To implement Overlay in Flutter we need to know about two Flutter built-in classes OverlayEntry class and the Ov... | [
{
"code": null,
"e": 25287,
"s": 25259,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25416,
"s": 25287,
"text": "Overlays let independent child widgets float visual elements on top of other widgets by inserting them into the overlay’s Stack."
},
{
"code": null,
"e... |
Grouped barplot in R with error bars - GeeksforGeeks | 22 Nov, 2021
In this article, we are going to see how to create grouped barplot in the R programming language with error bars.
A data frame can be created in R working space using the data.frame() method. The tidyverse package is installed and loaded into the working space in order to perform data mutations and manipul... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 26601,
"s": 26487,
"text": "In this article, we are going to see how to create grouped barplot in the R programming language with error bars."
},
{
"code": null,
"e": 26803,
"... |
strol() function in C++ - GeeksforGeeks | 21 Nov, 2021
The strtol() function in C++ interprets the contents of a string as an integral number of the specified base and return its value as a long int.This function also sets an end pointer that points to the first character after the last valid numeric character of the string, if there is no such character then ... | [
{
"code": null,
"e": 25847,
"s": 25819,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 26239,
"s": 25847,
"text": "The strtol() function in C++ interprets the contents of a string as an integral number of the specified base and return its value as a long int.This function also ... |
How to get beginning of the first day of this week from timestamp in Android sqlite? | Before getting into an example, we should know what SQLite database in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you... | [
{
"code": null,
"e": 1459,
"s": 1062,
"text": "Before getting into an example, we should know what SQLite database in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the ... |
CSS 2D Transforms - GeeksforGeeks | 08 Nov, 2021
A transformation in CSS is used to modify an element by its shape, size and position. It transforms the elements along the X-axis and Y-axis. There are 6 main types of transformation which are listed below:
translate()
rotate()
scale()
skewX()
skewY()
matrix()
We will implement all these functions & will u... | [
{
"code": null,
"e": 27655,
"s": 27627,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 27862,
"s": 27655,
"text": "A transformation in CSS is used to modify an element by its shape, size and position. It transforms the elements along the X-axis and Y-axis. There are 6 main type... |
Polygon.io Review — Retrieving Historical Tick Data | by Mario Emmanuel | Towards Data Science | During last months one of my main objectives and one of the most time-consuming tasks has been to extract edges from tick data for Intraday operations.
Within this context, a quality data feed becomes extremely important. I have started to use Polygon.io to get tick data from SPY as I want to test a set of discretionar... | [
{
"code": null,
"e": 324,
"s": 172,
"text": "During last months one of my main objectives and one of the most time-consuming tasks has been to extract edges from tick data for Intraday operations."
},
{
"code": null,
"e": 713,
"s": 324,
"text": "Within this context, a quality dat... |
C# | Random.NextBytes() Method - GeeksforGeeks | 01 May, 2019
The NextBytes(Byte[]) method of the System.Random class in C# is used to fill the elements of a specified array of bytes with random numbers. This method takes a byte array as a parameter and fills it with random numbers.
Syntax:
public virtual void NextBytes (byte[] buffer);
Here, buffer is the array of b... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 May, 2019"
},
{
"code": null,
"e": 24524,
"s": 24302,
"text": "The NextBytes(Byte[]) method of the System.Random class in C# is used to fill the elements of a specified array of bytes with random numbers. This method takes a b... |
AngularJS | ng-bind Directive - GeeksforGeeks | 30 Mar, 2021
The ng-bind Directive in AngularJS is used to bind/replace the text content of any particular HTML element with the value that is entered in the given expression. The value of specified HTML content updates whenever the value of the expression changes in ng-bind directive.Syntax:
<element ng-bind="expres... | [
{
"code": null,
"e": 27880,
"s": 27852,
"text": "\n30 Mar, 2021"
},
{
"code": null,
"e": 28163,
"s": 27880,
"text": "The ng-bind Directive in AngularJS is used to bind/replace the text content of any particular HTML element with the value that is entered in the given expression. ... |
Cisco Interview Experience for Internship (On-Campus 2020) - GeeksforGeeks | 29 Dec, 2020
Cisco visited our campus for hiring interns for 2020-21. Every process was done virtually due to the pandemic.
Round 1(Online Round – 60 min): The first round consisted of 2 coding questions and 15 MCQs. The time allotted was 1 hour. The MCQs consisted of aptitude, basic output questions, networking, and s... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 25220,
"s": 25109,
"text": "Cisco visited our campus for hiring interns for 2020-21. Every process was done virtually due to the pandemic."
},
{
"code": null,
"e": 25601,
"s":... |
Javascript - How to listObjects from AWS S3 - 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
Listing objects from AWS s3 bucket using Java... | [
{
"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,
... |
SciPy - Cluster Hierarchy Dendrogram - GeeksforGeeks | 21 Nov, 2021
In this article, we will learn about Cluster Hierarchy Dendrogram using Scipy module in python. For this first we will discuss some related concepts which are as follows:
Hierarchical clustering requires creating clusters that have a predetermined ordering from top to bottom. It is a type of unsupervised m... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 24383,
"s": 24212,
"text": "In this article, we will learn about Cluster Hierarchy Dendrogram using Scipy module in python. For this first we will discuss some related concepts which are as f... |
Get the time difference and convert it to hours in MySQL? | You can achieve with the help of timestampdiff() method from MySQL. The syntax is as follows −
SELECT ABS(TIMESTAMPDIFF(HOUR,yourColumnName1,yourColumnName2)) as
anyVariableName from yourTableName;
To understand the above syntax, let us create a table. The query to create a table is as follows −
mysql> create table Dif... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "You can achieve with the help of timestampdiff() method from MySQL. The syntax is as follows −"
},
{
"code": null,
"e": 1260,
"s": 1157,
"text": "SELECT ABS(TIMESTAMPDIFF(HOUR,yourColumnName1,yourColumnName2)) as\nanyVariableName fro... |
Change Font Size of ggplot2 Facet Grid Labels in R - GeeksforGeeks | 08 Dec, 2021
In this article, we will see how to change font size of ggplot2 Facet Grid Labels in R Programming Language.
Let us first draw a regular plot without any changes so that the difference is apparent.
Example:
R
library("ggplot2") DF <- data.frame(X = rnorm(20), ... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 26597,
"s": 26487,
"text": "In this article, we will see how to change font size of ggplot2 Facet Grid Labels in R Programming Language. "
},
{
"code": null,
"e": 26686,
"s": ... |
sorting in fork() - GeeksforGeeks | 17 May, 2018
Prerequisite – Introduction of fork(), sorting algorithmsProblem statement – Write a program to sort the numbers in parent process and print the unsorted numbers in child process. For example :
Input : 5, 2, 3, 1, 4
Output :
Parent process
sorted numbers are
1, 2, 3, 4, 5
Child process
numbers to sort... | [
{
"code": null,
"e": 25367,
"s": 25339,
"text": "\n17 May, 2018"
},
{
"code": null,
"e": 25561,
"s": 25367,
"text": "Prerequisite – Introduction of fork(), sorting algorithmsProblem statement – Write a program to sort the numbers in parent process and print the unsorted numbers i... |
How to create multiple background image parallax in CSS ? - GeeksforGeeks | 08 Sep, 2021
In this article, we will learn How to create multiple background image parallax in CSS.
Approach: First, we will add background images using the background-image property in CSS. We can add multiple images using background-image.
Syntax:
background-image: url(image_url1),url(image_url2),...;
Then we appl... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 26711,
"s": 26621,
"text": "In this article, we will learn How to create multiple background image parallax in CSS. "
},
{
"code": null,
"e": 26853,
"s": 26711,
"text": "... |
Python | Delete elements in range - GeeksforGeeks | 26 Feb, 2019
The deletion of a single element comparatively easier, but when we wish to delete element in range, the task becomes a tedious once due to the rearrangements and shifting of list elements automatically in python. Let’s discuss certain ways in which elements can be deleted in range.
Method #1 : Using del + ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 25820,
"s": 25537,
"text": "The deletion of a single element comparatively easier, but when we wish to delete element in range, the task becomes a tedious once due to the rearrangements and s... |
How to implement BarChart in ReactJS ? - GeeksforGeeks | 04 Mar, 2021
In our React app sometimes we want to display a BarChart representation of a particular data. We can use react-chartjs-2 and chart.js module in ReactJS to display information in BarCharts format. Following are some simple steps to do so:
Step 1: Create a React application using the following command.
npx c... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n04 Mar, 2021"
},
{
"code": null,
"e": 26309,
"s": 26071,
"text": "In our React app sometimes we want to display a BarChart representation of a particular data. We can use react-chartjs-2 and chart.js module in ReactJS to display ... |
How to Convert string to float type in Golang? - GeeksforGeeks | 19 May, 2020
ParseFloat function is an in-build function in the strconv library which converts the string type into a floating-point number with the precision specified by bit size.
Example: In this example the same string -2.514 is being converted into float data type and then their sum is being printed. Once it is co... | [
{
"code": null,
"e": 25703,
"s": 25675,
"text": "\n19 May, 2020"
},
{
"code": null,
"e": 25872,
"s": 25703,
"text": "ParseFloat function is an in-build function in the strconv library which converts the string type into a floating-point number with the precision specified by bit ... |
Tensorflow.js tf.LayersModel class .compile() Method - GeeksforGeeks | 10 May, 2021
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment.
The .compile() function configures and makes the model for training and evaluation process. By calling .compile() function we prepare the mod... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 26711,
"s": 26545,
"text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environmen... |
How to check if a string is html or not using JavaScript? - GeeksforGeeks | 31 Jul, 2019
The task is to validate whether the given string is valid HTML or not using JavaScript. we’re going to discuss few techniques.
Approach
Get the HTML string into a variable.
Create a RegExp which checks for the validation.
RegExp should follow the rules of creating a HTML document.
Example 1: In this exampl... | [
{
"code": null,
"e": 26341,
"s": 26313,
"text": "\n31 Jul, 2019"
},
{
"code": null,
"e": 26468,
"s": 26341,
"text": "The task is to validate whether the given string is valid HTML or not using JavaScript. we’re going to discuss few techniques."
},
{
"code": null,
"e":... |
Ways to copy a vector in C++ - GeeksforGeeks | 11 May, 2022
In the case of arrays, there is not much choice to copy an array into another, other than the iterative method i.e running a loop to copy each element at its respective index. But Vector classes have more than one method for copying entire vector into others in easier ways.
There are basically two types of... | [
{
"code": null,
"e": 25719,
"s": 25691,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 25994,
"s": 25719,
"text": "In the case of arrays, there is not much choice to copy an array into another, other than the iterative method i.e running a loop to copy each element at its respe... |
When to use Vanilla JavaScript vs jQuery ? - GeeksforGeeks | 09 Nov, 2021
Earlier, the websites used to be static. However, the introduction of vanilla JavaScript revolutionized the way websites used to look and function. Vanilla JS helped the developers in creating dynamic websites. Then came jQuery, a library of tools created by developers around the world, using Javascript.
I... | [
{
"code": null,
"e": 26606,
"s": 26578,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 26912,
"s": 26606,
"text": "Earlier, the websites used to be static. However, the introduction of vanilla JavaScript revolutionized the way websites used to look and function. Vanilla JS help... |
How to set font for Text in Tkinter? - GeeksforGeeks | 02 Dec, 2020
Prerequisite: Python GUI – tkinter
Python provides a Tkinter module for GUI (Graphical User Interface). In this article, we are going to see how to set text font in Tkinter.
Text Widget is used where a user wants to insert multi-line text fields. In this article, we are going to learn the approaches to se... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 25597,
"s": 25561,
"text": "Prerequisite: Python GUI – tkinter"
},
{
"code": null,
"e": 25736,
"s": 25597,
"text": "Python provides a Tkinter module for GUI (Graphical Us... |
How to override functions of module in Node.js ? - GeeksforGeeks | 10 Oct, 2021
Overriding means not change the original definition of any object or module but changing its behavior in the current scenario (where it has been imported or inherited). In order to implement overriding, we are going to override the function of ‘url‘, the in-built module of nodeJS. Let us look at the steps ... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 26607,
"s": 26267,
"text": "Overriding means not change the original definition of any object or module but changing its behavior in the current scenario (where it has been imported or inheri... |
PyQt5 QSpinBox - Setting single step size - GeeksforGeeks | 06 May, 2020
In this article we will see how we can set the single step size of the spin box, by default when we create a spin box it step size is 1. Step size is basically the incremental or decrement size.
In order to do this we will use setSingleStep method.
Syntax : spin_box.setSingleStep(step)
Argument : It takes ... | [
{
"code": null,
"e": 25585,
"s": 25557,
"text": "\n06 May, 2020"
},
{
"code": null,
"e": 25780,
"s": 25585,
"text": "In this article we will see how we can set the single step size of the spin box, by default when we create a spin box it step size is 1. Step size is basically the... |
Difference between Super Key and Candidate Key - GeeksforGeeks | 07 Jun, 2021
Prerequisite – Keys in Relational Model Super Key: Super Key is an attribute (or set of attributes) that is used to uniquely identifies all attributes in a relation. All super keys can’t be candidate keys but its reverse is true. In a relation, number of super keys are more than number of candidate keys.
... | [
{
"code": null,
"e": 25575,
"s": 25547,
"text": "\n07 Jun, 2021"
},
{
"code": null,
"e": 25882,
"s": 25575,
"text": "Prerequisite – Keys in Relational Model Super Key: Super Key is an attribute (or set of attributes) that is used to uniquely identifies all attributes in a relatio... |
Count numbers with difference between number and its digit sum greater than specific value - GeeksforGeeks | 22 Apr, 2021
Given a positive value N, we need to find the count of numbers smaller than N such that the difference between the number and sum of its digits is greater than or equal to given specific value diff. Examples:
Input : N = 13, diff = 2
Output : 4
Then 10, 11, 12 and 13 satisfy the given
condition shown bel... | [
{
"code": null,
"e": 25937,
"s": 25909,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 26148,
"s": 25937,
"text": "Given a positive value N, we need to find the count of numbers smaller than N such that the difference between the number and sum of its digits is greater than or ... |
How to insert a pandas DataFrame to an existing PostgreSQL table? - GeeksforGeeks | 22 Nov, 2021
In this article, we are going to see how to insert a pandas DataFrame to an existing PostgreSQL table.
pandas: Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). A Data frame is a two-dimensional data structure, i.e., dat... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 25658,
"s": 25555,
"text": "In this article, we are going to see how to insert a pandas DataFrame to an existing PostgreSQL table."
},
{
"code": null,
"e": 26003,
"s": 25658,
... |
Pointer vs Array in C - GeeksforGeeks | 21 Oct, 2021
Most of the time, pointer and array accesses can be treated as acting the same, the major exceptions being:
1) the sizeof operator o sizeof(array) returns the amount of memory used by all elements in array o sizeof(pointer) only returns the amount of memory used by the pointer variable itself
2) the & op... | [
{
"code": null,
"e": 25985,
"s": 25957,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 26094,
"s": 25985,
"text": "Most of the time, pointer and array accesses can be treated as acting the same, the major exceptions being: "
},
{
"code": null,
"e": 26281,
"s": 2... |
Find minimum moves to reach target on an infinite line - GeeksforGeeks | 08 Apr, 2021
Given a target position on infinite number line, i.e -infinity to +infinity. Starting form 0 you have to reach the target by moving as described : In ith move you can take i steps forward or backward. Find the minimum number of moves require to reach the target.Examples :
Input : target = 3
Output : 2
Ex... | [
{
"code": null,
"e": 26225,
"s": 26197,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 26500,
"s": 26225,
"text": "Given a target position on infinite number line, i.e -infinity to +infinity. Starting form 0 you have to reach the target by moving as described : In ith move you ... |
Ngx-Bootstrap - Tabs | ngx-bootstrap tabs component provides a easy to use and highly configurable Tab component.
tabset
tabset
justified − boolean, if true tabs fill the container and have a consistent width.
justified − boolean, if true tabs fill the container and have a consistent width.
type − string, navigation context class: 'tabs' or ... | [
{
"code": null,
"e": 2191,
"s": 2100,
"text": "ngx-bootstrap tabs component provides a easy to use and highly configurable Tab component."
},
{
"code": null,
"e": 2198,
"s": 2191,
"text": "tabset"
},
{
"code": null,
"e": 2205,
"s": 2198,
"text": "tabset"
},
... |
When and How to use Weighted Least Squares (WLS) Models | by Jonathan Balaban | Towards Data Science | At Metis, one of the first machine learning models I teach is the Plain Jane Ordinary Least Squares (OLS) model that most everyone learns in high school. Excel has a way of removing the charm from OLS modeling; students often assume there’s a scatterplot, some magic math that draws a best fit line, then an r2 in the co... | [
{
"code": null,
"e": 766,
"s": 172,
"text": "At Metis, one of the first machine learning models I teach is the Plain Jane Ordinary Least Squares (OLS) model that most everyone learns in high school. Excel has a way of removing the charm from OLS modeling; students often assume there’s a scatterplot,... |
cin in C++ - GeeksforGeeks | 29 Jul, 2021
The cin object in C++ is an object of class iostream. It is used to accept the input from the standard input device i.e. keyboard. It is associated with the standard C input stream stdin. The extraction operator(>>) is used along with the object cin for reading inputs. The extraction operator extracts the ... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 24467,
"s": 24098,
"text": "The cin object in C++ is an object of class iostream. It is used to accept the input from the standard input device i.e. keyboard. It is associated with the standa... |
deque::begin() and deque::end in C++ STL - GeeksforGeeks | 21 Nov, 2018
Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are more efficient in case of insertion and deletion of elements at the end, and also the beginning. Unlike vectors, contiguous storage allocation may not be... | [
{
"code": null,
"e": 25193,
"s": 25165,
"text": "\n21 Nov, 2018"
},
{
"code": null,
"e": 25513,
"s": 25193,
"text": "Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are more effi... |
Scikit Learn - Extended Linear Modeling | This chapter focusses on the polynomial features and pipelining tools in Sklearn.
Linear models trained on non-linear functions of data generally maintains the fast performance of linear methods. It also allows them to fit a much wider range of data. That’s the reason in machine learning such linear models, that are tr... | [
{
"code": null,
"e": 2303,
"s": 2221,
"text": "This chapter focusses on the polynomial features and pipelining tools in Sklearn."
},
{
"code": null,
"e": 2581,
"s": 2303,
"text": "Linear models trained on non-linear functions of data generally maintains the fast performance of li... |
Git Branch Merge | We have the emergency fix ready, and so let's merge the master and emergency-fix branches.
First, we need to change to the master branch:
git checkout master
Switched to branch 'master'
Now we merge the current branch (master) with emergency-fix:
git merge emergency-fix
Updating 09f4acd..dfa79db
Fast-forward
index.htm... | [
{
"code": null,
"e": 91,
"s": 0,
"text": "We have the emergency fix ready, and so let's merge the master and emergency-fix branches."
},
{
"code": null,
"e": 138,
"s": 91,
"text": "First, we need to change to the master branch:"
},
{
"code": null,
"e": 186,
"s": 1... |
Precedence Graph in Operating System - GeeksforGeeks | 05 Jun, 2020
Prerequisite – Process SynchronizationPrecedence Graph is a directed acyclic graph which is used to show the execution level of several processes in operating system. It consists of nodes and edges. Nodes represent the processes and the edges represent the flow of execution.
Properties of Precedence Graph ... | [
{
"code": null,
"e": 24377,
"s": 24349,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 24653,
"s": 24377,
"text": "Prerequisite – Process SynchronizationPrecedence Graph is a directed acyclic graph which is used to show the execution level of several processes in operating syst... |
A Neanderthal’s Guide to Apache Spark in Python | by Evan Heitman | Towards Data Science | If you’re anything like me, you heard about a fancy-sounding technology called Spark and wanted to test your coding mettle to see if you could add another tool to your data-science toolkit. Hopefully you’re not exactly like me because in my case I promptly hit an installation wall, and then a terminology wall, and then... | [
{
"code": null,
"e": 784,
"s": 172,
"text": "If you’re anything like me, you heard about a fancy-sounding technology called Spark and wanted to test your coding mettle to see if you could add another tool to your data-science toolkit. Hopefully you’re not exactly like me because in my case I promptl... |
Class with a constructor to initialize instance variables in Java | A class contains a constructor to initialize instance variables in Java. This constructor is called when the class object is created.
A program that demonstrates this is given as follows −
Live Demo
class Student {
private int rno;
private String name;
public Student(int r, String n) {
rno = r;
na... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "A class contains a constructor to initialize instance variables in Java. This constructor is called when the class object is created."
},
{
"code": null,
"e": 1251,
"s": 1196,
"text": "A program that demonstrates this is given as fol... |
Fixing data files — adding a missing date column | by Dawn Moyer | Towards Data Science | You have an entire folder of files ready for analysis. Looking closer, you see that each file name has a date, but there is no corresponding date on the records. To load the data into a data frame or table, you will need some date or timestamp to maintain the records' order. Inwardly, you groan. What to do?
You can use... | [
{
"code": null,
"e": 481,
"s": 172,
"text": "You have an entire folder of files ready for analysis. Looking closer, you see that each file name has a date, but there is no corresponding date on the records. To load the data into a data frame or table, you will need some date or timestamp to maintain... |
Select query with regular expression in MySQL | Let us first create a table −
mysql> create table DemoTable1573
-> (
-> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> StudentCode varchar(20)
-> );
Query OK, 0 rows affected (0.63 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1573(StudentCode) values('STU_7... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1267,
"s": 1092,
"text": "mysql> create table DemoTable1573\n -> (\n -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> StudentCode varchar(20)\n -> );\nQuery OK,... |
9 Examples to Master Seaborn Grids | by Soner Yıldırım | Towards Data Science | Data visualization is a fundamental piece of data analysis. It helps us better understand the relationships in the data and explore the underlying structure.
We can create more informative visualizations by combining multiple plots in the same figure. There are many ways to create multi-plot visualizations. Seaborn lib... | [
{
"code": null,
"e": 329,
"s": 171,
"text": "Data visualization is a fundamental piece of data analysis. It helps us better understand the relationships in the data and explore the underlying structure."
},
{
"code": null,
"e": 597,
"s": 329,
"text": "We can create more informati... |
Handling multiple clients on server with multithreading using Socket Programming in C/C++ - GeeksforGeeks | 08 Nov, 2021
This tutorial assumes that the reader has a basic knowledge of socket programming, i.e has a familiarity with basic server and client models. In the basic model, the server handles only one client at a time, which is a big assumption if one wants to develop any scalable server model. The simple way to hand... | [
{
"code": null,
"e": 24234,
"s": 24206,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 24639,
"s": 24234,
"text": "This tutorial assumes that the reader has a basic knowledge of socket programming, i.e has a familiarity with basic server and client models. In the basic model, t... |
Spatial Cross-Validation Using scikit-learn | by Chiara Ledesma | Towards Data Science | If you’d like to skip straight to the code, jump ahead to the section Spatial cross-validation implementation on scikit-learn.
A typical and useful assumption for statistical inference is that the data is independently and identically distributed (IID). We can take a random subset of patients and predict their likeliho... | [
{
"code": null,
"e": 299,
"s": 172,
"text": "If you’d like to skip straight to the code, jump ahead to the section Spatial cross-validation implementation on scikit-learn."
},
{
"code": null,
"e": 861,
"s": 299,
"text": "A typical and useful assumption for statistical inference i... |
CNN application on structured data-Automated Feature Extraction | by Sourish Dey | Towards Data Science | Written: 13th Aug 2018 by Sourish Dey
https://www.linkedin.com/in/sourish-dey-03420b1a/
Importance Feature Engineering:
In my previous article, I discussed the importance of the creation of rich features from the limited number of features. Indeed, the real quality of machine learning/deep learning model comes from ext... | [
{
"code": null,
"e": 210,
"s": 172,
"text": "Written: 13th Aug 2018 by Sourish Dey"
},
{
"code": null,
"e": 260,
"s": 210,
"text": "https://www.linkedin.com/in/sourish-dey-03420b1a/"
},
{
"code": null,
"e": 292,
"s": 260,
"text": "Importance Feature Engineerin... |
JavaScript | Program to generate one-time password (OTP) | 08 Dec, 2020
One-time Passwords (OTP) is a password that is valid for only one login session or transaction on a computer or a digital device. Nowadays OTP’s are used in almost every service like Internet Banking, online transactions, etc. They are generally a combination of 4 or 6 numeric digits or a 6-digit alphanume... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n08 Dec, 2020"
},
{
"code": null,
"e": 518,
"s": 53,
"text": "One-time Passwords (OTP) is a password that is valid for only one login session or transaction on a computer or a digital device. Nowadays OTP’s are used in almost every serv... |
Print reverse string after removing vowels | 16 Jun, 2022
Given a string s, print reverse of string and remove the characters from the reversed string where there are vowels in the original string. Examples:
Input : geeksforgeeks
Output : segrfseg
Explanation :
Reversed string is skeegrofskeeg, removing characters
from indexes 1, 2, 6, 9 & 10 (0 based indexing... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 205,
"s": 53,
"text": "Given a string s, print reverse of string and remove the characters from the reversed string where there are vowels in the original string. Examples: "
},
{
"code": ... |
Total no of 1’s in numbers | 30 Apr, 2021
Given an integer n, count the total number of digit 1 appearing in all positive integers less than or equal to n.Examples:
Input : n = 13
Output : 6
Explanation:
Here, no <= 13 containing 1 are 1, 10, 11,
12, 13. So, total 1s are 6.
Input : n = 5
Output : 1
Here, no <= 13 containing 1 are 1.
So, total 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 177,
"s": 52,
"text": "Given an integer n, count the total number of digit 1 appearing in all positive integers less than or equal to n.Examples: "
},
{
"code": null,
"e": 368,
"s"... |
How to get bounding-box of different Shapes in p5.js ? | 22 Nov, 2019
In this article, we will see how to get the bounding-box of different shapes. We will use P5.js which is a Javascript framework creative programming environment and is very much inspired by Processing.
Bounding-box: A bounding-box is basically just a rectangle that bounds a shape more technically it is the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2019"
},
{
"code": null,
"e": 230,
"s": 28,
"text": "In this article, we will see how to get the bounding-box of different shapes. We will use P5.js which is a Javascript framework creative programming environment and is very mu... |
DATEDIFF() Function in SQL Server | 18 Jan, 2021
DATEDIFF() function :This function in SQL Server is used to find the difference between the two specified dates.
Features :
This function is used to find the difference between the two given dates values.
This function comes under Date Functions.
This function accepts three parameters namely interval, firs... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 166,
"s": 53,
"text": "DATEDIFF() function :This function in SQL Server is used to find the difference between the two specified dates."
},
{
"code": null,
"e": 177,
"s": 166,
"... |
Python | Get a list as input from user | 08 Jul, 2022
We often encounter a situation when we need to take number/string as input from the user. In this article, we will see how to get as input a list from the user.
Examples:
Input : n = 4, ele = 1 2 3 4
Output : [1, 2, 3, 4]
Input : n = 6, ele = 3 4 1 7 9 6
Output : [3, 4, 1, 7, 9, 6]
Code #1: Basic exa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 214,
"s": 52,
"text": "We often encounter a situation when we need to take number/string as input from the user. In this article, we will see how to get as input a list from the user. "
},
{
... |
Getting the absolute value of a number in Julia – abs() Method | 21 Apr, 2020
The abs() is an inbuilt function in julia which is used to return the absolute value of the specified number x.
Syntax: abs(x)
Parameters:
x: Specified value.
Returns: It returns the absolute value of the specified number x.
Example 1:
# Julia program to illustrate # the use of abs() method # Getting abso... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 140,
"s": 28,
"text": "The abs() is an inbuilt function in julia which is used to return the absolute value of the specified number x."
},
{
"code": null,
"e": 155,
"s": 140,
"te... |
Puzzle | Program to find number of squares in a chessboard - GeeksforGeeks | 04 Jan, 2022
Puzzle: You are provided with a chessboard and are asked to find the number of squares in it. A chessboard is a board with 8 x 8 grids in it as represented below.
Solution: Looking closely at the chessboard we can see that in addition to the 1 x 1 square, there can be a combination of 2 x 2, 3 x 3, 4 x 4,... | [
{
"code": null,
"e": 26358,
"s": 26330,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 26522,
"s": 26358,
"text": "Puzzle: You are provided with a chessboard and are asked to find the number of squares in it. A chessboard is a board with 8 x 8 grids in it as represented below. ... |
Python EasyGUI - Button Box - GeeksforGeeks | 05 Sep, 2020
EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls. Unlike other complicated GUI’s EasyGUI is the simplest GUI till now.
Button Box :... | [
{
"code": null,
"e": 25279,
"s": 25251,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 25574,
"s": 25279,
"text": "EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Inste... |
Break the number into three parts - GeeksforGeeks | 06 May, 2021
Given a really large number, break it into 3 whole numbers such that they sum up to the original number and count number of ways to do so.
Examples :
Input : 3
Output : 10
The possible combinations where the sum
of the numbers is equal to 3 are:
0+0+3 = 3
0+3+0 = 3
3+0+0 = 3
0+1+2 = 3
0+2+1 = 3
1+0+2 = 3
... | [
{
"code": null,
"e": 26627,
"s": 26599,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 26766,
"s": 26627,
"text": "Given a really large number, break it into 3 whole numbers such that they sum up to the original number and count number of ways to do so."
},
{
"code": nu... |
How to shuffle an array using JavaScript ? - GeeksforGeeks | 16 Jul, 2021
Shuffling an array or a list means that we randomly re-arranging the content of that structure. To shuffle an array we will use the following algorithms:
Algorithm 1:
javascript
function shuffleArray(array) { for (var i = array.length - 1; i > 0; i--) { // Generate random number var j = M... | [
{
"code": null,
"e": 25687,
"s": 25659,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 25841,
"s": 25687,
"text": "Shuffling an array or a list means that we randomly re-arranging the content of that structure. To shuffle an array we will use the following algorithms:"
},
{... |
C# Program to Demonstrate the Array of Structures - GeeksforGeeks | 29 Oct, 2021
An array of structures means each array index contains structure as a value. In this article, we will create the array of structure and access structure members using an array with a specific index.
Syntax
array[index].Structure(Details);
where index specifies the particular position to be inserted and det... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 25746,
"s": 25547,
"text": "An array of structures means each array index contains structure as a value. In this article, we will create the array of structure and access structure members us... |
Set toArray() method in Java with Example - GeeksforGeeks | 24 Aug, 2021
The toArray() method of Java Set is used to form an array of the same elements as that of the Set. Basically, it copies all the element from a Set to a new array.Syntax:
Object[] toArray()
Parameters: The method takes optional parameter. If we provide the type of Object array we want we can pass it as an... | [
{
"code": null,
"e": 25575,
"s": 25547,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 25747,
"s": 25575,
"text": "The toArray() method of Java Set is used to form an array of the same elements as that of the Set. Basically, it copies all the element from a Set to a new array.S... |
For loop in Julia - GeeksforGeeks | 19 Feb, 2020
For loops are used to iterate over a set of values and perform a set of operations that are given in the body of the loop. For loops are used for sequential traversal. In Julia, there is no C style for loop, i.e., for (i = 0; i < n; i++). There is a "for in" loop which is similar to for each loop in other ... | [
{
"code": null,
"e": 25425,
"s": 25397,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 25810,
"s": 25425,
"text": "For loops are used to iterate over a set of values and perform a set of operations that are given in the body of the loop. For loops are used for sequential traver... |
Regularity condition in the master theorem. - GeeksforGeeks | 06 Oct, 2017
Master theorem is a direct way to get the solution of a recurrence relation, provided that it is of the following type:
T(n) = aT(n/b) + f(n) where a >= 1 and b > 1
The theorem consists of the following three cases:1.If f(n) = () where c < then T(n) = (n)
2.If f(n) = () where c = then T(n) = (Log n)
3.I... | [
{
"code": null,
"e": 26289,
"s": 26261,
"text": "\n06 Oct, 2017"
},
{
"code": null,
"e": 26409,
"s": 26289,
"text": "Master theorem is a direct way to get the solution of a recurrence relation, provided that it is of the following type:"
},
{
"code": null,
"e": 26455,... |
numpy.bincount() in Python - GeeksforGeeks | 17 Nov, 2020
In an array of +ve integers, the numpy.bincount() method counts the occurrence of each element. Each bin value is the occurrence of its index. One can also set the bin size accordingly.Syntax :
numpy.bincount(arr, weights = None, min_len = 0)
Parameters :
arr : [array_like, 1D]Input array, having posit... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n17 Nov, 2020"
},
{
"code": null,
"e": 25731,
"s": 25537,
"text": "In an array of +ve integers, the numpy.bincount() method counts the occurrence of each element. Each bin value is the occurrence of its index. One can also set the... |
How to install the previous version of node.js and npm ? - GeeksforGeeks | 20 Mar, 2020
Node.js: It is a JavaScript runtime(server-side) built on V8 JavaScript engine of Google Chrome. It was developed in 2009 by Ryan Dhal. Node.js uses an event-driven, non-blocking input/output model that makes it lightweight and efficient. It is perfect for data-intensive real-time applications. Node is lik... | [
{
"code": null,
"e": 38501,
"s": 38473,
"text": "\n20 Mar, 2020"
},
{
"code": null,
"e": 38923,
"s": 38501,
"text": "Node.js: It is a JavaScript runtime(server-side) built on V8 JavaScript engine of Google Chrome. It was developed in 2009 by Ryan Dhal. Node.js uses an event-drive... |
Python DateTime - Date Class - GeeksforGeeks | 19 Dec, 2021
The object of the Date class represents the naive date containing year, month, and date according to the current Gregorian calendar. This date can be extended indefinitely in both directions. The January 1 of year 1 is called day 1 and January 2 or year 2 is called day 2 and so on.
Syntax:
class datetime.d... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 25820,
"s": 25537,
"text": "The object of the Date class represents the naive date containing year, month, and date according to the current Gregorian calendar. This date can be extended inde... |
Find the unique rows in R DataFrame - GeeksforGeeks | 07 Apr, 2021
In an R data frame, a unique row means that none of the elements in that row are replicated in the whole data frame with the same combination. In simple terms, if we have a data frame called df with four columns and five rows, we can assume that none of the values in one row are replicated in every other r... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 26798,
"s": 26487,
"text": "In an R data frame, a unique row means that none of the elements in that row are replicated in the whole data frame with the same combination. In simple terms, if ... |
How to make a voice unlock system in Python? - GeeksforGeeks | 18 Feb, 2022
A voice-based unlock system for our computer will be the application that will take our voice as input and process that voice converts it into a text-based instruction for our computer and then perform an action based on that instruction. This process uses The State-of-the-art process in a speech to text, ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 25917,
"s": 25537,
"text": "A voice-based unlock system for our computer will be the application that will take our voice as input and process that voice converts it into a text-based instruc... |
How to check if a Variable Is Not Null in JavaScript ? - GeeksforGeeks | 10 May, 2021
You can easily check if a variable Is Null or Not Null in JavaScript by applying simple if-else condition to the given variable.
There are two ways to check if a variable is null or not. First I will discuss the wrong way that seems to be right to you at first, then we will discuss the correct way to chec... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 26675,
"s": 26545,
"text": "You can easily check if a variable Is Null or Not Null in JavaScript by applying simple if-else condition to the given variable. "
},
{
"code": null,
"... |
Python Itertools - GeeksforGeeks | 13 Sep, 2021
Python’s Itertool is a module that provides various functions that work on iterators to produce complex iterators. This module works as a fast, memory-efficient tool that is used either by themselves or in combination to form iterator algebra. For example, let’s suppose there are two lists and you want to ... | [
{
"code": null,
"e": 25757,
"s": 25729,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 26489,
"s": 25757,
"text": "Python’s Itertool is a module that provides various functions that work on iterators to produce complex iterators. This module works as a fast, memory-efficient to... |
Hashtable size() Method in Java - GeeksforGeeks | 28 Jun, 2018
The java.util.Hashtable.size() method of Hashtable class is used to get the size of the table which refers to the number of the key-value pair or mappings in the Table.
Syntax:
Hash_Table.size()
Parameters: The method does not take any parameters.
Return Value: The method returns the size of the table whic... | [
{
"code": null,
"e": 24813,
"s": 24785,
"text": "\n28 Jun, 2018"
},
{
"code": null,
"e": 24982,
"s": 24813,
"text": "The java.util.Hashtable.size() method of Hashtable class is used to get the size of the table which refers to the number of the key-value pair or mappings in the T... |
How to Create Group BarChart in Android? - GeeksforGeeks | 01 Feb, 2021
As we have seen how we can create a beautiful bar chart in Android but what if we have to represent data in the form of groups in our bar chart. So that we can plot a group of data in our bar chart. So we will be creating a Group Bar Chart in our Android app in this article.
We will be building a simple a... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 26658,
"s": 26381,
"text": "As we have seen how we can create a beautiful bar chart in Android but what if we have to represent data in the form of groups in our bar chart. So that we can plo... |
C Program to Check Whether a Number is Prime or not - GeeksforGeeks | 17 Sep, 2021
Given a positive integer N. The task is to write a C program to check if the number is prime or not.
Definition:
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are {2, 3, 5, 7, 11, ....}
The idea to solve this problem i... | [
{
"code": null,
"e": 25935,
"s": 25907,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 26037,
"s": 25935,
"text": "Given a positive integer N. The task is to write a C program to check if the number is prime or not. "
},
{
"code": null,
"e": 26050,
"s": 26037,
... |
How to Install Atom Text Editor in Linux? - GeeksforGeeks | 06 Oct, 2021
“Atom – A Hackable Text Editor of 21st Century“, as the line indicates Atom is an open-source, cross-platform, feature enrich text editor developed by Github. Atom has attractive features like cross-platform editing, built-in package manager, smart auto-completion, file-system browser, and many more. Apart... | [
{
"code": null,
"e": 26223,
"s": 26195,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 26628,
"s": 26223,
"text": "“Atom – A Hackable Text Editor of 21st Century“, as the line indicates Atom is an open-source, cross-platform, feature enrich text editor developed by Github. Atom... |
Python | Popup widget in Kivy - GeeksforGeeks | 06 Feb, 2020
Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
Kivy Tutorial – Learn Kivy with Examples.
The Popup widget is used to ... | [
{
"code": null,
"e": 42651,
"s": 42623,
"text": "\n06 Feb, 2020"
},
{
"code": null,
"e": 42887,
"s": 42651,
"text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application... |
Interpolation Search | 18 Jun, 2022
Given a sorted array of n uniformly distributed values arr[], write a function to search for a particular element x in the array. Linear Search finds the element in O(n) time, Jump Search takes O(√ n) time and Binary Search takes O(log n) time. The Interpolation Search is an improvement over Binary Search ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jun, 2022"
},
{
"code": null,
"e": 916,
"s": 52,
"text": "Given a sorted array of n uniformly distributed values arr[], write a function to search for a particular element x in the array. Linear Search finds the element in O(n) time... |
How to specify an alternate text for an image in HTML ? | 09 Sep, 2020
The alternative text for an image is useful when the image not displayed/loaded. If the image is not loaded the its alternative text is displayed on the web page. Alternative text is the alternative information for an image.
Example 1: In this example, the image path contains the image so it will display t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2020"
},
{
"code": null,
"e": 253,
"s": 28,
"text": "The alternative text for an image is useful when the image not displayed/loaded. If the image is not loaded the its alternative text is displayed on the web page. Alternative ... |
base64.b64decode() in Python | 26 Mar, 2020
With the help of base64.b64decode() method, we can decode the binary string into normal form.
Syntax : base64.b64decode(b_string)
Return : Return the decoded string.
Example #1 :In this example we can see that by using base64.b64decode() method, we are able to get the decoded string which can be in binary ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 122,
"s": 28,
"text": "With the help of base64.b64decode() method, we can decode the binary string into normal form."
},
{
"code": null,
"e": 158,
"s": 122,
"text": "Syntax : bas... |
Dart – Data Types | 14 Jul, 2020
Like other languages (C, C++, Java), whenever a variable is created, each variable has an associated data type. In Dart language, there is the type of values that can be represented and manipulated in a programming language. The data type classification is as given below:
1. Number: The number in Dart Pro... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Jul, 2020"
},
{
"code": null,
"e": 327,
"s": 53,
"text": "Like other languages (C, C++, Java), whenever a variable is created, each variable has an associated data type. In Dart language, there is the type of values that can be repr... |
What does built-in class attribute __name__ do in Python?
| This built-in attributes prints the name of the class, type, function, method, descriptor, or generator instance.
For example, if the python interpreter is running that module (the source file) as the main program, it sets the special __name__ variable to have a value "__main__". If this file is being imported from ano... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "This built-in attributes prints the name of the class, type, function, method, descriptor, or generator instance."
},
{
"code": null,
"e": 1438,
"s": 1176,
"text": "For example, if the python interpreter is running that module (the s... |
Conversion of whole String to uppercase or lowercase using STL in C++ | In this tutorial, we will be discussing a program to understand conversion of whole string to uppercase or lowercase using STL in C++.
To perform this transformation, C++ STL provides toupper() and tolower() functions to convert to uppercase and lowercase respectively.
Live Demo
#include<bits/stdc++.h>
using namespace... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to understand conversion of whole string to uppercase or lowercase using STL in C++."
},
{
"code": null,
"e": 1332,
"s": 1197,
"text": "To perform this transformation, C++ STL provide... |
Change every letter to next letter - JavaScript | We are required to write a JavaScript function that takes in a string and changes every letter of the string from the English alphabets to its succeeding element.
For example: If the string is −
const str = 'how are you';
Then the output should be −
const output = 'ipx bsf zpv'
Following is the code −
const str = 'how ... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a string and changes every letter of the string from the English alphabets to its succeeding element."
},
{
"code": null,
"e": 1257,
"s": 1225,
"text": "For example: If the... |
Updating Your Github Repository Using Python - Towards Data Science | At least twice a day I run the following commands:
>>>git fetch upstream master>>>git merge upstream/master -m 'Here we go again...again'>>>git push
At 10 words each time, run twice a day over the course of my 15 week bootcamp comes to 1500 words. To put that in perspective, that is the equivalent of three high quality... | [
{
"code": null,
"e": 98,
"s": 47,
"text": "At least twice a day I run the following commands:"
},
{
"code": null,
"e": 196,
"s": 98,
"text": ">>>git fetch upstream master>>>git merge upstream/master -m 'Here we go again...again'>>>git push"
},
{
"code": null,
"e": 440... |
Management Concepts - Quick Guide | There are a number of costing models used in the domain of business and Activity-Based Costing is one of them. In activity-based costing, various activities in the organization are identified and assigned with a cost.
When it comes to pricing of products and services produced by the company, activity cost is calculated... | [
{
"code": null,
"e": 3900,
"s": 3682,
"text": "There are a number of costing models used in the domain of business and Activity-Based Costing is one of them. In activity-based costing, various activities in the organization are identified and assigned with a cost."
},
{
"code": null,
"e"... |
Priority of process in Linux | nice value - GeeksforGeeks | 01 Apr, 2018
The running instance of program is process, and each process needs space in RAM and CPU time to be executed, each process has its priority in which it is executed.
Now observe the below image and see column NI
top
Output:
top command output
The column NI represents nice value of a process. It’s value rang... | [
{
"code": null,
"e": 25873,
"s": 25845,
"text": "\n01 Apr, 2018"
},
{
"code": null,
"e": 26037,
"s": 25873,
"text": "The running instance of program is process, and each process needs space in RAM and CPU time to be executed, each process has its priority in which it is executed.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.