title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
java.time.Period.between() Method Example | The java.time.Period.between() method obtains a Period representing the Period between two LocalDate objects.
Following is the declaration for java.time.Period.between() method.
public static Period between(LocalDate startInclusive, LocalDate endExclusive)
startInclusive − the start date, inclusive, not null.
startInc... | [
{
"code": null,
"e": 2025,
"s": 1915,
"text": "The java.time.Period.between() method obtains a Period representing the Period between two LocalDate objects."
},
{
"code": null,
"e": 2093,
"s": 2025,
"text": "Following is the declaration for java.time.Period.between() method."
}... |
How to implement a copy constructors in C++? | Here we will see how the copy constructors are implemented in C++. Before discussing that we should know what is the copy constructor.
The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to −
I... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "Here we will see how the copy constructors are implemented in C++. Before discussing that we should know what is the copy constructor."
},
{
"code": null,
"e": 1381,
"s": 1197,
"text": "The copy constructor is a constructor which cre... |
What are the uses of generic collections in Java? | The generic collections are introduced in Java 5 Version. The generic collections disable the type-casting and there is no use of type-casting when it is used in generics. The generic collections are type-safe and checked at compile-time. These generic collections allow the datatypes to pass as parameters to classes. T... | [
{
"code": null,
"e": 1454,
"s": 1062,
"text": "The generic collections are introduced in Java 5 Version. The generic collections disable the type-casting and there is no use of type-casting when it is used in generics. The generic collections are type-safe and checked at compile-time. These generic ... |
Introduction to SQL in Python for Data Scientists | by Nick Minaie, PhD | Towards Data Science | This article provides an overview of the basic SQL statements for data scientists, and explains how a SQL engine can be instantiated in Python and used for querying data from a database.
As a data scientist using Python, you often need to get your data from a relational database that is hosted either on your local serv... | [
{
"code": null,
"e": 359,
"s": 172,
"text": "This article provides an overview of the basic SQL statements for data scientists, and explains how a SQL engine can be instantiated in Python and used for querying data from a database."
},
{
"code": null,
"e": 858,
"s": 359,
"text": ... |
Setting Up a New PyTorch Deep Learning Environment | by Mikhail Klassen | Towards Data Science | Whether you’re starting on a fresh project, or running on a remote machine, you don’t want to waste time chasing down dependencies and installing software libraries.
This tutorial will provide one of the fastest ways to get set up from a blank slate.
I have tested this approach by completing it on a plain no-frills EC2... | [
{
"code": null,
"e": 338,
"s": 172,
"text": "Whether you’re starting on a fresh project, or running on a remote machine, you don’t want to waste time chasing down dependencies and installing software libraries."
},
{
"code": null,
"e": 423,
"s": 338,
"text": "This tutorial will p... |
chown - Unix, Linux Command | chown - To change owner, change the user and/or group ownership of each given File to a new Owner. Chown can also change the ownership of a file to match the user/group of an existing reference file.
chown [Options]... NewOwner File...
chown [Options]... :Group File...
chown [Options]... --reference=RFILE File...
If us... | [
{
"code": null,
"e": 10777,
"s": 10577,
"text": "chown - To change owner, change the user and/or group ownership of each given File to a new Owner. Chown can also change the ownership of a file to match the user/group of an existing reference file."
},
{
"code": null,
"e": 10892,
"s"... |
Arithmetic Aptitude 6 - GeeksforGeeks | 20 Oct, 2015
Let us divide 4000 by 17.
17) 4000 (235
34
....
60
51
.....
90
85
.....
5
We get 5 as remainder.
Number to be added = 17-5 = 12
Let us divide 5000 by 23.
23) 5000 (217
46
....
40
23
.... | [
{
"code": null,
"e": 27610,
"s": 27582,
"text": "\n20 Oct, 2015"
},
{
"code": null,
"e": 27825,
"s": 27610,
"text": "Let us divide 4000 by 17.\n\n17) 4000 (235\n 34\n ....\n 60\n 51\n .....\n 90\n 85\n .....\n ... |
How to configure and setup postfix mail transfer agent on ubuntu | In this article, we will learn how to configure and install the most popular open source MTA (Mail Transfer Agent) Postfix, which can be used to route email delivery of the Linux Systems. Based on industry usage and estimates, most of the public mail servers are currently running on Postfix.
Since, Postfix is a default... | [
{
"code": null,
"e": 1355,
"s": 1062,
"text": "In this article, we will learn how to configure and install the most popular open source MTA (Mail Transfer Agent) Postfix, which can be used to route email delivery of the Linux Systems. Based on industry usage and estimates, most of the public mail se... |
\vDash - Tex Command | \vDash - Used to create vDash symbol.
{ \vDash}
\vDash command draws vDash symbol.
\vDash
⊨
\vDash
⊨
\vDash
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
Mohammad ... | [
{
"code": null,
"e": 8024,
"s": 7986,
"text": "\\vDash - Used to create vDash symbol."
},
{
"code": null,
"e": 8034,
"s": 8024,
"text": "{ \\vDash}"
},
{
"code": null,
"e": 8069,
"s": 8034,
"text": "\\vDash command draws vDash symbol."
},
{
"code": nul... |
Python - XML Processing | XML is a portable, open source language that allows programmers to develop applications that can be read by other applications, regardless of operating system and/or developmental language.
The Extensible Markup Language (XML) is a markup language much like HTML or SGML. This is recommended by the World Wide Web Consor... | [
{
"code": null,
"e": 2434,
"s": 2244,
"text": "XML is a portable, open source language that allows programmers to develop applications that can be read by other applications, regardless of operating system and/or developmental language."
},
{
"code": null,
"e": 2604,
"s": 2434,
"... |
Data Science is Not Becoming Extinct in 10 Years, Your Skills Might | Towards Data Science | As someone working in data science for over a decade, it is frustrating to see people prophesying on how the field will get extinct in 10 years. The typical reason given is how emerging AutoML tools will eliminate the need for practitioners to develop their own algorithms.
I find such opinions especially frustrating be... | [
{
"code": null,
"e": 446,
"s": 172,
"text": "As someone working in data science for over a decade, it is frustrating to see people prophesying on how the field will get extinct in 10 years. The typical reason given is how emerging AutoML tools will eliminate the need for practitioners to develop the... |
Bootstrap Horizontal Form | To create a horizontal form in Bootstrap, follow the below steps −
Add a class of .form-horizontal to the parent <form> element.
Wrap labels and controls in a <div> with class .form-group.
Add a class of .control-label to the labels.
You can try to run the following code to create a horizontal form in Bootstrap −
Li... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "To create a horizontal form in Bootstrap, follow the below steps −"
},
{
"code": null,
"e": 1192,
"s": 1129,
"text": " Add a class of .form-horizontal to the parent <form> element."
},
{
"code": null,
"e": 1253,
"s": ... |
MySQL DROP DATABASE Statement | The DROP DATABASE statement is used to drop an existing SQL database.
Note: Be careful before dropping a database. Deleting
a database will result in loss of complete information stored in the database!
The following SQL statement drops the existing database "testDB":
Tip: Make sure you have admin privilege before dro... | [
{
"code": null,
"e": 70,
"s": 0,
"text": "The DROP DATABASE statement is used to drop an existing SQL database."
},
{
"code": null,
"e": 204,
"s": 70,
"text": "Note: Be careful before dropping a database. Deleting \na database will result in loss of complete information stored in... |
Maximum even sum subsequence - GeeksforGeeks | 09 Aug, 2021
Given a array of n positive and negative integers, find the subsequence with the maximum even sum and display that even sum. Examples:
Input: arr[] = {-2, 2, -3, 1, 3}
Output: 6
Explanation: The longest subsequence
with even sum is 2, 1 and 3.
Input: arr[] = {-2, 2, -3, 4, 5}
Output: 8
Explanation: The ... | [
{
"code": null,
"e": 25064,
"s": 25036,
"text": "\n09 Aug, 2021"
},
{
"code": null,
"e": 25201,
"s": 25064,
"text": "Given a array of n positive and negative integers, find the subsequence with the maximum even sum and display that even sum. Examples: "
},
{
"code": null... |
blank=True - Django Built-in Field Validation - GeeksforGeeks | 18 Oct, 2021
Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. blan... | [
{
"code": null,
"e": 23779,
"s": 23751,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 24182,
"s": 23779,
"text": "Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations f... |
PHP MySQL ROUND() Function - GeeksforGeeks | 01 Apr, 2021
In this article, we are going to see how MySQL ROUND() function works in PHP. The MySQL ROUND() function is used to round a number to specified decimal places. If no specified decimal places is provided for round-off then it rounds off the number to the nearest integer.
Syntax :
ROUND(X, D)
SELECT ROUND(co... | [
{
"code": null,
"e": 24581,
"s": 24553,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 24852,
"s": 24581,
"text": "In this article, we are going to see how MySQL ROUND() function works in PHP. The MySQL ROUND() function is used to round a number to specified decimal places. If ... |
How to set dynamic property keys to an object in JavaScript? | Previously it is a two-step process to create a property in an object but the advent of ES6 has made the task very simple. In only one step we can create a property dynamically. Let's discuss it in a nutshell.
In the following example, the property, instead of declaring in the object itself, is declared outside the obj... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "Previously it is a two-step process to create a property in an object but the advent of ES6 has made the task very simple. In only one step we can create a property dynamically. Let's discuss it in a nutshell."
},
{
"code": null,
"e": 1417,
... |
Convert Python List to numpy Arrays - GeeksforGeeks | 09 Jul, 2021
A list in Python is a linear data structure that can hold heterogeneous elements they do not require to be declared and are flexible to shrink and grow. On the other hand, an array is a data structure which can hold homogeneous elements, arrays are implemented in Python using the NumPy library. Arrays requ... | [
{
"code": null,
"e": 23818,
"s": 23790,
"text": "\n09 Jul, 2021"
},
{
"code": null,
"e": 24152,
"s": 23818,
"text": "A list in Python is a linear data structure that can hold heterogeneous elements they do not require to be declared and are flexible to shrink and grow. On the oth... |
Modelling the Three Body Problem in Classical Mechanics using Python | by Gaurav Deshmukh | Towards Data Science | I recently read The Three Body Problem, a sci-fi book by Chinese author Liu Cixin. In it, he describes a fictitious alien civilization living on a planet called Trisolaris that is surrounded by three stars. How different do you imagine their existence would be from ours due to the presence of three stars? Blinding suns... | [
{
"code": null,
"e": 556,
"s": 171,
"text": "I recently read The Three Body Problem, a sci-fi book by Chinese author Liu Cixin. In it, he describes a fictitious alien civilization living on a planet called Trisolaris that is surrounded by three stars. How different do you imagine their existence wou... |
How to Sample a Dataframe in Python Pandas | by Angelica Lo Duca | Towards Data Science | It may happen that you need only some rows of your Python dataframe. You can achieve this result, through different sampling techniques.
In this tutorial, I illustrate the following techniques to perform rows sampling through Python Pandas:
random sampling
sampling with condition
sampling at a constant rate
The full co... | [
{
"code": null,
"e": 308,
"s": 171,
"text": "It may happen that you need only some rows of your Python dataframe. You can achieve this result, through different sampling techniques."
},
{
"code": null,
"e": 412,
"s": 308,
"text": "In this tutorial, I illustrate the following tech... |
Calculate Cumulative Product of a Numeric Object in R Programming – cumprod() Function - GeeksforGeeks | 05 Jun, 2020
cumprod() function in R Language is used to calculate the cumulative product of the vector passed as argument.
Syntax: cumprod(x)
Parameters:x: Numeric Object
Example 1:
# R program to illustrate # the use of cumprod() Function # Calling cumprod() Functioncumprod(1:4)cumprod(-1:-6)
Output:
[1] 1 2 6 24... | [
{
"code": null,
"e": 24815,
"s": 24787,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 24926,
"s": 24815,
"text": "cumprod() function in R Language is used to calculate the cumulative product of the vector passed as argument."
},
{
"code": null,
"e": 24945,
"s":... |
C Program to find direction of growth of stack - GeeksforGeeks | 14 May, 2017
Prerequisite : Memory Layout of C Programs
In a typical process, a stack segment of program contains local variables along with information that is saved each time a function is called. Each time a function is called, the address of where to return to and certain information about the caller’s environment,... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n14 May, 2017"
},
{
"code": null,
"e": 24275,
"s": 24232,
"text": "Prerequisite : Memory Layout of C Programs"
},
{
"code": null,
"e": 24705,
"s": 24275,
"text": "In a typical process, a stack segment of progra... |
C++ Vector Library - operator== Function | The C++ function std::vector::operator== tests whether two vectors are equal or not.
Operator == first checks the size of both container, if sizes are same then it compares elements sequentially and comparison stops at first mismatch.
Following is the declaration for std::vector::operator== function form std::vector he... | [
{
"code": null,
"e": 2688,
"s": 2603,
"text": "The C++ function std::vector::operator== tests whether two vectors are equal or not."
},
{
"code": null,
"e": 2838,
"s": 2688,
"text": "Operator == first checks the size of both container, if sizes are same then it compares elements ... |
JasmineJS - Boolean Check | Apart from equality check, Jasmine provides some methods to check Boolean conditions too. Following are the methods that help us check Boolean conditions.
This Boolean matcher is used in Jasmine to check whether the result is equal to true or false.
The following example will help us understand the working principle of... | [
{
"code": null,
"e": 2205,
"s": 2050,
"text": "Apart from equality check, Jasmine provides some methods to check Boolean conditions too. Following are the methods that help us check Boolean conditions."
},
{
"code": null,
"e": 2300,
"s": 2205,
"text": "This Boolean matcher is use... |
Exceptions Vs Errors in PHP - GeeksforGeeks | 30 Oct, 2019
Error: An Error is an unexpected program result, which can not be handled by the program itself. That can be solved by using the issue in the code manually. An Error can be an infinite loop that can not be handled by the program itself so you have to manually repair that issue. There is an easy procedure t... | [
{
"code": null,
"e": 26051,
"s": 26023,
"text": "\n30 Oct, 2019"
},
{
"code": null,
"e": 26407,
"s": 26051,
"text": "Error: An Error is an unexpected program result, which can not be handled by the program itself. That can be solved by using the issue in the code manually. An Err... |
How to Add Items in ComboBox in C#? - GeeksforGeeks | 27 Jun, 2019
In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at a time and the rest of the items are present in the drop-down menu. You are allowed to a list or collection of elements in your Com... | [
{
"code": null,
"e": 25221,
"s": 25193,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 25614,
"s": 25221,
"text": "In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is ... |
Python | Check if any element in list satisfies a condition - GeeksforGeeks | 13 Oct, 2019
Sometimes, while working with Python lists, we can have a problem to filter a list. One of the criteria of performing this filter operation can be checking if any element exists in list that satisfies a condition. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using list compre... | [
{
"code": null,
"e": 26231,
"s": 26203,
"text": "\n13 Oct, 2019"
},
{
"code": null,
"e": 26509,
"s": 26231,
"text": "Sometimes, while working with Python lists, we can have a problem to filter a list. One of the criteria of performing this filter operation can be checking if any ... |
JavaScript SyntaxError - Function statement requires a name - GeeksforGeeks | 23 Jul, 2020
This JavaScript exception function statement requires a name that occurs if there is any function statement in the script which requires a name.
Message:
Syntax Error: Expected identifier (Edge)
SyntaxError: function statement requires a name [Firefox]
SyntaxError: Unexpected token ( [Chrome]
Error Type:
... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n23 Jul, 2020"
},
{
"code": null,
"e": 26690,
"s": 26545,
"text": "This JavaScript exception function statement requires a name that occurs if there is any function statement in the script which requires a name."
},
{
"cod... |
C program to detect tokens in a C program - GeeksforGeeks | 15 Jul, 2021
As it is known that Lexical Analysis is the first phase of compiler also known as scanner. It converts the input program into a sequence of Tokens. A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol.For Example:
1) Keywords:
Ex... | [
{
"code": null,
"e": 26489,
"s": 26461,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 26780,
"s": 26489,
"text": "As it is known that Lexical Analysis is the first phase of compiler also known as scanner. It converts the input program into a sequence of Tokens. A C program con... |
Recursive Program for Binary to Decimal - GeeksforGeeks | 28 May, 2021
Given a binary number as string, find its decimal equivalent.Examples:
Input : binary = "101"
Output : 5
Input : binary = "1111"
Output : 15
We have discussed iterative solution to convert Binary to Decimal.The idea is simple, we add current term and recur for remaining terms.
C++
Java
Python... | [
{
"code": null,
"e": 25875,
"s": 25847,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 25948,
"s": 25875,
"text": "Given a binary number as string, find its decimal equivalent.Examples: "
},
{
"code": null,
"e": 26025,
"s": 25948,
"text": "Input : binary =... |
Python String Methods ( Part 3 ) - GeeksforGeeks | 12 May, 2022
1. strip():- This method is used to delete all the leading and trailing characters mentioned in its argument.2. lstrip():- This method is used to delete all the leading characters mentioned in its argument.3. rstrip():- This method is used to delete all the trailing characters mentioned in its argument.
P... | [
{
"code": null,
"e": 26099,
"s": 26071,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 26405,
"s": 26099,
"text": "1. strip():- This method is used to delete all the leading and trailing characters mentioned in its argument.2. lstrip():- This method is used to delete all the le... |
PHP | DOMElement getAttribute() Function - GeeksforGeeks | 20 Feb, 2020
The DOMElement::getAttribute() function is an inbuilt function in PHP which is used to get the value of the attribute with name for the current node.
Syntax:
string DOMElement::getAttribute( string $name )
Parameters: This function accepts a single parameter $name which holds the name of the attribute.
Ret... | [
{
"code": null,
"e": 25845,
"s": 25817,
"text": "\n20 Feb, 2020"
},
{
"code": null,
"e": 25995,
"s": 25845,
"text": "The DOMElement::getAttribute() function is an inbuilt function in PHP which is used to get the value of the attribute with name for the current node."
},
{
... |
Python String count() Method - GeeksforGeeks | 05 Aug, 2021
Python String count() function is an inbuilt function in python programming language that returns the number of occurrences of a substring in the given string.
Syntax:
string.count(substring, start=..., end=...)
Parameters:
The count() function has one compulsory and two optional parameters. Mandatory pa... | [
{
"code": null,
"e": 25065,
"s": 25037,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 25225,
"s": 25065,
"text": "Python String count() function is an inbuilt function in python programming language that returns the number of occurrences of a substring in the given string."
... |
ML | Normal Equation in Linear Regression - GeeksforGeeks | 20 Aug, 2021
Normal Equation is an analytical approach to Linear Regression with a Least Square Cost Function. We can directly find out the value of θ without using Gradient Descent. Following this approach is an effective and time-saving option when are working with a dataset with small features. Normal Equation is a ... | [
{
"code": null,
"e": 25761,
"s": 25733,
"text": "\n20 Aug, 2021"
},
{
"code": null,
"e": 26080,
"s": 25761,
"text": "Normal Equation is an analytical approach to Linear Regression with a Least Square Cost Function. We can directly find out the value of θ without using Gradient De... |
Julia - DataFrames - GeeksforGeeks | 28 Jul, 2020
Data Frames in Julia is an alternative for Pandas Package in Python. Data Frames represent the data in a tabular structure. We can manipulate the data using these data frames. Various operations can be done on the Data frames for altering the data and making row-column transformations.
Data Frames are main... | [
{
"code": null,
"e": 25789,
"s": 25761,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 26076,
"s": 25789,
"text": "Data Frames in Julia is an alternative for Pandas Package in Python. Data Frames represent the data in a tabular structure. We can manipulate the data using these ... |
How to Solve IllegalArgumentException in Java? - GeeksforGeeks | 02 Feb, 2021
An unexpected event occurring during the program execution is called an Exception. This can be caused due to several factors like invalid user input, network failure, memory limitations, trying to open a file that does not exist, etc.
If an exception occurs, an Exception object is generated, containing th... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n02 Feb, 2021"
},
{
"code": null,
"e": 25461,
"s": 25225,
"text": "An unexpected event occurring during the program execution is called an Exception. This can be caused due to several factors like invalid user input, network failu... |
TypeScript | Array slice() Method - GeeksforGeeks | 03 Mar, 2021
The Array.slice() is an inbuilt TypeScript function which is used to extract a section of an array and returns a new array.Syntax:
array.slice( begin [,end] );
Parameter: This method accepts two parameter as mentioned above and described below:
begin : This parameter is the Zero-based index at which to b... | [
{
"code": null,
"e": 25657,
"s": 25629,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 25788,
"s": 25657,
"text": "The Array.slice() is an inbuilt TypeScript function which is used to extract a section of an array and returns a new array.Syntax:"
},
{
"code": null,
... |
MoviePy – Getting Audio part from the Video File Clip - GeeksforGeeks | 18 Aug, 2020
In this article we will see how we can get audio part of the video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GIF’s. Video is formed by the frames, combination of frames creates a video each frame is an individual image. An audio... | [
{
"code": null,
"e": 25935,
"s": 25907,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 26553,
"s": 25935,
"text": "In this article we will see how we can get audio part of the video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for basic ... |
Comma separator for numbers in R - GeeksforGeeks | 28 Dec, 2021
In this article, we are going to see the separation of numbers using a comma in R Programming Language. A comma separator in number will give clarity of a number, and we can count easily when a number is separated by a comma.
It can be done with these ways:
Using prettyNum()Using format()
Using prettyNum()... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 26713,
"s": 26487,
"text": "In this article, we are going to see the separation of numbers using a comma in R Programming Language. A comma separator in number will give clarity of a number, ... |
Count all possible paths between two vertices - GeeksforGeeks | 23 Nov, 2021
Count the total number of ways or paths that exist between two vertices in a directed graph. These paths don’t contain a cycle, the simple enough reason is that a cycle contains an infinite number of paths and hence they create a problem. Examples:
For the following Graph:
Input: Count paths between A ... | [
{
"code": null,
"e": 26395,
"s": 26367,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 26645,
"s": 26395,
"text": "Count the total number of ways or paths that exist between two vertices in a directed graph. These paths don’t contain a cycle, the simple enough reason is that a ... |
Difference between Bit Rate and Baud Rate - GeeksforGeeks | 08 Jun, 2020
Both Bit rate and Baud rate are generally used in data communication,
Bit rate is the transmission of number of bits per second. On the other hand, Baud rate is defined as the number of signal units per second. The formula which relates both bit rate and baud rate is given below:
Bit rate = Baud rate x the... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 25631,
"s": 25561,
"text": "Both Bit rate and Baud rate are generally used in data communication,"
},
{
"code": null,
"e": 25842,
"s": 25631,
"text": "Bit rate is the tran... |
How Inheritance works in Constructor Functions in JavaScript ? - GeeksforGeeks | 15 Feb, 2022
Here, we will discuss inheriting a constructor function in JavaScript. Constructor functions define the prototype of the properties an object will contain. Using the constructor function, we can create a new object after passing the required parameters.
Inheriting a previously defined constructor function ... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n15 Feb, 2022"
},
{
"code": null,
"e": 26799,
"s": 26545,
"text": "Here, we will discuss inheriting a constructor function in JavaScript. Constructor functions define the prototype of the properties an object will contain. Using t... |
Minimum increments or decrements required to convert a sorted array into a power sequence - GeeksforGeeks | 07 Apr, 2021
Given a sorted array arr[] consisting of N positive integers, the task is to minimize the total number of increments or decrements of each array element required to convert the given array into a power sequence of any arbitrary integer X.
A sequence is called a power sequence of any integer X, if and only ... | [
{
"code": null,
"e": 26041,
"s": 26013,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 26280,
"s": 26041,
"text": "Given a sorted array arr[] consisting of N positive integers, the task is to minimize the total number of increments or decrements of each array element required t... |
Program for Round Robin scheduling | Set 1 - GeeksforGeeks | 04 May, 2022
Round Robin is a CPU scheduling algorithm where each process is assigned a fixed time slot in a cyclic way. It is basically the preemptive version of First come First Serve CPU Scheduling algorithm.
Round Robin CPU Algorithm generally focuses on Time Sharing technique.
The period of time for which a proc... | [
{
"code": null,
"e": 29431,
"s": 29403,
"text": "\n04 May, 2022"
},
{
"code": null,
"e": 29631,
"s": 29431,
"text": "Round Robin is a CPU scheduling algorithm where each process is assigned a fixed time slot in a cyclic way. It is basically the preemptive version of First come Fi... |
Python - Combine two dictionaries having key of the first dictionary and value of the second dictionary - GeeksforGeeks | 01 Oct, 2020
Given two dictionaries. The task is to merge them in such a way that the resulting dictionary contains the key from the first dictionary and value from the second dictionary.
Examples:
Input : test_dict1 = {“Gfg” : 20, “is” : 36, “best” : 100}, test_dict2 = {“Gfg2” : 26, “is2” : 20, “best2” : 70} Output : ... | [
{
"code": null,
"e": 26297,
"s": 26269,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 26472,
"s": 26297,
"text": "Given two dictionaries. The task is to merge them in such a way that the resulting dictionary contains the key from the first dictionary and value from the second ... |
How to create a group column in an R data frame? | Suppose we have a data frame called df that contains two columns say X and Y then we can create a group column based on X and Y by converting df into a data.table object and creating list of values in X and Y with list function.
Check out the below Examples to understand how it can be done.
Following snippet creates a ... | [
{
"code": null,
"e": 1291,
"s": 1062,
"text": "Suppose we have a data frame called df that contains two columns say X and Y then we can create a group column based on X and Y by converting df into a data.table object and creating list of values in X and Y with list function."
},
{
"code": nu... |
Crystal Reports - If Then Else | The if-then-Else statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code only if a particular condition meets true.
If you see the following If-Then-Else statement with Boolean operators, it has allowed you to pass multiple conditions in the formula and... | [
{
"code": null,
"e": 3153,
"s": 2970,
"text": "The if-then-Else statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code only if a particular condition meets true."
},
{
"code": null,
"e": 3338,
"s": 3153,
"text": ... |
C# | Getting the list of Values of a SortedList object - GeeksforGeeks | 01 Feb, 2019
SortedList.GetValueList Method is used to get the list of keys in a SortedList object.
Syntax:
public virtual System.Collections.IList GetValueList ();
Return Value: It returns an IList object containing the values in the SortedList object.
Below programs illustrate the use of above-discussed method:
Examp... | [
{
"code": null,
"e": 26027,
"s": 25999,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 26114,
"s": 26027,
"text": "SortedList.GetValueList Method is used to get the list of keys in a SortedList object."
},
{
"code": null,
"e": 26122,
"s": 26114,
"text": "Syn... |
Python - Check for Sublist in List - GeeksforGeeks | 16 Feb, 2022
Sometimes, while working with Python Lists, we can have a problem in which we need to check if a particular sublist is contained in an exact sequence in a list. This task can have application in many domains such as school programming and web development. Let’s discuss certain ways in which this task can b... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n16 Feb, 2022"
},
{
"code": null,
"e": 24533,
"s": 24212,
"text": "Sometimes, while working with Python Lists, we can have a problem in which we need to check if a particular sublist is contained in an exact sequence in a list. Th... |
CSS | 3 Digit Hex Color - GeeksforGeeks | 23 Aug, 2019
The 3 Digit Hex Color code is similar to 6 Digit Hex Color it’s shorthand for 6 Digit Hex Color. In 3 Digit Hex Color shrink into single character those have twins in 6 Digit Hex Color the effect will be same but reduce the color variant. The 3 Digit Hex Color contains 3 character followed by hash(#) like ... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 26988,
"s": 26621,
"text": "The 3 Digit Hex Color code is similar to 6 Digit Hex Color it’s shorthand for 6 Digit Hex Color. In 3 Digit Hex Color shrink into single character those have twins... |
HCL Placement Paper | Logical Reasoning Set - 1 - GeeksforGeeks | 15 Jul, 2019
This is an HCL model placement paper on Logical Reasoning for placement preparation. This placement paper will cover logical reasoning questions that are asked in HCL recruitment drives and also strictly follows the pattern of questions asked in HCL interviews. It is recommended to solve each one of the fo... | [
{
"code": null,
"e": 25761,
"s": 25733,
"text": "\n15 Jul, 2019"
},
{
"code": null,
"e": 26142,
"s": 25761,
"text": "This is an HCL model placement paper on Logical Reasoning for placement preparation. This placement paper will cover logical reasoning questions that are asked in ... |
C program to invert (making negative) an image content in PGM format - GeeksforGeeks | 06 Jan, 2022
Given an image in PGM format and the task is to invert the image color (making negative) content in PGM format. Prerequisite: c-program-to-write-an-image-in-pgm-formatPGM image represents a gray scale graphic image. PGM is the abbreviation of Portable Gray Map. This image file contains one or more PGM imag... | [
{
"code": null,
"e": 24510,
"s": 24482,
"text": "\n06 Jan, 2022"
},
{
"code": null,
"e": 24915,
"s": 24510,
"text": "Given an image in PGM format and the task is to invert the image color (making negative) content in PGM format. Prerequisite: c-program-to-write-an-image-in-pgm-fo... |
Difference between Array and Map - GeeksforGeeks | 09 Nov, 2021
An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (gen... | [
{
"code": null,
"e": 24796,
"s": 24768,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 25206,
"s": 24796,
"text": "An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to cal... |
Dart Programming - remainder Method | It returns the truncated remainder after dividing the two numbers.
Number.remainder(x)
x − represents a divisor
x − represents a divisor
Returns the remainder of a division.
void main() {
var a = 10;
var b = 17;
print(a.remainder(2));
print(b.remainder(2));
}
It will produce the following output −... | [
{
"code": null,
"e": 2592,
"s": 2525,
"text": "It returns the truncated remainder after dividing the two numbers."
},
{
"code": null,
"e": 2613,
"s": 2592,
"text": "Number.remainder(x)\n"
},
{
"code": null,
"e": 2638,
"s": 2613,
"text": "x − represents a divis... |
Tryit Editor v3.6 - Show Python | #The try block will raise an error when trying to write to a read-only file:
try:
f = open("demofile.txt")
try:
f.write("Lorum Ipsum")
except:
print("Something went wrong when writing to the file") | [
{
"code": null,
"e": 77,
"s": 0,
"text": "#The try block will raise an error when trying to write to a read-only file:"
},
{
"code": null,
"e": 79,
"s": 77,
"text": ""
},
{
"code": null,
"e": 84,
"s": 79,
"text": "try:"
},
{
"code": null,
"e": 111... |
How I can convert a Python Tuple into Dictionary? | A dictionary object can be constructed using dict() function. This function takes a tuple of tuples as argument. Each tuple contains key value pair.
>>> t=((1,'a'), (2,'b'))
>>> dict(t)
{1: 'a', 2: 'b'}
If you want to interchange key and value,
>>> t=((1,'a'), (2,'b'))
>>> dict((y, x) for x, y in t)
{'a': 1, 'b': 2} | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "A dictionary object can be constructed using dict() function. This function takes a tuple of tuples as argument. Each tuple contains key value pair."
},
{
"code": null,
"e": 1265,
"s": 1211,
"text": ">>> t=((1,'a'), (2,'b'))\n>>> dic... |
MFC - File System | In this chapter, we will discuss the various components of the file system.
A drive is a physical device attached to a computer so it can store information. A logical disk, logical volume or virtual disk (VD or vdisk for short) is a virtual device that provides an area of usable storage capacity on one or more physical... | [
{
"code": null,
"e": 2143,
"s": 2067,
"text": "In this chapter, we will discuss the various components of the file system."
},
{
"code": null,
"e": 2514,
"s": 2143,
"text": "A drive is a physical device attached to a computer so it can store information. A logical disk, logical v... |
Get a list of Foreign Key constraints in MySQL | Let’s say we have a database “business” with number of tables. If you want to show only foreign key constraints, then use the following query −
mysql> select *
−> from information_schema.referential_constraints
−> where constraint_schema = 'business';
The following is the output displaying only foreign key constr... | [
{
"code": null,
"e": 1206,
"s": 1062,
"text": "Let’s say we have a database “business” with number of tables. If you want to show only foreign key constraints, then use the following query −"
},
{
"code": null,
"e": 1320,
"s": 1206,
"text": "mysql> select *\n −> from informatio... |
A Boolean Array Puzzle - GeeksforGeeks | 18 Jan, 2022
Input: A array arr[] of two elements having value 0 and 1Output: Make both elements 0.
Specifications: Following are the specifications to follow.
1) It is guaranteed that one element is 0 but we do not know its position.2) We can’t say about another element it can be 0 or 1.3) We can only complement arra... | [
{
"code": null,
"e": 34205,
"s": 34177,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 34293,
"s": 34205,
"text": "Input: A array arr[] of two elements having value 0 and 1Output: Make both elements 0. "
},
{
"code": null,
"e": 34353,
"s": 34293,
"text": "Sp... |
OpenNLP - Parsing the Sentences | Using OpenNLP API, you can parse the given sentences. In this chapter, we will discuss how to parse raw text using OpenNLP API.
To detect the sentences, OpenNLP uses a predefined model, a file named en-parserchunking.bin. This is a predefined model which is trained to parse the given raw text.
The Parser class of the o... | [
{
"code": null,
"e": 1980,
"s": 1852,
"text": "Using OpenNLP API, you can parse the given sentences. In this chapter, we will discuss how to parse raw text using OpenNLP API."
},
{
"code": null,
"e": 2147,
"s": 1980,
"text": "To detect the sentences, OpenNLP uses a predefined mod... |
Check if a given string is a valid Hexadecimal Color Code or not - GeeksforGeeks | 17 Nov, 2021
Given a string str, the task is to check whether the given string is an HTML Hex Color Code or not. Print Yes if it is, otherwise print No.
Examples:
Input: str = “#1AFFa1”Output: Yes
Input: str = “#F00”Output: Yes
Input: str = “123456”Output: No
Approach: An HTML Hex Color Code follows the below-mention... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 24441,
"s": 24301,
"text": "Given a string str, the task is to check whether the given string is an HTML Hex Color Code or not. Print Yes if it is, otherwise print No."
},
{
"code": n... |
How to create a 4-column layout grid with CSS? | To create a 4-column layout grid with CSS, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
* {
box-sizing: border-box;
}
.fir... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "To create a 4-column layout grid with CSS, the code is as follows −"
},
{
"code": null,
"e": 1141,
"s": 1130,
"text": " Live Demo"
},
{
"code": null,
"e": 2196,
"s": 1141,
"text": "<!DOCTYPE html>\n<html>\n<head>\... |
Python | Maintaining Grocery list - GeeksforGeeks | 23 Aug, 2021
Problem Statement : Make a Grocery List for super market shopping with name, price and quantity; if the list already contains an item then only update the price and quantity it should not append the item name again. Ask user his/her budget initially and minus the budget after adding a new item in the list.... | [
{
"code": null,
"e": 24027,
"s": 23999,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 24649,
"s": 24027,
"text": "Problem Statement : Make a Grocery List for super market shopping with name, price and quantity; if the list already contains an item then only update the price an... |
SAP Universe Designer - Aggregate Awareness | In UDT, you have an option to run query against the aggregated tables in database. A condition can be set, and that query will run against aggregated tables for query optimization. This method of using aggregated tables is known as aggregate awareness.
To use aggregate awareness in Universe, you can use a function call... | [
{
"code": null,
"e": 2395,
"s": 2142,
"text": "In UDT, you have an option to run query against the aggregated tables in database. A condition can be set, and that query will run against aggregated tables for query optimization. This method of using aggregated tables is known as aggregate awareness."... |
numpy.setdiff1d() function in Python | 17 May, 2020
numpy.setdiff1d() function find the set difference of two arrays and return the unique values in arr1 that are not in arr2.
Syntax : numpy.setdiff1d(arr1, arr2, assume_unique = False)
Parameters :arr1 : [array_like] Input array.arr2 : [array_like] Input comparison array.assume_unique : [bool] If True, the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 152,
"s": 28,
"text": "numpy.setdiff1d() function find the set difference of two arrays and return the unique values in arr1 that are not in arr2."
},
{
"code": null,
"e": 212,
"s": ... |
Python OpenCV | cv2.imread() method | 02 Aug, 2019
OpenCV-Python is a library of Python bindings designed to solve computer vision problems.cv2.imread() method loads an image from the specified file. If the image cannot be read (because of missing file, improper permissions, unsupported or invalid format) then this method returns an empty matrix.
Syntax: c... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 350,
"s": 52,
"text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems.cv2.imread() method loads an image from the specified file. If the image cannot be re... |
How CSS transition work with linear gradient background button? | 22 May, 2020
In CSS, you can smoothly make transitions between two or more colors. CSS has two types of gradients:
Linear gradient: It goes down/up/left/right/diagonally and makes smooth transitions of colors. To make a linear transition you first have to choose two color stops. Color stops are the color among which yo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 May, 2020"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "In CSS, you can smoothly make transitions between two or more colors. CSS has two types of gradients:"
},
{
"code": null,
"e": 526,
"s": 130,
"text": "Line... |
ReactJS | Conditional Rendering | 22 Jan, 2021
We have discussed how to create components, how to render components, using proptypes, using states to store information, and much more. In our previous articles, we had also developed a basic Calculator Application in ReactJS. There may arise a situation when we want to render something based on some cond... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 2044,
"s": 28,
"text": "We have discussed how to create components, how to render components, using proptypes, using states to store information, and much more. In our previous articles, we had also... |
MongoDB OR operator ( $or ) | 11 Sep, 2021
MongoDB provides different types of logical query operators and $or operator is one of them. This operator is used to perform logical OR operation on the array of two or more expressions and select or retrieve only those documents that match at least one of the given expression in the array.
You can use t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Sep, 2021"
},
{
"code": null,
"e": 346,
"s": 52,
"text": "MongoDB provides different types of logical query operators and $or operator is one of them. This operator is used to perform logical OR operation on the array of two or more... |
Calling a Super Class Constructor in Python - GeeksforGeeks | 01 Aug, 2020
Classes are like creating a blueprint for an object. If we want to build a building then we must have the blueprint for that, like how many rooms will be there, its dimensions and many more, so here the actual building is an object and blueprint of the building is a class.
A Class is a user-defined data-ty... | [
{
"code": null,
"e": 24120,
"s": 24092,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 24394,
"s": 24120,
"text": "Classes are like creating a blueprint for an object. If we want to build a building then we must have the blueprint for that, like how many rooms will be there, it... |
Instacart Market Basket Analysis Part 2: Which Groups of Customers Are Similar? | by James Le | Towards Data Science | The data science environment is rapidly changing and getting more mature. Whether you’re an experienced data scientist building developing cutting-edge deep learning algorithms or you’re a graduate student grinding on school projects, being able to publish and collaborate on your Jupyter Notebooks (the default workbenc... | [
{
"code": null,
"e": 552,
"s": 172,
"text": "The data science environment is rapidly changing and getting more mature. Whether you’re an experienced data scientist building developing cutting-edge deep learning algorithms or you’re a graduate student grinding on school projects, being able to publis... |
How to Implement In-App Purchases in Android? - GeeksforGeeks | 26 Nov, 2021
In this article, we’ll look at how to use the billing library to make in-app purchases on Android smartphones. We’ll create an app as part of the process to help us learn how In-App purchases work. So, without further ado, let’s get started. We’ll start by creating an app with an Empty Activity as the firs... | [
{
"code": null,
"e": 25142,
"s": 25114,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 25528,
"s": 25142,
"text": "In this article, we’ll look at how to use the billing library to make in-app purchases on Android smartphones. We’ll create an app as part of the process to help u... |
ConcurrentLinkedQueue isEmpty() method in Java - GeeksforGeeks | 26 Nov, 2018
The isEmpty() method of ConcurrentLinkedQueue is used to check if this queue is empty or not. It returns true if ConcurrentLinkedQueue contains zero number of elements means if the ConcurrentLinkedQueue is empty.
Syntax:
public boolean isEmpty()
Returns: This method returns true if this ConcurrentLinkedQue... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 24161,
"s": 23948,
"text": "The isEmpty() method of ConcurrentLinkedQueue is used to check if this queue is empty or not. It returns true if ConcurrentLinkedQueue contains zero number of elem... |
HTML - <select> Tag | The HTML <select> tag is used within a form for defining a select list.
<!DOCTYPE html>
<html>
<head>
<title>HTML select Tag</title>
</head>
<body>
<form action = "/cgi-bin/dropdown.cgi" method = "post">
<select name = "dropdown">
<option value = "Data Structures" s... | [
{
"code": null,
"e": 2446,
"s": 2374,
"text": "The HTML <select> tag is used within a form for defining a select list."
},
{
"code": null,
"e": 2905,
"s": 2446,
"text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML select Tag</title>\n </head>\n\n <body>\n <fo... |
How to exclude a specific row from a table in MySQL? | Use <> i.e. not equal in MySQL to exclude a specific row from a table. Let us first create a table −
mysql> create table DemoTable
-> (
-> Id int,
-> FirstName varchar(100)
-> );
Query OK, 0 rows affected (0.58 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "Use <> i.e. not equal in MySQL to exclude a specific row from a table. Let us first create a table −"
},
{
"code": null,
"e": 1290,
"s": 1163,
"text": "mysql> create table DemoTable\n -> (\n -> Id int,\n -> FirstName varchar(10... |
Redis - Security | Redis database can be secured, such that any client making a connection needs to authenticate before executing a command. To secure Redis, you need to set the password in the config file.
Following example shows the steps to secure your Redis instance.
127.0.0.1:6379> CONFIG get requirepass
1) "requirepass"
2) ""
B... | [
{
"code": null,
"e": 2233,
"s": 2045,
"text": "Redis database can be secured, such that any client making a connection needs to authenticate before executing a command. To secure Redis, you need to set the password in the config file."
},
{
"code": null,
"e": 2298,
"s": 2233,
"te... |
Inline virtual function in C++ | Virtual functions in C++ use to create a list of base class pointers and call methods of any of the derived classes without even knowing kind of derived class object. Virtual functions are resolved late, at the runtime.
The main use of the virtual function is to achieve Runtime Polymorphism. The inline functions are us... | [
{
"code": null,
"e": 1282,
"s": 1062,
"text": "Virtual functions in C++ use to create a list of base class pointers and call methods of any of the derived classes without even knowing kind of derived class object. Virtual functions are resolved late, at the runtime."
},
{
"code": null,
"... |
Delete N nodes after M nodes of a linked list in C++ program | In this tutorial, we are going to learn how to delete N nodes after M nodes in a linked list.
Let's see the steps to solve the problem.
Write a struct Node for the linked list node.
Write a struct Node for the linked list node.
Initialize the linked list with the dummy data.
Initialize the linked list with the dummy da... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "In this tutorial, we are going to learn how to delete N nodes after M nodes in a linked list."
},
{
"code": null,
"e": 1198,
"s": 1156,
"text": "Let's see the steps to solve the problem."
},
{
"code": null,
"e": 1244,
... |
Regression Splines in R and Python | by Yufeng | Towards Data Science | The linear model is named so because of the linear relationship between the input (independent variable) and the output (dependent variable). Even though we know it’s of a high probability that the real-world data shows nonlinearity, people usually keep regarding the linear model as one of the top choices.
The reasons ... | [
{
"code": null,
"e": 479,
"s": 171,
"text": "The linear model is named so because of the linear relationship between the input (independent variable) and the output (dependent variable). Even though we know it’s of a high probability that the real-world data shows nonlinearity, people usually keep r... |
Align flex items around on different screen sizes in Bootstrap | To align flex items around on different screen sizes, use the justify-content-*-around class.
You can achieve the following result that justifies content on small and medium screen sizes −
To implement the justify-content-*-around class in Bootstrap −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<title>Boots... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "To align flex items around on different screen sizes, use the justify-content-*-around class."
},
{
"code": null,
"e": 1251,
"s": 1156,
"text": "You can achieve the following result that justifies content on small and medium screen s... |
Rexx - Loops | So far we have seen statements which have been executed one after the other in a sequential manner. Additionally, statements are provided in Rexx to alter the flow of control in a program’s logic. They are then classified into a flow of control statements which we will study in detail.
A loop statement allows us to exe... | [
{
"code": null,
"e": 2626,
"s": 2339,
"text": "So far we have seen statements which have been executed one after the other in a sequential manner. Additionally, statements are provided in Rexx to alter the flow of control in a program’s logic. They are then classified into a flow of control statemen... |
C++ Program to Implement Insertion Sort | This sorting technique is similar with the card sorting technique, in other words we sort cards using insertion sort mechanism. For this technique, we pick up one element from the data set and shift the data elements to make a place to insert back the picked up element into the data set.
Time Complexity: O(n) for best ... | [
{
"code": null,
"e": 1351,
"s": 1062,
"text": "This sorting technique is similar with the card sorting technique, in other words we sort cards using insertion sort mechanism. For this technique, we pick up one element from the data set and shift the data elements to make a place to insert back the p... |
Can we combine GridLayout and BorderLayout in Java? | Yes, we can do that with Java Swings as shown below. Here, we have a panel set with GridLayout and another panel with BorderLayout −
JPanel panelGrid = new JPanel(new GridLayout(10, 5, 10, 10));
panelGrid.add(new JCheckBox("Demo CheckBox1"));
panelGrid.add(new JCheckBox("Demo CheckBox2"));
panelGrid.add(btnAPanel);
pan... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "Yes, we can do that with Java Swings as shown below. Here, we have a panel set with GridLayout and another panel with BorderLayout −"
},
{
"code": null,
"e": 1564,
"s": 1195,
"text": "JPanel panelGrid = new JPanel(new GridLayout(10, ... |
How to create table footer in HTML? | The HTML <tfoot> tag is used in adding a footer to a table. The tfoot tag is used in conjunction with the tbody tag and the thead tag in determining each part of the table (header, footer, body).
The following are the attributes −
You can try to run the following code to create a table footer in HTML −
<!DOCTYPE html>
... | [
{
"code": null,
"e": 1258,
"s": 1062,
"text": "The HTML <tfoot> tag is used in adding a footer to a table. The tfoot tag is used in conjunction with the tbody tag and the thead tag in determining each part of the table (header, footer, body)."
},
{
"code": null,
"e": 1293,
"s": 1258,... |
How to display star/asterisk sign (*) inside a base R plot? | To display characters inside a base R plot we can simply use text function with expression and if we want to display an asterisk then we need to put the asterisk within double quotes. For example, if we want to display three stars then only expression(paste("***"))) should be used. Check out the below examples to under... | [
{
"code": null,
"e": 1402,
"s": 1062,
"text": "To display characters inside a base R plot we can simply use text function with expression and if we want to display an asterisk then we need to put the asterisk within double quotes. For example, if we want to display three stars then only expression(p... |
Rexx - Parsing | One of the most powerful features of Rexx is its ability to parse text values. You probably will not see this in any other programming languages.
The general format of the parse statement is as follows −
PARSE {UPPER|LOWER|CASELESS} source {template}
Where,
UPPER − The source is converted to upper case before parsing... | [
{
"code": null,
"e": 2485,
"s": 2339,
"text": "One of the most powerful features of Rexx is its ability to parse text values. You probably will not see this in any other programming languages."
},
{
"code": null,
"e": 2543,
"s": 2485,
"text": "The general format of the parse stat... |
imagecreate() function in PHP | The imagecreate() function is used to create a new image. It is preferred to use imagecreatetruecolor() to create an image instead of imagecreate(). This is because the image processing occurs on the highest quality image possible which can be created using imagecreatetruecolor().
imagecreate( $width, $height )
width: ... | [
{
"code": null,
"e": 1344,
"s": 1062,
"text": "The imagecreate() function is used to create a new image. It is preferred to use imagecreatetruecolor() to create an image instead of imagecreate(). This is because the image processing occurs on the highest quality image possible which can be created u... |
Express.js express.Router() Function - GeeksforGeeks | 03 Jul, 2020
The express.Router() function is used to create a new router object. This function is used when you want to create a new router object in your program to handle requests.
Syntax:
express.Router( [options] )
Optional Parameters:
case-sensitive: This enables case sensitivity.
mergeParams: It preserves the re... | [
{
"code": null,
"e": 29615,
"s": 29587,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 29786,
"s": 29615,
"text": "The express.Router() function is used to create a new router object. This function is used when you want to create a new router object in your program to handle re... |
JBoss Fuse - Apache CXF | In this chapter, let us discuss about what Apache CXF is and how it can be helpful in developing SOAP and Rest Web Services.
Apache CXF is a web service development framework that can be utilized to develop SOAP and Rest web services. CXF is fully compliant with JAX-RS and JAX-Ws standard.
It is most widely used web se... | [
{
"code": null,
"e": 2041,
"s": 1916,
"text": "In this chapter, let us discuss about what Apache CXF is and how it can be helpful in developing SOAP and Rest Web Services."
},
{
"code": null,
"e": 2207,
"s": 2041,
"text": "Apache CXF is a web service development framework that ca... |
Python | Dropdown list in kivy - GeeksforGeeks | 08 Apr, 2022
Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
???????? Kivy Tutorial – Learn Kivy with Examples.
A drop-down list can... | [
{
"code": null,
"e": 41554,
"s": 41526,
"text": "\n08 Apr, 2022"
},
{
"code": null,
"e": 41790,
"s": 41554,
"text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application... |
ReactJS - Http Client Programming | Http client programming enables the application to connect and fetch data from http server through JavaScript. It reduces the data transfer between client and server as it fetches only the required data instead of the whole design and subsequently improves the network speed. It improves the user experience and becomes ... | [
{
"code": null,
"e": 2411,
"s": 2033,
"text": "Http client programming enables the application to connect and fetch data from http server through JavaScript. It reduces the data transfer between client and server as it fetches only the required data instead of the whole design and subsequently impro... |
C Program to check Strong Number | Given a number ‘n’ we have to check whether the number given is Strong Number or not.
Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factorial implies when we find the product of all the numbers below that number including that number and is denoted by ! (Exclamation sign), For... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "Given a number ‘n’ we have to check whether the number given is Strong Number or not."
},
{
"code": null,
"e": 1411,
"s": 1148,
"text": "Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factori... |
This [item] Does Not Exist. Ongoing Index of non-existing things... | by Merzmensch | Towards Data Science | The Digital Age reshaped everything. Even our conception of reality. In the XXth century, philosophers questioned the originality of an artwork (“The Work of Art in the Age of Mechanical Reproduction” by Walter Benjamin). In the XXIst century, we question if something is real at all (and if there is something like a re... | [
{
"code": null,
"e": 687,
"s": 172,
"text": "The Digital Age reshaped everything. Even our conception of reality. In the XXth century, philosophers questioned the originality of an artwork (“The Work of Art in the Age of Mechanical Reproduction” by Walter Benjamin). In the XXIst century, we question... |
Multiple WHERE with LIMIT in MySQL? | For this, you can use UNION ALL operator. Let us first create a table −
mysql> create table DemoTable
-> (
-> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> Subject varchar(100)
-> );
Query OK, 0 rows affected (0.64 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable(Su... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "For this, you can use UNION ALL operator. Let us first create a table −"
},
{
"code": null,
"e": 1295,
"s": 1134,
"text": "mysql> create table DemoTable\n -> (\n -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> Subject varch... |
Plot yscale class linear, log, logit and symlog by name in Matplotlib? | To plot yscale with class by name, we can take the following steps
Set the figure size and adjust the padding between and around the subplots.
Create y data points using numpy.
Create x data points using numpy.
Add a subplot to the current figure at index 1.
Plot x and y data points using plot() method.
For linear clas... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "To plot yscale with class by name, we can take the following steps"
},
{
"code": null,
"e": 1205,
"s": 1129,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e": 12... |
html5lib and lxml parsers in Python - GeeksforGeeks | 18 Apr, 2019
Parsers in Python:Parsing simply means to break down a blob of text into smaller and meaningful parts. This breaking down depends on certain rules and factors which a particular parser defines. These parsers can range from native string methods of parsing line by line to the libraries like html5lib which c... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n18 Apr, 2019"
},
{
"code": null,
"e": 24533,
"s": 23901,
"text": "Parsers in Python:Parsing simply means to break down a blob of text into smaller and meaningful parts. This breaking down depends on certain rules and factors whic... |
Repeated Character Whose First Appearance is Leftmost - GeeksforGeeks | 03 Jun, 2021
Given a string, find the repeated character present first in the string.
Examples:
Input : geeksforgeeks
Output : g
(mind that it will be g, not e.)
Input : abcdabcd
Output : a
Input : abcd
Output : -1
No character repeats
Asked in: Goldman Sachs internship
We have discussed different approaches i... | [
{
"code": null,
"e": 24617,
"s": 24589,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 24691,
"s": 24617,
"text": "Given a string, find the repeated character present first in the string. "
},
{
"code": null,
"e": 24703,
"s": 24691,
"text": "Examples: "
}... |
Bitcoin Predictive Price Modeling with Facebook’s Prophet | by BarclayJames | Towards Data Science | This is a quick look at Facebook’s Prophet machine learning package using the example of Bitcoin. It assumes basic Python knowledge and some familiarity with pandas.
Prophet is Facebook’s open source forecasting procedure for time series data. The idea is that it should make fully automatic forecasting easy even with m... | [
{
"code": null,
"e": 338,
"s": 172,
"text": "This is a quick look at Facebook’s Prophet machine learning package using the example of Bitcoin. It assumes basic Python knowledge and some familiarity with pandas."
},
{
"code": null,
"e": 590,
"s": 338,
"text": "Prophet is Facebook’... |
How to compare field values in MongoDB? | You can use $where operator to compare field values in MongoDB. Let us first create a collection with documents
> db.comparingFieldDemo.insertOne({"Value1":30,"Value2":40});
{
"acknowledged" : true,
"insertedId" : ObjectId("5c9c99ed2d6669774125246e")
}
> db.comparingFieldDemo.insertOne({"Value1":60,"Value2":70});... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "You can use $where operator to compare field values in MongoDB. Let us first create a collection with documents"
},
{
"code": null,
"e": 1766,
"s": 1174,
"text": "> db.comparingFieldDemo.insertOne({\"Value1\":30,\"Value2\":40});\n{\n... |
Multiples of 3 or 7 in C++ | Given a number n, we need to find the count of multiples of 3 or 7 till n. Let's see an example.
Input
100
Output
43
There are total of 43 multiples of 3 or 7 till 100.
Initialise the number n.
Initialise the number n.
Initialise the count to 0.
Initialise the count to 0.
Write a loop that iterates from 3 to n.Incremen... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Given a number n, we need to find the count of multiples of 3 or 7 till n. Let's see an example."
},
{
"code": null,
"e": 1165,
"s": 1159,
"text": "Input"
},
{
"code": null,
"e": 1169,
"s": 1165,
"text": "100"
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.