title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
HTML | title Attribute | 17 Mar, 2022
The title attribute is used to specify extra information about the element. When the mouse moves over the element then it shows the information. Supported Tags: It supports all HTML elements.
Syntax:
<element title = "text">
Attribute Value: This attribute contains single value text which is used as the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "The title attribute is used to specify extra information about the element. When the mouse moves over the element then it shows the information. Supported Tags: It supports al... |
How to print the Fibonacci Sequence using Python? | Fibonacci series contains numbers where each number is sum of previous two numbers. This type of series is generated using looping statement.
x=0
y=1
fibo=0
while fibo<10:
fibo=fibo+1
z=x+y
print (z)
x,y=y,z
Above program print 10 numbers in Fibonacci series
1
2
3
5
8
13
21
34
55
89 | [
{
"code": null,
"e": 1329,
"s": 1187,
"text": "Fibonacci series contains numbers where each number is sum of previous two numbers. This type of series is generated using looping statement."
},
{
"code": null,
"e": 1411,
"s": 1329,
"text": "x=0\ny=1\nfibo=0\nwhile fibo<10:\n fi... |
Node.js Securing Apps with Helmet.js | 08 Oct, 2021
Helmet.js is a Node.js module that helps in securing HTTP headers. It is implemented in express applications. Therefore, we can say that helmet.js helps in securing express applications. It sets up various HTTP headers to prevent attacks like Cross-Site-Scripting(XSS), clickjacking, etc.
Why security of HT... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "Helmet.js is a Node.js module that helps in securing HTTP headers. It is implemented in express applications. Therefore, we can say that helmet.js helps in securing express ap... |
HTML | DOM Input Email pattern Property | 16 Oct, 2019
The Input Email pattern property in HTML DOM is used to set or return the pattern attribute of an email field. It is used to specify the regular expression on which the input elements value is checked against. Use the Global title attribute to describe the pattern for helping the user.
Syntax:
It returns t... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Oct, 2019"
},
{
"code": null,
"e": 340,
"s": 53,
"text": "The Input Email pattern property in HTML DOM is used to set or return the pattern attribute of an email field. It is used to specify the regular expression on which the input... |
Parsing and Syntax directed translation - GeeksforGeeks | 21 Jan, 2014
S->aB
B->bC
C->cd
S -> aB ( Reduction 3 )
-> abC ( Reduction 2 )
-> abcd ( Reduction 1 )
S->abA
A-> cd
S -> abA ( Reduction 2 )
-> abcd ( Reduction 1 )
X -> c.X, c/d
X -> .cX, c/d
X -> .d, c/d
X -> c.X, $
X -> .cX, $
X -> .d, $
Cannot be merged since look aheads are different.Can be merged ... | [
{
"code": null,
"e": 27185,
"s": 27157,
"text": "\n21 Jan, 2014"
},
{
"code": null,
"e": 27204,
"s": 27185,
"text": "S->aB\nB->bC\nC->cd "
},
{
"code": null,
"e": 27275,
"s": 27204,
"text": "S -> aB ( Reduction 3 )\n-> abC ( Reduction 2 )\n-> abcd ( Reduction ... |
Minimum cost to construct a string | 08 Feb, 2022
Given a string s (containing lowercase letters only), we have to find the minimum cost to construct the given string. The cost can be determined using the following operations: 1. Appending a single character cost 1 unit 2. A sub-string of a new string(intermediate string) can be appended without any costN... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 425,
"s": 52,
"text": "Given a string s (containing lowercase letters only), we have to find the minimum cost to construct the given string. The cost can be determined using the following operation... |
Align flex items in the end on different screen sizes in Bootstrap | Use the .justify-content-*-end class to align flex items in the end on different screen sizes like this −
For small screen size, use −
justify-content-sm-end
For medium screen size, use −
justify-content-md-end
For large screen size, use −
justify-content-lg-end
Let us see how to align flex items horizontally on small,... | [
{
"code": null,
"e": 1293,
"s": 1187,
"text": "Use the .justify-content-*-end class to align flex items in the end on different screen sizes like this −"
},
{
"code": null,
"e": 1322,
"s": 1293,
"text": "For small screen size, use −"
},
{
"code": null,
"e": 1345,
... |
Simulating final Class in C++ | 17 Nov, 2021
Ever wondered how can you design a class in C++ which can’t be inherited. Java and C# programming languages have this feature built-in. You can use final keyword in java, sealed in C# to make a class non-extendable.
Below is a mechanism using which we can achieve the same behavior in C++. It makes use of a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 268,
"s": 52,
"text": "Ever wondered how can you design a class in C++ which can’t be inherited. Java and C# programming languages have this feature built-in. You can use final keyword in java, sea... |
Randomly select elements from list without repetition in Python | 29 Aug, 2020
Python’s built-in module in random module is used to work with random data. The random module provides various methods to select elements randomly from a list, tuple, set, string or a dictionary without any repetition. Below are some approaches which depict a random selection of elements from a list withou... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 352,
"s": 28,
"text": "Python’s built-in module in random module is used to work with random data. The random module provides various methods to select elements randomly from a list, tuple, set, str... |
Create a watchdog in Python to look for filesystem changes | 06 Dec, 2019
Many times a file is needed to be processed at the time of its creation or its modification. This can be done by following changes in a particular directory. There are many ways in python to follow changes made in a directory. One such way is to use the watchdog module. As the name suggests this module obs... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 409,
"s": 28,
"text": "Many times a file is needed to be processed at the time of its creation or its modification. This can be done by following changes in a particular directory. There are many wa... |
Scala List splitAt() method with example | 13 Aug, 2019
The splitAt() method belongs to the value member of the class List. It is utilized to split the given list into a prefix/suffix pair at a stated position.
Method Definition: def splitAt(n: Int): (List[A], List[A])
Where, n is the position at which we need to split.
Return Type: It returns a pair of lists c... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 183,
"s": 28,
"text": "The splitAt() method belongs to the value member of the class List. It is utilized to split the given list into a prefix/suffix pair at a stated position."
},
{
"code"... |
Package Management in Julia | 25 Aug, 2020
Package in Julia is a project which provides reusable functionality that can be used by other Julia projects via import X or using X. Julia uses Git as a repository for itself and for its package and that the installation has a built-in package manager called pkg.jl. It allows multiple registries managed b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Aug, 2020"
},
{
"code": null,
"e": 505,
"s": 28,
"text": "Package in Julia is a project which provides reusable functionality that can be used by other Julia projects via import X or using X. Julia uses Git as a repository for itself... |
MongoDB – Current Date Operator ($currentDate) | 10 May, 2020
MongoDB provides different types of field update operators to update the values of the fields of the documents and $currentDate operator is one of them. This operator is used to set the value of a field to the current date (either as a timestamp or as a Date).
The default type of $currentDate operator is a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 289,
"s": 28,
"text": "MongoDB provides different types of field update operators to update the values of the fields of the documents and $currentDate operator is one of them. This operator is used ... |
Multiply a number by 15 without using * and / operators | 15 Dec, 2021
Given a integer N, the task is to multiply the number with 15 without using multiplication * and division / operators.
Examples:
Input: N = 10 Output: 150
Input: N = 7 Output: 105
Method 1: We can multiply integer N by 15 using bitwise operators. First left shift the number by 4 bits which is equal to (16... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 172,
"s": 53,
"text": "Given a integer N, the task is to multiply the number with 15 without using multiplication * and division / operators."
},
{
"code": null,
"e": 182,
"s": 172,... |
Tips to Improve the Performance of Python Application | 08 Jul, 2021
Python...We all know the popularity of this language. Python is a powerful higher-order programming language. In today’s tech world, it’s almost everywhere. Whether you’re building a web application or working with machine learning, this language has become the first choice for developers. When it comes to... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2021"
},
{
"code": null,
"e": 501,
"s": 54,
"text": "Python...We all know the popularity of this language. Python is a powerful higher-order programming language. In today’s tech world, it’s almost everywhere. Whether you’re bu... |
Python | Pandas DataFrame.abs() | 09 Mar, 2022
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.dataframe.abs() is one of the simplest pandas dataframe function. It returns an object with ab... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 597,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
PHP | print_r() Function | 26 Apr, 2018
The print_r() function is a built-in function in PHP and is used to print or display information stored in a variable.
Syntax:
print_r( $variable, $isStore )
Parameters: This function accepts two parameters as shown in above syntax and described below.
$variable: This parameter specifies the variable to be... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Apr, 2018"
},
{
"code": null,
"e": 171,
"s": 52,
"text": "The print_r() function is a built-in function in PHP and is used to print or display information stored in a variable."
},
{
"code": null,
"e": 179,
"s": 171,... |
GATE | GATE-CS-2014-(Set-1) | Question 65 | 28 Jun, 2021
Consider a hash table with 9 slots. The hash function is h(k) = k mod 9. The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19, 15, 20, 33, 12, 17, 10. The maximum, minimum, and average chain lengths in the hash table, respectively, are
(A) 3, 0, and 1(B) 3, 3, ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 336,
"s": 54,
"text": "Consider a hash table with 9 slots. The hash function is h(k) = k mod 9. The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19, 1... |
Set all the bits in given range of a number | 27 May, 2022
Given a non-negative number n and two values l and r. The problem is to set the bits in the range l to r in the binary representation of n, i.e, to unset bits from the rightmost lth bit to the rightmost r-th bit. Constraint: 1 <= l <= r <= number of bits in the binary representation of n.Examples :
Input... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 354,
"s": 52,
"text": "Given a non-negative number n and two values l and r. The problem is to set the bits in the range l to r in the binary representation of n, i.e, to unset bits from the rightm... |
Sum of all odd frequency elements in an array | 16 Nov, 2021
Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That is the sum of all such elements whose frequency is odd in the array.
Examples:
Input : arr[] = {1, 1, 2, 2, 3, 3, 3}
Output : 9
The odd occurring element is 3, and i... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 263,
"s": 53,
"text": "Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That is the sum of all such elements w... |
Java Program to Illustrate the Availability of Default Constructor of the Super Class to the Sub Class by Default | 11 Jan, 2022
A constructor in Java is a special method that is used to initialize an object. Whenever an object is created using the new() keyword at least one construction is called. The constructor name must match with the class name and cannot have a return type. If there is no constructor available in the class in ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 456,
"s": 54,
"text": "A constructor in Java is a special method that is used to initialize an object. Whenever an object is created using the new() keyword at least one construction is called. The... |
How to check the given element has the specified class in JavaScript ? | 06 Apr, 2021
Sometimes we need to check the element has the class name ‘X’ ( Any specific name ). To check if the element contains a specific class name, we can use the contains method of the classList object.
element.classList.contains("class-name")
It returns a Boolean value. If the element contains the class name it... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 225,
"s": 28,
"text": "Sometimes we need to check the element has the class name ‘X’ ( Any specific name ). To check if the element contains a specific class name, we can use the contains method of ... |
Python program to print all Prime numbers in an Interval | 22 Mar, 2022
Given two positive integers start and end. The task is to write a Python program to print all Prime numbers in an Interval.
Definition: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are {2, 3, 5, 7, 11, ....}.
The idea t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Mar, 2022"
},
{
"code": null,
"e": 176,
"s": 52,
"text": "Given two positive integers start and end. The task is to write a Python program to print all Prime numbers in an Interval."
},
{
"code": null,
"e": 349,
"s":... |
Setting up a simple HTTP server using Python | 02 Sep, 2020
In this article, we are going to learn how to set up a simple and local HTTP server using Python. An HTTP server can be very useful for testing Android, PC or Web apps locally during development. It can also be used to share files between two devices connected over the same LAN or WLAN network.
On the term... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 324,
"s": 28,
"text": "In this article, we are going to learn how to set up a simple and local HTTP server using Python. An HTTP server can be very useful for testing Android, PC or Web apps locally... |
Cvent Interview Experience for Software Engineer FTE (On-Campus) - GeeksforGeeks | 14 Oct, 2020
Cvent visited our college on 19 September 2020. It was a virtual campus drive. There was a total of 5 rounds in the whole process.
First-round (Aptitude + Technical): There were a total of 30 questions to be done in 45 minutes which were from different topics like SQL, C++ outputs, and basics. If you know ... | [
{
"code": null,
"e": 25215,
"s": 25187,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 25346,
"s": 25215,
"text": "Cvent visited our college on 19 September 2020. It was a virtual campus drive. There was a total of 5 rounds in the whole process."
},
{
"code": null,
... |
How do I change the range of the X-axis with datetimes in Matplotlib? | To change the range of the X-axis with datetimes in matplotlib, we can take the following steps −
Create a list of x and y, where x stores the datetime and y stores the number.
Create a list of x and y, where x stores the datetime and y stores the number.
Using subplots method, create a figure and add a set of subplots... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "To change the range of the X-axis with datetimes in matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1239,
"s": 1160,
"text": "Create a list of x and y, where x stores the datetime and y stores the number."
},... |
MySQL query to set my auto increment column ( id ) to zero or reset the value of auto increment field? | Use ALTER table to set the auto_increment column to 0 or reset with another value
ALTER TABLE yourTableName AUTO_INCREMENT=0;
The above syntax will begin from 1.
Let us first create a table −
mysql> create table DemoTable698 (
ClientId int NOT NULL AUTO_INCREMENT PRIMARY KEY
) auto_increment=109;
Query OK, 0 rows af... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "Use ALTER table to set the auto_increment column to 0 or reset with another value"
},
{
"code": null,
"e": 1188,
"s": 1144,
"text": "ALTER TABLE yourTableName AUTO_INCREMENT=0;"
},
{
"code": null,
"e": 1224,
"s": 1188... |
Google Charts - Organization Chart | Organization chart helps in rendering a hierarchy of nodes, used to portray superior/subordinate relationships in an organization. For example, A family tree is a type of org chart.. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete ex... | [
{
"code": null,
"e": 2588,
"s": 2261,
"text": "Organization chart helps in rendering a hierarchy of nodes, used to portray superior/subordinate relationships in an organization. For example, A family tree is a type of org chart.. We've already seen the configuration used to draw this chart in Google... |
Angular 2 - Binding User Input | The user can input the text or display the text value when you click on it by using the Angular event binding syntax.
The below example describes use of binding to user input in the Angular 2:
<!DOCTYPE html>
<html>
<head>
<title>Angular 2 User Input</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs... | [
{
"code": null,
"e": 2415,
"s": 2297,
"text": "The user can input the text or display the text value when you click on it by using the Angular event binding syntax."
},
{
"code": null,
"e": 2490,
"s": 2415,
"text": "The below example describes use of binding to user input in the ... |
HTML5 check if audio is playing | Use the following to check if audio is playing −
functionisPlaying(audelem) {
return!audelem.paused;
}
The above code can be used to check ifaudio is playing or not. The audio tag has a paused property.The paused property returns whether the audio/video is paused.
You can also toggle −
functiontogglePause() {
if(... | [
{
"code": null,
"e": 1111,
"s": 1062,
"text": "Use the following to check if audio is playing −"
},
{
"code": null,
"e": 1168,
"s": 1111,
"text": "functionisPlaying(audelem) {\n return!audelem.paused;\n}"
},
{
"code": null,
"e": 1330,
"s": 1168,
"text": "The... |
Eigenvector Centrality (Centrality Measure) - GeeksforGeeks | 12 Feb, 2018
In graph theory, eigenvector centrality (also called eigencentrality) is a measure of the influence of a node in a network. It assigns relative scores to all nodes in the network based on the concept that connections to high-scoring nodes contribute more to the score of the node in question than equal conn... | [
{
"code": null,
"e": 24639,
"s": 24611,
"text": "\n12 Feb, 2018"
},
{
"code": null,
"e": 24976,
"s": 24639,
"text": "In graph theory, eigenvector centrality (also called eigencentrality) is a measure of the influence of a node in a network. It assigns relative scores to all nodes... |
Angular7 - Environment Setup | In this chapter, we will discuss the Environment Setup required for Angular 7. To install Angular 7, we require the following −
Nodejs
Npm
Angular CLI
IDE for writing your code
To check if nodejs is installed on your system, type node -v in the terminal. This will help you see the version of nodejs currently installed ... | [
{
"code": null,
"e": 2189,
"s": 2061,
"text": "In this chapter, we will discuss the Environment Setup required for Angular 7. To install Angular 7, we require the following −"
},
{
"code": null,
"e": 2196,
"s": 2189,
"text": "Nodejs"
},
{
"code": null,
"e": 2200,
... |
JavaFX example to create area chart with multiple series | The area chart accepts a series of data points (x, y) as input values, connects them using a line, and maps the area between the obtained line and the axis. In JavaFX you can create an area chart by instantiating the javafx.scene.chart.AreaChart class.
While instantiating this class you must pass the two objects of the... | [
{
"code": null,
"e": 1315,
"s": 1062,
"text": "The area chart accepts a series of data points (x, y) as input values, connects them using a line, and maps the area between the obtained line and the axis. In JavaFX you can create an area chart by instantiating the javafx.scene.chart.AreaChart class."... |
Create Multiple Buttons in Matplotlib - GeeksforGeeks | 15 Mar, 2021
We all very well know that Python offers us a very beautiful library named Matplotlib that has the support of numerous methods using which we can plot graphs and visualize our data. Many a time, we all want our plots to look appealing and become interactive at the same time. For that purpose, buttons can b... | [
{
"code": null,
"e": 23989,
"s": 23961,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 24409,
"s": 23989,
"text": "We all very well know that Python offers us a very beautiful library named Matplotlib that has the support of numerous methods using which we can plot graphs and v... |
Making a flawless ML env. with Tensorflow 2 and CUDA 10.1 on Ubuntu 20.04 with dual boot 2021 | by Tajinder Singh Sondhi | Towards Data Science | As simple as I hoped it to be, after searching through various articles on the internet... it turned out it was not. Especially if your PC is dual boot with Windows 10.
So after nights of struggles, seeing red errors and hearing installation failure beeps... I made it! And here’s the summary of my path to success!
Step... | [
{
"code": null,
"e": 341,
"s": 172,
"text": "As simple as I hoped it to be, after searching through various articles on the internet... it turned out it was not. Especially if your PC is dual boot with Windows 10."
},
{
"code": null,
"e": 488,
"s": 341,
"text": "So after nights o... |
Get page title with Selenium WebDriver using Java. | We can get the page title with Selenium webdriver. The method getTitle() is used to obtain the present page title and then we can get the result in the console.
t = driver.getTitle();
Let us find the title of the current page. We shall get About Careers at Tutorials Point – Tutorialspoint as output.
import org.openqa.s... | [
{
"code": null,
"e": 1223,
"s": 1062,
"text": "We can get the page title with Selenium webdriver. The method getTitle() is used to obtain the present page title and then we can get the result in the console."
},
{
"code": null,
"e": 1246,
"s": 1223,
"text": "t = driver.getTitle()... |
Restricted Boltzmann Machine for movie review | Towards Data Science | This is Part 1 of how to build a Restricted Boltzmann Machine (RBM) as a recommendation system. Here the focus is on data processing.
What you will learn is how to transform raw movie rating data into data ready to train the RBM model. It is split into 3 parts.
RBM introductionProblem statementData processing
RBM intro... | [
{
"code": null,
"e": 306,
"s": 172,
"text": "This is Part 1 of how to build a Restricted Boltzmann Machine (RBM) as a recommendation system. Here the focus is on data processing."
},
{
"code": null,
"e": 434,
"s": 306,
"text": "What you will learn is how to transform raw movie ra... |
Python Program For Recursive Selection Sort For Singly Linked List - Swapping Node Links - GeeksforGeeks | 30 Mar, 2022
Given a singly linked list containing n nodes. The problem is to sort the list using the recursive selection sort technique. The approach should be such that it involves swapping node links instead of swapping node data.
Examples:
Input: 10 -> 12 -> 8 -> 4 -> 6
Output: 4 -> 6 -> 8 -> 10 -> 12
In Select... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 26402,
"s": 26179,
"text": "Given a singly linked list containing n nodes. The problem is to sort the list using the recursive selection sort technique. The approach should be such that it in... |
Midori and chocolates | Practice | GeeksforGeeks | Midori like chocolates and he loves to try different ones. There are N shops in a market labelled from 1 to N and each shop offers a different variety of chocolate. Midori starts from ith shop and goes ahead to each and every shop. But as there are too many shops Midori would like to know how many more shops he has to ... | [
{
"code": null,
"e": 697,
"s": 226,
"text": "Midori like chocolates and he loves to try different ones. There are N shops in a market labelled from 1 to N and each shop offers a different variety of chocolate. Midori starts from ith shop and goes ahead to each and every shop. But as there are too ma... |
Display form values after clicking Submit button using event.preventdefault() - jQuery? | For this, use document.getElementById(“”) along with addEventListener().
Following is the code −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<link rel="stylesheet" href="//code.j... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "For this, use document.getElementById(“”) along with addEventListener()."
},
{
"code": null,
"e": 1159,
"s": 1135,
"text": "Following is the code −"
},
{
"code": null,
"e": 1170,
"s": 1159,
"text": " Live Demo"
... |
Referencing Subclass objects with Subclass vs Superclass reference | In java inheritance some of the basic rules includes −
Object relation of Superclass (parent) to Subclass (child) exists while child to parent object relation never exists.This means that reference of parent class could hold the child object while child reference could not hold the parent object.
Object relation of Sup... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "In java inheritance some of the basic rules includes −"
},
{
"code": null,
"e": 1360,
"s": 1117,
"text": "Object relation of Superclass (parent) to Subclass (child) exists while child to parent object relation never exists.This means... |
GETPIVOTDATA Function | The GETPIVOTDATA function returns data stored in a PivotTable report. You can use it to retrieve summary data from a PivotTable report, provided the summary data is visible in the report.
You can quickly enter a simple GETPIVOTDATA formula by typing = (the equal sign) in the cell you want to return the value to and the... | [
{
"code": null,
"e": 2042,
"s": 1854,
"text": "The GETPIVOTDATA function returns data stored in a PivotTable report. You can use it to retrieve summary data from a PivotTable report, provided the summary data is visible in the report."
},
{
"code": null,
"e": 2343,
"s": 2042,
"te... |
How to convert the correlation matrix into a data frame with combination of variables and their correlations in R? | The cor function in R helps us to find the correlation matrix from a data frame or a matrix but the output of it always a matrix as intended. We might want to convert that matrix into a data frame which consists of all combination of variables with their correlation value. It can be done by reading the correlation matr... | [
{
"code": null,
"e": 1463,
"s": 1062,
"text": "The cor function in R helps us to find the correlation matrix from a data frame or a matrix but the output of it always a matrix as intended. We might want to convert that matrix into a data frame which consists of all combination of variables with thei... |
How to get a working vertical seekBar in Android? | This example demonstrates how do I get a working vertical seekBar in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Relative... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "This example demonstrates how do I get a working vertical seekBar in android."
},
{
"code": null,
"e": 1269,
"s": 1140,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ... |
How to change format of dates in a table column with a MySQL query? | To change format of dates, use the DATE_FORMAT() function. Let us first create a table −
mysql> create table DemoTable1906
(
DueTime datetime
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1906 values(now());
Query OK, 1 row affected ... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "To change format of dates, use the DATE_FORMAT() function. Let us first create a table −"
},
{
"code": null,
"e": 1253,
"s": 1151,
"text": "mysql> create table DemoTable1906\n (\n DueTime datetime\n );\nQuery OK, 0 rows affecte... |
Design Patterns - Composite Pattern | Composite pattern is used where we need to treat a group of objects in similar way as a single object. Composite pattern composes objects in term of a tree structure to represent part as well as whole hierarchy. This type of design pattern comes under structural pattern as this pattern creates a tree structure of group... | [
{
"code": null,
"e": 3084,
"s": 2751,
"text": "Composite pattern is used where we need to treat a group of objects in similar way as a single object. Composite pattern composes objects in term of a tree structure to represent part as well as whole hierarchy. This type of design pattern comes under s... |
PyQt5 – Change the text font and size in Push button - GeeksforGeeks | 23 Jul, 2021
In this article we will see how to change the text style or size of Push Button.QPushButton is a simple button in PyQt, when clicked by a user some associated action gets performed. For adding this button into the application, QPushButton class is used.In order to set font we will use setFont method which ... | [
{
"code": null,
"e": 24968,
"s": 24940,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 25308,
"s": 24968,
"text": "In this article we will see how to change the text style or size of Push Button.QPushButton is a simple button in PyQt, when clicked by a user some associated acti... |
Count unset bits of a number - GeeksforGeeks | 29 Apr, 2021
Given a number n, count unset bits after MSB (Most Significant Bit).Examples :
Input : 17
Output : 3
Binary of 17 is 10001
so unset bit is 3
Input : 7
Output : 0
A Simple Solution is to traverse through all bits and count unset bits.
C++
Java
Python3
C#
PHP
Javascript
// C++ program to count unset b... | [
{
"code": null,
"e": 25302,
"s": 25274,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 25383,
"s": 25302,
"text": "Given a number n, count unset bits after MSB (Most Significant Bit).Examples : "
},
{
"code": null,
"e": 25467,
"s": 25383,
"text": "Input : 1... |
ASP.NET - Ajax Control | AJAX stands for Asynchronous JavaScript and XML. This is a cross platform technology which speeds up response time. The AJAX server controls add script to the page which is executed and processed by the browser.
However like other ASP.NET server controls, these AJAX server controls also can have methods and event handl... | [
{
"code": null,
"e": 2559,
"s": 2347,
"text": "AJAX stands for Asynchronous JavaScript and XML. This is a cross platform technology which speeds up response time. The AJAX server controls add script to the page which is executed and processed by the browser."
},
{
"code": null,
"e": 2733... |
Swing Examples - Adding horizontal scrollbar | Following example showcase how to show a Scroll Pane with a horizontal bar always on a Panel in a Java Swing application.
We are using the following APIs.
JScrollPane(Component view) − To create a scrollPane on a component.
JScrollPane(Component view) − To create a scrollPane on a component.
JScrollPane.setHorizontalSc... | [
{
"code": null,
"e": 2161,
"s": 2039,
"text": "Following example showcase how to show a Scroll Pane with a horizontal bar always on a Panel in a Java Swing application."
},
{
"code": null,
"e": 2194,
"s": 2161,
"text": "We are using the following APIs."
},
{
"code": null,... |
Adding YouTube videos on an HTML web page | Videos can be easily from YouTuvbe to your web page. You need to just embed the videos.
At first, get the Video id −
Step1: Go to the Video and right click on it. Select “Stats for nerds” −
On clicking, you will get the following dialog box displaying the stats −
Above you can see the video id is F6m0ghjadlw. Now, we w... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "Videos can be easily from YouTuvbe to your web page. You need to just embed the videos."
},
{
"code": null,
"e": 1179,
"s": 1150,
"text": "At first, get the Video id −"
},
{
"code": null,
"e": 1252,
"s": 1179,
"te... |
A quick tutorial to AWS Transcribe with Python | by Viet Hoang Tran Duong | Towards Data Science | This past summer, I was working on some products that involve Speech-to-text mechanisms, and I think it’s best to use existed APIs for these purposes. For this post, I want to share my little experience working with these APIs with those who want to try out these wonderful technologies. Hope you guys find it helpful :)... | [
{
"code": null,
"e": 493,
"s": 172,
"text": "This past summer, I was working on some products that involve Speech-to-text mechanisms, and I think it’s best to use existed APIs for these purposes. For this post, I want to share my little experience working with these APIs with those who want to try o... |
Count all k-sum paths in a Binary Tree - GeeksforGeeks | 29 Jun, 2021
Given a binary tree and an integer k. The task is to count the number of paths in the tree with the sum of the nodes equals to k. A path can start from any node and end at any node and must be downward only, i.e. they need not be root node and leaf node, and negative numbers can also be there in the tree.
... | [
{
"code": null,
"e": 24940,
"s": 24912,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 25247,
"s": 24940,
"text": "Given a binary tree and an integer k. The task is to count the number of paths in the tree with the sum of the nodes equals to k. A path can start from any node an... |
C# | Random.NextDouble() Method - GeeksforGeeks | 01 May, 2019
The NextDouble() Method of System.Random class in C# is used to return a random floating-point number which is greater than or equal to 0.0, and less than 1.0.
Syntax:
public virtual double NextDouble();
Return Value: This method returns a double-precision floating point number which is greater than or equ... | [
{
"code": null,
"e": 24141,
"s": 24113,
"text": "\n01 May, 2019"
},
{
"code": null,
"e": 24301,
"s": 24141,
"text": "The NextDouble() Method of System.Random class in C# is used to return a random floating-point number which is greater than or equal to 0.0, and less than 1.0."
... |
GATE | GATE-CS-2004 | Question 35 - GeeksforGeeks | 28 Jun, 2021
Consider the label sequences obtained by the following pairs of traversals on a labeled binary tree. Which of these pairs identify a tree uniquely ?
(i) preorder and postorder
(ii) inorder and postorder
(iii) preorder and inorder
(iv) level order and postorder
(A) (i) only(B) (ii), (iii)(C) (iii... | [
{
"code": null,
"e": 24514,
"s": 24486,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24663,
"s": 24514,
"text": "Consider the label sequences obtained by the following pairs of traversals on a labeled binary tree. Which of these pairs identify a tree uniquely ?"
},
{
... |
Check if a field contains a string in MongoDB? | You can use $regex operator to check if a field contains a string in MongoDB. The syntax is as follows −
db.yourCollectionName.findOne({"yourFieldName":{$regex:".*yourValue.*"}});
To understand the above concept, let us create a collection with the document. The query to create a collection with a document is as follow... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "You can use $regex operator to check if a field contains a string in MongoDB. The syntax is as follows −"
},
{
"code": null,
"e": 1242,
"s": 1167,
"text": "db.yourCollectionName.findOne({\"yourFieldName\":{$regex:\".*yourValue.*\"}})... |
More Pattern Matching in Python 3.10 | by Alan Jones | Towards Data Science | Python has, at long last, got itself a switch statement. Hooray!
But it’s not your common or garden switch statement as you would find in C or Java — of course not, this is Python. Python 3.10 implements Structural Pattern Matching which can be as simple as a switch statement but can also be rather more.
I covered the ... | [
{
"code": null,
"e": 237,
"s": 172,
"text": "Python has, at long last, got itself a switch statement. Hooray!"
},
{
"code": null,
"e": 478,
"s": 237,
"text": "But it’s not your common or garden switch statement as you would find in C or Java — of course not, this is Python. Pytho... |
How to Generate a CSR (Certificate Signing Request) in Linux? - GeeksforGeeks | 11 Feb, 2021
Certificate Signing Request(CSR) is a block encrypted text which is given to Certificate Authority when applying for SSL Certificate. Generation of Certificate Signing Request(CSR) for Secure Sockets Layer(SSL) is common in Linux on various distributions. CSR is generated on the server, it stores informati... | [
{
"code": null,
"e": 24561,
"s": 24533,
"text": "\n11 Feb, 2021"
},
{
"code": null,
"e": 25301,
"s": 24561,
"text": "Certificate Signing Request(CSR) is a block encrypted text which is given to Certificate Authority when applying for SSL Certificate. Generation of Certificate Sig... |
How to Detect Seasonality, Outliers, and Changepoints in Your Time Series | by Khuyen Tran | Towards Data Science | Have you ever looked at a time series and wonder if there are any repetitive patterns, outliers, or change points in it?
I asked the same questions when looking at the daily number of users viewing my page from January to August 2021.
When looking at the graph above, I wonder:
Is there a shift in the mean number of vie... | [
{
"code": null,
"e": 292,
"s": 171,
"text": "Have you ever looked at a time series and wonder if there are any repetitive patterns, outliers, or change points in it?"
},
{
"code": null,
"e": 406,
"s": 292,
"text": "I asked the same questions when looking at the daily number of us... |
Remove all duplicates from a given string | Practice | GeeksforGeeks | Given a string Str which may contains lowercase and uppercase chracters. The task is to remove all duplicate characters from the string and find the resultant string. The order of remaining characters in the output should be same as in the original string.
Example 1:
Input:
Str = geeksforgeeks
Output: geksfor
Explanati... | [
{
"code": null,
"e": 483,
"s": 226,
"text": "Given a string Str which may contains lowercase and uppercase chracters. The task is to remove all duplicate characters from the string and find the resultant string. The order of remaining characters in the output should be same as in the original string... |
What are the various JSON files available in C# ASP.NET Core? | ASP.net Core is re-architected from prior versions of ASP.net,where the configuration
was relying on System.Configuration and xml configurations in web.config file.
In ASP.net Core, a new easy way to declare and access the global settings for
solution, project specific settings,client specific settings etc..The new con... | [
{
"code": null,
"e": 1435,
"s": 1062,
"text": "ASP.net Core is re-architected from prior versions of ASP.net,where the configuration\nwas relying on System.Configuration and xml configurations in web.config file.\nIn ASP.net Core, a new easy way to declare and access the global settings for\nsolutio... |
Linear Regression from Scratch with Tensorflow 2 | by Cedric Conol | Towards Data Science | Linear regression is one of the most basic and perhaps one of most commonly used machine learning algorithm that beginners and experts alike should know by heart. In this article I will walk you through how to implement linear regression using only Tensorflow. The discussion will be divided into two parts, the first pa... | [
{
"code": null,
"e": 625,
"s": 172,
"text": "Linear regression is one of the most basic and perhaps one of most commonly used machine learning algorithm that beginners and experts alike should know by heart. In this article I will walk you through how to implement linear regression using only Tensor... |
Decrypting complex SQL. An effective approach to analyse and... | by Maw Ferrari | Towards Data Science | In this story I want to share a possible way to tackle the tricky understanding of complex (or complicated) SQL queries. When we need to handle some existing SQL code, maybe non-documented, poorly written, or uses SQL versions that we don’t master just yet, it can be frustrating to deal with it.
Whatever thing we need ... | [
{
"code": null,
"e": 468,
"s": 171,
"text": "In this story I want to share a possible way to tackle the tricky understanding of complex (or complicated) SQL queries. When we need to handle some existing SQL code, maybe non-documented, poorly written, or uses SQL versions that we don’t master just ye... |
Implementation of DFS using C language | Depth First Search (DFS) is an algorithm which traverses a graph and visits all nodes before coming back it can determine. Also, it determines whether a path exist between two nodes.
It searches a graph or tree in depth-wise manner.
Given below is an algorithm for the implementation of the Depth First Search (DFS) −
St... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "Depth First Search (DFS) is an algorithm which traverses a graph and visits all nodes before coming back it can determine. Also, it determines whether a path exist between two nodes."
},
{
"code": null,
"e": 1295,
"s": 1245,
"text": ... |
Ruby - Arrays | Ruby arrays are ordered, integer-indexed collections of any object. Each element in an array is associated with and referred to by an index.
Array indexing starts at 0, as in C or Java. A negative index is assumed relative to the end of the array --- that is, an index of -1 indicates the last element of the array, -2 i... | [
{
"code": null,
"e": 2435,
"s": 2294,
"text": "Ruby arrays are ordered, integer-indexed collections of any object. Each element in an array is associated with and referred to by an index."
},
{
"code": null,
"e": 2666,
"s": 2435,
"text": "Array indexing starts at 0, as in C or Ja... |
java.time.LocalDate.until() Method Example | The java.time.LocalDate.until(Temporal endExclusive, TemporalUnit unit) method calculates the amount of time until another date in terms of the specified unit.
Following is the declaration for java.time.LocalDate.until(Temporal endExclusive, TemporalUnit unit) method.
public long until(Temporal endExclusive, TemporalUn... | [
{
"code": null,
"e": 2075,
"s": 1915,
"text": "The java.time.LocalDate.until(Temporal endExclusive, TemporalUnit unit) method calculates the amount of time until another date in terms of the specified unit."
},
{
"code": null,
"e": 2184,
"s": 2075,
"text": "Following is the decla... |
What is Statement in JDBC? | The Statement interface represents the static SQL statement, it is used to create and execute general purpose SQL statements using Java programs.
You can create an object of this interface using the createStatement() method of the connection interface. Create a statement by invoking this method as shown below.
Statemen... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "The Statement interface represents the static SQL statement, it is used to create and execute general purpose SQL statements using Java programs."
},
{
"code": null,
"e": 1374,
"s": 1208,
"text": "You can create an object of this int... |
Python Pandas – Find the Difference between two Dataframes | To find the difference between two DataFrame, you need to check for its equality. Also, check the equality of columns.
Let us create DataFrame1 with two columns −
dataFrame1 = pd.DataFrame(
{
"Car": ['BMW', 'Lexus', 'Audi', 'Mustang', 'Bentley', 'Jaguar'],
"Units": [100, 150, 110, 80, 110, 90] }
)
Create... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "To find the difference between two DataFrame, you need to check for its equality. Also, check the equality of columns."
},
{
"code": null,
"e": 1225,
"s": 1181,
"text": "Let us create DataFrame1 with two columns −"
},
{
"code... |
How to Use Confusion Matrix For Problem-oriented Model Tuning | Towards Data Science | Master the fundamentals of the confusion matrix using Sklearn and build a practical intuition for 3 of the most common metrics used in binary classification: precision, recall, and F1 score.
Classification is a huge part of machine learning. Its benefits and applications are endless — ranging from detecting new asteroi... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "Master the fundamentals of the confusion matrix using Sklearn and build a practical intuition for 3 of the most common metrics used in binary classification: precision, recall, and F1 score."
},
{
"code": null,
"e": 584,
"s": 363,
"tex... |
How to plot 2D math vectors with Matplotlib? | To plot 2D math vectors with matplotlib, we can take the following steps−
Create vector cordinates using numpy array.
Get x, y, u and v data points.
Create a new figure or activate an existing figure using figure method.
Get the current axis using gca() method.
Set x an y limits of the axes.
To redraw the current figur... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "To plot 2D math vectors with matplotlib, we can take the following steps−"
},
{
"code": null,
"e": 1180,
"s": 1136,
"text": "Create vector cordinates using numpy array."
},
{
"code": null,
"e": 1211,
"s": 1180,
"t... |
PostgreSQL – Insert Data Into a Table using Python | 30 Aug, 2020
In this article we will look into the process of inserting data into a PostgreSQL Table using Python. To do so follow the below steps:
Step 1: Connect to the PostgreSQL database using the connect() method of psycopg2 module.
conn = psycopg2.connect(dsn)
Step 2: Create a new cursor object by making a call... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Aug, 2020"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "In this article we will look into the process of inserting data into a PostgreSQL Table using Python. To do so follow the below steps:"
},
{
"code": null,
"e": 253... |
URL Shorteners and its API in Python | Set-1 | 10 Dec, 2021
URL Shortener, as the name suggests, is a service to help to reduce the length of the URL so that it can be shared easily on platforms like Twitter, where number of characters is an issue. There are so many URL Shorteners available in the market today, that will definitely help you out to solve the purpose... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 858,
"s": 53,
"text": "URL Shortener, as the name suggests, is a service to help to reduce the length of the URL so that it can be shared easily on platforms like Twitter, where number of character... |
Jython - Java Application | Download jython-standalone-2.7.0.jar - For embedding Jython in Java applications from their official downloads page: http://www.jython.org/downloads.html and include this jar file in Java CLASSPATH environment variable.
This library contains the PythonInterpreter class. Using the object of this class, any Python script... | [
{
"code": null,
"e": 2301,
"s": 2081,
"text": "Download jython-standalone-2.7.0.jar - For embedding Jython in Java applications from their official downloads page: http://www.jython.org/downloads.html and include this jar file in Java CLASSPATH environment variable."
},
{
"code": null,
"... |
File Explorer in Python using Tkinter - GeeksforGeeks | 15 Feb, 2021
Prerequisites: Introduction to Tkinter
Python offers various modules to create graphics programs. Out of these Tkinter provides the fastest and easiest way to create GUI applications.
The following steps are involved in creating a tkinter application:
Importing the Tkinter module.
Creation of the main ... | [
{
"code": null,
"e": 24442,
"s": 24414,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 24482,
"s": 24442,
"text": "Prerequisites: Introduction to Tkinter "
},
{
"code": null,
"e": 24628,
"s": 24482,
"text": "Python offers various modules to create graphics p... |
Machine Learning Basics: Support Vector Machine (SVM) Classification | by Gurucharan M K | Towards Data Science | In the previous stories, I had given an explanation of the program for implementation of various Regression models. Also, I had described the implementation of the Logistic Regression and the KNN Classification model. In this article, we shall see the algorithm and the implementation of the SVM Classification with a cr... | [
{
"code": null,
"e": 505,
"s": 172,
"text": "In the previous stories, I had given an explanation of the program for implementation of various Regression models. Also, I had described the implementation of the Logistic Regression and the KNN Classification model. In this article, we shall see the alg... |
Sqoop - Installation | As Sqoop is a sub-project of Hadoop, it can only work on Linux operating system. Follow the steps given below to install Sqoop on your system.
You need to have Java installed on your system before installing Sqoop. Let us verify Java installation using the following command −
$ java –version
If Java is already installe... | [
{
"code": null,
"e": 1930,
"s": 1787,
"text": "As Sqoop is a sub-project of Hadoop, it can only work on Linux operating system. Follow the steps given below to install Sqoop on your system."
},
{
"code": null,
"e": 2064,
"s": 1930,
"text": "You need to have Java installed on your... |
Build Your Own Clustering Based Recommendation Engine in 15 minutes !! | by ASHISH RANA | Towards Data Science | Recommendation engines are one of the most popular application of machine learning techniques in current internet age. These are extensively used in e-commerce websites for recommending similar products and on movie recommender sites. They are responsible for generating various custom tailored news suggestions for us. ... | [
{
"code": null,
"e": 668,
"s": 172,
"text": "Recommendation engines are one of the most popular application of machine learning techniques in current internet age. These are extensively used in e-commerce websites for recommending similar products and on movie recommender sites. They are responsible... |
Minimum moves to reach target on a infinite line | Set 2 - GeeksforGeeks | 08 Apr, 2021
Given a target position on the infinite number line, (-infinity to +infinity). Starting form 0 you have to reach the target by moving as described: In ith move, you can take i steps forward or backward. Find the minimum number of moves required to reach the target.
Examples :
Input : target = 3
Output : 2... | [
{
"code": null,
"e": 24589,
"s": 24561,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 24855,
"s": 24589,
"text": "Given a target position on the infinite number line, (-infinity to +infinity). Starting form 0 you have to reach the target by moving as described: In ith move, yo... |
Check if two strings are anagram of each other using C++ | Let’s Suppose we have given two strings ‘a’ and ‘b. We have to check that the given two strings are anagram of each other or not. Two Strings are said to be anagram of each other if one string contains the same character as another.
For Example
Input-1 −
a= anagram
b= gnarama
Output −
True
Explanation − String ‘gnarama... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "Let’s Suppose we have given two strings ‘a’ and ‘b. We have to check that the given two strings are anagram of each other or not. Two Strings are said to be anagram of each other if one string contains the same character as another."
},
{
"code"... |
Automatic Speech Recognition: Breaking Down Components of Speech | by Kat He | Towards Data Science | OverviewDifficulties in ASR: noise, elocution, ambiguities in language, lack of contextPhysical Properties of Speech: phonemes, graphemesSignal Analysis: audio signals, components of sound, Fourier transformsSpectrograms: Fast Fourier transform (FFT) algorithmMel Frequency Cepstral Coefficients: Mel scale, frequency an... | [
{
"code": null,
"e": 539,
"s": 172,
"text": "OverviewDifficulties in ASR: noise, elocution, ambiguities in language, lack of contextPhysical Properties of Speech: phonemes, graphemesSignal Analysis: audio signals, components of sound, Fourier transformsSpectrograms: Fast Fourier transform (FFT) algo... |
WPF - Command Line | Command line argument is a mechanism where a user can pass a set of parameters or values to a WPF application when it is executed. These arguments are very important to control an application from outside, for example, if you want to open a Word document from the command prompt, then you can use this command “C:\> star... | [
{
"code": null,
"e": 2400,
"s": 2020,
"text": "Command line argument is a mechanism where a user can pass a set of parameters or values to a WPF application when it is executed. These arguments are very important to control an application from outside, for example, if you want to open a Word documen... |
ggplot2 - Bar Plots & Histograms | Bar plots represent the categorical data in rectangular manner. The bars can be plotted vertically and horizontally. The heights or lengths are proportional to the values represented in graphs. The x and y axes of bar plots specify the category which is included in specific data set.
Histogram is a bar graph which repr... | [
{
"code": null,
"e": 2307,
"s": 2022,
"text": "Bar plots represent the categorical data in rectangular manner. The bars can be plotted vertically and horizontally. The heights or lengths are proportional to the values represented in graphs. The x and y axes of bar plots specify the category which is... |
CSV Files for Storage? No Thanks. There’s a Better Option | by Dario Radečić | Towards Data Science | Everyone and their grandmother know what a CSV file is. Parquet, not so much. Is it a type of flooring? Well, yes, but no — it’s a highly efficient data storage format, and you’ll learn all about it today.
CSVs are everywhere — from company reports to machine learning datasets. It’s a data format that’s simple and intu... | [
{
"code": null,
"e": 378,
"s": 172,
"text": "Everyone and their grandmother know what a CSV file is. Parquet, not so much. Is it a type of flooring? Well, yes, but no — it’s a highly efficient data storage format, and you’ll learn all about it today."
},
{
"code": null,
"e": 640,
"s"... |
Building and Deploying C# Azure Functions using Multi-Stage Pipelines in Azure DevOps | by Will Velida | Towards Data Science | As part of my personal development, I’ve created a personal health platform that uses various different microservices (Built using Azure Functions) that extract data from my Fitbit account and store them in an Azure Cosmos DB database. I have other microservices that pass messages between different services via Azure S... | [
{
"code": null,
"e": 378,
"s": 46,
"text": "As part of my personal development, I’ve created a personal health platform that uses various different microservices (Built using Azure Functions) that extract data from my Fitbit account and store them in an Azure Cosmos DB database. I have other microse... |
Unix / Linux - Directory Management | In this chapter, we will discuss in detail about directory management in Unix.
A directory is a file the solo job of which is to store the file names and the related information. All the files, whether ordinary, special, or directory, are contained in directories.
Unix uses a hierarchical structure for organizing files... | [
{
"code": null,
"e": 2826,
"s": 2747,
"text": "In this chapter, we will discuss in detail about directory management in Unix."
},
{
"code": null,
"e": 3012,
"s": 2826,
"text": "A directory is a file the solo job of which is to store the file names and the related information. All... |
Check if an array is stack sortable - GeeksforGeeks | 18 Dec, 2018
Given an array of N distinct elements where elements are between 1 and N both inclusive, check if it is stack-sortable or not. An array A[] is said to be stack sortable if it can be stored in another array B[], using a temporary stack S.
The operations that are allowed on array are:
Remove the starting ele... | [
{
"code": null,
"e": 24718,
"s": 24690,
"text": "\n18 Dec, 2018"
},
{
"code": null,
"e": 24956,
"s": 24718,
"text": "Given an array of N distinct elements where elements are between 1 and N both inclusive, check if it is stack-sortable or not. An array A[] is said to be stack sor... |
R - Scatterplots | Scatterplots show many points plotted in the Cartesian plane. Each point represents the values of two variables. One variable is chosen in the horizontal axis and another in the vertical axis.
The simple scatterplot is created using the plot() function.
The basic syntax for creating scatterplot in R is −
plot(x, y, mai... | [
{
"code": null,
"e": 2595,
"s": 2402,
"text": "Scatterplots show many points plotted in the Cartesian plane. Each point represents the values of two variables. One variable is chosen in the horizontal axis and another in the vertical axis."
},
{
"code": null,
"e": 2656,
"s": 2595,
... |
SAP ABAP - Classes | A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class.
When you define a class, you define a blueprint for a data type. This doesn't actually define any data... | [
{
"code": null,
"e": 3116,
"s": 2898,
"text": "A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class."
},
{
"code": null,
"e"... |
Group buttons on a single line with Bootstrap | Use the .btn-group class in Bootstrap to group buttons on a single like.
You can try to run the following code to implement .btn-group class in Bootstrap:
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "Use the .btn-group class in Bootstrap to group buttons on a single like."
},
{
"code": null,
"e": 1217,
"s": 1135,
"text": "You can try to run the following code to implement .btn-group class in Bootstrap:"
},
{
"code": null,... |
How to use Get-ChildItem in PowerShell to filter a specific extension? | To get the output of the get-childitem with a specific extension, we need to use –includeparameter.
In the below example, we will use the below script to get only .xml files.
Get-ChildItem D:\Temp\ -Recurse -Include *.xml
PS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Recurse -Include *.xml
Directory: D:\Temp\GPO_... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "To get the output of the get-childitem with a specific extension, we need to use –includeparameter."
},
{
"code": null,
"e": 1237,
"s": 1162,
"text": "In the below example, we will use the below script to get only .xml files."
},
... |
Angular ngx Bootstrap Accordion Component - GeeksforGeeks | 02 Sep, 2021
Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites.
In this article, we will know how to use accordion in angular ngx bootstrap. The Accordion is used to display collapsible ... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 26539,
"s": 26354,
"text": "Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make... |
How to get odd and even position characters from a string? | We have to write a function that removes every second character (starting from the very first
character) from a string and appends all of those removed characters at the end in JavaScript.
For example −
If the string is "This is a test!"
Then it should become "hsi etTi sats!"
Therefore, let’s write the code for this fu... | [
{
"code": null,
"e": 1251,
"s": 1062,
"text": "We have to write a function that removes every second character (starting from the very first\ncharacter) from a string and appends all of those removed characters at the end in JavaScript."
},
{
"code": null,
"e": 1265,
"s": 1251,
"... |
Sudoku Solving algorithms | In this section, we will try to solve the famous number maze problem called Sudoku. Sudoku is a 9 x 9 number grid, and the whole grid are also divided into 3 x 3 boxes There are some rules to solve the Sudoku.
We have to use digits 1 to 9 for solving this problem.
One digit cannot be repeated in one row, one column or ... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "In this section, we will try to solve the famous number maze problem called Sudoku. Sudoku is a 9 x 9 number grid, and the whole grid are also divided into 3 x 3 boxes There are some rules to solve the Sudoku."
},
{
"code": null,
"e": 1327,
... |
How to update existing data in EEPROM with Arduino? | Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.
In this article, we will see how to up... | [
{
"code": null,
"e": 1344,
"s": 1062,
"text": "Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or setting... |
How to remove white spaces for textview in Android? | This example demonstrates How to remove white spaces for textview in Android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<Line... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "This example demonstrates How to remove white spaces for textview in Android."
},
{
"code": null,
"e": 1269,
"s": 1140,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ... |
How to find the critical value of F for one-way ANOVA in R? | To find the critical value of F for one-way ANOVA in R, we can follow the below steps −
First of all, create a data frame with one categorical and one numerical column.
Then, use aov function to find the anova table.
After that, use qf function to find the critical value of F for one-way ANOVA.
Let's create a data fram... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "To find the critical value of F for one-way ANOVA in R, we can follow the below steps −"
},
{
"code": null,
"e": 1231,
"s": 1150,
"text": "First of all, create a data frame with one categorical and one numerical column."
},
{
... |
Print all Jumping Numbers smaller than or equal to a given value in C++ | In this problem, we are given a number n and we have to print all jumping numbers that are smaller than or equal to n.
Jumping Numbers are the number whose adjacent digits differ by one only. Some jumping numbers are 4565, 98, 7. All single-digit numbers are considered as jumping numbers. 235 is not a jumping number.
N... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "In this problem, we are given a number n and we have to print all jumping numbers that are smaller than or equal to n."
},
{
"code": null,
"e": 1381,
"s": 1181,
"text": "Jumping Numbers are the number whose adjacent digits differ by ... |
Scene Text Detection And Recognition Using EAST And Tesseract | by Paritosh Mahto | Towards Data Science | This Article Includes:1.Introduction2.Real World Problem 2.1 Description 2.2 Problem Statement 2.3 Bussiness Objectives and Constraints3.Datasets Available for Text Detection And Recognition 3.1 Dataset Overview & Description4.Exploratory Data Analysis(EDA)5.Methods of text detection before deep learning er... | [
{
"code": null,
"e": 637,
"s": 171,
"text": "This Article Includes:1.Introduction2.Real World Problem 2.1 Description 2.2 Problem Statement 2.3 Bussiness Objectives and Constraints3.Datasets Available for Text Detection And Recognition 3.1 Dataset Overview & Description4.Exploratory Data... |
Gradle - Dependency Management | Gradle build script defines a process to build projects; each project contains some dependencies and some publications. Dependencies refer to the things that supports in building your project, such as required JAR file from other projects and external JARs like JDBC JAR or Eh-cache JAR in the class path.
Publications m... | [
{
"code": null,
"e": 2188,
"s": 1882,
"text": "Gradle build script defines a process to build projects; each project contains some dependencies and some publications. Dependencies refer to the things that supports in building your project, such as required JAR file from other projects and external J... |
Number of ways to remove a sub-string from S such that all remaining characters are same - GeeksforGeeks | 28 May, 2021
Given a string str consisting only of lowercase English alphabets, the task is to count the number of ways to remove exactly one sub-string from str such that all remaining characters are same. Note: There are at least two different characters in str and we can remove the whole string as well.Examples:
I... | [
{
"code": null,
"e": 25061,
"s": 25033,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 25367,
"s": 25061,
"text": "Given a string str consisting only of lowercase English alphabets, the task is to count the number of ways to remove exactly one sub-string from str such that all ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.