title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Forward Iterators in C++ | 25 Apr, 2019
After going through the template definition of various STL algorithms like std::search, std::search_n, std::lower_bound, you must have found their template definition consisting of objects of type Forward Iterator. So what are they and why are they used ?
Forward iterators are one of the five main types of... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Apr, 2019"
},
{
"code": null,
"e": 310,
"s": 54,
"text": "After going through the template definition of various STL algorithms like std::search, std::search_n, std::lower_bound, you must have found their template definition consist... |
How to update NPM ? | 31 May, 2020
NPM (Node Package Manager) is the default package manager for Node.js and is written entirely in JavaScript. It manages all the packages and modules for Node.js and consists of command-line client npm. It gets installed into the system with the installation of Node.js. The required packages and modules in ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 May, 2020"
},
{
"code": null,
"e": 403,
"s": 54,
"text": "NPM (Node Package Manager) is the default package manager for Node.js and is written entirely in JavaScript. It manages all the packages and modules for Node.js and consists ... |
C# | Encapsulation | 23 Jan, 2019
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. In a different way, encapsulation is a protective shield that prevents the data from being accessed by the code outside this shield.
Technically in encapsulatio... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 332,
"s": 52,
"text": "Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. In a different way, encapsu... |
Python PIL | Image.show() method | 04 Mar, 2022
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Mar, 2022"
},
{
"code": null,
"e": 668,
"s": 28,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to ... |
Python – Kolmogorov-Smirnov Distribution in Statistics | 10 Jan, 2020
scipy.stats.kstwobign() is Kolmogorov-Smirnov two-sided test for large N test that is defined with a standard format and some shape parameters to complete its specification. It is a statistical test that measures the maximum absolute distance of the theoretical CDF from the empirical CDF.
Parameters :
q : ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 318,
"s": 28,
"text": "scipy.stats.kstwobign() is Kolmogorov-Smirnov two-sided test for large N test that is defined with a standard format and some shape parameters to complete its specification. I... |
fprintf() in C | 28 Oct, 2020
fprintf is used to print content in file instead of stdout console.
int fprintf(FILE *fptr, const char *str, ...);
Example:
C
// C Program for the above approach #include<stdio.h>int main(){ int i, n=2; char str[50]; //open file sample.txt in write mode FILE *fptr = fopen("sample.txt", "w... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Oct, 2020"
},
{
"code": null,
"e": 120,
"s": 52,
"text": "fprintf is used to print content in file instead of stdout console."
},
{
"code": null,
"e": 168,
"s": 120,
"text": "int fprintf(FILE *fptr, const char *s... |
Python program to implement Rock Paper Scissor game | 08 Jun, 2022
Python is a multipurpose language and one can do anything with it. Python can also be used for game development. Let’s create a simple command-line Rock-Paper-Scissor game without using any external game libraries like PyGame. In this game, the user gets the first chance to pick the option between Rock, pa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 486,
"s": 52,
"text": "Python is a multipurpose language and one can do anything with it. Python can also be used for game development. Let’s create a simple command-line Rock-Paper-Scissor game wi... |
Python String format() Method | 08 Jul, 2022
Python format() function has been introduced for handling complex string formatting more efficiently.
Python3
txt = "I have {an:.2f} Ruppes!"print(txt.format(an = 4))
Output:
I have 4.00 Ruppes!
This method of the built-in string class provides functionality for complex variable substitutions and value fo... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 155,
"s": 52,
"text": "Python format() function has been introduced for handling complex string formatting more efficiently. "
},
{
"code": null,
"e": 163,
"s": 155,
"text": "Py... |
C# Online Compiler (Editor / Interpreter) | With our online C# compiler, you can edit C# code, and view the result in your browser.
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Click on the "Try it Yourself" button to see how it works.
The window to th... | [
{
"code": null,
"e": 88,
"s": 0,
"text": "With our online C# compiler, you can edit C# code, and view the result in your browser."
},
{
"code": null,
"e": 245,
"s": 88,
"text": "using System;\n\nnamespace HelloWorld\n{\n class Program\n {\n static void Main(string[] args)\n ... |
Rexx - File I/O | Rexx provides a number of methods when working with I/O. Rexx provides easier classes to provide the following functionalities for files.
Reading files
Writing to files
Seeing whether a file is a file or directory
The functions available in Rexx for File I/O are based on both line input and character input and we will ... | [
{
"code": null,
"e": 2477,
"s": 2339,
"text": "Rexx provides a number of methods when working with I/O. Rexx provides easier classes to provide the following functionalities for files."
},
{
"code": null,
"e": 2491,
"s": 2477,
"text": "Reading files"
},
{
"code": null,
... |
Centered triangular number in PL/SQL - GeeksforGeeks | 31 Oct, 2018
Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given n and task is to find nth centered triangular number. A c... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n31 Oct, 2018"
},
{
"code": null,
"e": 24536,
"s": 24292,
"text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,... |
C++ Algorithm Library - for_each() Function | The C++ function std::algorithm::for_each() applies provided function on each element of the range.
Following is the declaration for std::algorithm::for_each() function form std::algorithm header.
template <class InputIterator, class Function>
Function for_each (InputIterator first, InputIterator last, Function fn);
f... | [
{
"code": null,
"e": 2703,
"s": 2603,
"text": "The C++ function std::algorithm::for_each() applies provided function on each element of the range."
},
{
"code": null,
"e": 2800,
"s": 2703,
"text": "Following is the declaration for std::algorithm::for_each() function form std::alg... |
Java program to find if the given number is positive or negative | Read a number from the user using the Scanner class's method. check whether the given number is greater, lesser or, equal to 0. If it is greater given number is positive if the lesser given number is negative. the else given number is neither positive or negative.
import java.util.Scanner;
public class PositiveOrNegat... | [
{
"code": null,
"e": 1327,
"s": 1062,
"text": "Read a number from the user using the Scanner class's method. check whether the given number is greater, lesser or, equal to 0. If it is greater given number is positive if the lesser given number is negative. the else given number is neither positive o... |
Scala - Files I/O | Scala is open to make use of any Java objects and java.io.File is one of the objects which can be used in Scala programming to read and write files.
The following is an example program to writing to a file.
import java.io._
object Demo {
def main(args: Array[String]) {
val writer = new PrintWriter(new File("t... | [
{
"code": null,
"e": 2147,
"s": 1998,
"text": "Scala is open to make use of any Java objects and java.io.File is one of the objects which can be used in Scala programming to read and write files."
},
{
"code": null,
"e": 2205,
"s": 2147,
"text": "The following is an example progr... |
CardView using RecyclerView in Android with Example - GeeksforGeeks | 09 Dec, 2020
RecyclerView is an extended version of ListView and GridView. It works on the ViewHolder design pattern. With the help of RecyclerView, we can add many extra features to our list of data. Before starting our example on implementation of CardView in RecyclerView. We should know what CardView and RecyclerVie... | [
{
"code": null,
"e": 25512,
"s": 25484,
"text": "\n09 Dec, 2020"
},
{
"code": null,
"e": 25828,
"s": 25512,
"text": "RecyclerView is an extended version of ListView and GridView. It works on the ViewHolder design pattern. With the help of RecyclerView, we can add many extra featu... |
How to find the number of levels in R for a factor column? | To find the number of levels in R for a factor column, we can use length function along with unique function. For example, if we have a data frame called df that contains a factor column X then we can find the number of levels in the factor column using the command −
length(unique(df$X))
Consider the below data frame −... | [
{
"code": null,
"e": 1330,
"s": 1062,
"text": "To find the number of levels in R for a factor column, we can use length function along with unique function. For example, if we have a data frame called df that contains a factor column X then we can find the number of levels in the factor column using... |
What is the best way to break from nested loops in JavaScript? | The best way to break from nested loops is to use labels. A label can be used with break and continue to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code.
You can try to run the following code to implement Label with a break state... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "The best way to break from nested loops is to use labels. A label can be used with break and continue to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code."
},
... |
Mongoose | findById() Function - GeeksforGeeks | 20 May, 2020
The findById() function is used to find a single document by its _id field. The _id field is cast based on the Schema before sending the command.
Installation of mongoose module:
You can visit the link Install mongoose module. You can install this package by using this command.npm install mongooseAfter ins... | [
{
"code": null,
"e": 24128,
"s": 24100,
"text": "\n20 May, 2020"
},
{
"code": null,
"e": 24274,
"s": 24128,
"text": "The findById() function is used to find a single document by its _id field. The _id field is cast based on the Schema before sending the command."
},
{
"co... |
Rust - Iterator and Closure | In this chapter, we will learn how iterators and closures work in RUST.
An iterator helps to iterate over a collection of values such as arrays, vectors, maps, etc. Iterators implement the Iterator trait that is defined in the Rust standard library. The iter() method returns an iterator object of the collection. Values... | [
{
"code": null,
"e": 2159,
"s": 2087,
"text": "In this chapter, we will learn how iterators and closures work in RUST."
},
{
"code": null,
"e": 2607,
"s": 2159,
"text": "An iterator helps to iterate over a collection of values such as arrays, vectors, maps, etc. Iterators impleme... |
Maximum distinct elements after removing k elements - GeeksforGeeks | 17 Feb, 2022
Given an array arr[] containing n elements. The problem is to find the maximum number of distinct elements (non-repeating) after removing k elements from the array. Note: 1 <= k <= n.Examples:
Input : arr[] = {5, 7, 5, 5, 1, 2, 2}, k = 3
Output : 4
Remove 2 occurrences of element 5 and
1 occurrence of ele... | [
{
"code": null,
"e": 24431,
"s": 24403,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 24625,
"s": 24431,
"text": "Given an array arr[] containing n elements. The problem is to find the maximum number of distinct elements (non-repeating) after removing k elements from the array... |
Java Program to convert ASCII code to String | To convert ASCII to string, use the toString() method. Using this method will return the associated character.
Let’s say we have the following int value, which works as ASCII for us.
int asciiVal = 89;
Now, use the toString() method.
String str = new Character((char) asciiVal).toString();
Live Demo
public class Demo {... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "To convert ASCII to string, use the toString() method. Using this method will return the associated character."
},
{
"code": null,
"e": 1245,
"s": 1173,
"text": "Let’s say we have the following int value, which works as ASCII for us.... |
5 Minute Guide to Detecting Holidays in Python | by Dario Radečić | Towards Data Science | If you decide to dive deep into data analysis and want to, for example, analyze purchasing trends, you’ll probably want to construct a new attribute in your dataset having only two possible outcomes — 0 or 1 — is a holiday, isn’t a holiday.
Take a moment to think about why this derived variable might be useful. You pro... | [
{
"code": null,
"e": 412,
"s": 171,
"text": "If you decide to dive deep into data analysis and want to, for example, analyze purchasing trends, you’ll probably want to construct a new attribute in your dataset having only two possible outcomes — 0 or 1 — is a holiday, isn’t a holiday."
},
{
... |
Tk - Selection Widgets | Selection widgets are used to select different options in a Tk application. The list of available selection widgets are as shown below.
Widget that has a set of on/off buttons and labels, one of which may be selected.
Widget that has a set of on/off buttons and labels, many of which may be selected.
Widget that acts as... | [
{
"code": null,
"e": 2337,
"s": 2201,
"text": "Selection widgets are used to select different options in a Tk application. The list of available selection widgets are as shown below."
},
{
"code": null,
"e": 2419,
"s": 2337,
"text": "Widget that has a set of on/off buttons and la... |
PyQt5 - Multiple Document Interface | A typical GUI application may have multiple windows. Tabbed and stacked widgets allow to activate one such window at a time. However, many a times this approach may not be useful as view of other windows is hidden.
One way to display multiple windows simultaneously is to create them as independent windows. This is call... | [
{
"code": null,
"e": 2178,
"s": 1963,
"text": "A typical GUI application may have multiple windows. Tabbed and stacked widgets allow to activate one such window at a time. However, many a times this approach may not be useful as view of other windows is hidden."
},
{
"code": null,
"e": 2... |
Find position of the only set bit - GeeksforGeeks | 21 Jun, 2021
Given a number N having only one ‘1’ and all other ’0’s in its binary representation, find position of the only set bit. If there are 0 or more than 1 set bit the answer should be -1. Position of set bit ‘1’ should be counted starting with 1 from the LSB side in the binary representation of the number.
So... | [
{
"code": null,
"e": 24263,
"s": 24235,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 24567,
"s": 24263,
"text": "Given a number N having only one ‘1’ and all other ’0’s in its binary representation, find position of the only set bit. If there are 0 or more than 1 set bit the ... |
Merging subarrays in JavaScript | Suppose, we have an array of arrays that contains information about the name and email of some people like this −
const arr = [
["John", "johnsmith@mail.com", "john00@mail.com"],
["John", "johnnybravo@mail.com"],
["John", "johnsmith@mail.com", "john_newyork@mail.com"],
["Mary", "mary@mail.com"]
];
Each elem... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "Suppose, we have an array of arrays that contains information about the name and email of some people like this −"
},
{
"code": null,
"e": 1373,
"s": 1176,
"text": "const arr = [\n [\"John\", \"johnsmith@mail.com\", \"john00@mail.c... |
Dart Programming - continue Statement | The continue statement skips the subsequent statements in the current iteration and takes the control back to the beginning of the loop. Unlike the break statement, the continue statement doesn’t exit the loop. It terminates the current iteration and starts the subsequent iteration.
The following example shows how you ... | [
{
"code": null,
"e": 2809,
"s": 2525,
"text": "The continue statement skips the subsequent statements in the current iteration and takes the control back to the beginning of the loop. Unlike the break statement, the continue statement doesn’t exit the loop. It terminates the current iteration and st... |
Boundary traversal of matrix | Practice | GeeksforGeeks | You are given a matrix of dimensions n x m. The task is to perform boundary traversal on the matrix in a clockwise manner.
Example 1:
Input:
n = 4, m = 4
matrix[][] = {{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15,16}}
Output: 1 2 3 4 8 12 16 15 14 13 9 5
Explanation:
The matrix ... | [
{
"code": null,
"e": 374,
"s": 238,
"text": "You are given a matrix of dimensions n x m. The task is to perform boundary traversal on the matrix in a clockwise manner. \n\nExample 1:"
},
{
"code": null,
"e": 658,
"s": 374,
"text": "Input:\nn = 4, m = 4\nmatrix[][] = {{1, 2, 3, 4}... |
JavaScript String concat() Method - GeeksforGeeks | 05 Oct, 2021
Below is the example of the concat() Method Method.
Example:<script> // JavaScript to illustrate concat() function function func() { // Original string var str = 'Geeks'; // Joining the strings together var value = str.concat(' for',' Geeks'); document.write(value); } func(); </... | [
{
"code": null,
"e": 25789,
"s": 25761,
"text": "\n05 Oct, 2021"
},
{
"code": null,
"e": 25841,
"s": 25789,
"text": "Below is the example of the concat() Method Method."
},
{
"code": null,
"e": 26105,
"s": 25841,
"text": "Example:<script> // JavaScript to illu... |
Flutter - File Structure - GeeksforGeeks | 23 Feb, 2022
Flutter in 2021 is the rising star in the field of cross-platform app development. Be it a student’s college project, a small startup, a unicorn or big tech giants all are using flutter. The file structure is the organization of the data of an application. The file structure is something that plays a very ... | [
{
"code": null,
"e": 26469,
"s": 26441,
"text": "\n23 Feb, 2022"
},
{
"code": null,
"e": 27038,
"s": 26469,
"text": "Flutter in 2021 is the rising star in the field of cross-platform app development. Be it a student’s college project, a small startup, a unicorn or big tech giants... |
How to install the ext-curl extension with PHP 7 ? - GeeksforGeeks | 06 Oct, 2021
The ext-curl CURL stands for client user, In Linux cURL is a PHP extension, that allows us to receive and send information via the URL syntax. And ext-curl is the extension in the latest PHP-7 which is loaded with some of the advanced features of the basic curls.
The following are the steps to add ext-curl... | [
{
"code": null,
"e": 26431,
"s": 26403,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 26695,
"s": 26431,
"text": "The ext-curl CURL stands for client user, In Linux cURL is a PHP extension, that allows us to receive and send information via the URL syntax. And ext-curl is the ... |
GATE | GATE-CS-2001 | Question 41 - GeeksforGeeks | 28 Jun, 2021
What is the minimum number of stacks of size n required to implement a queue of size n?(A) One(B) Two(C) Three(D) FourAnswer: (B)Explanation: A queue can be implemented using two stacks. Let queue to be implemented be q and stacks used to implement q be stack1 and stack2. q can be implemented in two ways: ... | [
{
"code": null,
"e": 25695,
"s": 25667,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 26003,
"s": 25695,
"text": "What is the minimum number of stacks of size n required to implement a queue of size n?(A) One(B) Two(C) Three(D) FourAnswer: (B)Explanation: A queue can be implem... |
Retrieve Data From TextFields in Flutter - GeeksforGeeks | 14 Aug, 2020
In this article, we’ll learn how to retrieve data from TextFields. TextField() widget is the most common widget used in flutter apps to take user input. We’ll talk about two major methods used to extract text from TextField.
The TextField widget has various callback properties through which we can extract ... | [
{
"code": null,
"e": 25287,
"s": 25259,
"text": "\n14 Aug, 2020"
},
{
"code": null,
"e": 25512,
"s": 25287,
"text": "In this article, we’ll learn how to retrieve data from TextFields. TextField() widget is the most common widget used in flutter apps to take user input. We’ll talk... |
How to include inline JavaScript inside an HTML page? | JavaScript is used in HTML using the <script>...</script> or using External JavaScript file. Well, there’s another way through which you can include inline JavaScript inside an HTML page.
Generally, the HTML event attributes calls functions specified elsewhere in script tags. But, you can also add the JavaScript code d... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "JavaScript is used in HTML using the <script>...</script> or using External JavaScript file. Well, there’s another way through which you can include inline JavaScript inside an HTML page."
},
{
"code": null,
"e": 1417,
"s": 1250,
"te... |
C++ Program to Implement Stack Using Two Queues | The stack which is implemented as LIFO, where insertion and deletion are done from the same end, top. The last element that entered is deleted first.
Stack operations are −
push (int data) − Insertion at top
int pop() − Deletion from top
The queue which is implemented as FIFO where insertions are done at one end (rear)... | [
{
"code": null,
"e": 1212,
"s": 1062,
"text": "The stack which is implemented as LIFO, where insertion and deletion are done from the same end, top. The last element that entered is deleted first."
},
{
"code": null,
"e": 1235,
"s": 1212,
"text": "Stack operations are −"
},
{... |
How to put the origin in the center of the figure with Matplotlib ? - GeeksforGeeks | 08 Oct, 2021
In this article, we are going to discuss how to put the origin in the center of the figure using the matplotlib module. To put the origin at the center of the figure we use the spines module from the matplotlib module. Basically, spines are the lines connecting the axis tick marks and noting the boundaries... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 24748,
"s": 24292,
"text": "In this article, we are going to discuss how to put the origin in the center of the figure using the matplotlib module. To put the origin at the center of the figu... |
TreeSet with Customizable Sorting in Java - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorials, we are going to learn what... | [
{
"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,
... |
Dart - Concept of Inheritance - GeeksforGeeks | 20 Jul, 2020
In Dart, one class can inherit another class i.e dart can create a new class from an existing class. We make use of extend keyword to do so.
Terminology:
Parent Class: It is the class whose properties are inherited by the child class. It is also known as a base class or superclass.
Child Class: It is the... | [
{
"code": null,
"e": 25407,
"s": 25379,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 25548,
"s": 25407,
"text": "In Dart, one class can inherit another class i.e dart can create a new class from an existing class. We make use of extend keyword to do so."
},
{
"code": ... |
Python | Construct Cartesian Product Tuple list - GeeksforGeeks | 03 Nov, 2019
Sometimes, while working with data, we need to create data as all possible pairs of containers. This type of application comes from web development domain. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using list comprehensionThis is one-liner way to perform this particular ta... | [
{
"code": null,
"e": 24608,
"s": 24580,
"text": "\n03 Nov, 2019"
},
{
"code": null,
"e": 24828,
"s": 24608,
"text": "Sometimes, while working with data, we need to create data as all possible pairs of containers. This type of application comes from web development domain. Let’s d... |
How to convert an array of objects to an array of their primitive types in java? | Apache Commons provides a library named org.apache.commons.lang3 and, following is the maven dependency to add the library to your project.
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.0</version>
</dependency>
</dependencies... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "Apache Commons provides a library named org.apache.commons.lang3 and, following is the maven dependency to add the library to your project."
},
{
"code": null,
"e": 1384,
"s": 1202,
"text": "<dependencies>\n <dependency>\n <gr... |
Docker - USER Instruction - GeeksforGeeks | 28 Oct, 2020
By default, a Docker Container runs as a Root user. This poses a great security threat if you deploy your applications on a large scale inside Docker Containers. You can change or switch to a different user inside a Docker Container using the USER Instruction. For this, you first need to create a user and ... | [
{
"code": null,
"e": 24430,
"s": 24402,
"text": "\n28 Oct, 2020"
},
{
"code": null,
"e": 24767,
"s": 24430,
"text": "By default, a Docker Container runs as a Root user. This poses a great security threat if you deploy your applications on a large scale inside Docker Containers. Y... |
Maximum Bipartite Matching | The bipartite matching is a set of edges in a graph is chosen in such a way, that no two edges in that set will share an endpoint. The maximum matching is matching the maximum number of edges.
When the maximum match is found, we cannot add another edge. If one edge is added to the maximum matched graph, it is no longer... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "The bipartite matching is a set of edges in a graph is chosen in such a way, that no two edges in that set will share an endpoint. The maximum matching is matching the maximum number of edges."
},
{
"code": null,
"e": 1475,
"s": 1255,
... |
Python - Implementation of Polynomial Regression | Polynomial Regression is a form of linear regression in which the relationship between the independent variable x and dependent variable y is modeled as an nth degree polynomial. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y |x)
# Imp... | [
{
"code": null,
"e": 1377,
"s": 1062,
"text": "Polynomial Regression is a form of linear regression in which the relationship between the independent variable x and dependent variable y is modeled as an nth degree polynomial. Polynomial regression fits a nonlinear relationship between the value of x... |
How to read an input value from a JTextField and add to a JList in Java? | A JList is a subclass of JComponent class that allows the user to choose either a single selection or multiple selections. A JList class itself does not support scrollbar. In order to add scrollbar, we have to use JScrollPane class together with the JList class. The JScrollPane then manages a scrollbar automatically. A... | [
{
"code": null,
"e": 1706,
"s": 1062,
"text": "A JList is a subclass of JComponent class that allows the user to choose either a single selection or multiple selections. A JList class itself does not support scrollbar. In order to add scrollbar, we have to use JScrollPane class together with the JLi... |
Information Search & Visualization | A database query is the principal mechanism to retrieve information from a database. It consists of predefined format of database questions. Many database management systems use the Structured Query Language (SQL) standard query format.
SELECT DOCUMENT#
FROM JOURNAL-DB
WHERE (DATE >= 2004 AND DATE <= 2008)
AND (LANGUAG... | [
{
"code": null,
"e": 2009,
"s": 1772,
"text": "A database query is the principal mechanism to retrieve information from a database. It consists of predefined format of database questions. Many database management systems use the Structured Query Language (SQL) standard query format."
},
{
"c... |
Pandas - Plotting Histogram from pandas Dataframes - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we will learn about how to ... | [
{
"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,
... |
Fragmentation at Network Layer - GeeksforGeeks | 26 Oct, 2021
Prerequisite – IPv4 Datagram Fragmentation and Delays
Fragmentation is done by the network layer when the maximum size of datagram is greater than maximum size of data that can be held in a frame i.e., its Maximum Transmission Unit (MTU). The network layer divides the datagram received from the transport ... | [
{
"code": null,
"e": 36594,
"s": 36566,
"text": "\n26 Oct, 2021"
},
{
"code": null,
"e": 36649,
"s": 36594,
"text": "Prerequisite – IPv4 Datagram Fragmentation and Delays "
},
{
"code": null,
"e": 36960,
"s": 36649,
"text": "Fragmentation is done by the networ... |
How to implement JavaFX event handling using lambda in Java?
| JavaFX Button class provides the setOnAction() method that can be used to set an action for the button click event. An EventHandler is a functional interface and holds only one method is the handle() method.
@FunctionalInterface
public interface EventHandler<T extends Event> extends EventListener
In the below example, ... | [
{
"code": null,
"e": 1270,
"s": 1062,
"text": "JavaFX Button class provides the setOnAction() method that can be used to set an action for the button click event. An EventHandler is a functional interface and holds only one method is the handle() method."
},
{
"code": null,
"e": 1360,
... |
logout - Unix, Linux Command | logout - session-logout.
session-logout[options]
session-logout[options]
logout command allows you to programmatically logout from your session.
causes the session manager to take the requested action immediately.
Example-1:
To logout from current user session:
$ logout
output:
no output on screen, current user ses... | [
{
"code": null,
"e": 10602,
"s": 10577,
"text": "logout - session-logout."
},
{
"code": null,
"e": 10628,
"s": 10602,
"text": "session-logout[options] "
},
{
"code": null,
"e": 10653,
"s": 10628,
"text": "session-logout[options] "
},
{
"code": null,
... |
Python program to find start and end indices of all Words in a String - GeeksforGeeks | 11 Oct, 2020
Given a String, return all the start indices and end indices of each word.
Examples:
Input : test_str = ‘ Geekforgeeks is Best’ Output : [(1, 12), (16, 17), (19, 22)] Explanation : “Best” Starts at 19th index, and ends at 22nd index.
Input : test_str = ‘ Geekforgeeks is Best’ Output : [(1, 12), (17, 18), (... | [
{
"code": null,
"e": 24694,
"s": 24666,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 24769,
"s": 24694,
"text": "Given a String, return all the start indices and end indices of each word."
},
{
"code": null,
"e": 24779,
"s": 24769,
"text": "Examples:"
},... |
Expanding binomial expression using JavaScript | We are required to write a JavaScript function that takes in an expression in the form (ax+b)^n where a and b are integers which may be positive or negative, x is any single character variable, and n is a natural number. If a = 1, no coefficient will be placed in front of the variable.
Our function should return the ex... | [
{
"code": null,
"e": 1349,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an expression in the form (ax+b)^n where a and b are integers which may be positive or negative, x is any single character variable, and n is a natural number. If a = 1, no coefficient will be... |
Go - Array of pointers | Before we understand the concept of arrays of pointers, let us consider the following example, which makes use of an array of 3 integers −
package main
import "fmt"
const MAX int = 3
func main() {
a := []int{10,100,200}
var i int
for i = 0; i < MAX; i++ {
fmt.Printf("Value of a[%d] = %d\n", i, a[i]... | [
{
"code": null,
"e": 2076,
"s": 1937,
"text": "Before we understand the concept of arrays of pointers, let us consider the following example, which makes use of an array of 3 integers −"
},
{
"code": null,
"e": 2267,
"s": 2076,
"text": "package main\n\nimport \"fmt\"\n \nconst MA... |
C++ program to read file word by word? | In this section we will see how we can read file content word by word using C++. The task is very simple. we have to use the file input stream to read file contents. The file stream will open the file by using file name, then using FileStream, load each word and store it into a variable called word. Then print each wor... | [
{
"code": null,
"e": 1396,
"s": 1062,
"text": "In this section we will see how we can read file content word by word using C++. The task is very simple. we have to use the file input stream to read file contents. The file stream will open the file by using file name, then using FileStream, load each... |
Real-time Twitter Sentiment Analysis for Brand Improvement and Topic Tracking (Chapter 1/3) | by Chulong Li | Towards Data Science | This is a comprehensive step-by-step tutorial to teach you how to build an end-to-end real-time Twitter monitoring system to track customer behaviors towards brands by identifying sentiments fluctuation, analyzing trending topics and geographic segmentation, and detecting anomaly on scandals, with consideration of impr... | [
{
"code": null,
"e": 541,
"s": 172,
"text": "This is a comprehensive step-by-step tutorial to teach you how to build an end-to-end real-time Twitter monitoring system to track customer behaviors towards brands by identifying sentiments fluctuation, analyzing trending topics and geographic segmentati... |
Chef - Data Bags | Chef data bags can be defined as an arbitrary collection of data which one can use with cookbooks. Using data bags is very helpful when one does not wish to hardcode attributes in recipes nor to store attributes in cookbooks.
In the following setup, we are trying to communicate to http endpoint URL. For this, we need t... | [
{
"code": null,
"e": 2606,
"s": 2380,
"text": "Chef data bags can be defined as an arbitrary collection of data which one can use with cookbooks. Using data bags is very helpful when one does not wish to hardcode attributes in recipes nor to store attributes in cookbooks."
},
{
"code": null,... |
Fun Valentine’s Day “Gift” Ideas For Python Programmers | by Yong Cui | Towards Data Science | Valentine’s Day is just around the corner. I’ve not decided what gift I’ll give to my wife. Picking the right gift is usually a very challenging task for me, as I’m just not a creative person in the romance domain. Most of the time, I just send her some flowers with a gift card, because I just didn’t want to make the m... | [
{
"code": null,
"e": 658,
"s": 172,
"text": "Valentine’s Day is just around the corner. I’ve not decided what gift I’ll give to my wife. Picking the right gift is usually a very challenging task for me, as I’m just not a creative person in the romance domain. Most of the time, I just send her some f... |
CustomThreadPoolExecutor in Java Executor Framework - GeeksforGeeks | 28 Mar, 2022
Executors Manage thread execution. At the top of the executor, hierarchy is the Executor interface, which is used to initiate a thread. ExecutorService Extends Executor and provides methods that manage execution. There are three implementations of ExecutorService: ThreadPoolExecutor, ScheduledThreadPoolExe... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 24376,
"s": 23557,
"text": "Executors Manage thread execution. At the top of the executor, hierarchy is the Executor interface, which is used to initiate a thread. ExecutorService Extends Exe... |
How to get timer ticks at a given time in Python? | To get the timer ticks at a given time, use the clock. The python docs state that this function should be used for benchmarking purposes.
import time
t0= time.clock()
print("Hello")
t1 = time.clock() - t0
print("Time elapsed: ", t1 - t0) # CPU seconds elapsed (floating point)
This will give the output −
Time elapsed: ... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "To get the timer ticks at a given time, use the clock. The python docs state that this function should be used for benchmarking purposes. "
},
{
"code": null,
"e": 1340,
"s": 1201,
"text": "import time\nt0= time.clock()\nprint(\"Hell... |
Perpendicular distance between a point and a Line in 2 D | 16 Jun, 2022
Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the given point and the line.
Examples :
Input: x1 = 5, y1 = 6, a = -2, b = 3, c = 4 Output:3.32820117735Input: x1 = -1, y1 = 3, a = 4, b = -3, c = – 5 Output:3.6
Approach: The distance (i.e sho... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 192,
"s": 53,
"text": "Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the given point and the line. "
},
{
"code": null,
"e"... |
Tryit Editor v3.7 | CSS Grid Item
Tryit: Sort grid items | [
{
"code": null,
"e": 23,
"s": 9,
"text": "CSS Grid Item"
}
] |
Interactive Bar Charts with Bokeh | by Ilya Hopkins | Towards Data Science | This article is the second part of my Bokeh love story. The full story (including Jupyter notebooks and all files) is on my Github. The first part of the story is described in the Medium article “Easy Data Visualization Techniques with Bokeh”.
No way your data story is full without visualizations, and bar charts are ar... | [
{
"code": null,
"e": 416,
"s": 172,
"text": "This article is the second part of my Bokeh love story. The full story (including Jupyter notebooks and all files) is on my Github. The first part of the story is described in the Medium article “Easy Data Visualization Techniques with Bokeh”."
},
{
... |
C# program to convert floating to binary | Let’s say the following is our float −
float n = 50.5f;
Take an empty string to display the binary value and loop until the value of our float variable is greater than 1 −
string a = "";
while (n >= 1) {
a = (n % 2) + a;
n = n / 2;
}
Let us see the complete example −
Live Demo
using System;
using System.IO;
usi... | [
{
"code": null,
"e": 1101,
"s": 1062,
"text": "Let’s say the following is our float −"
},
{
"code": null,
"e": 1118,
"s": 1101,
"text": "float n = 50.5f;"
},
{
"code": null,
"e": 1234,
"s": 1118,
"text": "Take an empty string to display the binary value and lo... |
Hibernate Composite Key Mapping Example - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In the context of relational databases, a com... | [
{
"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,
... |
passwd command in Linux with Examples - GeeksforGeeks | 24 May, 2019
passwd command in Linux is used to change the user account passwords. The root user reserves the privilege to change the password for any user on the system, while a normal user can only change the account password for his or her own account.
Syntax:
passwd [options] [username]
Example:
Command: passwd
... | [
{
"code": null,
"e": 24616,
"s": 24588,
"text": "\n24 May, 2019"
},
{
"code": null,
"e": 24859,
"s": 24616,
"text": "passwd command in Linux is used to change the user account passwords. The root user reserves the privilege to change the password for any user on the system, while... |
How to get row index or column index based on their names in R? | We might prefer to use row index or column index during the analysis instead of using their numbers, therefore, we can get them with the help of grep function. While dealing with a large data set it becomes helpful because large data sets have large number of rows and columns so it is easier to recall them with their i... | [
{
"code": null,
"e": 1546,
"s": 1062,
"text": "We might prefer to use row index or column index during the analysis instead of using their numbers, therefore, we can get them with the help of grep function. While dealing with a large data set it becomes helpful because large data sets have large num... |
Prediction of P-Sonic Log in the Volve Oil Field using Machine Learning | by Yohanes Nuwara | Towards Data Science | In 2018, Norwegian oil company Equinor disclosed a massive subsurface and operation dataset from their Volve oil field in the North Sea. For two years until now, it has been good news for all people who are passionate about improving and solving challenges in the study of oil and gas fields in universities, research in... | [
{
"code": null,
"e": 600,
"s": 172,
"text": "In 2018, Norwegian oil company Equinor disclosed a massive subsurface and operation dataset from their Volve oil field in the North Sea. For two years until now, it has been good news for all people who are passionate about improving and solving challenge... |
Logstash - Parsing the Logs | Logstash receives the logs using input plugins and then uses the filter plugins to parse and transform the data. The parsing and transformation of logs are performed according to the systems present in the output destination. Logstash parses the logging data and forwards only the required fields. Later, these fields ar... | [
{
"code": null,
"e": 2455,
"s": 2055,
"text": "Logstash receives the logs using input plugins and then uses the filter plugins to parse and transform the data. The parsing and transformation of logs are performed according to the systems present in the output destination. Logstash parses the logging... |
Android | Horizontal RecyclerView with Examples - GeeksforGeeks | 16 Dec, 2019
RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item which can be customized v... | [
{
"code": null,
"e": 25370,
"s": 25342,
"text": "\n16 Dec, 2019"
},
{
"code": null,
"e": 25842,
"s": 25370,
"text": "RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the l... |
JavaFX | ImagePattern Class - GeeksforGeeks | 19 Sep, 2018
ImagePattern is a part of JavaFX. This class is used to fills a shape with an image pattern. A user may specify the anchor rectangle, which defines the position, width, and height of the image relative to the upper left corner of the shape. If the shape extends out of the anchor rectangle, the image is til... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n19 Sep, 2018"
},
{
"code": null,
"e": 24259,
"s": 23948,
"text": "ImagePattern is a part of JavaFX. This class is used to fills a shape with an image pattern. A user may specify the anchor rectangle, which defines the position, w... |
Send Direct Message On Instagram using Selenium in Python - GeeksforGeeks | 04 Jan, 2021
In this article, we will learn how we can send a direct message to users on Instagram without any manual action. We will be using the selenium module to do this task.
Chrome Driver for Chrome Browser (https://chromedriver.chromium.org/) or Gecko Driver for Firefox(https://github.com/mozilla/geckodriver/rel... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n04 Jan, 2021"
},
{
"code": null,
"e": 24485,
"s": 24318,
"text": "In this article, we will learn how we can send a direct message to users on Instagram without any manual action. We will be using the selenium module to do this ta... |
Apache Kafka - Simple Producer Example | Let us create an application for publishing and consuming messages using a Java client. Kafka producer client consists of the following API’s.
Let us understand the most important set of Kafka producer API in this section. The central part of the KafkaProducer API is KafkaProducer class. The KafkaProducer class provide... | [
{
"code": null,
"e": 2110,
"s": 1967,
"text": "Let us create an application for publishing and consuming messages using a Java client. Kafka producer client consists of the following API’s."
},
{
"code": null,
"e": 2372,
"s": 2110,
"text": "Let us understand the most important se... |
How to flatten a list using LINQ C#? | Flattening a list means converting a List<List<T>> to List<T>. For example, let us
consider a List<List<int>> which needs to be converted to List<int>.
The SelectMany in LINQ is used to project each element of a sequence to an
IEnumerable<T> and then flatten the resulting sequences into one sequence. That
means the Sel... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Flattening a list means converting a List<List<T>> to List<T>. For example, let us\nconsider a List<List<int>> which needs to be converted to List<int>."
},
{
"code": null,
"e": 1485,
"s": 1214,
"text": "The SelectMany in LINQ is use... |
How to create pagination text in Android using Kotlin? | This example demonstrates how to create pagination text in Android using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Relat... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "This example demonstrates how to create pagination text in Android using Kotlin."
},
{
"code": null,
"e": 1272,
"s": 1143,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detai... |
MathF.Cbrt() Method in C# with Examples - GeeksforGeeks | 28 Oct, 2019
MathF.Cbrt(Single) Method is used to return the cube root of a floating point value.
Syntax: public static float Cbrt (float x);Here, it takes a standard floating point number.
Return Value: This method returns the cube root of the given value.
Example 1:
// C# program to demonstrate the// MathF.Cbrt(Singl... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n28 Oct, 2019"
},
{
"code": null,
"e": 24387,
"s": 24302,
"text": "MathF.Cbrt(Single) Method is used to return the cube root of a floating point value."
},
{
"code": null,
"e": 24479,
"s": 24387,
"text": "Synta... |
Building an AI Bot to Play Rock, Paper, Scissors | by Darren Broderick (DBro) | Towards Data Science | AI Bot Name: JankenTechnology Used: TensorFlow, Keras, Numpy, SqueezeNet & Open CV
TL;DR
If you want to get running you can go straight to my GitHub and clone.https://github.com/DarrenBro/rock-paper-scissors-aiThere are detailed instructions you can follow on the Readme.
In the Github project, I’ve included model examp... | [
{
"code": null,
"e": 254,
"s": 171,
"text": "AI Bot Name: JankenTechnology Used: TensorFlow, Keras, Numpy, SqueezeNet & Open CV"
},
{
"code": null,
"e": 260,
"s": 254,
"text": "TL;DR"
},
{
"code": null,
"e": 443,
"s": 260,
"text": "If you want to get running y... |
Explain queue by using linked list in C language | Queue overflow and Queue under flow can be avoided by using linked list.
Operations carried out under queue with the help of linked lists in C programming language are as follows −
Insert
Delete
The syntax is as follows −
&item :
Newnode = (node*) mallac (sizeof (node));
newnode ->data = item;
newnode ->link = NULL;
if... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "Queue overflow and Queue under flow can be avoided by using linked list."
},
{
"code": null,
"e": 1243,
"s": 1135,
"text": "Operations carried out under queue with the help of linked lists in C programming language are as follows −"
... |
Buffer Overflow Attack with Example - GeeksforGeeks | 20 Apr, 2022
A buffer is a temporary area for data storage. When more data (than was originally allocated to be stored) gets placed by a program or system process, the extra data overflows. It causes some of that data to leak out into other buffers, which can corrupt or overwrite whatever data they were holding.In a bu... | [
{
"code": null,
"e": 24143,
"s": 24115,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 25637,
"s": 24143,
"text": "A buffer is a temporary area for data storage. When more data (than was originally allocated to be stored) gets placed by a program or system process, the extra da... |
MongoDB query to fetch date records (ISODate format) in a range | Let us create a collection with documents −
> db.demo178.insertOne({"DueDate":new ISODate("2019-01-10T06:18:20.474Z")});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e397bd89e4f06af551997f5")
}
> db.demo178.insertOne({"DueDate":new ISODate("2020-11-10T18:05:11.474Z")});
{
"acknowledged" : true,
"inser... | [
{
"code": null,
"e": 1106,
"s": 1062,
"text": "Let us create a collection with documents −"
},
{
"code": null,
"e": 1754,
"s": 1106,
"text": "> db.demo178.insertOne({\"DueDate\":new ISODate(\"2019-01-10T06:18:20.474Z\")});\n{\n \"acknowledged\" : true,\n \"insertedId\" : Obje... |
Arrow functions in Javascript | According to MDN, An arrow function expression is a syntactically compact
alternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords. Arrow function expressions are ill-suited as methods, and they cannot be used as constructors.
There are 3 subt... | [
{
"code": null,
"e": 1366,
"s": 1062,
"text": "According to MDN, An arrow function expression is a syntactically compact\nalternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords. Arrow function expressions are ill-suited a... |
How to create a plot for the response variable grouped by two columns using ggplot2 in R? | When two categorical variables make an impact on the response variable together then it is necessary to visualize their effect graphically because this graph helps us to understand the variation in the effect. Therefore, we can create a plot for the response variable that changes with one or both of the categorical ind... | [
{
"code": null,
"e": 1475,
"s": 1062,
"text": "When two categorical variables make an impact on the response variable together then it is necessary to visualize their effect graphically because this graph helps us to understand the variation in the effect. Therefore, we can create a plot for the res... |
How to create interactive map plots with Plotly | by Emma Grimaldi | Towards Data Science | One of my favorite part of working with data is without a doubt creating visualizations. Images are the best tool to convey information: they are immediate, the brain can in fact process them thousands of times faster than words. Images are also universal, and they tend to stick longer in our minds. Finally, we are laz... | [
{
"code": null,
"e": 717,
"s": 172,
"text": "One of my favorite part of working with data is without a doubt creating visualizations. Images are the best tool to convey information: they are immediate, the brain can in fact process them thousands of times faster than words. Images are also universal... |
Bank Institution Term Deposit Predictive Model | by Glory Odeyemi | Towards Data Science | Courtesy of the 10 Academy training program, I’ve been introduced to many data science concepts by working on different projects, each of them challenging in their own way.
Bank Institution Term Deposit Predictive Model is a project I found interesting. Its main objective is to build a model that predicts the customers... | [
{
"code": null,
"e": 344,
"s": 171,
"text": "Courtesy of the 10 Academy training program, I’ve been introduced to many data science concepts by working on different projects, each of them challenging in their own way."
},
{
"code": null,
"e": 630,
"s": 344,
"text": "Bank Institut... |
C Program for Merge Sort - GeeksforGeeks | 13 Feb, 2018
Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used for merging two halves. The merge(arr, l, m, r) is key process that assumes that arr[l..m] and arr[m+1..r] are sorted and m... | [
{
"code": null,
"e": 24774,
"s": 24746,
"text": "\n13 Feb, 2018"
},
{
"code": null,
"e": 25123,
"s": 24774,
"text": "Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merg... |
Python – Assigning Subsequent Rows to Matrix first row elements | 30 Dec, 2020
Given a (N + 1) * N Matrix, assign each column of 1st row of matrix, the subsequent row of Matrix.
Input : test_list = [[5, 8, 10], [2, 0, 9], [5, 4, 2], [2, 3, 9]]Output : {5: [2, 0, 9], 8: [5, 4, 2], 10: [2, 3, 9]}Explanation : 5 paired with 2nd row, 8 with 3rd and 10 with 4th
Input : test_list = [[5, 8]... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 152,
"s": 53,
"text": "Given a (N + 1) * N Matrix, assign each column of 1st row of matrix, the subsequent row of Matrix."
},
{
"code": null,
"e": 333,
"s": 152,
"text": "Input ... |
Difference between Pandas VS NumPy | 09 Jun, 2022
Pandas is an open-source, BSD-licensed library written in Python Language. Pandas provide high performance, fast, easy-to-use data structures, and data analysis tools for manipulating numeric data and time series. Pandas is built on the numpy library and written in languages like Python, Cython, and C. In ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 450,
"s": 52,
"text": "Pandas is an open-source, BSD-licensed library written in Python Language. Pandas provide high performance, fast, easy-to-use data structures, and data analysis tools for man... |
Get tag name using Beautifulsoup in Python | 11 Oct, 2020
Prerequisite: Beautifulsoup Installation
Name property is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. Name object corresponds to the name of an XML or HTML tag in t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 69,
"s": 28,
"text": "Prerequisite: Beautifulsoup Installation"
},
{
"code": null,
"e": 357,
"s": 69,
"text": "Name property is provided by Beautiful Soup which is a web scraping... |
Errors V/s Exceptions In Java | 13 Jun, 2022
In java, both Errors and Exceptions are the subclasses of java.lang.Throwable class. Error refers to an illegal operation performed by the user which results in the abnormal working of the program. Programming errors often remain undetected until the program is compiled or executed. Some of the errors inhi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 494,
"s": 52,
"text": "In java, both Errors and Exceptions are the subclasses of java.lang.Throwable class. Error refers to an illegal operation performed by the user which results in the abnormal ... |
How to Calculate Correlation Between Multiple Variables in R? | 19 Dec, 2021
In this article, we will discuss how to calculate Correlation between Multiple variables in R Programming Language. Correlation is used to get the relation between two or more variables:
The result is 0 if there is no correlation between two variables
The result is 1 if there is a positive correlation betw... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 215,
"s": 28,
"text": "In this article, we will discuss how to calculate Correlation between Multiple variables in R Programming Language. Correlation is used to get the relation between two or more... |
GATE | GATE-CS-2016 (Set 1) | Question 10 | 28 Jun, 2021
In a process, the number of cycles to failure decreases exponentially with an increase in load. At a load of 80 units, it takes 100 cycles for failure. When the load is halved, it takes 10000 cycles for failure. The load for which the failure will happen in 5000 cycles is ________.
(A) 40.00
(B) 46.02(C) 6... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 337,
"s": 54,
"text": "In a process, the number of cycles to failure decreases exponentially with an increase in load. At a load of 80 units, it takes 100 cycles for failure. When the load is halve... |
Split a String into columns using regex in pandas DataFrame | 08 Jan, 2019
Given some mixed data containing multiple values as a string, let’s see how can we divide the strings using regex and make multiple columns in Pandas DataFrame.
Method #1:In this method we will use re.search(pattern, string, flags=0). Here pattern refers to the pattern that we want to search. It takes in a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jan, 2019"
},
{
"code": null,
"e": 215,
"s": 54,
"text": "Given some mixed data containing multiple values as a string, let’s see how can we divide the strings using regex and make multiple columns in Pandas DataFrame."
},
{
... |
How to Implement Swipe Down to Refresh in Android | 17 Feb, 2021
Certain applications show real-time data to the users, such as stock prices, availability of a product on online stores, etc. Showing real-time data requires continuous syncing of the application, and could be possible by implementing a program such as a thread. A Thread could be initiated by the applicati... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 892,
"s": 52,
"text": "Certain applications show real-time data to the users, such as stock prices, availability of a product on online stores, etc. Showing real-time data requires continuous synci... |
p5.js | ellipse() Function | 24 Oct, 2018
The ellipse() function is an inbuilt function in p5.js which is used to draw an ellipse.
Syntax:
ellipse(x, y, w, h)
ellipse(x, y, w, h, detail)
Parameters: This function accepts five parameters as mentioned above and described below:
x: This parameter takes the x-coordinate of the ellipse.
y: This parame... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Oct, 2018"
},
{
"code": null,
"e": 143,
"s": 54,
"text": "The ellipse() function is an inbuilt function in p5.js which is used to draw an ellipse."
},
{
"code": null,
"e": 151,
"s": 143,
"text": "Syntax:"
},
... |
How to set the Name of the Button in C#? | 26 Jun, 2019
A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Button, you are allowed to set the name of your button by using Name property. You can use this property in two different methods:
1. Design-Time: It is the easiest ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jun, 2019"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Button, you are allowed to set th... |
io.Copy() Function in Golang with Examples | 05 May, 2020
In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. The Copy() function in Go language is used to copy from the stated src i.e, source to the dst i.e, destination till either the EOF i.e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 752,
"s": 28,
"text": "In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. Th... |
Python program to generate a list of alphabets in lexical order | 11 Oct, 2020
Prerequisite: chr()
The following methods explain how a python list with alphabets in lexical(alphabetic) order can be generated dynamically using chr() method.
Approach:
The core of the concept in both methods is almost same, they only differ in implementation:
Validate size of alphabet list(size=26).If s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 48,
"s": 28,
"text": "Prerequisite: chr()"
},
{
"code": null,
"e": 189,
"s": 48,
"text": "The following methods explain how a python list with alphabets in lexical(alphabetic) or... |
How to create a dynamic JSON file by fetching data from localserver database ? | 22 Jun, 2020
JSON stands for JavaScript Object Notation and is a structured format used for storing and transporting data. It acts as an interface between a server and a web page. It is a lightweight data-interchange format. It is language independent and easy to understand. It is derived from Javascript. JSON objects ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 959,
"s": 28,
"text": "JSON stands for JavaScript Object Notation and is a structured format used for storing and transporting data. It acts as an interface between a server and a web page. It is a ... |
TCL script to simulate link state routing in ns2 | 13 Apr, 2021
In this article we will know how to write a TCL script for the simulation of one of the routing protocols link state routing (also called dijkstra’s algorithm) using the Network Simulator. To understand more about the basics of TCL scripts you can check out this article https://www.geeksforgeeks.org/basics... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 365,
"s": 28,
"text": "In this article we will know how to write a TCL script for the simulation of one of the routing protocols link state routing (also called dijkstra’s algorithm) using the Netwo... |
MuleSoft - Endpoints | Endpoints basically include those components that trigger or initiate the processing in a working flow of Mule application. They are called Source in Anypoint Studio and Triggers in the Design Center of Mule. One important endpoint in Mule 4 is Scheduler component.
This component works on time-based conditions, which m... | [
{
"code": null,
"e": 2468,
"s": 2202,
"text": "Endpoints basically include those components that trigger or initiate the processing in a working flow of Mule application. They are called Source in Anypoint Studio and Triggers in the Design Center of Mule. One important endpoint in Mule 4 is Schedule... |
How to ORDER BY FIELD with GROUP BY in a single MySQL query? | For this, let us first create a table −
mysql> create table DemoTable
(
Message text
);
Query OK, 0 rows affected (1.15 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values('Good');
Query OK, 1 row affected (0.43 sec)
mysql> insert into DemoTable values('Bye');
Query OK, 1... | [
{
"code": null,
"e": 1227,
"s": 1187,
"text": "For this, let us first create a table −"
},
{
"code": null,
"e": 1315,
"s": 1227,
"text": "mysql> create table DemoTable\n(\n Message text\n);\nQuery OK, 0 rows affected (1.15 sec)"
},
{
"code": null,
"e": 1371,
"s"... |
How to set cell padding in HTML? | Cell padding is the space between cell borders and the content within a cell. To set cell padding in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <table> tag, with the CSS property padding.
HTML5 do not support the cellpadding attribute... | [
{
"code": null,
"e": 1461,
"s": 1187,
"text": "Cell padding is the space between cell borders and the content within a cell. To set cell padding in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <table> tag, with the C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.