title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Early Stopping in Practice: an example with Keras and TensorFlow 2.0 | by B. Chen | Towards Data Science | In this article, we will focus on adding and customizing Early Stopping in our machine learning model and look at an example of how we do this in practice with Keras and TensorFlow 2.0.
In machine learning, early stopping is one of the most widely used regularization techniques to combat the overfitting issue.
Early St... | [
{
"code": null,
"e": 358,
"s": 172,
"text": "In this article, we will focus on adding and customizing Early Stopping in our machine learning model and look at an example of how we do this in practice with Keras and TensorFlow 2.0."
},
{
"code": null,
"e": 484,
"s": 358,
"text": "... |
Beginner Explanation for Data Transformation | by Cornellius Yudha Wijaya | Towards Data Science | If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here.
What is Data Transformation?— I am pretty sure anybody who is learning data and statistics would come across these terms at some point. Data transform... | [
{
"code": null,
"e": 342,
"s": 172,
"text": "If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here."
},
{
"code": null,
"e": 696,
"s": 342,
"text": "What is Data Tra... |
Count the number of ways to divide N in k groups incrementally - GeeksforGeeks | 26 Nov, 2021
Given two integers N and K, the task is to count the number of ways to divide N into K groups of positive integers such that their sum is N and the number of elements in groups follows a non-decreasing order (i.e group[i] <= group[i+1]).Examples:
Input: N = 8, K = 4 Output: 5 Explanation: Their are 5 gro... | [
{
"code": null,
"e": 24760,
"s": 24732,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 25009,
"s": 24760,
"text": "Given two integers N and K, the task is to count the number of ways to divide N into K groups of positive integers such that their sum is N and the number of eleme... |
K-Means Clustering — Introduction to Machine Learning Algorithms | by Rohith Gandhi | Towards Data Science | In machine learning, we are not always provided an objective to optimize, we are not always provided a target label to classify the input data points into. The kinds of problems where we are not provided with an objective or label to classify is termed as an unsupervised learning problem in the domain of AI. In an unsu... | [
{
"code": null,
"e": 902,
"s": 171,
"text": "In machine learning, we are not always provided an objective to optimize, we are not always provided a target label to classify the input data points into. The kinds of problems where we are not provided with an objective or label to classify is termed as... |
Visualizing Missing Values in Python is Shockingly Easy | by Eirik Berge | Towards Data Science | Setting the StageWhat is Missingno?Loading the DataBar ChartsMatrix PlotsHeatmapsWhat have you Learned?Wrapping Up
Setting the Stage
What is Missingno?
Loading the Data
Bar Charts
Matrix Plots
Heatmaps
What have you Learned?
Wrapping Up
Missing values are a fact of life. If you are a data scientist or a data engineer a... | [
{
"code": null,
"e": 287,
"s": 172,
"text": "Setting the StageWhat is Missingno?Loading the DataBar ChartsMatrix PlotsHeatmapsWhat have you Learned?Wrapping Up"
},
{
"code": null,
"e": 305,
"s": 287,
"text": "Setting the Stage"
},
{
"code": null,
"e": 324,
"s": 30... |
Error:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH using Selenium | We can get the error selenium.common.exceptions.WebDriverException if the path of the chromedriver.exe executable file is not set properly or incorrect within the webdriver.Chrome(). The below image shows such an exception.
It can be resolved by the following ways −
Verify the path of the chromedriver.exe file set with... | [
{
"code": null,
"e": 1286,
"s": 1062,
"text": "We can get the error selenium.common.exceptions.WebDriverException if the path of the chromedriver.exe executable file is not set properly or incorrect within the webdriver.Chrome(). The below image shows such an exception."
},
{
"code": null,
... |
Build a basic Text Editor using Tkinter in Python - GeeksforGeeks | 29 Dec, 2020
Tkinter is a Python Package for creating GUI applications. Python has a lot of GUI frameworks, but this is the only framework that’s built into the Python standard library. It has several strengths; it’s cross-platform, so the same code works on Windows, macOS, and Linux. It is lightweight and relatively p... | [
{
"code": null,
"e": 24316,
"s": 24288,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 24899,
"s": 24316,
"text": "Tkinter is a Python Package for creating GUI applications. Python has a lot of GUI frameworks, but this is the only framework that’s built into the Python standard... |
Design a Chess Game - GeeksforGeeks | 30 Sep, 2020
Problem Statement: The problem is to design a Chess Game using Object Oriented Principles.
Asked In: Adobe, Amazon, Microsoft, etc.
Solution:These type of questions are asked in interviews to Judge the Object-Oriented Design skill of a candidate. So, first of all we should think about the classes.
The main... | [
{
"code": null,
"e": 24558,
"s": 24530,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 24649,
"s": 24558,
"text": "Problem Statement: The problem is to design a Chess Game using Object Oriented Principles."
},
{
"code": null,
"e": 24690,
"s": 24649,
"text": ... |
Image processing/OpenCV image dilation Java Example. | Erosion and dilation are the two basic morphological operations. As the name
implies, morphological operations are the set of operations that process images
according to their shapes.
During dilation operation additional pixels are added to an image boundary, a total number of pixels added during the dilation process d... | [
{
"code": null,
"e": 1246,
"s": 1062,
"text": "Erosion and dilation are the two basic morphological operations. As the name\nimplies, morphological operations are the set of operations that process images\naccording to their shapes."
},
{
"code": null,
"e": 1440,
"s": 1246,
"text... |
strictfp keyword in java | 26 Sep, 2021
strictfp is a modifier that stands for strict floating-point which was not introduced in the base version of java as it was introduced in Java version 1.2. It is used in java for restricting floating-point calculations and ensuring the same result on every platform while performing operations in the floati... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Sep, 2021"
},
{
"code": null,
"e": 708,
"s": 54,
"text": "strictfp is a modifier that stands for strict floating-point which was not introduced in the base version of java as it was introduced in Java version 1.2. It is used in java... |
How to format Phone Numbers in PHP ? | 25 May, 2021
In this article, we will learn how to format phone numbers using PHP. When we need to store a phone number then we store the formatting phone number. Using PHP, we can easily format phone numbers.
Approach: In this article, we will format the phone number using the preg_match() method. We can use this meth... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 225,
"s": 28,
"text": "In this article, we will learn how to format phone numbers using PHP. When we need to store a phone number then we store the formatting phone number. Using PHP, we can easily ... |
Adding new column to existing DataFrame in Pandas | Pandas Data Frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. It can be created using python dict, list and series etc. In this article we will see how to add a new column to an existing data frame.
So first let's create a data frame using pandas series. In the b... | [
{
"code": null,
"e": 1619,
"s": 1187,
"text": "Pandas Data Frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. It can be created using python dict, list and series etc. In this article we will see how to add a new column to an existing data fram... |
Minimum rooms for m events of n batches with given schedule | 01 Jun, 2021
There are n student groups at the school. On each day in school, there are m time slots. A student group may or may not be free during a time slot. We are given n binary string where each binary string is of length m. A character at j-th position in i-th string is 0 if i-th group is free in j-th slot and 1... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 584,
"s": 53,
"text": "There are n student groups at the school. On each day in school, there are m time slots. A student group may or may not be free during a time slot. We are given n binary stri... |
cupsd command in Linux with examples | 15 May, 2019
cupsd is a type of scheduler for CUPS (Common Unit Printing System). It implements the printing system on the basis of the Internet Printing Protocol(Version 2.1). If no options is being specified on the command-line then the default configuration file /etc/cups/cupsd.conf will be automatically be used.
In... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 333,
"s": 28,
"text": "cupsd is a type of scheduler for CUPS (Common Unit Printing System). It implements the printing system on the basis of the Internet Printing Protocol(Version 2.1). If no optio... |
Nested switch case | 24 Jan, 2022
Switch-case statements:These are a substitute for long if statements that compare a variable to several integral values
The switch statement is a multiway branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression.
Switch is a control s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 174,
"s": 52,
"text": "Switch-case statements:These are a substitute for long if statements that compare a variable to several integral values "
},
{
"code": null,
"e": 338,
"s": 1... |
Numpy count_nonzero method | Python | 22 Apr, 2020
numpy.count_nonzero() function counts the number of non-zero values in the array arr.
Syntax : numpy.count_nonzero(arr, axis=None)
Parameters :arr : [array_like] The array for which to count non-zeros.axis : [int or tuple, optional] Axis or tuple of axes along which to count non-zeros. Default is None, mea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "numpy.count_nonzero() function counts the number of non-zero values in the array arr."
},
{
"code": null,
"e": 159,
"s": 114,
"text": "Syntax : numpy.count... |
Print the element at a given index in a Set in C++ | 12 Jan, 2022
Given a Set of integers sett and an integer index, the task is to find the element in the set which is present at index. If the index is beyond limits, then print “Invalid index”.Examples:
Input: sett = {11, 44, 66, 72, 88, 99}, index = 2 Output: The element at index 2 is : 66 Explaination: The element 6... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 243,
"s": 52,
"text": "Given a Set of integers sett and an integer index, the task is to find the element in the set which is present at index. If the index is beyond limits, then print “Invalid in... |
Difference between split() and explode() functions for String manipulation in PHP | 27 Oct, 2021
In this article, we will see the differences between split() and explode() functions for String manipulation in PHP. The split() and explode() functions are available in base PHP and are used to perform string manipulations as well as conversions.
split() Function: The split() function in PHP is used to se... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Oct, 2021"
},
{
"code": null,
"e": 276,
"s": 28,
"text": "In this article, we will see the differences between split() and explode() functions for String manipulation in PHP. The split() and explode() functions are available in base ... |
How to create an Expandable CardView in Android | 18 Feb, 2021
Expandable Cardview provides to create expansion panels without too much hassle and without writing boilerplate code. An expandable card-view becomes quite useful when it comes to an efficient and systematic presentation of data or information on the screen. It is used in a variety of apps, for example, th... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 484,
"s": 53,
"text": "Expandable Cardview provides to create expansion panels without too much hassle and without writing boilerplate code. An expandable card-view becomes quite useful when it com... |
FIFO (First-In-First-Out) approach in Programming | 21 Jun, 2022
FIFO is an abbreviation for first in, first out. It is a method for handling data structures where the first element is processed first and the newest element is processed last.Real life example:
In this example, following things are to be considered:
There is a ticket counter where people come, take ti... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 250,
"s": 53,
"text": "FIFO is an abbreviation for first in, first out. It is a method for handling data structures where the first element is processed first and the newest element is processed la... |
MD5 hash in Python | 21 Apr, 2020
Cryptographic hashes are used in day-day life like in digital signatures, message authentication codes, manipulation detection, fingerprints, checksums (message integrity check), hash tables, password storage and much more. They are also used in sending messages over network for security or storing message... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 510,
"s": 54,
"text": "Cryptographic hashes are used in day-day life like in digital signatures, message authentication codes, manipulation detection, fingerprints, checksums (message integrity che... |
Python | Dictionary with index as value | 29 Apr, 2019
The interconversion between the datatypes is very popular and hence many articles have been written to demonstrate different kind of problems with their solutions. This article deals with yet another similar type problem of converting a list to dictionary, with values as the index where element occurs. Let... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Apr, 2019"
},
{
"code": null,
"e": 396,
"s": 28,
"text": "The interconversion between the datatypes is very popular and hence many articles have been written to demonstrate different kind of problems with their solutions. This articl... |
Maximum number of squares that can fit in a right angle isosceles triangle | 16 Jun, 2022
You are given an isosceles (a triangle with at-least two equal sides) right angle triangle with base b, we need to find the maximum number of squares of side m, which can be fitted into given triangle.Examples:
Input : b = 6, m = 2
Output : 3
Input : b = 4, m = 1
Output : 6
Let’s consider a right angl... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 267,
"s": 54,
"text": "You are given an isosceles (a triangle with at-least two equal sides) right angle triangle with base b, we need to find the maximum number of squares of side m, which can be ... |
Python | Inverse Fast Fourier Transformation | 20 Jul, 2021
Inverse Fast Fourier transform (IDFT) is an algorithm to undoes the process of DFT. It is also known as backward Fourier transform. It converts a space or time signal to a signal of the frequency domain. The DFT signal is generated by the distribution of value sequences to different frequency components. W... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 828,
"s": 54,
"text": "Inverse Fast Fourier transform (IDFT) is an algorithm to undoes the process of DFT. It is also known as backward Fourier transform. It converts a space or time signal to a si... |
Node.js console.count() Method | 26 Jun, 2020
The console.count() method is an inbuilt application programming interface of the console module which is used to count label passed to it as a parameter, by maintaining an internal counter for that specific label.
Syntax:
console.count(label)
Parameters: This method has one parameter as mentioned above an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jun, 2020"
},
{
"code": null,
"e": 243,
"s": 28,
"text": "The console.count() method is an inbuilt application programming interface of the console module which is used to count label passed to it as a parameter, by maintaining an in... |
Lexicographically first palindromic string | 07 Jul, 2022
Rearrange the characters of the given string to form a lexicographically first palindromic string. If no such string exists display message “no palindromic string”.
Examples:
Input : malayalam
Output : aalmymlaa
Input : apple
Output : no palindromic string
Simple Approach:1. Sort the string characters in... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 217,
"s": 52,
"text": "Rearrange the characters of the given string to form a lexicographically first palindromic string. If no such string exists display message “no palindromic string”."
},
{... |
How to Encrypt and Decrypt a PHP String ? | 31 Jul, 2021
In PHP, Encryption and Decryption of a string is possible using one of the Cryptography Extensions called OpenSSL function for encrypt and decrypt.
openssl_encrypt() Function: The openssl_encrypt() function is used to encrypt the data.
Syntax:
string openssl_encrypt( string $data, string $method, string $k... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Jul, 2021"
},
{
"code": null,
"e": 202,
"s": 54,
"text": "In PHP, Encryption and Decryption of a string is possible using one of the Cryptography Extensions called OpenSSL function for encrypt and decrypt."
},
{
"code": null... |
How to reload activity in Android? | In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity 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.... | [
{
"code": null,
"e": 1318,
"s": 1187,
"text": "In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity in Android."
},
{
"code": null,
"e": 1447,
"s": 1318,
"text": "Step 1 − Create a new project in Android Studio, go... |
MongoDB - Analyzing Queries | Analyzing queries is a very important aspect of measuring how effective the database and indexing design is. We will learn about the frequently used $explain and $hint queries.
The $explain operator provides information on the query, indexes used in a query and other statistics. It is very useful when analyzing how wel... | [
{
"code": null,
"e": 2730,
"s": 2553,
"text": "Analyzing queries is a very important aspect of measuring how effective the database and indexing design is. We will learn about the frequently used $explain and $hint queries."
},
{
"code": null,
"e": 2903,
"s": 2730,
"text": "The $... |
Accessing variables in a constructor function using a prototype method with JavaScript? | For this, use a “prototype”. JavaScript objects inherit properties and methods from a prototype.
For accessing variables, we have also used the “this” in JavaScript.
function Customer(fullName){
this.fullName=fullName;
}
Customer.prototype.setFullName = function(newFullName){
this.fullName=newFullName;
}
var cust... | [
{
"code": null,
"e": 1228,
"s": 1062,
"text": "For this, use a “prototype”. JavaScript objects inherit properties and methods from a prototype.\nFor accessing variables, we have also used the “this” in JavaScript."
},
{
"code": null,
"e": 1571,
"s": 1228,
"text": "function Custom... |
Program to find number of steps to solve 8-puzzle in python | Suppose we have a 3x3 board of where all numbers are in range 0 to 8 and no repeating numbers are there. Now, we can swap the 0 with one of its 4 neighbors, and we are trying to solve it to get all arranged sequence, we have to find minimum number of steps required to reach the goal.
So, if the input is like
then the o... | [
{
"code": null,
"e": 1347,
"s": 1062,
"text": "Suppose we have a 3x3 board of where all numbers are in range 0 to 8 and no repeating numbers are there. Now, we can swap the 0 with one of its 4 neighbors, and we are trying to solve it to get all arranged sequence, we have to find minimum number of st... |
Array elements that appear more than once - GeeksforGeeks | 11 Aug, 2021
Given an integer array, print all repeating elements (Elements that appear more than once) in the array. The output should contain elements according to their first occurrences.
Examples:
Input: arr[] = {12, 10, 9, 45, 2, 10, 10, 45}
Output: 10 45
Input: arr[] = {1, 2, 3, 4, 2, 5}
Output: 2
Input: arr[]... | [
{
"code": null,
"e": 24820,
"s": 24792,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 24998,
"s": 24820,
"text": "Given an integer array, print all repeating elements (Elements that appear more than once) in the array. The output should contain elements according to their firs... |
Ways to read input from console in Java | Let us see some ways to read input from console in Java −
import java.util.Scanner;
public class Demo{
public static void main(String args[]){
Scanner my_scan = new Scanner(System.in);
String my_str = my_scan.nextLine();
System.out.println("The string is "+my_str);
int my_val = my_scan.nextIn... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "Let us see some ways to read input from console in Java −"
},
{
"code": null,
"e": 1548,
"s": 1120,
"text": "import java.util.Scanner;\npublic class Demo{\n public static void main(String args[]){\n Scanner my_scan = new Scann... |
C++ Program to Implement Sparse Matrix | A sparse matrix is a matrix in which majority of the elements are 0. An example for this is given as follows.
The matrix given below contains 5 zeroes. Since the number of zeroes is more than half the elements of the matrix, it is a sparse matrix.
5 0 0
3 0 1
0 0 9
A program to implement a sparse matrix is as follows.
... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "A sparse matrix is a matrix in which majority of the elements are 0. An example for this is given as follows."
},
{
"code": null,
"e": 1310,
"s": 1172,
"text": "The matrix given below contains 5 zeroes. Since the number of zeroes is ... |
Set removeAll() method in Java with Examples - GeeksforGeeks | 30 Sep, 2019
The removeAll() method of java.util.Set interface is used to remove from this set all of its elements that are contained in the specified collection.
Syntax:
public boolean removeAll(Collection c)
Parameters: This method takes collection c as a parameter containing elements to be removed from this set.
Ret... | [
{
"code": null,
"e": 26385,
"s": 26357,
"text": "\n30 Sep, 2019"
},
{
"code": null,
"e": 26535,
"s": 26385,
"text": "The removeAll() method of java.util.Set interface is used to remove from this set all of its elements that are contained in the specified collection."
},
{
... |
Find the last remaining element after repeated removal of odd and even indexed elements alternately - GeeksforGeeks | 31 May, 2021
Given a positive integer N, the task is to print the last remaining element from a sequence [1, N] after repeatedly performing the following operations in the given order alternately:
Remove all the odd-indexed elements from the sequence.Remove all the even-indexed elements from the sequence.
Remove all th... | [
{
"code": null,
"e": 26771,
"s": 26743,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 26955,
"s": 26771,
"text": "Given a positive integer N, the task is to print the last remaining element from a sequence [1, N] after repeatedly performing the following operations in the give... |
Game theory — Minimax. This article will be a bit different... | by NerdzLab | Towards Data Science | This article will be a bit different from previous ones which are based on some new technologies to use in your projects.
Interesting? I will describe Minimax algorithm from the perspective of Game theory. Just letting you know what you are to expect :
1. So what’s Minimax algorithm? 2. Plan and code 3. Algorithm descr... | [
{
"code": null,
"e": 293,
"s": 171,
"text": "This article will be a bit different from previous ones which are based on some new technologies to use in your projects."
},
{
"code": null,
"e": 424,
"s": 293,
"text": "Interesting? I will describe Minimax algorithm from the perspect... |
Make HTML5 input type=“number” accepting dashes | To allow HTML5 input type = ”number” to accept dashes, use a regular expression.
Add the regular expression in the pattern attribute as shown below.
[ 0 - 9 ] + ([ - \, ] [0 - 9] + ) ? "
Add it to the code now:
input type = "text" pattern = "[0-9]+([-\,][0-9]+)?" name = "my-num" title = "dashes or comma"/>
The above wi... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To allow HTML5 input type = ”number” to accept dashes, use a regular expression."
},
{
"code": null,
"e": 1211,
"s": 1143,
"text": "Add the regular expression in the pattern attribute as shown below."
},
{
"code": null,
"... |
Lambda Expressions in Python. How to write anonymous functions in... | by Luay Matalka | Towards Data Science | Imagine we are coding and need to write a simple function. However, we are only going to be using this function once and thus it seems unnecessary to create an entire function with the def keyword for that one task. Well, that’s where lambda expressions come in.
Lambda expressions are used to create anonymous functions... | [
{
"code": null,
"e": 435,
"s": 172,
"text": "Imagine we are coding and need to write a simple function. However, we are only going to be using this function once and thus it seems unnecessary to create an entire function with the def keyword for that one task. Well, that’s where lambda expressions c... |
Redis - Benchmarks | Redis benchmark is the utility to check the performance of Redis by running n commands simultaneously.
Following is the basic syntax of Redis benchmark.
redis-benchmark [option] [option value]
Following example checks Redis by calling 100000 commands.
redis-benchmark -n 100000
PING_INLINE: 141043.72 requests per s... | [
{
"code": null,
"e": 2148,
"s": 2045,
"text": "Redis benchmark is the utility to check the performance of Redis by running n commands simultaneously."
},
{
"code": null,
"e": 2198,
"s": 2148,
"text": "Following is the basic syntax of Redis benchmark."
},
{
"code": null,
... |
Building a Custom Semantic Segmentation Model | by Sam Watts | Towards Data Science | Following on from my previous post here, I wanted to see how feasible it would be to reliably detect and segment a Futoshiki puzzle grid from an image without using a clunky capture grid. It works surprisingly well even when trained on a tiny dataset!
Semantic Segmentation is a step up in complexity versus the more com... | [
{
"code": null,
"e": 424,
"s": 172,
"text": "Following on from my previous post here, I wanted to see how feasible it would be to reliably detect and segment a Futoshiki puzzle grid from an image without using a clunky capture grid. It works surprisingly well even when trained on a tiny dataset!"
... |
DBSCAN — a density-based unsupervised algorithm for fraud detection | by Mahbubul Alam | Towards Data Science | According to a recent report financial losses due to fraudulent transactions have reached about $17 billion USD, with as many as 5% of consumers experiencing fraud incidents of some kind.
In light of such a big volume of financial losses, every industry is taking fraud detection seriously. It’s not just the financial i... | [
{
"code": null,
"e": 360,
"s": 172,
"text": "According to a recent report financial losses due to fraudulent transactions have reached about $17 billion USD, with as many as 5% of consumers experiencing fraud incidents of some kind."
},
{
"code": null,
"e": 706,
"s": 360,
"text":... |
Angular 6 - Environment Setup | In this chapter, we will discuss the Environment Setup required for Angular 6. To install Angular 6, we require the following −
Nodejs
Npm
Angular CLI
IDE for writing your code
Nodejs has to be greater than 8.11 and npm has to be greater than 5.6.
To check if nodejs is installed on your system, type node -v in the term... | [
{
"code": null,
"e": 2123,
"s": 1995,
"text": "In this chapter, we will discuss the Environment Setup required for Angular 6. To install Angular 6, we require the following −"
},
{
"code": null,
"e": 2130,
"s": 2123,
"text": "Nodejs"
},
{
"code": null,
"e": 2134,
... |
CSS Multiple Backgrounds | In this chapter you will learn how to add multiple background images to one
element.
You will also learn about the following properties:
background-size
background-origin
background-clip
CSS allows you to add multiple background images for an element, through the
background-image property.
The different background im... | [
{
"code": null,
"e": 86,
"s": 0,
"text": "In this chapter you will learn how to add multiple background images to one \nelement."
},
{
"code": null,
"e": 138,
"s": 86,
"text": "You will also learn about the following properties:"
},
{
"code": null,
"e": 154,
"s": ... |
Rearrange characters | Practice | GeeksforGeeks | Given a string S with repeated characters. The task is to rearrange characters in a string such that no two adjacent characters are the same.
Note: The string has only lowercase English alphabets and it can have multiple solutions. Return any one of them.
Example 1:
Input : str = "geeksforgeeks"
Output: 1
Explanation: ... | [
{
"code": null,
"e": 494,
"s": 238,
"text": "Given a string S with repeated characters. The task is to rearrange characters in a string such that no two adjacent characters are the same.\nNote: The string has only lowercase English alphabets and it can have multiple solutions. Return any one of them... |
Play infinitely looping video on-load in HTML5 | The <video> tag specifies video. Currently, there are 3 supported video formats for the <video> element that are MP4, WebM, and Ogg. Autoplay is used to start the video when the video and page loads.
The loop attribute is a boolean attribute. When present, it specifies that the video will start over again, every time i... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "The <video> tag specifies video. Currently, there are 3 supported video formats for the <video> element that are MP4, WebM, and Ogg. Autoplay is used to start the video when the video and page loads."
},
{
"code": null,
"e": 1397,
"s": 1... |
Apache Pig - CONCAT() | The CONCAT() function of Pig Latin is used to concatenate two or more expressions of the same type.
grunt> CONCAT (expression, expression, [...expression])
Assume that we have a file named student_details.txt in the HDFS directory /pig_data/ as shown below.
student_details.txt
001,Rajiv,Reddy,21,9848022337,Hyderabad,8... | [
{
"code": null,
"e": 2784,
"s": 2684,
"text": "The CONCAT() function of Pig Latin is used to concatenate two or more expressions of the same type."
},
{
"code": null,
"e": 2841,
"s": 2784,
"text": "grunt> CONCAT (expression, expression, [...expression])\n"
},
{
"code": nu... |
JavaScript Number NaN Property - GeeksforGeeks | 24 Dec, 2021
In JavaScript, NaN stands for Not a Number. It represents a value which is not a valid number. It can be used to check whether a number entered is a valid number or not a number. To assign a variable to NaN value, we can use one of the two following ways.
var a = NaN
var a = Number.NaN
Example: In this exa... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 26801,
"s": 26545,
"text": "In JavaScript, NaN stands for Not a Number. It represents a value which is not a valid number. It can be used to check whether a number entered is a valid number o... |
Create an empty file using Python - GeeksforGeeks | 28 May, 2020
File handling is a very important concept for any programmer. It can be used for creating, deleting, moving files or to store application data, user configurations, videos, images, etc. Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other f... | [
{
"code": null,
"e": 25657,
"s": 25629,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 26007,
"s": 25657,
"text": "File handling is a very important concept for any programmer. It can be used for creating, deleting, moving files or to store application data, user configurations... |
Python subprocess module to execute programs written in different languages - GeeksforGeeks | 03 Aug, 2021
The subprocess module present in Python(both 2.x and 3.x) is used to run new applications or programs through Python code by creating new processes. It also helps to obtain the input/output/error pipes as well as the exit codes of various commands.
To execute different programs using Python two functions o... | [
{
"code": null,
"e": 25701,
"s": 25673,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 25950,
"s": 25701,
"text": "The subprocess module present in Python(both 2.x and 3.x) is used to run new applications or programs through Python code by creating new processes. It also helps ... |
Python | Pandas dataframe.div() - GeeksforGeeks | 25 Aug, 2021
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.Pandas dataframe.div() is used to find the floating division of the dataframe and other elemen... | [
{
"code": null,
"e": 25575,
"s": 25547,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 26017,
"s": 25575,
"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 a... |
How to check whether a thread is alive or not in C# - GeeksforGeeks | 11 Jan, 2019
A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as IsAlive to check if the thread is alive or not. Or in other words, the value of this property indicates the current execution of the thread.
Syntax:
public bool IsAlive { get; }
Ret... | [
{
"code": null,
"e": 26104,
"s": 26076,
"text": "\n11 Jan, 2019"
},
{
"code": null,
"e": 26371,
"s": 26104,
"text": "A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as IsAlive to check if the thread is ali... |
Perl | Basic Syntax of a Perl Program - GeeksforGeeks | 25 Jun, 2019
Perl is a general purpose, high level interpreted and dynamic programming language. Perl was originally developed for the text processing like extracting the required information from a specified text file and for converting the text file into a different form.Perl supports both the procedural and Object-O... | [
{
"code": null,
"e": 25305,
"s": 25277,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 25730,
"s": 25305,
"text": "Perl is a general purpose, high level interpreted and dynamic programming language. Perl was originally developed for the text processing like extracting the requi... |
SWING - Container Class | The class Container is the super class for the containers of AWT. Container object can contain other AWT components.
Following is the declaration for java.awt.Container class −
public class Container
extends Component
Container()
This creates a new Container.
Component add(Component comp)
Appends the specified comp... | [
{
"code": null,
"e": 1880,
"s": 1763,
"text": "The class Container is the super class for the containers of AWT. Container object can contain other AWT components."
},
{
"code": null,
"e": 1940,
"s": 1880,
"text": "Following is the declaration for java.awt.Container class −"
},... |
Garbage Collection in C# | .NET Framework - GeeksforGeeks | 21 Jun, 2021
Automatic memory management is made possible by Garbage Collection in .NET Framework. When a class object is created at runtime, certain memory space is allocated to it in the heap memory. However, after all the actions related to the object are completed in the program, the memory space allocated to it is... | [
{
"code": null,
"e": 24128,
"s": 24100,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 24838,
"s": 24128,
"text": "Automatic memory management is made possible by Garbage Collection in .NET Framework. When a class object is created at runtime, certain memory space is allocated ... |
🚀 Introduction to Binary Classification with PyCaret | by Moez Ali | Towards Data Science | PyCaret is an open-source, low-code machine learning library in Python that automates machine learning workflows. It is an end-to-end machine learning and model management tool that speeds up the experiment cycle exponentially and makes you more productive.
In comparison with the other open-source machine learning libr... | [
{
"code": null,
"e": 430,
"s": 172,
"text": "PyCaret is an open-source, low-code machine learning library in Python that automates machine learning workflows. It is an end-to-end machine learning and model management tool that speeds up the experiment cycle exponentially and makes you more productiv... |
What is nodeValue property in JavaScript HTML DOM? | The nodeValue property is used to get the node value. You need to specify the node.
You can try to run the following code to learn how to get nodeValue property.
Live Demo
<!DOCTYPE html>
<html>
<body>
<p>Get the node value</p>
<button>Demo Button Text</button>
<script>
var val = document.... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "The nodeValue property is used to get the node value. You need to specify the node."
},
{
"code": null,
"e": 1224,
"s": 1146,
"text": "You can try to run the following code to learn how to get nodeValue property."
},
{
"code"... |
sfdisk - Unix, Linux Command | sfdisk doesn’t understand GUID Partition Table (GPT) and
it is not designed for large partitions. In particular case use more advanced GNU
parted(8).
% sfdisk -s /dev/hda9
81599
%
% sfdisk -s
/dev/hda: 208896
/dev/hdb: 1025136
/dev/hdc: 1031063
/dev/sda: 8877895
/dev/sdb: 1758927
total: 12901917 blocks
%
% sf... | [
{
"code": null,
"e": 10729,
"s": 10577,
"text": "\nsfdisk doesn’t understand GUID Partition Table (GPT) and\nit is not designed for large partitions. In particular case use more advanced GNU\nparted(8). "
},
{
"code": null,
"e": 10763,
"s": 10731,
"text": "\n% sfdisk -s /dev/hda9... |
Machine Learning to Predict Stock Prices | by Roshan Adusumilli | Towards Data Science | As financial institutions begin to embrace artificial intelligence, machine learning is increasingly utilized to help make trading decisions. Although there is an abundance of stock data for machine learning models to train on, a high noise to signal ratio and the multitude of factors that affect stock prices are among... | [
{
"code": null,
"e": 679,
"s": 47,
"text": "As financial institutions begin to embrace artificial intelligence, machine learning is increasingly utilized to help make trading decisions. Although there is an abundance of stock data for machine learning models to train on, a high noise to signal ratio... |
Scrape Company Reviews & Ratings from Indeed in 2 Minutes | by Yasser Elsedawy | Towards Data Science | In this tutorial, I will show you how to perform web scraping using Anaconda Jupyter notebook and the BeautifulSoup library.
We’ll be scraping Company reviews and ratings from Indeed platform, and then we will export them to Pandas library dataframe and then to a .CSV file.
Let us get straight down to business, however... | [
{
"code": null,
"e": 297,
"s": 172,
"text": "In this tutorial, I will show you how to perform web scraping using Anaconda Jupyter notebook and the BeautifulSoup library."
},
{
"code": null,
"e": 447,
"s": 297,
"text": "We’ll be scraping Company reviews and ratings from Indeed pla... |
How to import an Excel File into R ? - GeeksforGeeks | 21 Apr, 2021
In this article, we will discuss how to import an excel file in the R Programming Language. There two different types of approaches to import the excel file into the R programming language and those are discussed properly below.
File in use:
In this approach to import the Excel file in the R, the user need... | [
{
"code": null,
"e": 24876,
"s": 24848,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25105,
"s": 24876,
"text": "In this article, we will discuss how to import an excel file in the R Programming Language. There two different types of approaches to import the excel file into t... |
Machine Learning Made Simple With Excel | by Oscar Armas Luy | Towards Data Science | By the end of this tutorial, you’ll have implemented your first algorithm without touching a single line of code. You’ll use Machine Learning techniques to classify real data using basic functions in Excel. You don’t have to be a genius or a programmer to understand machine learning. Despite the popularized application... | [
{
"code": null,
"e": 702,
"s": 172,
"text": "By the end of this tutorial, you’ll have implemented your first algorithm without touching a single line of code. You’ll use Machine Learning techniques to classify real data using basic functions in Excel. You don’t have to be a genius or a programmer to... |
How to provide multiple statements on a single line in Python? | More than one statements in a block of uniform indent form a compound statement. Normally each statement is written on separate physical line in editor. However, statements in a block can be written in one line if they are separated by semicolon. Following is code of three statements written in separate lines
a=10
b=20... | [
{
"code": null,
"e": 1373,
"s": 1062,
"text": "More than one statements in a block of uniform indent form a compound statement. Normally each statement is written on separate physical line in editor. However, statements in a block can be written in one line if they are separated by semicolon. Follow... |
Tryit Editor v3.7 | Tryit: Grey HEX color values | [] |
The Art of Geofencing in Python. Tutorial — Triggering notifications and... | by Abdishakur | Towards Data Science | Geofencing is often used tool in Geographic data science, especially in marketing, security and zoning applications. The example in the above GIF shows an app that alerts vehicles based on their location and London’s Congestion Charge Zone (CCZ). The application calculates the congestion charge and tracks the number of... | [
{
"code": null,
"e": 546,
"s": 172,
"text": "Geofencing is often used tool in Geographic data science, especially in marketing, security and zoning applications. The example in the above GIF shows an app that alerts vehicles based on their location and London’s Congestion Charge Zone (CCZ). The appl... |
CSS - Roll Out Effect | An Element can move in a particular direction by turning over and over on an axis.
@keyframes rollOut {
0% {
opacity: 1;
transform: translateX(0px) rotate(0deg);
}
100% {
opacity: 0;
transform: translateX(100%) rotate(120deg);
}
}
Transform − Transform applies to 2d and 3d transform... | [
{
"code": null,
"e": 2709,
"s": 2626,
"text": "An Element can move in a particular direction by turning over and over on an axis."
},
{
"code": null,
"e": 2894,
"s": 2709,
"text": "@keyframes rollOut {\n 0% {\n opacity: 1;\n transform: translateX(0px) rotate(0deg);\n ... |
Google Guice - Field Injection | Injection is a process of injecting dependeny into an object. Field injection is used to set value object as dependency to the field of an object. See the example below.
Create a java class named GuiceTester.
GuiceTester.java
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inj... | [
{
"code": null,
"e": 2272,
"s": 2102,
"text": "Injection is a process of injecting dependeny into an object. Field injection is used to set value object as dependency to the field of an object. See the example below."
},
{
"code": null,
"e": 2311,
"s": 2272,
"text": "Create a jav... |
Sort an Array of Points by their distance from a reference Point - GeeksforGeeks | 26 Nov, 2021
Given an array arr[] containing N points and a reference point P, the task is to sort these points according to their distance from the given point P.
Examples:
Input: arr[] = {{5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}}, P = (0, 0) Output: (1, 0) (2, 0) (3, 0) (4, 0) (5, 0) Explanation: Distance between (0, 0... | [
{
"code": null,
"e": 25250,
"s": 25222,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 25401,
"s": 25250,
"text": "Given an array arr[] containing N points and a reference point P, the task is to sort these points according to their distance from the given point P."
},
{
... |
Python - tensorflow.math.reduce_sum() - GeeksforGeeks | 17 May, 2021
TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks.
reduce_sum() is used to find sum of elements across dimensions of a tensor.
Syntax: tensorflow.math.reduce_sum( input_tensor, axis, keepdims, name)
Parameters:
input_tensor: It... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n17 May, 2021"
},
{
"code": null,
"e": 24423,
"s": 24292,
"text": "TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks."
},
{
"code": null,
... |
C program for pipe in Linux - GeeksforGeeks | 26 Apr, 2018
Working and implementation of Pipe in Linux.
Prerequisite : Pipe in Linux
Approach : Pipe is highly used in Linux. Basically, pipe has 2 parts, one part is for writing and another is used for reading. So, an array of size 2 is taken. a[1] is used for writing and a[0] for reading.After reading from pipe, pr... | [
{
"code": null,
"e": 24874,
"s": 24846,
"text": "\n26 Apr, 2018"
},
{
"code": null,
"e": 24919,
"s": 24874,
"text": "Working and implementation of Pipe in Linux."
},
{
"code": null,
"e": 24948,
"s": 24919,
"text": "Prerequisite : Pipe in Linux"
},
{
"c... |
1st place solution for Kaggle’s skin cancer (Melanoma) Competition | by Mostafa Ibrahim | Towards Data Science | 5 months ago I participated in my first official kaggle competition, SSIM-ISIC Melanoma. Here is a brief overview of what the competition was about (from Kaggle):
Skin cancer is the most prevalent type of cancer. Melanoma, specifically, is responsible for 75% of skin cancer deaths, despite being the least common skin c... | [
{
"code": null,
"e": 335,
"s": 172,
"text": "5 months ago I participated in my first official kaggle competition, SSIM-ISIC Melanoma. Here is a brief overview of what the competition was about (from Kaggle):"
},
{
"code": null,
"e": 792,
"s": 335,
"text": "Skin cancer is the most... |
How to Listen for Volume Button and Back Key Events Programmatically in Android? - GeeksforGeeks | 23 Feb, 2021
By production, Android devices are provided with specific physical keys, such as Volume keys, Power key, Back key, Home key, and Activities key. These keys respond to a press. The same keys have particular functionality on the nature of the press. The volume key on a Single press increases or decreases the... | [
{
"code": null,
"e": 24472,
"s": 24444,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 25099,
"s": 24472,
"text": "By production, Android devices are provided with specific physical keys, such as Volume keys, Power key, Back key, Home key, and Activities key. These keys respond... |
Adding two Sets in Javascript | The operation of adding 2 sets is known as a union. You need to add every object from one set to another while checking for duplicates. We can just use the 2 methods we already implemented to implement this method.
We'll implement this function as a static function as we don’t want to mutate existing sets, but create a... | [
{
"code": null,
"e": 1277,
"s": 1062,
"text": "The operation of adding 2 sets is known as a union. You need to add every object from one set to another while checking for duplicates. We can just use the 2 methods we already implemented to implement this method."
},
{
"code": null,
"e": 1... |
Python Pandas - Create a DateOffset and increment date | To create a DateOffset, use the DateOffset() method in Pandas. Set the Increment value as an argument.
At first, import the required libraries −
from pandas.tseries.offsets import DateOffset
import pandas as pd
Set the timestamp object in Pandas −
timestamp = pd.Timestamp('2021-09-11 02:30:55')
DateOffset for date inc... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "To create a DateOffset, use the DateOffset() method in Pandas. Set the Increment value as an argument."
},
{
"code": null,
"e": 1207,
"s": 1165,
"text": "At first, import the required libraries −"
},
{
"code": null,
"e": ... |
How to find the length of sequence vector in R? | A sequence vector is created by using the sequence of numbers such as 1 to 15, 21 to 51, 101 to 150, -5 to 10. The length of this type of vectors can be found only by using the length function.
For example, if we have a sequence vector say X then the length of X can be found by using the command given below −
length(X)... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "A sequence vector is created by using the sequence of numbers such as 1 to 15, 21 to 51, 101 to 150, -5 to 10. The length of this type of vectors can be found only by using the length function."
},
{
"code": null,
"e": 1373,
"s": 1256,
... |
How can we implement the paintComponent() method of a JPanel in Java?
| A JPanel is a lightweight container and it is an invisible component in Java. A JPanel's default layout is FlowLayout. After the JPanel has been created, other components can be added to the JPanel object by calling its add() method inherited from the Container class.
This method is needed to draw something on JPanel o... | [
{
"code": null,
"e": 1331,
"s": 1062,
"text": "A JPanel is a lightweight container and it is an invisible component in Java. A JPanel's default layout is FlowLayout. After the JPanel has been created, other components can be added to the JPanel object by calling its add() method inherited from the C... |
7 steps to run a linear regression analysis using R | by Tomomi A Emori | Towards Data Science | My manager thinks I know how to run a regression analysis using R. So, to save my butt, I decided to dedicate my whole weekend to learning how to do it. Think of this post as a crash course intro to learn how to brute force your way into doing one.
Skip to the section you want to read. Table of contents below:
Part I |... | [
{
"code": null,
"e": 421,
"s": 172,
"text": "My manager thinks I know how to run a regression analysis using R. So, to save my butt, I decided to dedicate my whole weekend to learning how to do it. Think of this post as a crash course intro to learn how to brute force your way into doing one."
},
... |
PHP strtotime() Function | The strtotime() function accepts a date/time string, with textual date/time values and parses it as an Unix timestamp.
strtotime($time)
time(Mandatory)
This value represents the date/time string.
now(Optional)
This represents a timestamp which is used as a base for the calculation of relative dates..
PHP strtotime() f... | [
{
"code": null,
"e": 2876,
"s": 2757,
"text": "The strtotime() function accepts a date/time string, with textual date/time values and parses it as an Unix timestamp."
},
{
"code": null,
"e": 2894,
"s": 2876,
"text": "strtotime($time)\n"
},
{
"code": null,
"e": 2910,
... |
Interpretability in Deep Learning with W&B — CAM and GradCAM | by Ayush Thakur | Towards Data Science | Training a classification model is interesting, but have you ever wondered how your model is making its predictions? Is your model actually looking at the dog in the image before classifying it as a dog with 98% accuracy? Interesting, isn’t it. In today’s report, we will explore why deep learning models need to be inte... | [
{
"code": null,
"e": 707,
"s": 172,
"text": "Training a classification model is interesting, but have you ever wondered how your model is making its predictions? Is your model actually looking at the dog in the image before classifying it as a dog with 98% accuracy? Interesting, isn’t it. In today’s... |
How to search a pickle file in Python? - GeeksforGeeks | 02 Feb, 2021
Prerequisites: pickle file
Python pickle module is used for serializing and de-serializing a Python object structure. Any object in Python can be pickled so that it can be saved on disk. What pickle does is that it “serializes” the object first before writing it to file. Pickling is a way to convert a pyt... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Feb, 2021"
},
{
"code": null,
"e": 24320,
"s": 24292,
"text": "Prerequisites: pickle file "
},
{
"code": null,
"e": 24783,
"s": 24320,
"text": "Python pickle module is used for serializing and de-serializin... |
Node.js http2.connect() Method - GeeksforGeeks | 18 Nov, 2020
The http2.connect() is an inbuilt application programming interface of class http2 within the http2 module which is used to return a ClientHttp2Session instance.
Syntax:
const http2.connect(authority[, options][, listener])
Parameters: This method takes the following argument as a parameter:
authority: It... | [
{
"code": null,
"e": 25002,
"s": 24974,
"text": "\n18 Nov, 2020"
},
{
"code": null,
"e": 25164,
"s": 25002,
"text": "The http2.connect() is an inbuilt application programming interface of class http2 within the http2 module which is used to return a ClientHttp2Session instance."
... |
HTML - <style> tag | The HTML <style> tag is used for declaring style sheets within the head of your HTML document.
NONE
<head>
<style type="text/css">
h1 { color:#F1F1F1 }
</style>
</head>
For more detail on <style> tag please check HTML Styles chapter.
Specifies the direction of the text
Document wide identifier
Sets the la... | [
{
"code": null,
"e": 2469,
"s": 2374,
"text": "The HTML <style> tag is used for declaring style sheets within the head of your HTML document."
},
{
"code": null,
"e": 2474,
"s": 2469,
"text": "NONE"
},
{
"code": null,
"e": 2557,
"s": 2474,
"text": "<head>\n\n ... |
Angular10 TitleCasePipe - GeeksforGeeks | 30 Apr, 2021
In this article, we are going to see what is TitleCasePipe in Angular 10 and how to use it.
TitleCasePipe is used to Transforms all the text to titlecase.
Syntax:
{{ value | TitleCasePipe }}
NgModule: Module used by TitleCasePipe is:
CommonModule
Approach:
Create the angular app to be used
There is no nee... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 25201,
"s": 25109,
"text": "In this article, we are going to see what is TitleCasePipe in Angular 10 and how to use it."
},
{
"code": null,
"e": 25264,
"s": 25201,
"text":... |
C# | Getting index of the specified value in a SortedList object - GeeksforGeeks | 01 Feb, 2019
SortedList.IndexOfValue(Object) Method is used to get the zero-based index of the first occurrence of the specified value in a SortedList object.
Syntax:
public virtual int IndexOfValue (object value);
Here, value is the Value which is to be located in the SortedList object. The value can be null.
Return V... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24448,
"s": 24302,
"text": "SortedList.IndexOfValue(Object) Method is used to get the zero-based index of the first occurrence of the specified value in a SortedList object."
},
{
"co... |
iText - Markup Annotation | In this chapter, we will see how to add text markup annotation to a PDF document using 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 constructor. To use text annotation in your PDF docu... | [
{
"code": null,
"e": 2470,
"s": 2368,
"text": "In this chapter, we will see how to add text markup annotation to a PDF document using iText library."
},
{
"code": null,
"e": 2779,
"s": 2470,
"text": "You can create an empty PDF Document by instantiating the Document class. While ... |
jQuery UI | Date Picker | 03 Aug, 2021
A date-picker of jQuery UI is used to provide a calendar to the user to select the date from a Calendar. This date picker usually connected to a text-box so user selection of date from the calendar can be transferred to the textbox.
We will use the CDN link for different libraries and styles. To display an... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 285,
"s": 52,
"text": "A date-picker of jQuery UI is used to provide a calendar to the user to select the date from a Calendar. This date picker usually connected to a text-box so user selection of... |
JavaScript | Assignment operators | 02 Jun, 2020
The Assignment operator is equal (=) which assigns the value of right-hand operand to its left-hand operand. That is if a = b assigns the value of b to a.
The simple assignment operator is used to assigning a value to a variable. The assignment operation evaluates to the assigned value. Chaining the assig... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jun, 2020"
},
{
"code": null,
"e": 184,
"s": 28,
"text": "The Assignment operator is equal (=) which assigns the value of right-hand operand to its left-hand operand. That is if a = b assigns the value of b to a."
},
{
"code... |
How to Get Current Date and Time in SQL? | 08 Oct, 2021
In this article, we will show to get the current date and time in SQL. In SQL whenever we need to insert and fetching the Current date and time. So For finding to Current Date and Time in SQL have some Predefined function. We will Implement a few methods here. With the Help of the below function.
GETDATE... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 328,
"s": 28,
"text": "In this article, we will show to get the current date and time in SQL. In SQL whenever we need to insert and fetching the Current date and time. So For finding to Current Date... |
GATE | GATE CS 2018 | Question 32 | 14 Nov, 2018
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= 109 bits-per-second). The session starts with a sequence number of 1234. The minimum time (in seconds, rounded to the closest integer) before this sequence number can be used again is _______ .
Note – This was Numerical Type questi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Nov, 2018"
},
{
"code": null,
"e": 298,
"s": 28,
"text": "Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= 109 bits-per-second). The session starts with a sequence number of 1234. The minimum time (in secon... |
dmidecode command in Linux with Examples | 15 May, 2019
dmidecode also referred as Desktop Management Interface table decoder, record data from DMI table and produce it in human readable format. dmidecode command is used when the user want to retrieve system’s hardware related information such as Processor, RAM(DIMMs), BIOS detail, Memory, Serial numbers etc. o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 499,
"s": 28,
"text": "dmidecode also referred as Desktop Management Interface table decoder, record data from DMI table and produce it in human readable format. dmidecode command is used when the u... |
Neural Networks | A beginners guide | 21 Apr, 2022
Neural networks are artificial systems that were inspired by biological neural networks. These systems learn to perform tasks by being exposed to various datasets and examples without any task-specific rules. The idea is that the system generates identifying characteristics from the data they have been pas... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 443,
"s": 52,
"text": "Neural networks are artificial systems that were inspired by biological neural networks. These systems learn to perform tasks by being exposed to various datasets and example... |
OpenCV C++ Program to blur an image | 20 Apr, 2022
The following is the explanation to the C++ code to blur an Image in C++ using the tool OpenCV. Things to know: (1) The code will only compile in Linux environment. (2) Compile command: g++ -w article.cpp -o article `pkg-config –libs opencv` (3) Run command: ./article (4) The image bat.jpg has to be in the... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 481,
"s": 54,
"text": "The following is the explanation to the C++ code to blur an Image in C++ using the tool OpenCV. Things to know: (1) The code will only compile in Linux environment. (2) Compi... |
Why is iterating over a dictionary slow in Python? | 22 Jul, 2021
In this article, we are going to discuss why is iterating over a dict so slow in Python? Before coming to any conclusion lets have a look at the performance difference between NumPy arrays and dictionaries in python:
Python
# import modulesimport numpy as npimport sys # compute numpy performancedef np_per... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "In this article, we are going to discuss why is iterating over a dict so slow in Python? Before coming to any conclusion lets have a look at the performance difference between... |
Program for cube sum of first n natural numbers | 22 Jun, 2022
Print the sum of series 13 + 23 + 33 + 43 + .......+ n3 till n-th term.Examples :
Input : n = 5
Output : 225
13 + 23 + 33 + 43 + 53 = 225
Input : n = 7
Output : 784
13 + 23 + 33 + 43 + 53 +
63 + 73 = 784
A simple solution is to one by one add terms.
C++
Java
Python3
C#
PHP
Javascript
// Simple C++ ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 136,
"s": 52,
"text": "Print the sum of series 13 + 23 + 33 + 43 + .......+ n3 till n-th term.Examples : "
},
{
"code": null,
"e": 260,
"s": 136,
"text": "Input : n = 5\nOutput... |
Python program to check whether the string is Symmetrical or Palindrome | 25 Sep, 2021
Given a string. the task is to check if the string is symmetrical and palindrome or not. A string is said to be symmetrical if both the halves of the string are the same and a string is said to be a palindrome string if one half of the string is the reverse of the other half or if a string appears same whe... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Sep, 2021"
},
{
"code": null,
"e": 387,
"s": 52,
"text": "Given a string. the task is to check if the string is symmetrical and palindrome or not. A string is said to be symmetrical if both the halves of the string are the same and ... |
Command Line Arguments in Golang | 17 May, 2020
Command-line arguments are a way to provide the parameters or arguments to the main function of a program. Similarly, In Go, we use this technique to pass the arguments at the run time of a program.
In Golang, we have a package called as os package that contains an array called as “Args”. Args is an array ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 253,
"s": 54,
"text": "Command-line arguments are a way to provide the parameters or arguments to the main function of a program. Similarly, In Go, we use this technique to pass the arguments at th... |
Python Input Methods for Competitive Programming | 28 Jan, 2022
Python is an amazingly user-friendly language with the only flaw of being slow. In comparison to C, C++, and Java, it is quite slower. Online coding platforms, if C/C++ limit provided is X. Usually, in Java time provided is 2X and Python, it’s 5X.To improve the speed of code execution for input/output inte... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 430,
"s": 54,
"text": "Python is an amazingly user-friendly language with the only flaw of being slow. In comparison to C, C++, and Java, it is quite slower. Online coding platforms, if C/C++ limit... |
Python String upper() | 03 Dec, 2020
upper() method converts all lowercase characters in a string into uppercase characters and returns it
Syntax :
string.upper()
Parameters :
The upper() method doesn’t take any parameters.
Returns :
returns a uppercased string of the given string
CODE 1: String with only alphabetic characters
# Python3 pro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2020"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "upper() method converts all lowercase characters in a string into uppercase characters and returns it"
},
{
"code": null,
"e": 139,
"s": 130,
"text": "Synt... |
Remove a given word from a String | 18 Nov, 2019
Given a String and a Word, the task is remove that Word from the String.
Examples:
Input: String = "Geeks For Geeks", Word = "For"
Output: "Geeks Geeks"
Input: String = "A computer Science Portal", Word = "Geeks"
Output: "A computer Science Portal"
Approach : In Java, this can be done using String replac... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Nov, 2019"
},
{
"code": null,
"e": 125,
"s": 52,
"text": "Given a String and a Word, the task is remove that Word from the String."
},
{
"code": null,
"e": 135,
"s": 125,
"text": "Examples:"
},
{
"code": ... |
GATE CS 2018 - GeeksforGeeks | 22 Nov, 2021
What is the area of the circle which has the diagonal of the square as its diameter if the area of square is ' d ' ?
πd
πd2
(1/4) πd2
(1/2)πd
One important observation to solve
the question :
Diagonal of Square = Diameter of Circle.
Let side of square be x.
From Pythogorous theorem.
Diagonal = √(2*x*x... | [
{
"code": null,
"e": 29498,
"s": 29470,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 29615,
"s": 29498,
"text": "What is the area of the circle which has the diagonal of the square as its diameter if the area of square is ' d ' ?"
},
{
"code": null,
"e": 29618,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.