title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to create an ordered list with list items numbered with lowercase roman numbers in HTML? | To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default numbers for list items.
For creating an ordered list with lowercase roman numbers, use the <... | [
{
"code": null,
"e": 1439,
"s": 1187,
"text": "To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default numbers for list items."
... |
How to write an empty function in Python – pass statement? | 07 Jun, 2022
In C/C++ and Java, we can write empty function as following
// An empty function in C/C++/Java
void fun() { }
In Python, if we write something like following in Python, it would produce compiler error.
# Incorrect empty function in Pythondef fun():
Output :
IndentationError: expected an indented block
I... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 113,
"s": 53,
"text": "In C/C++ and Java, we can write empty function as following"
},
{
"code": null,
"e": 165,
"s": 113,
"text": "// An empty function in C/C++/Java\nvoid fun(... |
Maximum value in an array after m range increment operations | 08 Jul, 2022
Consider an array of size n with all initial values as 0. We need to perform the following m range increment operations.
increment(a, b, k) : Increment values from 'a'
to 'b' by 'k'.
After m operations, we need to calculate the maximum of the values in the array.
Examples:
Input : ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 173,
"s": 52,
"text": "Consider an array of size n with all initial values as 0. We need to perform the following m range increment operations."
},
{
"code": null,
"e": 260,
"s": 17... |
Webcam QR code scanner using OpenCV | 02 Mar, 2022
In this article, we’re going to see how to perform QR code scanning using a webcam.
Webcam QR CODE Scanner
Before starting, You need to know how this process is going to work. Firstly you need to open your webcam, and you’ve to run your python program to make it ready to scan the QR code. You can take the... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n02 Mar, 2022"
},
{
"code": null,
"e": 138,
"s": 53,
"text": "In this article, we’re going to see how to perform QR code scanning using a webcam. "
},
{
"code": null,
"e": 161,
"s": 138,
"text": "Webcam QR CODE Scann... |
Locally weighted linear Regression using Python | 27 Jan, 2022
Locally weighted linear regression is the nonparametric regression methods that combine k-nearest neighbor based machine learning. It is referred to as locally weighted because for a query point the function is approximated on the basis of data near that and weighted because the contribution is weighted by... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 395,
"s": 52,
"text": "Locally weighted linear regression is the nonparametric regression methods that combine k-nearest neighbor based machine learning. It is referred to as locally weighted becau... |
Audio AI: isolating vocals from stereo music using Convolutional Neural Networks | by Ale Koretzky | Towards Data Science | What if we could go back to 1965, knock on Abbey Road Studios’ front door holding an ‘All Access’ badge, and have the privilege of listening to those signature Lennon-McCartney harmonies A-Capella? Our input here is a medium quality mp3 of We Can Work it Out by The Beatles. The top track is the input mix and the bottom... | [
{
"code": null,
"e": 544,
"s": 171,
"text": "What if we could go back to 1965, knock on Abbey Road Studios’ front door holding an ‘All Access’ badge, and have the privilege of listening to those signature Lennon-McCartney harmonies A-Capella? Our input here is a medium quality mp3 of We Can Work it ... |
How to put a responsive clear button inside HTML input text field ? - GeeksforGeeks | 03 Aug, 2021
The responsive button inside an input field will clear the text area on the click event. In this article, we will discuss how to put a responsive clear button inside an HTML input field using HTML, CSS, and JavaScript. In order to put the button inside the input field, we shall use CSS. Let us see the HTML... | [
{
"code": null,
"e": 27329,
"s": 27301,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 27737,
"s": 27329,
"text": "The responsive button inside an input field will clear the text area on the click event. In this article, we will discuss how to put a responsive clear button insi... |
Array in Python | Set 1 (Introduction and Functions) - GeeksforGeeks | 22 Jan, 2022
Other than some generic containers like list, Python in its definition can also handle containers with specified data types. The array can be handled in python by a module named “array“. They can be useful when we have to manipulate only specific data type values.
Operations on Array :
1. array(data type, ... | [
{
"code": null,
"e": 25691,
"s": 25663,
"text": "\n22 Jan, 2022"
},
{
"code": null,
"e": 25956,
"s": 25691,
"text": "Other than some generic containers like list, Python in its definition can also handle containers with specified data types. The array can be handled in python by ... |
Reshape the Matrix in C++ | In different platform there is very useful function called 'reshape', that function is used to reshape a matrix into a new one with different size but data will be same. So, if we have a matrix and two values r and c for the row number and column number of the wanted reshaped matrix, respectively.
So, if the input is l... | [
{
"code": null,
"e": 1361,
"s": 1062,
"text": "In different platform there is very useful function called 'reshape', that function is used to reshape a matrix into a new one with different size but data will be same. So, if we have a matrix and two values r and c for the row number and column number... |
C Program to Count ways to reach the n'th stair - GeeksforGeeks | 05 Nov, 2021
There are n stairs and a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs at a time. Count the number of ways, the person can reach the top.
Consider the example shown in diagram. The value of n is 3. There are 3 ways to reach the top. The diagram is ta... | [
{
"code": null,
"e": 26175,
"s": 26147,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 26370,
"s": 26175,
"text": "There are n stairs and a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs at a time. Count the number of ways,... |
Check whether a number is semiprime or not - GeeksforGeeks | 09 Apr, 2021
Given a positive integer n. Find whether a number is a semiprime or not. Print True if number is semiprime else False. A semiprime is a natural number that is a product of two prime numbers.Examples :
Input: 6
Output: True
Explanation
6 is a semiprime number as it is a
product of two prime numbers 2 and ... | [
{
"code": null,
"e": 26045,
"s": 26017,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 26248,
"s": 26045,
"text": "Given a positive integer n. Find whether a number is a semiprime or not. Print True if number is semiprime else False. A semiprime is a natural number that is a pr... |
Abstraction in Java - GeeksforGeeks | 17 Sep, 2021
Data Abstraction is the property by virtue of which only the essential details are displayed to the user. The trivial or the non-essentials units are not displayed to the user. Ex: A car is viewed as a car rather than its individual components.
Data Abstraction may also be defined as the process of identif... | [
{
"code": null,
"e": 29048,
"s": 29020,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 29293,
"s": 29048,
"text": "Data Abstraction is the property by virtue of which only the essential details are displayed to the user. The trivial or the non-essentials units are not displayed... |
How to check if the clicked element is a div or not in JavaScript ? | 30 Jan, 2020
Given an HTML document, which contains many elements. The task is to determine whether the clicked element is DIV or not with the help of JavaScript.Two approaches are discussed here, first approach uses the tagName property of element and second uses instanceOf operator to search for DIV.Approach 1:
Use e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jan, 2020"
},
{
"code": null,
"e": 330,
"s": 28,
"text": "Given an HTML document, which contains many elements. The task is to determine whether the clicked element is DIV or not with the help of JavaScript.Two approaches are discuss... |
Print all Increasing Subsequence of a List | 20 Dec, 2021
Given a list or array of integer, the task is to print all such subsequences of this list such in which the elements are arranged in increasing order.A Subsequence of the list is an ordered subset of that list’s element having same sequential ordering as the original list. Examples:
Input: arr = {1, 2]} ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Dec, 2021"
},
{
"code": null,
"e": 340,
"s": 54,
"text": "Given a list or array of integer, the task is to print all such subsequences of this list such in which the elements are arranged in increasing order.A Subsequence of the lis... |
LocalDateTime ofInstant() method in Java with Examples | 17 May, 2020
ofInstant(Instant instant, ZoneId zone) method of LocalDateTime class in Java is used to create an instance of LocalDateTime using an Instant and zone ID. These two parameters are passed to the method and method returns LocalDateTime on the basis of these two parameters. The calculation of the LocalDateTim... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 365,
"s": 28,
"text": "ofInstant(Instant instant, ZoneId zone) method of LocalDateTime class in Java is used to create an instance of LocalDateTime using an Instant and zone ID. These two parameters... |
Python – color_matrix() function in Wand | 08 May, 2020
color_matrix() method allows you to recalculate color values by applying a matrix transform. A matrix can be up to a 6×6 grid where each column maps to a color channel to reference, and each row represents a color channel to effect.red, green, blue, n/a, alpha, and a constant (a.k.a offset) describe the co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2020"
},
{
"code": null,
"e": 365,
"s": 28,
"text": "color_matrix() method allows you to recalculate color values by applying a matrix transform. A matrix can be up to a 6×6 grid where each column maps to a color channel to refe... |
Making your own Linux Shell in C | 07 Jun, 2020
To know more about what a shell is, click here.
We all use the built in terminal window in Linux distributions like Ubuntu, Fedora, etc. But how do they actually work? In this article, We are going to handle some under the hood features and algorithms what actually work inside a shell. All Linux operating ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jun, 2020"
},
{
"code": null,
"e": 102,
"s": 54,
"text": "To know more about what a shell is, click here."
},
{
"code": null,
"e": 622,
"s": 102,
"text": "We all use the built in terminal window in Linux distribu... |
Python – Generate random number except K in list | 06 Mar, 2020
Sometimes, while working with python, we can have a problem in which we need to generate random number. This seems quite easy but sometimes we require a slight variation of it. That is, we require to generate random number from a list except K. Lets discuss certain ways in which this task can be performed.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Mar, 2020"
},
{
"code": null,
"e": 336,
"s": 28,
"text": "Sometimes, while working with python, we can have a problem in which we need to generate random number. This seems quite easy but sometimes we require a slight variation of it... |
numpy.linalg.det() Method in Python | 29 Jul, 2021
In NumPy, we can compute the determinant of the given square array with the help of numpy.linalg.det(). It will take the given square array as a parameter and return the determinant of that.
Syntax: numpy.linalg.det() Parameter: An square array. Return: The determinant of that square array.
Example 1:
Pyth... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 219,
"s": 28,
"text": "In NumPy, we can compute the determinant of the given square array with the help of numpy.linalg.det(). It will take the given square array as a parameter and return the deter... |
TypeScript - Multidimensional Arrays | An array element can reference another array for its value. Such arrays are called as multidimensional arrays. TypeScript supports the concept of multi-dimensional arrays. The simplest form of a multi-dimensional array is a two-dimensional array.
var arr_name:datatype[][]=[ [val1,val2,val3],[v1,v2,v3] ]
var arr_name:d... | [
{
"code": null,
"e": 2429,
"s": 2182,
"text": "An array element can reference another array for its value. Such arrays are called as multidimensional arrays. TypeScript supports the concept of multi-dimensional arrays. The simplest form of a multi-dimensional array is a two-dimensional array."
},
... |
Node.js URL.pathToFileURL API | 14 Oct, 2021
This URL.pathToFileURL function converts the path to a file and ensures that the URL control characters (/, \, : ) are correctly appended/adjusted when converting the given path into a File URL.
Syntax:
url.pathToFileURL(path)
Parameters: This function accepts single parameter path which holds the path to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Oct, 2021"
},
{
"code": null,
"e": 223,
"s": 28,
"text": "This URL.pathToFileURL function converts the path to a file and ensures that the URL control characters (/, \\, : ) are correctly appended/adjusted when converting the given p... |
Title alignment in Plotly | 24 Jan, 2022
In this article, we are going to discuss title assignment and alignment using plotly module.
In order to align titles in visualization using plotly module, we are going to use the update_layout() method.
Syntax:
plotly.graph_objects.Figure.update_layout(title_text, title_x, title_y)
Parameters:
title: Acc... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 121,
"s": 28,
"text": "In this article, we are going to discuss title assignment and alignment using plotly module."
},
{
"code": null,
"e": 233,
"s": 121,
"text": "In order to a... |
Passive Aggressive Classifiers | 17 Jul, 2020
The Passive-Aggressive algorithms are a family of Machine learning algorithms that are not very well known by beginners and even intermediate Machine Learning enthusiasts. However, they can be very useful and efficient for certain applications.
Note: This is a high-level overview of the algorithm explainin... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jul, 2020"
},
{
"code": null,
"e": 299,
"s": 54,
"text": "The Passive-Aggressive algorithms are a family of Machine learning algorithms that are not very well known by beginners and even intermediate Machine Learning enthusiasts. Ho... |
Print all possible expressions that evaluate to a target | 25 May, 2022
Given a string that contains only digits from 0 to 9, and an integer value, target. Find out how many expressions are possible which evaluate to target using binary operator +, – and * in given string of digits.
Input : "123", Target : 6
Output : {“1+2+3”, “1*2*3”}
Input : “125”, Target : 7
Output : {“1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 265,
"s": 52,
"text": "Given a string that contains only digits from 0 to 9, and an integer value, target. Find out how many expressions are possible which evaluate to target using binary operator ... |
Spring Boot – H2 Database | 18 Feb, 2022
H2 is an embedded, open-source, and in-memory database. It is a relational database management system written in Java. It is a client/server application. It stores data in memory, not persist the data on disk. Here we will be discussing how can we configure and perform some basic operations in Spring Boot ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 378,
"s": 52,
"text": "H2 is an embedded, open-source, and in-memory database. It is a relational database management system written in Java. It is a client/server application. It stores data in me... |
Python Dictionary items() method | 04 Dec, 2020
Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element, Dictionary holds key : value pair.In Python Dictionary, items() method is used to return the list with all dictionary keys with valu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 365,
"s": 53,
"text": "Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element,... |
How to clear all options in a dropdown box? | 27 Sep, 2019
Clearing the entire dropdown list is pretty easy, all we have to do is to create a button, which calls a function that performs the deletion.Let’s look at the syntax of the deletion part:
document.getElementById("idofdropdownlist").innerHTML = "";
Here, it gets all the elements present in the given Id and ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2019"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "Clearing the entire dropdown list is pretty easy, all we have to do is to create a button, which calls a function that performs the deletion.Let’s look at the syntax of the de... |
int Keyword in C# | 22 Jun, 2020
Keywords are the words in a language that are used for some internal process or represent some predefined actions. int is a keyword that is used to declare a variable which can store an integral type of value (signed integer) the range from -2,147,483,648 to 2,147,483,647. It is an alias of System.Int32.
S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 334,
"s": 28,
"text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. int is a keyword that is used to declare a variable which ca... |
PostgreSQL – DISTINCT ON expression | 07 Oct, 2021
PostgreSQL also provides on an expression as DISTINCT ON that is used with the SELECT statement to remove duplicates from a query set result just like the DISTINCT clause.In addition to that it also keeps the “first row” of each row of duplicates in the query set result.
Syntax: SELECT DISTINCT ON (colu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "PostgreSQL also provides on an expression as DISTINCT ON that is used with the SELECT statement to remove duplicates from a query set result just like the DISTINCT clause.In a... |
Mathematical Functions in Python | Set 3 (Trigonometric and Angular Functions) - GeeksforGeeks | 28 Jul, 2016
Some of the mathematical functions are discussed in below set 1 and set 2
Mathematical Functions in Python | Set 1 (Numeric Functions)Mathematical Functions in Python | Set 2 (Logarithmic and Power Functions)
Trigonometric and angular functions are discussed in this article.
1. sin() :- This function retur... | [
{
"code": null,
"e": 24530,
"s": 24502,
"text": "\n28 Jul, 2016"
},
{
"code": null,
"e": 24604,
"s": 24530,
"text": "Some of the mathematical functions are discussed in below set 1 and set 2"
},
{
"code": null,
"e": 24739,
"s": 24604,
"text": "Mathematical Fun... |
Batch Script - TITLE | This batch command sets the title displayed in the console window.
TITLE [Tilename]
Where tilename is the new name to be given to the title of the command prompt window.
@echo off
Title “New Windows Title”
The above command will change the title of the window to “New Windows Title”.
Print
Add Notes
Bookmark this p... | [
{
"code": null,
"e": 2236,
"s": 2169,
"text": "This batch command sets the title displayed in the console window."
},
{
"code": null,
"e": 2254,
"s": 2236,
"text": "TITLE [Tilename]\n"
},
{
"code": null,
"e": 2340,
"s": 2254,
"text": "Where tilename is the new... |
What is Stale Element Reference Exception in Selenium Webdriver & How To Fix It? | We may encounter StaleElementReferenceException while working with Selenium webdriver. We can fix the StaleElementReferenceException in the Selenium webdriver. The term stale means something which is not fresh and decayed. Thus a stale element points to an element that is not present anymore.
There may be a case when a... | [
{
"code": null,
"e": 1356,
"s": 1062,
"text": "We may encounter StaleElementReferenceException while working with Selenium webdriver. We can fix the StaleElementReferenceException in the Selenium webdriver. The term stale means something which is not fresh and decayed. Thus a stale element points to... |
Finding Mean, Median, Mode in Python without libraries - GeeksforGeeks | 27 May, 2020
In this article, we will learn how to calculate Mean, Median, and Mode with Python without using external libraries.
Mean : The mean is the average of all numbers and is sometimes called the arithmetic mean. This code calculates Mean or Average of a list containing numbers:# Python program to print# mean o... | [
{
"code": null,
"e": 25074,
"s": 25046,
"text": "\n27 May, 2020"
},
{
"code": null,
"e": 25191,
"s": 25074,
"text": "In this article, we will learn how to calculate Mean, Median, and Mode with Python without using external libraries."
},
{
"code": null,
"e": 29079,
... |
Computer Vision 101: Working with Color Images in Python | by Eryk Lewinson | Towards Data Science | Every computer vision project — be it a cat/dog classifier or bringing colors to old images/movies — involves working with images. And in the end, the model can only be as good as the underlying data — garbage in, garbage out. That is why in this post I focus on explaining the basics of working with color images in Pyt... | [
{
"code": null,
"e": 594,
"s": 172,
"text": "Every computer vision project — be it a cat/dog classifier or bringing colors to old images/movies — involves working with images. And in the end, the model can only be as good as the underlying data — garbage in, garbage out. That is why in this post I f... |
Mobile Angular UI - Drag and Drop | Drag and drop feature allows you to take control of a html element by grabbing it and dragging and placing the element to a different location.
To work with drag and drop features in Mobile Angular UI, you need to add the gestures module.
First add the JavaScript file inside index.html as shown below −
<script src="nod... | [
{
"code": null,
"e": 2455,
"s": 2311,
"text": "Drag and drop feature allows you to take control of a html element by grabbing it and dragging and placing the element to a different location."
},
{
"code": null,
"e": 2550,
"s": 2455,
"text": "To work with drag and drop features in... |
Wildcard Pattern Matching | Practice | GeeksforGeeks | Given two strings 'str' and a wildcard pattern 'pattern' of length N and M respectively, You have to print '1' if the wildcard pattern is matched with str else print '0' .
The wildcard pattern can include the characters ‘?’ and ‘*’
‘?’ – matches any single character
‘*’ – Matches any sequence of characters (including... | [
{
"code": null,
"e": 579,
"s": 238,
"text": "Given two strings 'str' and a wildcard pattern 'pattern' of length N and M respectively, You have to print '1' if the wildcard pattern is matched with str else print '0' .\n\nThe wildcard pattern can include the characters ‘?’ and ‘*’\n‘?’ – matches any ... |
Deploy a Kafka Cluster with Terraform and Ansible | by Marcos Lombog | Towards Data Science | In my previous post — Install a Kafka Cluster on Ubuntu in AWS, I have detailed the steps to manually set up your messaging backbone in AWS. This is a great step to understand how Kafka works, but it takes a long time and is not scalable.
A Kafka Cluster has several components such as Brokers, Zookeepers, Workers runni... | [
{
"code": null,
"e": 410,
"s": 171,
"text": "In my previous post — Install a Kafka Cluster on Ubuntu in AWS, I have detailed the steps to manually set up your messaging backbone in AWS. This is a great step to understand how Kafka works, but it takes a long time and is not scalable."
},
{
"c... |
C | Misc | Question 7 - GeeksforGeeks | 01 Sep, 2021
The number of tokens in the following C statement is (GATE 2000)
printf("i = %d, &i = %x", i, &i);
(A) 3(B) 26(C) 10(D) 21Answer: (C)Explanation: In a C source program, the basic element recognized by the compiler is the “token.” A token is source-program text that the compiler does not break down into com... | [
{
"code": null,
"e": 24426,
"s": 24398,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 24491,
"s": 24426,
"text": "The number of tokens in the following C statement is (GATE 2000)"
},
{
"code": "printf(\"i = %d, &i = %x\", i, &i);",
"e": 24525,
"s": 24491,
"... |
How to Visualize a Neural Network in Python using Graphviz ? - GeeksforGeeks | 24 Jan, 2021
In this article, We are going to see how to plot (visualize) a neural network in python using Graphviz. Graphviz is a python module that open-source graph visualization software. It is widely popular among researchers to do visualizations. It’s representing structural information as diagrams of abstract gr... | [
{
"code": null,
"e": 25699,
"s": 25671,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 26186,
"s": 25699,
"text": "In this article, We are going to see how to plot (visualize) a neural network in python using Graphviz. Graphviz is a python module that open-source graph visualiz... |
How to draw a Clock using StillClock in Java - GeeksforGeeks | 07 Feb, 2020
StillClock class is used to displays an analog clock and uses the MessagePanel to display the hour, minute, and second in a panel. We use javax.swing.JPanel to display the StillClock.
This article helps to develop a class that displays a clock on a panel.
Steps used to draw the clock:
To draw a clock, draw... | [
{
"code": null,
"e": 25237,
"s": 25209,
"text": "\n07 Feb, 2020"
},
{
"code": null,
"e": 25421,
"s": 25237,
"text": "StillClock class is used to displays an analog clock and uses the MessagePanel to display the hour, minute, and second in a panel. We use javax.swing.JPanel to dis... |
What is the difference between equals and compareTo in Java? | The compareTo() method compares two strings lexicographically. The comparison is based on the Unicode value of each character in the strings. The character sequence represented by this String object is compared lexicographically to the character sequence represented by the argument string.
The result is a negative inte... | [
{
"code": null,
"e": 1353,
"s": 1062,
"text": "The compareTo() method compares two strings lexicographically. The comparison is based on the Unicode value of each character in the strings. The character sequence represented by this String object is compared lexicographically to the character sequenc... |
How to do bitwise complement on a 16-bit signal using Python? | If you want to get an inversion of only first 16 bits of a number, you can take a xor of that number with 65535(16 1s in binary).
a = 3 # 11 in binary
b = a ^ 65535
print(bin(b))
This will give the output −
0b1111111111111100 | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "If you want to get an inversion of only first 16 bits of a number, you can take a xor of that number with 65535(16 1s in binary). "
},
{
"code": null,
"e": 1242,
"s": 1193,
"text": "a = 3 # 11 in binary\nb = a ^ 65535\nprint(bin(b))"... |
C Program to sort rows of the Matrix - GeeksforGeeks | 10 Jan, 2022
Given a matrix arr[][] of dimensions N * M, the task is to sort the matrix such that each row is sorted and the first element of each row is greater than or equal to the last element of the previous row.
Examples:
Input: N = 3, M = 3, arr[][] = {{7, 8, 9}, {5, 6, 4}, {3, 1, 2}}Output:1 2 34 5 67 8 9
Approa... | [
{
"code": null,
"e": 24286,
"s": 24258,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 24490,
"s": 24286,
"text": "Given a matrix arr[][] of dimensions N * M, the task is to sort the matrix such that each row is sorted and the first element of each row is greater than or equal ... |
How to detect the screen resolution with JavaScript? | To detect the screen resolution, use the concept of window.screen.
For width, use the following −
window.screen.availWidth
For height −
window.screen.availHeight
Following is the code to detect the screen resolution −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" conten... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "To detect the screen resolution, use the concept of window.screen."
},
{
"code": null,
"e": 1160,
"s": 1129,
"text": "For width, use the following −"
},
{
"code": null,
"e": 1185,
"s": 1160,
"text": "window.screen... |
How to start an android application at boot time? | This example demonstrates how do I start an android application at boot time.
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 start an android application at boot time."
},
{
"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 ... |
iText - Formatting Cell Contents | In this chapter, we will see how to create a PDF document and add a table and format the contents of a cell in the table using the iText library.
You can create an empty PDF Document by instantiating the Document class. While instantiating this class, you need to pass a PdfDocument object as a parameter, to its constru... | [
{
"code": null,
"e": 2514,
"s": 2368,
"text": "In this chapter, we will see how to create a PDF document and add a table and format the contents of a cell in the table using the iText library."
},
{
"code": null,
"e": 2918,
"s": 2514,
"text": "You can create an empty PDF Document... |
How to Generate Data Accessing API Endpoints Without Even Coding | by Christopher Tao | Towards Data Science | As the most common architecture of any Web or Mobile applications, database + backend API + frontend is very typical and classic. While different applications will definitely have their own front-end design, the backend API is usually very similar. That is, they must be able to access the data in the database. In other... | [
{
"code": null,
"e": 737,
"s": 171,
"text": "As the most common architecture of any Web or Mobile applications, database + backend API + frontend is very typical and classic. While different applications will definitely have their own front-end design, the backend API is usually very similar. That i... |
Selenium Webdriver - Headless Execution | Selenium supports headless execution. In the Chrome browser, the headless execution can be implemented with the help of the ChromeOptions class. We have to create an object of this class and apply the add_arguments method on it. Finally, pass the parameter --headless to this method.
Let us obtain the title - About Care... | [
{
"code": null,
"e": 2487,
"s": 2203,
"text": "Selenium supports headless execution. In the Chrome browser, the headless execution can be implemented with the help of the ChromeOptions class. We have to create an object of this class and apply the add_arguments method on it. Finally, pass the parame... |
Prim’s Algorithm (Simple Implementation for Adjacency Matrix Representation) in C++ | Prim’s Algorithm is a greedy method that is used to find minimum spanning tree for a given weighted undirected graph.
Weighted graph is a graph that has all edges with weight values.
Undirected graph is a special type of graph in which all edges are bidirectional.
Minimum spanning tree is a subset that contains all edg... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "Prim’s Algorithm is a greedy method that is used to find minimum spanning tree for a given weighted undirected graph."
},
{
"code": null,
"e": 1245,
"s": 1180,
"text": "Weighted graph is a graph that has all edges with weight values.... |
Python | Find frequency of largest element in list - GeeksforGeeks | 20 Jul, 2021
Given a list, the task is to find the number of occurrences of the largest element of the list.Examples:
Input : [1, 2, 8, 5, 8, 7, 8]
Output :3
Input : [2, 9, 1, 3, 4, 5]
Output :1
Method 1: The naive approach is to find the largest element present in the list using max(list) function, then iterating t... | [
{
"code": null,
"e": 24687,
"s": 24659,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 24793,
"s": 24687,
"text": "Given a list, the task is to find the number of occurrences of the largest element of the list.Examples: "
},
{
"code": null,
"e": 24872,
"s": 2479... |
java.time.LocalDateTime.atZone() Method Example | The java.time.LocalDateTime.atZone(ZoneId zone) method combines this date-time with a time-zone to create a ZonedDateTime..
Following is the declaration for java.time.LocalDateTime.atZone(ZoneId zone) method.
public ZonedDateTime atZone(ZoneId zone)
zone − the time-zone to use, not null.
the zoned date-time formed fro... | [
{
"code": null,
"e": 2039,
"s": 1915,
"text": "The java.time.LocalDateTime.atZone(ZoneId zone) method combines this date-time with a time-zone to create a ZonedDateTime.."
},
{
"code": null,
"e": 2124,
"s": 2039,
"text": "Following is the declaration for java.time.LocalDateTime.a... |
Creating a Weapon Detector in 5 simple steps | by Rahul Agarwal | Towards Data Science | Object Detection is a helpful tool to have in your coding repository.
It forms the backbone of many fantastic industrial applications. Some of them being self-driving cars, medical imaging and face detection.
In my last post on Object detection, I talked about how Object detection models evolved.
But what good is theor... | [
{
"code": null,
"e": 242,
"s": 172,
"text": "Object Detection is a helpful tool to have in your coding repository."
},
{
"code": null,
"e": 381,
"s": 242,
"text": "It forms the backbone of many fantastic industrial applications. Some of them being self-driving cars, medical imagi... |
CSS | border-collapse Property - GeeksforGeeks | 03 Nov, 2021
The border-collapse property in CSS is used to set the borders of the cell present inside the table and tells whether these cells will share a common border or not.Syntax:
border-collapse: separate|collapse|initial|inherit;
Default Value : Its default value is separate.
Property Values:
separate: This... | [
{
"code": null,
"e": 23596,
"s": 23568,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 23770,
"s": 23596,
"text": "The border-collapse property in CSS is used to set the borders of the cell present inside the table and tells whether these cells will share a common border or not... |
How to use the sleep method in C#? | The sleep method of the thread is used to pause the thread for a specific period.
If you want to set sleep for some seconds, then use it like the following code snippet −
int sleepfor = 2000;
Thread.Sleep(sleepfor);
You can try to run the following code to implement the sleep method of the thread −
Live Demo
using Sys... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "The sleep method of the thread is used to pause the thread for a specific period."
},
{
"code": null,
"e": 1233,
"s": 1144,
"text": "If you want to set sleep for some seconds, then use it like the following code snippet −"
},
{
... |
HTML | <button> type Attribute - GeeksforGeeks | 18 May, 2019
The <button> type attribute is used to specify the type of button. It specifies the type attribute of <button> element. The default types of <button> element can vary from browser to browser.
Syntax:
<button type="button|submit|reset">
Attribute Values:
submit: It defines a submit button. It has a default ... | [
{
"code": null,
"e": 24565,
"s": 24537,
"text": "\n18 May, 2019"
},
{
"code": null,
"e": 24757,
"s": 24565,
"text": "The <button> type attribute is used to specify the type of button. It specifies the type attribute of <button> element. The default types of <button> element can v... |
Making elements distinct in a sorted array by minimum increments | 03 May, 2021
Given a sorted integer array. We need to make array elements distinct by increasing values and keeping array sum minimum possible. We need to print the minimum possible sum as output.
Examples:
Input : arr[] = { 2, 2, 3, 5, 6 } ;
Output : 20
Explanation : We make the array as {2,
3, 4, 5, 6}. Sum become... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 238,
"s": 54,
"text": "Given a sorted integer array. We need to make array elements distinct by increasing values and keeping array sum minimum possible. We need to print the minimum possible sum a... |
Python – Common list elements and dictionary values | 17 Jun, 2021
Given list and dictionary, extract common elements of List and Dictionary Values.
Input : test_list = [“Gfg”, “is”, “Best”, “For”], subs_dict = {4 : “Gfg”, 8 : “Geeks”, 9 : ” Good”, } Output : [‘Gfg’] Explanation : “Gfg” is common in both list and dictionary value.Input : test_list = [“Gfg”, “is”, “Best”, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 110,
"s": 28,
"text": "Given list and dictionary, extract common elements of List and Dictionary Values."
},
{
"code": null,
"e": 485,
"s": 110,
"text": "Input : test_list = [“Gf... |
Smallest number divisible by first n numbers | 26 Mar, 2021
Given a number n find the smallest number evenly divisible by each number 1 to n.Examples:
Input : n = 4
Output : 12
Explanation : 12 is the smallest numbers divisible
by all numbers from 1 to 4
Input : n = 10
Output : 2520
Input : n = 20
Output : 232792560
If you observe carefully the... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 147,
"s": 54,
"text": "Given a number n find the smallest number evenly divisible by each number 1 to n.Examples: "
},
{
"code": null,
"e": 331,
"s": 147,
"text": "Input : n = ... |
How to use Kali Linux in Windows with WSL 2? | 18 Sep, 2020
The Windows Subsystem for Linux lets developers run a GNU/Linux environment including most command-line tools, etc. direct on Windows, unmodified, without the overhead of an ordinary virtual machine or dual-boot system.
Uses of WSL:
Pick your preferred GNU/Linux distributions from the Microsoft Store.
Run... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 274,
"s": 54,
"text": "The Windows Subsystem for Linux lets developers run a GNU/Linux environment including most command-line tools, etc. direct on Windows, unmodified, without the overhead of an ... |
Join algorithms in Database | 24 Dec, 2021
There are two algorithms to compute natural join and conditional join of two relations in database: Nested loop join, and Block nested loop join.
To understand these algorithms we will assume there are two relations, relation R and relation S. Relation R has TR tuples and occupies BR blocks. Relation S ha... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 199,
"s": 52,
"text": "There are two algorithms to compute natural join and conditional join of two relations in database: Nested loop join, and Block nested loop join. "
},
{
"code": null,... |
Material UI Container | 19 Feb, 2021
Material-UI is a user interface framework that provides pre-defined and customizable React components for faster and easy web development, these Material-UI components are based on top of Material Design by Google. In this article let’s discuss the Typography component in the Material-UI library.
Container... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 326,
"s": 28,
"text": "Material-UI is a user interface framework that provides pre-defined and customizable React components for faster and easy web development, these Material-UI components are bas... |
Make middle node head in a linked list | 22 Jun, 2022
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list. Examples:
Input : 1 2 3 4 5
Output : 3 1 2 4 5
Input : 1 2 3 4 5 6
Output : 4 1 2 3 5 6
The idea is to first find middle of a linked list using two pointers, first o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 195,
"s": 52,
"text": "Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list. Examples: "
},
{
"code": null,
... |
How set default timezone in Node.js for Windows ? | 21 Dec, 2021
NodeJS is primarily used for non-blocking, event-driven servers, due to its single-threaded nature. It’s used for traditional websites and back-end API services but was designed with real-time, push-based architectures in mind.
In this article we will see how to set default timezone in Node.js for windows.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 280,
"s": 52,
"text": "NodeJS is primarily used for non-blocking, event-driven servers, due to its single-threaded nature. It’s used for traditional websites and back-end API services but was desig... |
R | Simple Linear Regression | 14 Sep, 2021
Linear Regression: It is a commonly used type of predictive analysis. It is a statistical approach for modeling the relationship between a dependent variable and a given set of independent variables.
There are two types of linear regression.
Simple Linear Regression
Multiple Linear Regression
Let’s disc... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 254,
"s": 52,
"text": "Linear Regression: It is a commonly used type of predictive analysis. It is a statistical approach for modeling the relationship between a dependent variable and a given set ... |
Indus Valley Partners Interview Experience for Associate Software Developer | On-Campus 2021 | 24 Aug, 2021
Eligibility Criteria: Throughout 65% (10th,12th, UG, and PG individually)
Round 1: The first round comprised of 65 MCQ questions (Test Duration: 65 minutes):
This round consisted of objective Single choice questions on 4 sections – SQL, OOPS, C#, JavaScript in the Mettl Test platform.
You can shift to any ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 102,
"s": 28,
"text": "Eligibility Criteria: Throughout 65% (10th,12th, UG, and PG individually)"
},
{
"code": null,
"e": 186,
"s": 102,
"text": "Round 1: The first round compris... |
Square Free Number | 07 Apr, 2021
Given a number, check if it is square free or not. A number is said to be square free if no prime factor divides it more than once, i.e., largest power of a prime factor that divides n is one. First few square free numbers are 1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 26, 29, 30, 31, 33, 34... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 394,
"s": 54,
"text": "Given a number, check if it is square free or not. A number is said to be square free if no prime factor divides it more than once, i.e., largest power of a prime factor that... |
Last Minute Notes Computer Organization | 29 Jun, 2022
Control Unit –A control unit (CU) handles all processor control signals. It directs all input and output flow, fetches the code for instructions and controlling how data moves around the system.
A control unit (CU) handles all processor control signals. It directs all input and output flow, fetches the cod... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 249,
"s": 54,
"text": "Control Unit –A control unit (CU) handles all processor control signals. It directs all input and output flow, fetches the code for instructions and controlling how data move... |
Newton’s Divided Difference Interpolation Formula | 28 Jan, 2022
Interpolation is an estimation of a value within two known values in a sequence of values.
Newton’s divided difference interpolation formula is a interpolation technique used when the interval difference is not same for all sequence of values.
Suppose f(x0), f(x1), f(x2).........f(xn) be the (n+1) values o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 145,
"s": 54,
"text": "Interpolation is an estimation of a value within two known values in a sequence of values."
},
{
"code": null,
"e": 298,
"s": 145,
"text": "Newton’s divid... |
Fligner-Killeen Test in R Programming | 12 Oct, 2020
The Fligner-Killeen test is a non-parametric test for homogeneity of group variances based on ranks. It is useful when the data are non-normally distributed or when problems related to outliers in the dataset cannot be resolved. It is also one of the many tests for homogeneity of variances which is most ro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Oct, 2020"
},
{
"code": null,
"e": 480,
"s": 28,
"text": "The Fligner-Killeen test is a non-parametric test for homogeneity of group variances based on ranks. It is useful when the data are non-normally distributed or when problems r... |
Polymorphism in R Programming | 10 Aug, 2021
R language is evolving and it implements parametric polymorphism, which means that methods in R refer to functions, not classes. Parametric polymorphism primarily lets you define a generic method or function for types of objects you haven’t yet defined and may never do. This means that one can use the same... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Aug, 2021"
},
{
"code": null,
"e": 586,
"s": 54,
"text": "R language is evolving and it implements parametric polymorphism, which means that methods in R refer to functions, not classes. Parametric polymorphism primarily lets you de... |
Flutter – Row and Column Widgets | 29 Jun, 2022
Row and Column are the two most important and powerful widgets in Flutter. These widgets let you align children horizontally and vertically as per the requirement. As we know that when we design any UI(User Interface) in a flutter, we need to arrange its content in the Row and Column manner so these Row a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 412,
"s": 54,
"text": "Row and Column are the two most important and powerful widgets in Flutter. These widgets let you align children horizontally and vertically as per the requirement. As we know... |
Quality Function Deployment (QFD) in Software Quality | 17 Aug, 2020
Quality Function Deployment (QFD) is process or set of tools used to define the customer requirements for product and convert those requirements into engineering specifications and plans such that the customer requirements for that product are satisfied.
QFD was developed in late 1960s by Japanese Planning... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 307,
"s": 52,
"text": "Quality Function Deployment (QFD) is process or set of tools used to define the customer requirements for product and convert those requirements into engineering specificatio... |
Operational Amplifier (op-amp) in Digital Electronics | 10 Feb, 2021
An amplifier is a device that increases the strength of the input signal. It can be Voltage amplifiers, whose input is some voltage and output is also voltage but amplified. Current amplifier, whose input is some current and output is also current but amplified.
Block diagram of an op-amp
Transconductance ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Feb, 2021"
},
{
"code": null,
"e": 315,
"s": 52,
"text": "An amplifier is a device that increases the strength of the input signal. It can be Voltage amplifiers, whose input is some voltage and output is also voltage but amplified. ... |
Sum of all the prime numbers in a given range | 21 Sep, 2021
Given a range [l, r], the task is to find the sum of all the prime numbers within that range.Examples:
Input : l=1 and r=6
Output : 10
Input : l=4 and r=13
Output : 36
Approach 1: (Naive Approach) Iterate the loop from ‘l’ to ‘r’ and add all the numbers which are prime.Below is the implementation of ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 157,
"s": 52,
"text": "Given a range [l, r], the task is to find the sum of all the prime numbers within that range.Examples: "
},
{
"code": null,
"e": 224,
"s": 157,
"text": "... |
How to Rotate and Scale images using PyGame ? | 21 Apr, 2021
In this article, we are going to see how to Rotate and Scale the image. Image Scaling refers to the resizing of the original image and Image Rotation refers to the turning of an image with some angle. Rotations in the coordinate plane are counterclockwise. Let’s proceed with the methods used and the comple... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 393,
"s": 54,
"text": "In this article, we are going to see how to Rotate and Scale the image. Image Scaling refers to the resizing of the original image and Image Rotation refers to the turning of... |
How to extend Interfaces in Java | An interface contains variables and methods like a class but the methods in an interface are abstract by default unlike a class. An interface extends another interface like a class implements an interface in interface inheritance.
A program that demonstrates extending interfaces in Java is given as follows:
Live Demo
... | [
{
"code": null,
"e": 1418,
"s": 1187,
"text": "An interface contains variables and methods like a class but the methods in an interface are abstract by default unlike a class. An interface extends another interface like a class implements an interface in interface inheritance."
},
{
"code": ... |
How To Plot Time Series. Produce elegant plots that tell a story | by Nadim Kawwa | Towards Data Science | Dealing with time series can be one of the most insightful parts of exploratory data analysis, if done right. In This post, we are going to use the checkin log from the Yelp Dataset to explore trends across different time periods using Pandas and Matplotlib.
After downloading the data, we need to know what to use. The ... | [
{
"code": null,
"e": 305,
"s": 46,
"text": "Dealing with time series can be one of the most insightful parts of exploratory data analysis, if done right. In This post, we are going to use the checkin log from the Yelp Dataset to explore trends across different time periods using Pandas and Matplotli... |
Python Membership and Identity Operators - GeeksforGeeks | 09 Dec, 2021
In this article, we are going to Python Membership and Identity Operators.
Membership operators are operators used to validate the membership of a value. It tests for membership in a sequence, such as strings, lists, or tuples.
in operator: The ‘in’ operator is used to check if a value exists in a sequenc... | [
{
"code": null,
"e": 41552,
"s": 41524,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 41627,
"s": 41552,
"text": "In this article, we are going to Python Membership and Identity Operators."
},
{
"code": null,
"e": 41781,
"s": 41627,
"text": "Membership oper... |
10 Of My Favorite Python Libraries For Data Analysis | by Emmett Boudreau | Towards Data Science | The most popular general purpose programming language on planet Earth right now is the Python programming language. This is not only because Python is incredibly easy, and relatively fast, but also that Python has a killer ecosystem with tools to fit every discipline from business to finance and science. One area that ... | [
{
"code": null,
"e": 571,
"s": 172,
"text": "The most popular general purpose programming language on planet Earth right now is the Python programming language. This is not only because Python is incredibly easy, and relatively fast, but also that Python has a killer ecosystem with tools to fit ever... |
How to analyze stratified random sampled data | by Jason Sadowski | Towards Data Science | When constructing an experiment, one of the most important questions to ask is: How should I sample from my population? Clearly you want to conduct some sort of random sampling procedure, but exactly how the random sampling is done can have a large impact on your analysis. While there are many useful guides on how to c... | [
{
"code": null,
"e": 780,
"s": 172,
"text": "When constructing an experiment, one of the most important questions to ask is: How should I sample from my population? Clearly you want to conduct some sort of random sampling procedure, but exactly how the random sampling is done can have a large impact... |
5 Python Libraries That You Don’t Know About, But Should | by Ismael Araujo | Towards Data Science | One of the best things about using Python is its infinity of open-source libraries. There is a library for basically anything. If you have read some of my previous blogs, you may have noticed that I’m a big fan of low-code libraries. That’s not because I’m lazy to type code but because I prefer investing my time workin... | [
{
"code": null,
"e": 757,
"s": 171,
"text": "One of the best things about using Python is its infinity of open-source libraries. There is a library for basically anything. If you have read some of my previous blogs, you may have noticed that I’m a big fan of low-code libraries. That’s not because I’... |
Webkiller v2.0 - Tool Information Gathering tool in Kali Linux - GeeksforGeeks | 11 Sep, 2021
Webkiller is a free and open-source tool available on GitHub. Webkiller is used as an information-gathering tool. Webkiller is used to scan websites for information gathering and finding vulnerabilities in websites and webapps. The whois data collection gives us information about Geoip lookup, Banner grabb... | [
{
"code": null,
"e": 24776,
"s": 24748,
"text": "\n11 Sep, 2021"
},
{
"code": null,
"e": 25174,
"s": 24776,
"text": "Webkiller is a free and open-source tool available on GitHub. Webkiller is used as an information-gathering tool. Webkiller is used to scan websites for informatio... |
Program to print half Diamond star pattern - GeeksforGeeks | 31 Dec, 2020
Given an integer N, the task is to print half-diamond-star pattern.
************************************
Examples:
Input: N = 3
Output:
*
**
***
**
*
Input: N = 6
Output:
*
**
***
****
*****
******
*****
****
***
**
*
Approach: The idea is to break the pattern into two halves that is upper half and lower... | [
{
"code": null,
"e": 24562,
"s": 24534,
"text": "\n31 Dec, 2020"
},
{
"code": null,
"e": 24630,
"s": 24562,
"text": "Given an integer N, the task is to print half-diamond-star pattern."
},
{
"code": null,
"e": 24667,
"s": 24630,
"text": "**********************... |
How to set font for Text in Tkinter? | Tkinter has many inbuilt methods and functions which are used to provide different features in the widgets. We can customize the font-property of text widget in a tkinter application using the font(‘font-family’,font-size, ‘style’) attribute. The tuple can be declared inside the Text constructor.
Let us have a look at ... | [
{
"code": null,
"e": 1360,
"s": 1062,
"text": "Tkinter has many inbuilt methods and functions which are used to provide different features in the widgets. We can customize the font-property of text widget in a tkinter application using the font(‘font-family’,font-size, ‘style’) attribute. The tuple ... |
Introduction to Reinforcement Learning (DDPG and TD3) for News Recommendation | by Mikhail Scherbina | Towards Data Science | TL;DR: Reinforcement Learning is the ideal framework for a recommendation system because it has Markov Property. The state is movies rated by a user. Action is the movie chosen to watch next and the reward is its rating. I made a DDPG/TD3 implementation of the idea. The main section of the article covers implementation... | [
{
"code": null,
"e": 660,
"s": 172,
"text": "TL;DR: Reinforcement Learning is the ideal framework for a recommendation system because it has Markov Property. The state is movies rated by a user. Action is the movie chosen to watch next and the reward is its rating. I made a DDPG/TD3 implementation o... |
How do I display an alert dialog on Android? | Before getting into alert dialog, we should know about what is alert dialog, Alert dialog is just like a pop-up where user can choose action by clicking "ok" or "cancel" button.
setView(View view) − It used to set custom view to alert dialog
setView(View view) − It used to set custom view to alert dialog
setTitle(CharS... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "Before getting into alert dialog, we should know about what is alert dialog, Alert dialog is just like a pop-up where user can choose action by clicking \"ok\" or \"cancel\" button."
},
{
"code": null,
"e": 1304,
"s": 1240,
"text": "... |
AI Chatbot with NLP: Speech Recognition + Transformers | by Mauro Di Pietro | Towards Data Science | In this article, I will show how to leverage pre-trained tools to build a Chatbot that uses Artificial Intelligence and Speech Recognition, so a talking AI.
NLP (Natural Language Processing) is the field of artificial intelligence that studies the interactions between computers and human languages, in particular how to... | [
{
"code": null,
"e": 329,
"s": 172,
"text": "In this article, I will show how to leverage pre-trained tools to build a Chatbot that uses Artificial Intelligence and Speech Recognition, so a talking AI."
},
{
"code": null,
"e": 651,
"s": 329,
"text": "NLP (Natural Language Process... |
Android | App to Add Two Numbers - GeeksforGeeks | 22 Sep, 2021
Below are the steps for Creating a Simple Android Application to Add Two Numbers
STEP-1: First of all go to the xml file
STEP-2: Now go to the text and write the code for adding 3 textview,2 textedit and Button and Assign ID to each component. Assign margin top, left, right for the location.
STEP-3: Now, o... | [
{
"code": null,
"e": 24268,
"s": 24240,
"text": "\n22 Sep, 2021"
},
{
"code": null,
"e": 24349,
"s": 24268,
"text": "Below are the steps for Creating a Simple Android Application to Add Two Numbers"
},
{
"code": null,
"e": 24389,
"s": 24349,
"text": "STEP-1: F... |
Create and Read QR code using Python | by Abhijith Chandradas | Towards Data Science | QR codes are machine readable two dimensional pixelated barcodes which can be used to store a variety of information. QR in QR code stands for Quick Response.QR code was invented by a Japanese engineer Masahiro Hara from automobile manufacturer Denso Wave in the year 1994 to track the movement of car parts.QR Code has ... | [
{
"code": null,
"e": 898,
"s": 172,
"text": "QR codes are machine readable two dimensional pixelated barcodes which can be used to store a variety of information. QR in QR code stands for Quick Response.QR code was invented by a Japanese engineer Masahiro Hara from automobile manufacturer Denso Wave... |
Git Pull Branch from GitHub | Now continue working on our new branch in our local Git.
Lets pull from our GitHub repository again so that our code is up-to-date:
git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0), pac... | [
{
"code": null,
"e": 57,
"s": 0,
"text": "Now continue working on our new branch in our local Git."
},
{
"code": null,
"e": 132,
"s": 57,
"text": "Lets pull from our GitHub repository again so that our code is up-to-date:"
},
{
"code": null,
"e": 522,
"s": 132,
... |
Find the first repeating element in an array of integers - GeeksforGeeks | 10 Feb, 2022
Given an array of integers, find the first repeating element in it. We need to find the element that occurs more than once and whose index of first occurrence is smallest.
Examples:
Input: arr[] = {10, 5, 3, 4, 3, 5, 6}
Output: 5 [5 is the first element that repeats]
Input: arr[] = {6, 10, 5, 4, 9, 12... | [
{
"code": null,
"e": 24395,
"s": 24367,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 24568,
"s": 24395,
"text": "Given an array of integers, find the first repeating element in it. We need to find the element that occurs more than once and whose index of first occurrence is s... |
Difference between exit() and break in C/C++ - GeeksforGeeks | 02 Dec, 2021
In this article, the topic is to understand the difference between exit() and break.
exit():
When a user wants to exit a program from this function is used.
It is a void return type function that calls all functions registered at the exit and terminates the program.
File buffers are flushed, streams are cl... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 24317,
"s": 24232,
"text": "In this article, the topic is to understand the difference between exit() and break."
},
{
"code": null,
"e": 24325,
"s": 24317,
"text": "exit(... |
Circular Fillable Loader in Android with Seekbar - GeeksforGeeks | 30 Apr, 2021
Circular Fillable Loader is an outstanding way of showing the ProgressBar in any Android app while loading. Display ProgressBar in another form is one of the best ways to increase the user experience. You can get to see these customize loaders in most of the apps. In this article, we are going to see how t... | [
{
"code": null,
"e": 24725,
"s": 24697,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 25246,
"s": 24725,
"text": "Circular Fillable Loader is an outstanding way of showing the ProgressBar in any Android app while loading. Display ProgressBar in another form is one of the best ... |
RxJava - Conditional Operators | Following are the operators which evaluates one or multiple Observables or items emitted.
All
Evaluates all items emitted to meet given criteria.
Amb
Emits all items from the first Observable only given multiple Observables.
Contains
Checks if an Observable emits a particular item or not.
DefaultIfEmpty
Emits default i... | [
{
"code": null,
"e": 2491,
"s": 2401,
"text": "Following are the operators which evaluates one or multiple Observables or items emitted."
},
{
"code": null,
"e": 2495,
"s": 2491,
"text": "All"
},
{
"code": null,
"e": 2547,
"s": 2495,
"text": "Evaluates all ite... |
Print alternate elements of an array | Practice | GeeksforGeeks | You are given an array A of size N. You need to print elements of A in alternate order (starting from index 0).
Example 1:
Input:
N = 4
A[] = {1, 2, 3, 4}
​Output:
1 3
Example 2:
Input:
N = 5
A[] = {1, 2, 3, 4, 5}
​Output:
1 3 5
Your Task:
Since this is a function problem, you just need to complete the provided... | [
{
"code": null,
"e": 350,
"s": 238,
"text": "You are given an array A of size N. You need to print elements of A in alternate order (starting from index 0)."
},
{
"code": null,
"e": 361,
"s": 350,
"text": "Example 1:"
},
{
"code": null,
"e": 410,
"s": 361,
"te... |
Batch Script - SHUTDOWN | This batch command shuts down a computer, or logs off the current user.
shutdown
@echo off
shutdown
If the user executing the batch files has the relevant rights, the computer will be shutdown.
Print
Add Notes
Bookmark this page | [
{
"code": null,
"e": 2241,
"s": 2169,
"text": "This batch command shuts down a computer, or logs off the current user."
},
{
"code": null,
"e": 2251,
"s": 2241,
"text": "shutdown\n"
},
{
"code": null,
"e": 2271,
"s": 2251,
"text": "@echo off \nshutdown"
},
... |
Analysis of Variance — ANOVA with Python | Towards Data Science | In a series of weekly articles, I will cover some important statistics topics with a twist.
The goal is to use Python to help us get intuition on complex concepts, empirically test theoretical proofs, or build algorithms from scratch. In this series, you will find articles covering topics such as random variables, samp... | [
{
"code": null,
"e": 263,
"s": 171,
"text": "In a series of weekly articles, I will cover some important statistics topics with a twist."
},
{
"code": null,
"e": 563,
"s": 263,
"text": "The goal is to use Python to help us get intuition on complex concepts, empirically test theor... |
Is vs As operator keyword in C# - GeeksforGeeks | 21 Jan, 2019
The difference between is and as operators are as follows:
The is operator is used to check if the run-time type of an object is compatible with the given type or not whereas as operator is used to perform conversion between compatible reference types or Nullable types.
The is operator is of boolean type w... | [
{
"code": null,
"e": 23889,
"s": 23861,
"text": "\n21 Jan, 2019"
},
{
"code": null,
"e": 23948,
"s": 23889,
"text": "The difference between is and as operators are as follows:"
},
{
"code": null,
"e": 24160,
"s": 23948,
"text": "The is operator is used to chec... |
Gerrit - Prepare Push Change Set to Gerrit | You need to review the changes in Gerrit before merging them into the master. The changes can be synchronized that have occurred in the master. Use the following command within the branch that you have been working on.
$ git pull --rebase origin master
The above command will fetch the changes or commits from the remot... | [
{
"code": null,
"e": 2457,
"s": 2238,
"text": "You need to review the changes in Gerrit before merging them into the master. The changes can be synchronized that have occurred in the master. Use the following command within the branch that you have been working on."
},
{
"code": null,
"e... |
BigDecimal stripTrailingZeros() Method in Java - GeeksforGeeks | 04 Dec, 2018
The java.math.BigDecimal.stripTrailingZeros() is an inbuilt method in Java that returns a BigDecimal which is numerically equal to this one but with any trailing zeros removed from the representation. So basically the function trims off the trailing zero from the BigDecimal value.
Syntax:
public BigDecimal... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 24230,
"s": 23948,
"text": "The java.math.BigDecimal.stripTrailingZeros() is an inbuilt method in Java that returns a BigDecimal which is numerically equal to this one but with any trailing z... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.