title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
NHibernate - Profiler | In this chapter, we will be understanding how all the records from the database are retrieved, updated, created, and deleted and how exactly these queries are performed?
To understand all these, we can simply add an option into our configuration, which logs the SQL in the console. Here is the simple statement that will... | [
{
"code": null,
"e": 2503,
"s": 2333,
"text": "In this chapter, we will be understanding how all the records from the database are retrieved, updated, created, and deleted and how exactly these queries are performed?"
},
{
"code": null,
"e": 2674,
"s": 2503,
"text": "To understan... |
wxPython - Drag & Drop | Provision of drag and drop is very intuitive for the user. It is found in many desktop applications where the user can copy or move objects from one window to another just by dragging it with the mouse and dropping on another window.
Drag and drop operation involves the following steps −
Declare a drop target
Create da... | [
{
"code": null,
"e": 2116,
"s": 1882,
"text": "Provision of drag and drop is very intuitive for the user. It is found in many desktop applications where the user can copy or move objects from one window to another just by dragging it with the mouse and dropping on another window."
},
{
"code... |
Minimum Cost Path with Left, Right, Bottom and Up moves allowed - GeeksforGeeks | 05 May, 2022
Given a two dimensional grid, each cell of which contains integer cost which represents a cost to traverse through that cell, we need to find a path from top left cell to bottom right cell by which total cost incurred is minimum.Note : It is assumed that negative cost cycles do not exist in input matrix.Th... | [
{
"code": null,
"e": 25969,
"s": 25941,
"text": "\n05 May, 2022"
},
{
"code": null,
"e": 26529,
"s": 25969,
"text": "Given a two dimensional grid, each cell of which contains integer cost which represents a cost to traverse through that cell, we need to find a path from top left ... |
CSS | Shadow Effect - GeeksforGeeks | 04 Dec, 2018
The shadow effect property in CSS is used to add text and images shadow in HTML document.
Text Shadow: The CSS text-shadow property is used to display the text with shadow. This property holds the pixel length, breadth, and width of the shadow and the color of the shadow.
Syntax:
Text-shadow: 3px 3px 3px g... | [
{
"code": null,
"e": 29291,
"s": 29263,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 29381,
"s": 29291,
"text": "The shadow effect property in CSS is used to add text and images shadow in HTML document."
},
{
"code": null,
"e": 29564,
"s": 29381,
"text": "... |
Find shortest unique prefix for every word in a given list | Set 2 (Using Sorting) - GeeksforGeeks | 08 Feb, 2022
Given an array of words, find all shortest unique prefixes to represent each word in the given array. Assume that no word is a prefix of another. Output the shortest unique prefixes in sorted order.
Input : {"zebra", "dog", "duck", "dove"}
Output : z, dog, dov, du
Explanation: dog => dog
dove... | [
{
"code": null,
"e": 25321,
"s": 25293,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 25520,
"s": 25321,
"text": "Given an array of words, find all shortest unique prefixes to represent each word in the given array. Assume that no word is a prefix of another. Output the shorte... |
N Queen Problem | Backtracking-3 - GeeksforGeeks | 12 May, 2022
We have discussed Knight’s tour and Rat in a Maze problems in Set 1 and Set 2 respectively. Let us discuss N Queen as another example problem that can be solved using Backtracking. The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example... | [
{
"code": null,
"e": 35839,
"s": 35811,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 36194,
"s": 35839,
"text": "We have discussed Knight’s tour and Rat in a Maze problems in Set 1 and Set 2 respectively. Let us discuss N Queen as another example problem that can be solved us... |
Range Minimum Query (Square Root Decomposition and Sparse Table) - GeeksforGeeks | 24 Aug, 2021
We have an array arr[0 . . . n-1]. We should be able to efficiently find the minimum value from index L (query start) to R (query end) where 0 <= L <= R <= n-1. Consider a situation when there are many range queries. Example:
Input: arr[] = {7, 2, 3, 0, 5, 10, 3, 12, 18};
query[] = [0, 4], [4, ... | [
{
"code": null,
"e": 25917,
"s": 25889,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 26144,
"s": 25917,
"text": "We have an array arr[0 . . . n-1]. We should be able to efficiently find the minimum value from index L (query start) to R (query end) where 0 <= L <= R <= n-1. Co... |
numpy.left_shift() in Python - GeeksforGeeks | 28 Nov, 2018
numpy.left_shift() function is used to Shift the bits of an integer to the left.
The bits are shifted to the left by appending arr2 0s(zeroes) at the right of arr1. Since the internal representation of numbers is in binary format, this operation is equivalent to multiplying arr1 by 2**arr2. For example, if... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 25618,
"s": 25537,
"text": "numpy.left_shift() function is used to Shift the bits of an integer to the left."
},
{
"code": null,
"e": 25953,
"s": 25618,
"text": "The bits ... |
Bottomsheet in Flutter - GeeksforGeeks | 22 Mar, 2021
We can create bottomsheet in flutter. Basically, we have two types of bottomsheets in material design: Persistent and Modal. Bottomsheets are used when we want to perform actions. There are basically two types of Bottomsheets: Persistent and Modal. Persistent bottomsheet do not hide the screen content and ... | [
{
"code": null,
"e": 25261,
"s": 25233,
"text": "\n22 Mar, 2021"
},
{
"code": null,
"e": 26020,
"s": 25261,
"text": "We can create bottomsheet in flutter. Basically, we have two types of bottomsheets in material design: Persistent and Modal. Bottomsheets are used when we want to ... |
Changing the Replication Factor in Cassandra - GeeksforGeeks | 28 Apr, 2020
In this article, we are going to discuss how we can change the replication factor in both simple and network topology replication strategy. For better understanding please refer Replication Strategy in Cassandra article.
Altering a Keyspace:To change the replication factor you can execute the Altering a ke... | [
{
"code": null,
"e": 25441,
"s": 25413,
"text": "\n28 Apr, 2020"
},
{
"code": null,
"e": 25662,
"s": 25441,
"text": "In this article, we are going to discuss how we can change the replication factor in both simple and network topology replication strategy. For better understandin... |
Traverse graph in lexicographical order of nodes using DFS - GeeksforGeeks | 20 Jul, 2021
Given a graph, G consisting of N nodes, a source S, and an array Edges[][2] of type {u, v} that denotes that there is an undirected edge between node u and v, the task is to traverse the graph in lexicographical order using DFS.
Examples:
Input: N = 10, M = 10, S = ‘a’, Edges[][2] = { { ‘a’, ‘y’ }, { ‘a’, ... | [
{
"code": null,
"e": 26453,
"s": 26425,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 26682,
"s": 26453,
"text": "Given a graph, G consisting of N nodes, a source S, and an array Edges[][2] of type {u, v} that denotes that there is an undirected edge between node u and v, the ... |
When to use self over $this in PHP ? - GeeksforGeeks | 29 Jun, 2021
The self and this are two different operators which are used to represent current class and current object respectively. self is used to access static or class variables or methods and this is used to access non-static or object variables or methods. So use self when there is a need to access something whi... | [
{
"code": null,
"e": 26095,
"s": 26067,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 26727,
"s": 26095,
"text": "The self and this are two different operators which are used to represent current class and current object respectively. self is used to access static or class var... |
How to create a Color-Box App using ReactJS? - GeeksforGeeks | 30 Sep, 2020
Basically we want to build an app that shows the number of boxes which has different colors assigned to each of them. Each time the app loads different random colors are assigned. when a user clicks any of the boxes, it changes its color to some different random color that does not equal to its previous co... | [
{
"code": null,
"e": 28387,
"s": 28359,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 28705,
"s": 28387,
"text": "Basically we want to build an app that shows the number of boxes which has different colors assigned to each of them. Each time the app loads different random colo... |
How to remove specific elements from a NumPy array ? - GeeksforGeeks | 21 Apr, 2021
In this article, we will discuss how to remove specific element from the NumPy Array. The delete() method will be used to do the same.
Syntax:
numpy.delete(array_name,index_value)
Where array_name is the name of the array to be deleted and index-value is the index of the element to be deleted.
For example,... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25690,
"s": 25555,
"text": "In this article, we will discuss how to remove specific element from the NumPy Array. The delete() method will be used to do the same."
},
{
"code": null,
... |
Python - Flatten tuple of List to tuple - GeeksforGeeks | 22 Jun, 2020
Sometimes, while working with Python Tuples, we can have a problem in which we need to perform the flattening of tuples, which have lists as its constituent elements. This kind of problem is common in data domains such as Machine Learning. Let’s discuss certain ways in which this task can be performed.
Inp... | [
{
"code": null,
"e": 26103,
"s": 26075,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 26407,
"s": 26103,
"text": "Sometimes, while working with Python Tuples, we can have a problem in which we need to perform the flattening of tuples, which have lists as its constituent elemen... |
if command in linux with examples - GeeksforGeeks | 22 May, 2019
if is a command in Linux which is used to execute commands based on conditions. The ‘if COMMANDS‘ list is executed. If its status is zero, then the ‘then COMMANDS‘ list is executed. Otherwise, each ‘elif COMMANDS‘ list is executed in turn, and if its exit status is zero, the corresponding ‘then COMMANDS‘ l... | [
{
"code": null,
"e": 25879,
"s": 25851,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 26419,
"s": 25879,
"text": "if is a command in Linux which is used to execute commands based on conditions. The ‘if COMMANDS‘ list is executed. If its status is zero, then the ‘then COMMANDS‘... |
K-th Smallest Element in an Unsorted Array using Priority Queue - GeeksforGeeks | 22 Jul, 2021
Given an array arr[] consisting of N integers and an integer K, the task is to find the Kth smallest element in the array using Priority Queue.
Examples:
Input: arr[] = {5, 20, 10, 7, 1}, N = 5, K = 2Output: 5Explanation: In the given array, the 2nd smallest element is 5. Therefore, the required output is ... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 26209,
"s": 26065,
"text": "Given an array arr[] consisting of N integers and an integer K, the task is to find the Kth smallest element in the array using Priority Queue."
},
{
"code... |
HTML Editors - GeeksforGeeks | 24 Mar, 2022
HTML text editors are used to create and modify web pages. HTML codes can be written in any text editors including the notepad. One just needs to write HTML in any text editor and save the file with an extension “.html”. Some of the popular HTML text editors are given below:
Notepad
Notepad++
Sublime Text ... | [
{
"code": null,
"e": 31645,
"s": 31617,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 31921,
"s": 31645,
"text": "HTML text editors are used to create and modify web pages. HTML codes can be written in any text editors including the notepad. One just needs to write HTML in any... |
Difference between PC relative and Base register Addressing Modes - GeeksforGeeks | 10 Apr, 2020
Prerequisite – Addressing Modes
1. PC relative addressing mode:PC relative addressing mode is used to implement intra segment transfer of control, In this mode effective address is obtained by adding displacement to PC.
EA = PC + Address field value
PC = PC + Relative value
2. Base register addressing mod... | [
{
"code": null,
"e": 26025,
"s": 25997,
"text": "\n10 Apr, 2020"
},
{
"code": null,
"e": 26057,
"s": 26025,
"text": "Prerequisite – Addressing Modes"
},
{
"code": null,
"e": 26245,
"s": 26057,
"text": "1. PC relative addressing mode:PC relative addressing mode... |
Polymorphism in Java - GeeksforGeeks | 14 Dec, 2021
The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.
Real-life Illustration: Polymorphism
A person at the same time can have different characteristics. Like a man at the same time is a father, a husban... | [
{
"code": null,
"e": 30195,
"s": 30167,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 30354,
"s": 30195,
"text": "The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. "
}... |
Count of smaller rectangles that can be placed inside a bigger rectangle - GeeksforGeeks | 20 Apr, 2021
Given four integers L, B, l, and b, where L and B denote the dimensions of a bigger rectangle and l and b denotes the dimension of a smaller rectangle, the task is to count the number of smaller rectangles that can be drawn inside a bigger rectangle. Note: Smaller rectangles can overlap partially.
Examples... | [
{
"code": null,
"e": 26697,
"s": 26669,
"text": "\n20 Apr, 2021"
},
{
"code": null,
"e": 26996,
"s": 26697,
"text": "Given four integers L, B, l, and b, where L and B denote the dimensions of a bigger rectangle and l and b denotes the dimension of a smaller rectangle, the task is... |
How to Use Different Types of Google Maps in Android? - GeeksforGeeks | 04 Feb, 2021
When we use the default application of Google Maps we will get to see different types of Maps present inside this application. We will get to see satellite maps, terrain maps, and many more. We have seen adding Google Maps in the Android application. In this article, we will take a look at the implementati... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 26738,
"s": 26381,
"text": "When we use the default application of Google Maps we will get to see different types of Maps present inside this application. We will get to see satellite maps, t... |
How to Replace Values in a List in Python? - GeeksforGeeks | 22 Nov, 2021
In this article, we are going to see how to replace the value in a List using Python. We can replace values in the list in serval ways. Below are the methods to replace values in the list.
Using list indexing
Using for loop
Using while loop
Using lambda function
Using list slicing
We can access items of th... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 25744,
"s": 25555,
"text": "In this article, we are going to see how to replace the value in a List using Python. We can replace values in the list in serval ways. Below are the methods to re... |
Python | Plotting Line charts in excel sheet using XlsxWriter module - GeeksforGeeks | 21 Dec, 2018
Prerequisite: Create and Write on an excel sheet
XlsxWriter is a Python library using which one can perform multiple operations on excel files like creating, writing, arithmetic operations and plotting graphs. Let’s see how to plot Line charts using realtime data.
Charts are composed of at least one series... | [
{
"code": null,
"e": 26459,
"s": 26431,
"text": "\n21 Dec, 2018"
},
{
"code": null,
"e": 26508,
"s": 26459,
"text": "Prerequisite: Create and Write on an excel sheet"
},
{
"code": null,
"e": 26724,
"s": 26508,
"text": "XlsxWriter is a Python library using whic... |
Jackson Annotations - @JsonSetter | @JsonSetter allows a specific method to be marked as setter method.
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JacksonTester {
public static void main(String args[]){
ObjectMapper mapper = new ObjectMappe... | [
{
"code": null,
"e": 2543,
"s": 2475,
"text": "@JsonSetter allows a specific method to be marked as setter method."
},
{
"code": null,
"e": 3257,
"s": 2543,
"text": "import java.io.IOException; \nimport com.fasterxml.jackson.annotation.JsonSetter; \nimport com.fasterxml.jackson.d... |
How to deal with ModalDialog using selenium webdriver? | We can deal with modal dialog boxes with Selenium. A modal is just like a window that enforces the user to access it prior to going back to the actual page. It can be an authentication window as well.
Let us work with the below modal dialog −
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import o... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "We can deal with modal dialog boxes with Selenium. A modal is just like a window that enforces the user to access it prior to going back to the actual page. It can be an authentication window as well."
},
{
"code": null,
"e": 1305,
"s": ... |
How to find the vowels in a given string using Java? | You can read a character in a String using the charAt() method. To find the vowels in a given String you need to compare every character in it with the vowel letters.
Live Demo
public class FindingVowels {
public static void main(String args[]) {
String str = new String("Hi Welcome to Tutorialspoint");
... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "You can read a character in a String using the charAt() method. To find the vowels in a given String you need to compare every character in it with the vowel letters."
},
{
"code": null,
"e": 1239,
"s": 1229,
"text": "Live Demo"
},... |
Line Clipping | Set 1 (Cohen–Sutherland Algorithm) - GeeksforGeeks | 18 Apr, 2022
Given a set of lines and a rectangular area of interest, the task is to remove lines that are outside the area of interest and clip the lines which are partially inside the area.
Input : Rectangular area of interest (Defined by
below four values which are coordinates of
bottom left and top ... | [
{
"code": null,
"e": 25981,
"s": 25953,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 26160,
"s": 25981,
"text": "Given a set of lines and a rectangular area of interest, the task is to remove lines that are outside the area of interest and clip the lines which are partially i... |
How can I intercept the Status Bar Notifications in Android? | This example demonstrate about How can I intercept the Status Bar Notifications in Android
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 src/MyListener.java
public interface MyListener {
void setValu... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "This example demonstrate about How can I intercept the Status Bar Notifications in Android"
},
{
"code": null,
"e": 1282,
"s": 1153,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requ... |
Scale the Columns of a Matrix in R Programming – scale() Function | 09 Dec, 2021
scale() function in R Language is a generic function which centers and scales the columns of a numeric matrix. The center parameter takes either numeric alike vector or logical value. If the numeric vector is provided, then each column of the matrix has the corresponding value from center subtracted from i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 852,
"s": 28,
"text": "scale() function in R Language is a generic function which centers and scales the columns of a numeric matrix. The center parameter takes either numeric alike vector or logica... |
How to add an object to an array in JavaScript ? | 20 Jul, 2021
There are 3 popular methods which can be used to insert or add an object to an array.
push()
splice()
unshift()
Method 1: push() method of Array
The push() method is used to add one or multiple elements to the end of an array. It returns the new length of the array formed. An object can be inserted by pass... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "There are 3 popular methods which can be used to insert or add an object to an array."
},
{
"code": null,
"e": 121,
"s": 114,
"text": "push()"
},
{
... |
Node.js process.stdout Property | 01 Jun, 2021
The process.stdout property is an inbuilt application programming interface of the process module which is used to send data out of our program. A Writable Stream to stdout. It implements a write() method.
Syntax:
process.stdout.write()
Return Value: This property continuously prints the information as th... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 260,
"s": 53,
"text": "The process.stdout property is an inbuilt application programming interface of the process module which is used to send data out of our program. A Writable Stream to stdout. ... |
Program to print double headed arrow pattern | 11 Jun, 2021
Given an integer N which is the number of rows, the task is to draw the number pattern in the shape of a double headed arrow.Prerequisite: The pattern is a grow and shrink type pattern and hence basic knowledge to execute loops is required to understand the topic and the code in any language. The geometric... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 392,
"s": 54,
"text": "Given an integer N which is the number of rows, the task is to draw the number pattern in the shape of a double headed arrow.Prerequisite: The pattern is a grow and shrink ty... |
How to check if an element has any children in JavaScript ? | 31 Jul, 2019
The task is find out whether an element is having child elements or not with the help of JavaScript. We’re going to discuss few techniques.
Approach:
Select the Parent Element.
Use one of the firstChild, childNodes.length, children.length property to find whether element has child or not.
hasChildNodes() m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Jul, 2019"
},
{
"code": null,
"e": 168,
"s": 28,
"text": "The task is find out whether an element is having child elements or not with the help of JavaScript. We’re going to discuss few techniques."
},
{
"code": null,
"e"... |
exception::what() in C++ with Examples | 28 May, 2020
The exception::what() used to get string identifying exception. This function returns a null terminated character sequence that may be used to identify the exception. Below is the syntax for the same:
Header File:
#include<exception>
Syntax:
virtual const char* what() const throw();
Return: The function ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 255,
"s": 54,
"text": "The exception::what() used to get string identifying exception. This function returns a null terminated character sequence that may be used to identify the exception. Below i... |
How to stop browser back button using JavaScript ? | 03 Jan, 2022
In this article, we will discuss how to write a javascript function which will prevent the user to navigate back to the last or previous page. There are so many ways to stop the browser back button most popular and will work in all conditions. You can add code to the first or previous page to force the bro... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Jan, 2022"
},
{
"code": null,
"e": 494,
"s": 54,
"text": "In this article, we will discuss how to write a javascript function which will prevent the user to navigate back to the last or previous page. There are so many ways to stop ... |
Python program to find files having a particular extension using RegEx | 29 Dec, 2020
Prerequisite: Regular Expression in Python
Many of the times we need to search for a particular type of file from a list of different types of files. And we can do so with only a few lines of code using python. And the cool part is we don’t need to install any external package, python has a built-in packag... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 71,
"s": 28,
"text": "Prerequisite: Regular Expression in Python"
},
{
"code": null,
"e": 417,
"s": 71,
"text": "Many of the times we need to search for a particular type of file... |
How to Convert Floats to Strings in Pandas DataFrame? | 20 Aug, 2020
In this post, we’ll see different ways to Convert Floats to Strings in Pandas Dataframe? Pandas Dataframe provides the freedom to change the data type of column values. We can change them from Integers to Float type, Integer to String, String to Integer, Float to String, etc.
There are three methods to con... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 305,
"s": 28,
"text": "In this post, we’ll see different ways to Convert Floats to Strings in Pandas Dataframe? Pandas Dataframe provides the freedom to change the data type of column values. We can... |
Drop specific rows from multiindex Pandas Dataframe | 23 May, 2021
In this article, we will learn how to drop specific rows from the multi-index DataFrame.
First, let us create the multi-index DataFrame. The steps are given below:
Python3
import numpy as npimport pandas as pd mldx_arrays = [np.array(['lion', 'lion', 'lion', 'bison', 'bison', 'biso... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 May, 2021"
},
{
"code": null,
"e": 143,
"s": 54,
"text": "In this article, we will learn how to drop specific rows from the multi-index DataFrame."
},
{
"code": null,
"e": 218,
"s": 143,
"text": "First, let us cr... |
Java 8 Streams | Collectors.joining() method with Examples | 09 May, 2022
The joining() method of Collectors Class, in Java, is used to join various elements of a character or string array into a single string object. This method uses the stream to do so. There are various overloads of joining methods present in the Collector class. The class hierarchy is as follows:
java.lang.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 325,
"s": 28,
"text": "The joining() method of Collectors Class, in Java, is used to join various elements of a character or string array into a single string object. This method uses the stream to ... |
PHP | cal_days_in_month( ) Function | 26 Apr, 2018
The cal_days_in_month( ) function in PHP is an inbuilt function which is used to return the number of days in a month for a specific year and according to a specific calendar such as Gregorian calendar, French calendar, Jewish calendar etc.
The cal_days_in_month() function takes three parameters which are ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Apr, 2018"
},
{
"code": null,
"e": 295,
"s": 54,
"text": "The cal_days_in_month( ) function in PHP is an inbuilt function which is used to return the number of days in a month for a specific year and according to a specific calendar... |
IEEE Standard 754 Floating Point Numbers | 16 Mar, 2020
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation which was established in 1985 by the Institute of Electrical and Electronics Engineers (IEEE). The standard addressed many problems found in the diverse floating point implementations that made... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Mar, 2020"
},
{
"code": null,
"e": 587,
"s": 54,
"text": "The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation which was established in 1985 by the Institute of Electrical... |
PostgreSQL – CREATE ROLE | 28 Aug, 2020
PostgreSQL uses roles to represent user accounts. It doesn’t use the user concept like other database systems. Typically, roles can log in are called login roles. They are equivalent to users in other database systems. When roles contain other roles, they are called group roles. When you create a role, it ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 398,
"s": 28,
"text": "PostgreSQL uses roles to represent user accounts. It doesn’t use the user concept like other database systems. Typically, roles can log in are called login roles. They are equ... |
How to Create Circular Determinate ProgressBar in Android? | 24 Jun, 2021
In this article, we are going to demonstrate how to create a circular progress bar in Android Studio that displays the current progress value and has a gray background color initially. Here progress is shown in the center of the Bar. A sample GIF is given below to get an idea about what we are going to do ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 451,
"s": 52,
"text": "In this article, we are going to demonstrate how to create a circular progress bar in Android Studio that displays the current progress value and has a gray background color ... |
Python Dictionary fromkeys() Method | 05 Oct, 2021
Python dictionary fromkeys() function returns the dictionary with key mapped and specific value. It creates a new dictionary from the given sequence with the specific value.
Syntax : fromkeys(seq, val)
Parameters :
seq : The sequence to be transformed into a dictionary.
val : Initial values that need to b... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Oct, 2021"
},
{
"code": null,
"e": 226,
"s": 52,
"text": "Python dictionary fromkeys() function returns the dictionary with key mapped and specific value. It creates a new dictionary from the given sequence with the specific value."... |
Python | Accessing variable value from code scope | 29 Oct, 2019
Sometimes, we just need to access a variable other than the usual way of accessing by it’s name. There are many method by which a variable can be accessed from the code scope. These are by default dictionaries that are created and which keep the variable values as dictionary key-value pair. Let’s talk abou... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 361,
"s": 28,
"text": "Sometimes, we just need to access a variable other than the usual way of accessing by it’s name. There are many method by which a variable can be accessed from the code scope.... |
C Program to check whether a number is a Perfect Cube or not - GeeksforGeeks | 19 Aug, 2020
Given a number N, the task is to write C program to check if the given number is perfect cube or not.
Examples:
Input: N = 216Output: YesExplanation:As 216 = 6*6*6.Therefore the cube root of 216 is 6.
Input: N = 100Output: No
Method 1: Naive Approach To find the cube root of the given number iterate over a... | [
{
"code": null,
"e": 25032,
"s": 25004,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 25134,
"s": 25032,
"text": "Given a number N, the task is to write C program to check if the given number is perfect cube or not."
},
{
"code": null,
"e": 25144,
"s": 25134,
... |
F# - Classes | Classes are types that represent objects that can have properties, methods, and events. ‘They are used to model actions, processes, and any conceptual entities in applications’.
Syntax for defining a class type is as follows −
// Class definition:
type [access-modifier] type-name [type-params] [access-modifier] ( param... | [
{
"code": null,
"e": 2339,
"s": 2161,
"text": "Classes are types that represent objects that can have properties, methods, and events. ‘They are used to model actions, processes, and any conceptual entities in applications’."
},
{
"code": null,
"e": 2388,
"s": 2339,
"text": "Synt... |
return keyword in Java | 31 Mar, 2022
In Java, return is a reserved keyword i.e, we can’t use it as an identifier. It is used to exit from a method, with or without a value. Usage of return keyword as there exist two ways as listed below as follows:
Case 1: Methods returning a value
Case 2: Methods not returning a value
Let us illustrate by d... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 265,
"s": 52,
"text": "In Java, return is a reserved keyword i.e, we can’t use it as an identifier. It is used to exit from a method, with or without a value. Usage of return keyword as there exist... |
Java String trim() method with Example | 25 Sep, 2021
The trim() method in Java String is a built-in function that eliminates leading and trailing spaces. The Unicode value of space character is ‘\u0020’. The trim() method in java checks this Unicode value before and after the string, if it exists then removes the spaces and returns the omitted string. The tr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n25 Sep, 2021"
},
{
"code": null,
"e": 419,
"s": 53,
"text": "The trim() method in Java String is a built-in function that eliminates leading and trailing spaces. The Unicode value of space character is ‘\\u0020’. The trim() method in j... |
Stream ofNullable(T) method in Java with examples | 25 Apr, 2019
The ofNullable(T) method returns a sequential Stream containing a single element if this stream is non-null otherwise method returns an empty Stream. It helps to handle the null stream and NullPointerException.
Syntax:
static <T> Stream<T> ofNullable(T t)
Parameters: This method accepts a single parameter... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Apr, 2019"
},
{
"code": null,
"e": 263,
"s": 52,
"text": "The ofNullable(T) method returns a sequential Stream containing a single element if this stream is non-null otherwise method returns an empty Stream. It helps to handle the n... |
What is the equivalent of document.getElementById() in React? | 01 Feb, 2021
In React we have a concept of Refs which is equivalent to document.getElementById() in Javascript. Refs provide a way to access DOM nodes or React elements created in the render method.
Creating Refs
Refs are created using React.createRef() and attached to React elements via the ref attribute.
class App e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 214,
"s": 28,
"text": "In React we have a concept of Refs which is equivalent to document.getElementById() in Javascript. Refs provide a way to access DOM nodes or React elements created in the rend... |
Fetch top 10 starred repositories of user on GitHub | Python | 17 Jun, 2021
Prerequisites: Basic understanding of python, urllib2 and BeautifulSoup
We often write python scripts to make our task easier, so here is the script which helps you to fetch top 10 starred repositories of any user on GitHub.You just need Github username (For example: msdeep14) to run the script.Script Exp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 101,
"s": 28,
"text": "Prerequisites: Basic understanding of python, urllib2 and BeautifulSoup "
},
{
"code": null,
"e": 347,
"s": 101,
"text": "We often write python scripts to ... |
ReactJS Semantic UI icon element | 13 Jun, 2021
Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks.
In this article we will know how to use icon elements in ReactJS Semanti... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2021"
},
{
"code": null,
"e": 263,
"s": 28,
"text": "Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined C... |
Python | Unzip a list of tuples | 29 Nov, 2018
The zipping techniques, that is assigning a key-value or pairing from two different lists has been covered in many articles before, sometimes we have specific utility to perform the reverse task. This task can be achieved by various methods.
Let’s discuss some of the methods to unzip a list of tuples.
Meth... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 296,
"s": 54,
"text": "The zipping techniques, that is assigning a key-value or pairing from two different lists has been covered in many articles before, sometimes we have specific utility to perf... |
Find minimum s-t cut in a flow network | 21 Jun, 2022
In a flow network, an s-t cut is a cut that requires the source ‘s’ and the sink ‘t’ to be in different subsets, and it consists of edges going from the source’s side to the sink’s side. The capacity of an s-t cut is defined by the sum of the capacity of each edge in the cut-set. (Source: Wiki) The problem... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 678,
"s": 52,
"text": "In a flow network, an s-t cut is a cut that requires the source ‘s’ and the sink ‘t’ to be in different subsets, and it consists of edges going from the source’s side to the ... |
Information Entropy using MATLAB | 18 Aug, 2020
Information entropy is the aggregate rate at which information is created by a stochastic wellspring of information. The proportion of information entropy related to every potential information value is the negative logarithm of the likelihood mass function for the worth. Hence, when the information source... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 739,
"s": 54,
"text": "Information entropy is the aggregate rate at which information is created by a stochastic wellspring of information. The proportion of information entropy related to every po... |
java.nio.file.FileSystem class in java | 30 Jul, 2021
java.nio.file.FileSystem class provides an interface to a file system. The file system acts as a factory for creating different objects like Path, PathMatcher, UserPrincipalLookupService, and WatchService. This object help to access the files and other objects in the file system.
Syntax: Class declaration
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 309,
"s": 28,
"text": "java.nio.file.FileSystem class provides an interface to a file system. The file system acts as a factory for creating different objects like Path, PathMatcher, UserPrincipalLo... |
How to make Bootstrap table with sticky table head? | 30 Jul, 2021
Tables that can be used for aligning/recording data properly but sometimes it happens that the data in the table is too long so in order to read the data properly the header respective to various columns should be available all the time while traversing the table. In such cases, a sticky table head is requ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 490,
"s": 28,
"text": "Tables that can be used for aligning/recording data properly but sometimes it happens that the data in the table is too long so in order to read the data properly the header r... |
Defining Clean Up Actions in Python | 11 Oct, 2021
Think of a task you will always want your program to do, whether it runs perfectly or raise any kind of error. For example, We use of try statement which has an optional clause – “finally” to perform clean up actions, that must be executed under all conditions.Cleanup actions: Before leaving the try statem... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 703,
"s": 54,
"text": "Think of a task you will always want your program to do, whether it runs perfectly or raise any kind of error. For example, We use of try statement which has an optional clau... |
Stuffing a Pandas DataFrame.plot into a Matplotlib subplot | To stuff a Pandas dataframe plot into a Matplotlib subplot, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create a figure and a set of subplots, two axes.
Create a Pandas dataframe using DataFrame.
Use DataFrame.plot() method to plot.
To display the figure... | [
{
"code": null,
"e": 1281,
"s": 1187,
"text": "To stuff a Pandas dataframe plot into a Matplotlib subplot, we can take the following steps −"
},
{
"code": null,
"e": 1357,
"s": 1281,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
... |
numpy.ndarray.view() in Python | 27 Aug, 2021
numpy.ndarray.view() helps to get a new view of array with the same data.
Syntax: ndarray.view(dtype=None, type=None)Parameters: dtype : Data-type descriptor of the returned view, e.g., float32 or int16. The default, None, results in the view having the same data-type as a. type : Python type, optionalRet... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 103,
"s": 28,
"text": "numpy.ndarray.view() helps to get a new view of array with the same data. "
},
{
"code": null,
"e": 361,
"s": 103,
"text": "Syntax: ndarray.view(dtype=None... |
VBScript Erase Function | The Erase Function is used to reset the values of fixed size arrays and free the memory of the dynamic arrays. It behaves depending upon the type of the arrays.
Erase ArrayName
Fixed numeric array, each element in an array is reset to Zero.
Fixed numeric array, each element in an array is reset to Zero.
Fixed String a... | [
{
"code": null,
"e": 2375,
"s": 2214,
"text": "The Erase Function is used to reset the values of fixed size arrays and free the memory of the dynamic arrays. It behaves depending upon the type of the arrays."
},
{
"code": null,
"e": 2392,
"s": 2375,
"text": "Erase ArrayName\n"
... |
BOTP – SMS and Email Bomber in Kali Linux | 17 Jun, 2021
The BOTP tool is a free and open-source tool available on GitHub that is used to perform call and SMS bombing on the target phone numbers. You must ensure that you always install the latest version of BOTP from GitHub in order to not get stuck with the work of the tool.
This tool is written in python. You... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 300,
"s": 28,
"text": "The BOTP tool is a free and open-source tool available on GitHub that is used to perform call and SMS bombing on the target phone numbers. You must ensure that you always inst... |
Longest subsegment of ‘1’s formed by changing at most k ‘0’s | 25 May, 2021
Given a binary array a[] and a number k, we need to find length of the longest subsegment of ‘1’s possible by changing at most k ‘0’s. Examples:
Input : a[] = {1, 0, 0, 1, 1, 0, 1},
k = 1.
Output : 4
Explanation : Here, we should only change 1
zero(0). Maximum possible length we can get
is by ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 201,
"s": 54,
"text": "Given a binary array a[] and a number k, we need to find length of the longest subsegment of ‘1’s possible by changing at most k ‘0’s. Examples: "
},
{
"code": null,... |
Convert two lists into a dictionary in Python | While a Python list contains a series of values a dictionary on the other hand contains a pair of values which are called key-value pairs. In this article we will take two lists and mark them together to create a Python dictionary.
We create two nested for loops. In the inner loop will assign one of the list as key for... | [
{
"code": null,
"e": 1419,
"s": 1187,
"text": "While a Python list contains a series of values a dictionary on the other hand contains a pair of values which are called key-value pairs. In this article we will take two lists and mark them together to create a Python dictionary."
},
{
"code":... |
Convert Text and Text File to PDF using Python | 25 May, 2022
PDFs are one of the most important and widely used digital media. PDF stands for Portable Document Format. It uses .pdf extension. It is used to present and exchange documents reliably, independent of software, hardware, or operating system. Converting a given text or a text file to PDF (Portable Document ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 887,
"s": 54,
"text": "PDFs are one of the most important and widely used digital media. PDF stands for Portable Document Format. It uses .pdf extension. It is used to present and exchange document... |
WPF - Calendar | Calendar is a control that enables a user to select a date by using a visual calendar display. It provides some basic navigation using either the mouse or keyboard. The hierarchical inheritance of Calendar class is as follows −
BlackoutDates
Gets a collection of dates that are marked as not selectable.
CalendarButtonSt... | [
{
"code": null,
"e": 2248,
"s": 2020,
"text": "Calendar is a control that enables a user to select a date by using a visual calendar display. It provides some basic navigation using either the mouse or keyboard. The hierarchical inheritance of Calendar class is as follows −"
},
{
"code": nul... |
Replace diagonal elements in each row of given Matrix by Kth smallest element of that row - GeeksforGeeks | 17 Jan, 2022
Given a matrix mat[ ][ ] of size N*N and an integer K, containing integer values, the task is to replace diagonal elements by the Kth smallest element of row.
Examples:
Input: mat[][]= {{1, 2, 3, 4} {4, 2, 7, 6} {3, 5, 1, 9} {2, 4, 6... | [
{
"code": null,
"e": 25857,
"s": 25826,
"text": " \n17 Jan, 2022\n"
},
{
"code": null,
"e": 26016,
"s": 25857,
"text": "Given a matrix mat[ ][ ] of size N*N and an integer K, containing integer values, the task is to replace diagonal elements by the Kth smallest element of row."
... |
ASP.NET MVC - Validation | Validation is an important aspect in ASP.NET MVC applications. It is used to check whether the user input is valid. ASP.NET MVC provides a set of validation that is easy-to-use and at the same time, it is also a powerful way to check for errors and, if necessary, display messages to the user.
DRY stands for Don't Repea... | [
{
"code": null,
"e": 2563,
"s": 2269,
"text": "Validation is an important aspect in ASP.NET MVC applications. It is used to check whether the user input is valid. ASP.NET MVC provides a set of validation that is easy-to-use and at the same time, it is also a powerful way to check for errors and, if ... |
Create a form that uses the horizontal layout with Bootstrap | To create a horizontal layout in Bootstrap, use the form-horizontal class.
You can try to run the following code −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta name = "viewport" content = "width=device-width, initial-scale = 1">
<link rel = "stylesheet" href = "htt... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "To create a horizontal layout in Bootstrap, use the form-horizontal class."
},
{
"code": null,
"e": 1177,
"s": 1137,
"text": "You can try to run the following code −"
},
{
"code": null,
"e": 1187,
"s": 1177,
"text... |
A Simple and Scalable Analytics Pipeline | by Ben Weber | Towards Data Science | Gathering data about application usage and user behavior such as player progress in games is invaluable for product teams. Typically, entire teams have been dedicated to building and maintaining data pipelines for collecting and storing tracking data for applications. However, with many new serverless tools available, ... | [
{
"code": null,
"e": 1004,
"s": 172,
"text": "Gathering data about application usage and user behavior such as player progress in games is invaluable for product teams. Typically, entire teams have been dedicated to building and maintaining data pipelines for collecting and storing tracking data for... |
How to turn Android device screen on and off programmatically using Kotlin? | This example demonstrates how to turn an Android device screen on and off programmatically 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" e... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "This example demonstrates how to turn an Android device screen on and off programmatically using Kotlin."
},
{
"code": null,
"e": 1296,
"s": 1167,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and... |
Bamboolib: One of the Most Useful Python Libraries You Have Ever Seen | by Ismael Araujo | Towards Data Science | I love writing about Python libraries. If you have read any of my blogs, you might know I have written about multiple libraries. Before writing, I test some Python libraries, check their most remarkable features, and, if I like, I write about them. Usually, I try to include a few libraries in the same blog to make it m... | [
{
"code": null,
"e": 629,
"s": 172,
"text": "I love writing about Python libraries. If you have read any of my blogs, you might know I have written about multiple libraries. Before writing, I test some Python libraries, check their most remarkable features, and, if I like, I write about them. Usuall... |
Displaying XML Using XSLT - GeeksforGeeks | 13 May, 2021
XSLT stands for Extensible Stylesheet Language Transformation.
XSLT is used to transform XML document from one form to another form.
XSLT uses Xpath to perform matching of nodes to perform these transformation .
The result of applying XSLT to XML document could be an another XML document, HTML, text or any... | [
{
"code": null,
"e": 23847,
"s": 23819,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 23910,
"s": 23847,
"text": "XSLT stands for Extensible Stylesheet Language Transformation."
},
{
"code": null,
"e": 23980,
"s": 23910,
"text": "XSLT is used to transform X... |
A Deep Dive on Vector Autoregression in R | by Justin Eloriaga | Towards Data Science | Christopher Sims proposed the Vector Autoregression which is a multivariate linear time series model in which the endogenous variables in the system are functions of the lagged values of all endogenous variables. This allows for a simple and flexible alternative to the traditional structural system of equations. A VAR ... | [
{
"code": null,
"e": 702,
"s": 172,
"text": "Christopher Sims proposed the Vector Autoregression which is a multivariate linear time series model in which the endogenous variables in the system are functions of the lagged values of all endogenous variables. This allows for a simple and flexible alte... |
asctime() and asctime_s() functions in C with Examples - GeeksforGeeks | 16 Dec, 2021
asctime() function: The asctime() function is defined in time.h header file. This function returns the pointer to the string that contains the information stored in the structure pointed to struct tm type. This function is used to return the local time defined by the system.Syntax:
char *asctime(const st... | [
{
"code": null,
"e": 24128,
"s": 24100,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 24413,
"s": 24128,
"text": "asctime() function: The asctime() function is defined in time.h header file. This function returns the pointer to the string that contains the information stored i... |
Combination Sum in Python | Suppose we have a set of candidate numbers (all elements are unique) and a target number. We have to find all unique combinations in candidates where the candidate numbers sum to the given target. The same repeated number may be chosen from candidates unlimited number of times. So if the elements are [2,3,6,7] and the ... | [
{
"code": null,
"e": 1449,
"s": 1062,
"text": "Suppose we have a set of candidate numbers (all elements are unique) and a target number. We have to find all unique combinations in candidates where the candidate numbers sum to the given target. The same repeated number may be chosen from candidates u... |
Angular7 - Components | Major part of the development with Angular 7 is done in the components. Components are basically classes that interact with the .html file of the component, which gets displayed on the browser. We have seen the file structure in one of our previous chapters.
The file structure has the app component and it consists of t... | [
{
"code": null,
"e": 2320,
"s": 2061,
"text": "Major part of the development with Angular 7 is done in the components. Components are basically classes that interact with the .html file of the component, which gets displayed on the browser. We have seen the file structure in one of our previous chap... |
JSF - Basic Tags | In this chapter, you will learn about various types of basic JSF tags.
JSF provides a standard HTML tag library. These tags get rendered into corresponding html output.
For these tags you need to use the following namespaces of URI in html node.
<html
xmlns = "http://www.w3.org/1999/xhtml"
xmlns:h = "http://jav... | [
{
"code": null,
"e": 2023,
"s": 1952,
"text": "In this chapter, you will learn about various types of basic JSF tags."
},
{
"code": null,
"e": 2121,
"s": 2023,
"text": "JSF provides a standard HTML tag library. These tags get rendered into corresponding html output."
},
{
... |
Pandas - Data Correlations | A great aspect of the Pandas module is the corr() method.
The corr() method calculates the relationship between each column in your data set.
The examples in this page uses a CSV file called: 'data.csv'.
Download data.csv. or Open
data.csv
Show the relationship between the columns:
Duration Pulse Max... | [
{
"code": null,
"e": 58,
"s": 0,
"text": "A great aspect of the Pandas module is the corr() method."
},
{
"code": null,
"e": 142,
"s": 58,
"text": "The corr() method calculates the relationship between each column in your data set."
},
{
"code": null,
"e": 204,
"s... |
What is SameSite Cookies and CSRF Protection? - GeeksforGeeks | 15 Sep, 2020
CSRF stands for Cross-Site Request forgery. It allows an attacker to craft a manipulated request via an email or by other means and thereby making state-changing actions in websites that you are currently authenticated as yourself. The intention of CSRF is not to read sensitive data, but to write or make c... | [
{
"code": null,
"e": 24478,
"s": 24450,
"text": "\n15 Sep, 2020"
},
{
"code": null,
"e": 24833,
"s": 24478,
"text": "CSRF stands for Cross-Site Request forgery. It allows an attacker to craft a manipulated request via an email or by other means and thereby making state-changing a... |
Create loops of even and odd values in a binary tree - GeeksforGeeks | 13 May, 2021
Given a binary tree with the node structure containing a data part, left and right pointers, and an arbitrary pointer(abtr). The node’s value can be any positive integer. The problem is to create odd and even loops in a binary tree. An odd loop is a loop that connects all the nodes having odd numbers and s... | [
{
"code": null,
"e": 24938,
"s": 24910,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 25598,
"s": 24938,
"text": "Given a binary tree with the node structure containing a data part, left and right pointers, and an arbitrary pointer(abtr). The node’s value can be any positive i... |
5 Ways to add a new column in a PySpark Dataframe | by Rahul Agarwal | Towards Data Science | Too much data is getting generated day by day.
Although sometimes we can manage our big data using tools like Rapids or Parallelization, Spark is an excellent tool to have in your repertoire if you are working with Terabytes of data.
In my last post on Spark, I explained how to work with PySpark RDDs and Dataframes.
Al... | [
{
"code": null,
"e": 219,
"s": 172,
"text": "Too much data is getting generated day by day."
},
{
"code": null,
"e": 406,
"s": 219,
"text": "Although sometimes we can manage our big data using tools like Rapids or Parallelization, Spark is an excellent tool to have in your repert... |
Difference between TypeScript and JavaScript | As we know that both Typescript and JavaScript are the programming language usually used at client end for processing the server request and rendering data on UI. However, both are scripting language but Typescript supports some additional features than Javascript due to which we can state it as the superset of Javascr... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "As we know that both Typescript and JavaScript are the programming language usually used at client end for processing the server request and rendering data on UI. However, both are scripting language but Typescript supports some additional features than... |
\underline - Tex Command | \underline - Used to create underline symbol under the argument.
{ \underline #1}
\underline command creates underline symbol under the argument.
\underline{AB}
AB_
\underline a
a_
\underline{\text{a long argument}}
a long argument_
\underline{AB}
AB_
\underline{AB}
\underline a
a_
\underline a
\underl... | [
{
"code": null,
"e": 8051,
"s": 7986,
"text": "\\underline - Used to create underline symbol under the argument."
},
{
"code": null,
"e": 8068,
"s": 8051,
"text": "{ \\underline #1}"
},
{
"code": null,
"e": 8132,
"s": 8068,
"text": "\\underline command creates... |
How to access the pointer to structure in C language? | Pointer to structure holds the address of an entire structure.
Mainly, these are used to create the complex data structures such as linked lists, trees, graphs and so on.
The members of the structure can be accessed by using a special operator called arrow operator ( -> ).
Following is the declaration for pointer to st... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "Pointer to structure holds the address of an entire structure."
},
{
"code": null,
"e": 1233,
"s": 1125,
"text": "Mainly, these are used to create the complex data structures such as linked lists, trees, graphs and so on."
},
{
... |
Bootstrap 4 | Collapse - GeeksforGeeks | 04 Mar, 2022
Bootstrap 4 offers different classes for creating collapsible elements. A collapsible element is used to hide or show a large amount of content. When clicking a button it targets a collapsible element, the class transition takes place as follows:
.collapse: It hides the content.
.collapsing: It applied d... | [
{
"code": null,
"e": 25534,
"s": 25506,
"text": "\n04 Mar, 2022"
},
{
"code": null,
"e": 25783,
"s": 25534,
"text": "Bootstrap 4 offers different classes for creating collapsible elements. A collapsible element is used to hide or show a large amount of content. When clicking a bu... |
Spring AOP - Proxy | So far, we've declared aspects using <aop:config> or < aop:aspectj-autoproxy>. We can create a proxy programmatically as well as invoke the aspects programmatically using the proxy object.
//Create object to be proxied
Student student = new Student();
//Create the Proxy Factory
AspectJProxyFactory proxyFactory = new A... | [
{
"code": null,
"e": 2458,
"s": 2269,
"text": "So far, we've declared aspects using <aop:config> or < aop:aspectj-autoproxy>. We can create a proxy programmatically as well as invoke the aspects programmatically using the proxy object."
},
{
"code": null,
"e": 2817,
"s": 2458,
"t... |
Word2vec Made Easy. This post is a simplified yet in-depth... | by Munesh Lakhey | Towards Data Science | This post is a simplified yet in-depth guide to word2vec. In this article, we will implement word2vec model from scratch and see how embedding help to find similar/dissimilar words.
Word2Vec is the foundation of NLP( Natural Language Processing). Tomas Mikolov and the team of researchers developed the technique in 2013... | [
{
"code": null,
"e": 229,
"s": 47,
"text": "This post is a simplified yet in-depth guide to word2vec. In this article, we will implement word2vec model from scratch and see how embedding help to find similar/dissimilar words."
},
{
"code": null,
"e": 783,
"s": 229,
"text": "Word2... |
TreeSet remove() Method in Java - GeeksforGeeks | 26 Nov, 2018
The Java.util.TreeSet.remove(Object O) method is to remove a particular element from a Tree set.
Syntax:
TreeSet.remove(Object O)
Parameters: The parameter O is of the type of Tree set and specifies the element to be removed from the set.
Return Value: This method returns True if the element specified in t... | [
{
"code": null,
"e": 24390,
"s": 24362,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 24487,
"s": 24390,
"text": "The Java.util.TreeSet.remove(Object O) method is to remove a particular element from a Tree set."
},
{
"code": null,
"e": 24495,
"s": 24487,
"t... |
C# program to count the occurrences of each character | Firstly, set the string −
string str = "Website";
Console.WriteLine("String: "+str);
Check for every character in the string and increment a variable that would count the number of occurrences of that character −
for (int j = 0; j < str.Length; j++) {
if (str[0] == str[j]) {
cal++;
}
}
You can try to run th... | [
{
"code": null,
"e": 1088,
"s": 1062,
"text": "Firstly, set the string −"
},
{
"code": null,
"e": 1147,
"s": 1088,
"text": "string str = \"Website\";\nConsole.WriteLine(\"String: \"+str);"
},
{
"code": null,
"e": 1275,
"s": 1147,
"text": "Check for every chara... |
A Beginner's Guide to 30 Days of Google Cloud Program - GeeksforGeeks | 17 Jan, 2021
Google Cloud in collaboration with Developer Students Club (DSC) provides an opportunity to students to start their journey in cloud programming with hands-on labs on Google Cloud Platform that powers apps like Google Search, Gmail, and YouTube. Along the way, you will learn and practice cloud concepts lik... | [
{
"code": null,
"e": 23861,
"s": 23833,
"text": "\n17 Jan, 2021"
},
{
"code": null,
"e": 24446,
"s": 23861,
"text": "Google Cloud in collaboration with Developer Students Club (DSC) provides an opportunity to students to start their journey in cloud programming with hands-on labs... |
forward_list::push_front() and forward_list::pop_front() in C++ STL - GeeksforGeeks | 06 Oct, 2021
Forward list in STL implements singly linked list. Introduced from C++11, forward list are useful than other containers in insertion, removal and moving operations (like sort) and allows time constant insertion and removal of elements.It differs from list by the fact that forward list keeps track of locati... | [
{
"code": null,
"e": 24216,
"s": 24188,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 24607,
"s": 24216,
"text": "Forward list in STL implements singly linked list. Introduced from C++11, forward list are useful than other containers in insertion, removal and moving operations... |
DATE_SUB() Function in MySQL - GeeksforGeeks | 03 Dec, 2020
DATE_SUB() function in MySQL is used to subtract a specified time or date interval to a specified date and then returns the date.
Syntax :
DATE_SUB(date, INTERVAL value addunit)
Parameter: This function accepts two parameters which are illustrated below :
date – Specified date to be modified
value addunit... | [
{
"code": null,
"e": 24268,
"s": 24240,
"text": "\n03 Dec, 2020"
},
{
"code": null,
"e": 24398,
"s": 24268,
"text": "DATE_SUB() function in MySQL is used to subtract a specified time or date interval to a specified date and then returns the date."
},
{
"code": null,
"... |
jQuery - find( selector ) Method | The find( selector ) method searches for descendant elements that match the specified selector.
Here is the simple syntax to use this method −
selector.find( selector )
Here is the description of all the parameters used by this method −
selector − The selector can be written using CSS 1-3 selector syntax.
selector − T... | [
{
"code": null,
"e": 2418,
"s": 2322,
"text": "The find( selector ) method searches for descendant elements that match the specified selector."
},
{
"code": null,
"e": 2465,
"s": 2418,
"text": "Here is the simple syntax to use this method −"
},
{
"code": null,
"e": 24... |
Count of elements in given Array divisible by all elements in their prefix - GeeksforGeeks | 24 Jan, 2022
Given an array arr[] containing N positive integers, the task is to find the total number of elements in the array that are divisible by all the elements present before them.
Examples:
Input: arr[] = {10, 6, 60, 120, 30, 360}Output: 3Explanation: 60, 120 and 360 are the required elements.
Input: arr[] = {2... | [
{
"code": null,
"e": 24796,
"s": 24768,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 24971,
"s": 24796,
"text": "Given an array arr[] containing N positive integers, the task is to find the total number of elements in the array that are divisible by all the elements present b... |
alarm() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
How to copy a file's content from Linux terminal? - GeeksforGeeks | 11 Jul, 2019
This article shows the alternative method to copy the content of the file onto the clipboard, via the Linux terminal. In OSX, the commands pbcopy and pbpaste are available by default. Thus, to copy a file onto the clipboard via OSX terminal, type:
pbcopy < 'path of the file'
Since, in Ubuntu, pbcopy and pb... | [
{
"code": null,
"e": 24432,
"s": 24404,
"text": "\n11 Jul, 2019"
},
{
"code": null,
"e": 24680,
"s": 24432,
"text": "This article shows the alternative method to copy the content of the file onto the clipboard, via the Linux terminal. In OSX, the commands pbcopy and pbpaste are a... |
Stop Using Pandas get_dummies() for Feature Encoding | by Satyam Kumar | Towards Data Science | Machine learning algorithms require the input data source in a specific format of numerical vectors. Feature engineering is an important component of a data science model development life cycle, which refers to converting the raw data to numerical format fit for training a robust model.
A data scientist spends about 80... | [
{
"code": null,
"e": 335,
"s": 47,
"text": "Machine learning algorithms require the input data source in a specific format of numerical vectors. Feature engineering is an important component of a data science model development life cycle, which refers to converting the raw data to numerical format f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.