title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
CardView in Android With Example | 08 Jun, 2022
CardView is a new widget in Android that can be used to display any sort of data by providing a rounded corner layout along with a specific elevation. CardView is the view that can display views on top of each other. The main usage of CardView is that it helps to give a rich feel and look to the UI design.... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 678,
"s": 53,
"text": "CardView is a new widget in Android that can be used to display any sort of data by providing a rounded corner layout along with a specific elevation. CardView is the view th... |
Reshaping a Tensor in Pytorch | 01 Sep, 2021
In this article, we will discuss how to reshape a Tensor in Pytorch. Reshaping allows us to change the shape with the same data and number of elements as self but with the specified shape, which means it returns the same data as the specified array, but with different specified dimension sizes.
Creating Te... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 324,
"s": 28,
"text": "In this article, we will discuss how to reshape a Tensor in Pytorch. Reshaping allows us to change the shape with the same data and number of elements as self but with the spe... |
How to remove spaces from a string using JavaScript ? | 26 Nov, 2019
Method 1: Using split() and join() Method: The split() method is used to split a string into multiple sub-strings and return them in the form of an array. A separator can be specified as a parameter so that the string is split whenever that separator is found in the string. The space character (” “) is spe... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 434,
"s": 54,
"text": "Method 1: Using split() and join() Method: The split() method is used to split a string into multiple sub-strings and return them in the form of an array. A separator can be ... |
Instance method in Python | 02 Jul, 2020
A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 471,
"s": 54,
"text": "A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class cre... |
Flutter – Container Styling | 09 May, 2021
In this article we will look at the most basic and simple widget in flutter Container. We will look that how can we style our container in different ways according to our need , so that we can effectively use this widget in our app .
First of all we have to write some starting code for our project . Our ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 288,
"s": 52,
"text": "In this article we will look at the most basic and simple widget in flutter Container. We will look that how can we style our container in different ways according to our ne... |
Python program to count words in a sentence | 03 Jun, 2022
Data preprocessing is an important task in text classification. With the emergence of Python in the field of data science, it is essential to have certain shorthands to have the upper hand among others. This article discusses ways to count words in a sentence, it starts with space-separated words but also ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Jun, 2022"
},
{
"code": null,
"e": 464,
"s": 53,
"text": "Data preprocessing is an important task in text classification. With the emergence of Python in the field of data science, it is essential to have certain shorthands to have ... |
Kali Linux – Forensics Tools | 28 Jul, 2020
Today when we are surrounded by a lot of ransomware, malware, and digital viruses to spy and invade our policy, there is a great need to learn how to prevent ourselves from them. When it comes to malicious, encrypted, secure, or any other file forensics tools helps us to analyze them and makes our path to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 774,
"s": 28,
"text": "Today when we are surrounded by a lot of ransomware, malware, and digital viruses to spy and invade our policy, there is a great need to learn how to prevent ourselves from th... |
GATE | GATE-CS-2014-(Set-2) | Question 65 | 28 Jun, 2021
SQL allows tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same answer as the nested query shown below:
select * from R where a in (select S.a from S)
(A) select R.* from R, S where R.a=S.a(D)(B) se... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "SQL allows tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same answer ... |
Sending an Intent to browser to open specific URL using Kotlin. | This example demonstrates how to Send an Intent to browser to open specific URL using Kotlin
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "This example demonstrates how to Send an Intent to browser to open specific URL using Kotlin"
},
{
"code": null,
"e": 1284,
"s": 1155,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all re... |
Java Comments | Comments can be used to explain Java code, and to make it more readable. It can also be used to
prevent execution when testing alternative code.
Single-line comments start with two forward slashes (//).
Any text between // and the end of the line
is ignored by Java (will not be executed).
This example uses a single-l... | [
{
"code": null,
"e": 146,
"s": 0,
"text": "Comments can be used to explain Java code, and to make it more readable. It can also be used to \nprevent execution when testing alternative code."
},
{
"code": null,
"e": 204,
"s": 146,
"text": "Single-line comments start with two forwa... |
Check if string contains another string in Swift | To check if a string contains another string in swift, we’ll need two different strings. One string that we have to check if it consists another string.
Let us say the string we want to check is “point” and the whole string is “TutorialsPoint” and another string is “one two three”. Let’s check with both these string in... | [
{
"code": null,
"e": 1215,
"s": 1062,
"text": "To check if a string contains another string in swift, we’ll need two different strings. One string that we have to check if it consists another string."
},
{
"code": null,
"e": 1399,
"s": 1215,
"text": "Let us say the string we want... |
Find frequency of each word in a string in Java | In order to get frequency of each in a string in Java we will take help of hash map collection of Java.First convert string to a character array so that it become easy to access each character of string.
Now compare for each character that whether it is present in hash map or not in case it is not present than simply a... | [
{
"code": null,
"e": 1266,
"s": 1062,
"text": "In order to get frequency of each in a string in Java we will take help of hash map collection of Java.First convert string to a character array so that it become easy to access each character of string."
},
{
"code": null,
"e": 1693,
"s... |
Generating QR Codes With Python In Less Than 10 Lines | by Bharath K | Towards Data Science | In the modern world, our objective is to always have a secure and convenient way of accessing things. Nobody wants to read and click on elongated URL links or lengthy word sequences. Also, in the world of the recent pandemic, it is usually considered best to avoid touches and achieve transactions without much physical ... | [
{
"code": null,
"e": 500,
"s": 171,
"text": "In the modern world, our objective is to always have a secure and convenient way of accessing things. Nobody wants to read and click on elongated URL links or lengthy word sequences. Also, in the world of the recent pandemic, it is usually considered best... |
JSP - Cookies Handling | In this chapter, we will discuss Cookies Handling in JSP. Cookies are text files stored on the client computer and they are kept for various information tracking purposes. JSP transparently supports HTTP cookies using underlying servlet technology.
There are three steps involved in identifying and returning users −
Ser... | [
{
"code": null,
"e": 2488,
"s": 2239,
"text": "In this chapter, we will discuss Cookies Handling in JSP. Cookies are text files stored on the client computer and they are kept for various information tracking purposes. JSP transparently supports HTTP cookies using underlying servlet technology."
}... |
Maximize the sum of array after multiplying a prefix and suffix by -1 - GeeksforGeeks | 17 Jan, 2022
Given an array arr[] of length N, the task is to maximize the sum of all the elements of the array by performing the following operations at most once.
Choose a prefix of the array and multiply all the elements by -1.
Choose a suffix of the array and multiply all the elements by -1.
Examples:
Input: arr... | [
{
"code": null,
"e": 24853,
"s": 24825,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 25006,
"s": 24853,
"text": "Given an array arr[] of length N, the task is to maximize the sum of all the elements of the array by performing the following operations at most once. "
},
{
... |
Find the Intersection Point of Two Linked Lists in Java | A Linked List is a linear data structure in which each node has two blocks such that one block contains the value or data of the node and the other block contains the address of the next field.
Let us assume that we have a linked list such that each node contains a random pointer which is pointing to the other nodes in... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "A Linked List is a linear data structure in which each node has two blocks such that one block contains the value or data of the node and the other block contains the address of the next field."
},
{
"code": null,
"e": 1532,
"s": 1256,
... |
Persistent Systems Interview Experience (On-Campus 2021 Batch) - GeeksforGeeks | 15 Oct, 2020
Round 1 (Online Test): Round 1 was conducted on 4th September 2020 from 11:00 AM to 12:30 PM on AMCAT Platform.
This round consists of two parts :
Objective round: This was a 50 minutes test that comprised of MCQ’s on Operating systems, Computer Architecture, DBMS, Computer Networks, English Comprehension,... | [
{
"code": null,
"e": 24939,
"s": 24911,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 25051,
"s": 24939,
"text": "Round 1 (Online Test): Round 1 was conducted on 4th September 2020 from 11:00 AM to 12:30 PM on AMCAT Platform."
},
{
"code": null,
"e": 25086,
"s"... |
HashMap Operations | Practice | GeeksforGeeks | Implement different operations on Hashmap. Different types of queries will be provided.
A query can be of four types:
1. a x y (adds an entry with key x and value y to the Hashmap)
2. b x (print value of x if present in the Hashmap else print -1. )
3. c (prints the size of the Hashmap)
4. d x (removes an entry with ke... | [
{
"code": null,
"e": 580,
"s": 238,
"text": "Implement different operations on Hashmap. Different types of queries will be provided.\nA query can be of four types:\n1. a x y (adds an entry with key x and value y to the Hashmap)\n2. b x (print value of x if present in the Hashmap else print -1. )\n3... |
Angular 6 - Modules | Module in Angular refers to a place where you can group the components, directives, pipes, and services, which are related to the application.
In case you are developing a website, the header, footer, left, center and the right section become part of a module.
To define module, we can use the NgModule. When you create ... | [
{
"code": null,
"e": 2138,
"s": 1995,
"text": "Module in Angular refers to a place where you can group the components, directives, pipes, and services, which are related to the application."
},
{
"code": null,
"e": 2256,
"s": 2138,
"text": "In case you are developing a website, t... |
HMNI: Fuzzy Name Matching with Machine Learning | Towards Data Science | It is often the case when working with external data that a common identifier such as a numerical key does not exist. In place of a unique identifier, a person’s full name can be used as part of a universal or composite key to link data, however, this is not a fail-safe solution.
Let’s take for example the name Alan Tu... | [
{
"code": null,
"e": 453,
"s": 172,
"text": "It is often the case when working with external data that a common identifier such as a numerical key does not exist. In place of a unique identifier, a person’s full name can be used as part of a universal or composite key to link data, however, this is ... |
Check whether property exists in object or class with PHP | The property_exists() or the isset() function can be used to check if the property exists in the class or object.
Below is the syntax of property_exists() function−
property_exists( mixed $class , string $property )
Example
if (property_exists($object, 'a_property'))
Below is the syntax of isset() function−
isset( mixe... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "The property_exists() or the isset() function can be used to check if the property exists in the class or object."
},
{
"code": null,
"e": 1227,
"s": 1176,
"text": "Below is the syntax of property_exists() function−"
},
{
"co... |
Pipenv to Heroku: Easy App Deployment | by Edward Krueger | Towards Data Science | By: Edward Krueger Data Scientist and Instructor and Douglas Franklin Teaching Assistant and Technical Writer.
In this article, we will cover deploying an app with a Pipfile from a Github repository to make app deployment easy!
Data scientists are often interdisciplinary and have not been taught to work collaboratively... | [
{
"code": null,
"e": 283,
"s": 172,
"text": "By: Edward Krueger Data Scientist and Instructor and Douglas Franklin Teaching Assistant and Technical Writer."
},
{
"code": null,
"e": 400,
"s": 283,
"text": "In this article, we will cover deploying an app with a Pipfile from a Githu... |
DAX Text - LEFT function | Returns the specified number of characters from the start of a text string.
LEFT (<text>, <num_chars>)
text
The text string containing the characters you want to extract, or a reference to a column that contains text.
num_chars
Optional.
The number of characters you want LEFT to extract.
If omitted, default is 1.
A t... | [
{
"code": null,
"e": 2077,
"s": 2001,
"text": "Returns the specified number of characters from the start of a text string."
},
{
"code": null,
"e": 2106,
"s": 2077,
"text": "LEFT (<text>, <num_chars>) \n"
},
{
"code": null,
"e": 2111,
"s": 2106,
"text": "text"... |
How to extract the dataframe row with min or max values in R ? - GeeksforGeeks | 21 Apr, 2021
The tabular arrangement of rows and columns to form a data frame in R Programming Language supports many ways to access and modify the data. Application of queries and aggregate functions, like min, max and count can easily be made over the data frame cell values. Therefore, it is relatively very easy to a... | [
{
"code": null,
"e": 24395,
"s": 24367,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 24779,
"s": 24395,
"text": "The tabular arrangement of rows and columns to form a data frame in R Programming Language supports many ways to access and modify the data. Application of queries... |
Create table from DataFrame in R - GeeksforGeeks | 07 Apr, 2021
In this article, we are going to discuss how to create a table from the given Data-Frame in the R Programming language.
table(): This function is an essential function for performing interactive data analyses. As it simply creates tabular results of categorical variables.
Syntax: table(..., exclude = if (u... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 25362,
"s": 25242,
"text": "In this article, we are going to discuss how to create a table from the given Data-Frame in the R Programming language."
},
{
"code": null,
"e": 25515,... |
Option pricing using the Black-Scholes model, without the formula | by Daniel Reti | Towards Data Science | Every university student taking a module on finance has seen the Black-Scholes-Merton option pricing formula. It is long, ugly, and confusing. It doesn’t even give an intuition for pricing options. The derivation of it is so difficult that Scholes and Merton received a Nobel prize for it in 1997 (Black died in 1995). I... | [
{
"code": null,
"e": 583,
"s": 172,
"text": "Every university student taking a module on finance has seen the Black-Scholes-Merton option pricing formula. It is long, ugly, and confusing. It doesn’t even give an intuition for pricing options. The derivation of it is so difficult that Scholes and Mer... |
GATE | GATE-CS-2015 (Set 2) | Question 54 - GeeksforGeeks | 19 Nov, 2018
Consider the sequence of machine instructions given below:
MUL R5, R0, R1
DIV R6, R2, R3
ADD R7, R5, R6
SUB R8, R7, R4
In the above sequence, R0 to R8 are general purpose registers. In the instructions shown, the first register stores the result of the operation performed on the second and the thi... | [
{
"code": null,
"e": 24089,
"s": 24061,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 24148,
"s": 24089,
"text": "Consider the sequence of machine instructions given below:"
},
{
"code": null,
"e": 24217,
"s": 24148,
"text": " MUL R5, R0, R1\n DIV R6, R2,... |
Distinct Substrings | Practice | GeeksforGeeks | Given a string s consisting of uppercase and lowercase alphabetic characters. Return the number of distinct substrings of size 2 that appear in s as contiguous substrings.
Example
Input :
s = "ABCAB"
Output :
3
Explanation: For "ABCAB", the
three distinct substrings of size
2 are "AB", "BC" and "CA".
Example
Input... | [
{
"code": null,
"e": 399,
"s": 226,
"text": "Given a string s consisting of uppercase and lowercase alphabetic characters. Return the number of distinct substrings of size 2 that appear in s as contiguous substrings."
},
{
"code": null,
"e": 407,
"s": 399,
"text": "Example"
},... |
K- means clustering with SciPy - GeeksforGeeks | 15 Mar, 2021
Prerequisite: K-Means clustering
The K-Means clustering is one of the partitioning approaches and each cluster will be represented with a calculated centroid. All the data points in the cluster will have a minimum distance from the computed centroid.
Scipy is an open-source library that can be used for com... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 23934,
"s": 23901,
"text": "Prerequisite: K-Means clustering"
},
{
"code": null,
"e": 24152,
"s": 23934,
"text": "The K-Means clustering is one of the partitioning approac... |
Python | Combining tuples in list of tuples - GeeksforGeeks | 13 May, 2019
Sometimes, we might have to perform certain problems related to tuples in which we need to segregate the tuple elements to combine with the each element of complex tuple element( such as list ). This can have application in situations we need to combine values to form a whole. Let’s discuss certain ways in... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n13 May, 2019"
},
{
"code": null,
"e": 24238,
"s": 23901,
"text": "Sometimes, we might have to perform certain problems related to tuples in which we need to segregate the tuple elements to combine with the each element of complex... |
Data Science on Windows Subsystem for Linux 2 — What, Why, and How? | by Nikki Aaron Mirova | Towards Data Science | When a budding data scientist decides to buy a new laptop for college, they inevitably come to their friends, classmates, or Stack Overflow to ask the question, “What operating system should I use for data science?” This question is as contentious among programmers as “Should I use tabs or spaces?” If you ask me, there... | [
{
"code": null,
"e": 639,
"s": 171,
"text": "When a budding data scientist decides to buy a new laptop for college, they inevitably come to their friends, classmates, or Stack Overflow to ask the question, “What operating system should I use for data science?” This question is as contentious among p... |
Tutorial: Build a lane detector. Lane detector with Hough Transform and... | by David Chuan-En Lin | Towards Data Science | Waymo’s self-driving taxi service just hit the road this month — but how do autonomous vehicles even work? The lines drawn on roads indicate to human drivers where the lanes are and act as a guiding reference to which direction to steer the vehicle accordingly and convention to how vehicle agents interact harmoniously ... | [
{
"code": null,
"e": 618,
"s": 172,
"text": "Waymo’s self-driving taxi service just hit the road this month — but how do autonomous vehicles even work? The lines drawn on roads indicate to human drivers where the lanes are and act as a guiding reference to which direction to steer the vehicle accord... |
Dynamic Time Warping. Explanation and Code Implementation | by Jeremy Zhang | Towards Data Science | Sounds like time traveling or some kind of future technic, however, it is not. Dynamic Time Warping is used to compare the similarity or calculate the distance between two arrays or time series with different length.
Suppose we want to calculate the distance of two equal-length arrays:
a = [1, 2, 3]b = [3, 2, 2]
How to... | [
{
"code": null,
"e": 264,
"s": 47,
"text": "Sounds like time traveling or some kind of future technic, however, it is not. Dynamic Time Warping is used to compare the similarity or calculate the distance between two arrays or time series with different length."
},
{
"code": null,
"e": 33... |
Standalone React.js basic example | Lets first start with writing a simple HTML code and see how we can use React
Basic React example − Create a simple div like below −
<div class="player">
<h1>Steve</h1>
<p>My hobby: Cricket</p>
</div>
Add some styling elements
.player{
border:1px solid #eee;
width:200px;
box-shadow:0 2px 2px #ccc;
pa... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "Lets first start with writing a simple HTML code and see how we can use React"
},
{
"code": null,
"e": 1196,
"s": 1140,
"text": "Basic React example − Create a simple div like below −"
},
{
"code": null,
"e": 1270,
"... |
Using “WHERE binary” in SQL? | The binary keyword can be used after WHERE clause to compare a value with exact case sensitive match.
The following is an example −
Case 1 − Case insensitive match
The query is as follows −
mysql> select 'joHN'='JOHN' as Result;
The following is the output −
+--------+
| Result |
+--------+
| 1 |
+--------+
1 row ... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "The binary keyword can be used after WHERE clause to compare a value with exact case sensitive match."
},
{
"code": null,
"e": 1194,
"s": 1164,
"text": "The following is an example −"
},
{
"code": null,
"e": 1226,
"s"... |
How to use Fade In and Fade Out Android Animation in Java? | Fade in and fade out animation works based on alpha animation class. This example demonstrate about How to use Fade In and Fade Out Android Animation in Java.
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 ... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "Fade in and fade out animation works based on alpha animation class. This example demonstrate about How to use Fade In and Fade Out Android Animation in Java."
},
{
"code": null,
"e": 1350,
"s": 1221,
"text": "Step 1 − Create a new p... |
bind command in Linux with Examples - GeeksforGeeks | 18 Apr, 2019
bind command is Bash shell builtin command. It is used to set Readline key bindings and variables. The keybindings are the keyboard actions that are bound to a function. So it can be used to change how the bash will react to keys or combinations of keys, being pressed on the keyboard.
Syntax:
bind [-lpsvPS... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n18 Apr, 2019"
},
{
"code": null,
"e": 25937,
"s": 25651,
"text": "bind command is Bash shell builtin command. It is used to set Readline key bindings and variables. The keybindings are the keyboard actions that are bound to a fun... |
How to read password protected excel file in R ? - GeeksforGeeks | 18 Jul, 2021
In this article, we are going to see how to read password-protected Excel files in R programming language.
File in use: file
Here we will use excel.link package to read the file with a password.
Installation:
install.packages(“excel.link”)
xl.read.file() function is used to read Excel files in R programmi... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 26594,
"s": 26487,
"text": "In this article, we are going to see how to read password-protected Excel files in R programming language."
},
{
"code": null,
"e": 26613,
"s": 265... |
How to validate URL in ReactJS? - GeeksforGeeks | 15 Mar, 2022
URL (Uniform Resource Locator) is a reference/address to a resource on the Internet. For example, www.geeksforgeeks.com is a URL. The following example shows how to validate the user entered data and check whether it is valid or not using the npm module in the ReactJS application.
Creating React Applicati... | [
{
"code": null,
"e": 25871,
"s": 25843,
"text": "\n15 Mar, 2022"
},
{
"code": null,
"e": 26154,
"s": 25871,
"text": "URL (Uniform Resource Locator) is a reference/address to a resource on the Internet. For example, www.geeksforgeeks.com is a URL. The following example shows how t... |
Python - Bernoulli Distribution in Statistics - GeeksforGeeks | 31 Dec, 2019
scipy.stats.bernoulli() is a Bernoulli discrete random variable. It is inherited from the of generic methods as an instance of the rv_discrete class. It completes the methods with details specific for this particular distribution.
Parameters :
x : quantilesloc : [optional]location parameter. Default = 0sca... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n31 Dec, 2019"
},
{
"code": null,
"e": 26302,
"s": 26071,
"text": "scipy.stats.bernoulli() is a Bernoulli discrete random variable. It is inherited from the of generic methods as an instance of the rv_discrete class. It completes ... |
Application for Internet speed test using pyspeedtest in Python - GeeksforGeeks | 05 Sep, 2020
While troubleshooting with Internet speed. We need to first check internet bandwidth speed. So, pyspeedtest module test network bandwidth using Speedtest.net servers. So, before starting we need to install pyspeedtest into your system. Run these code to your command line
pip install pyspeedtest
Approach:
I... | [
{
"code": null,
"e": 25783,
"s": 25755,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 26055,
"s": 25783,
"text": "While troubleshooting with Internet speed. We need to first check internet bandwidth speed. So, pyspeedtest module test network bandwidth using Speedtest.net serve... |
Why is a[i] == i[a] in C/C++ arrays? - GeeksforGeeks | 01 Jul, 2017
The definition of [] subscript operator operator in C, according to (C99, 6.5.2.1p2), is that
E1[E2] is identical to (*((E1)+(E2)))
Compilers use pointer arithmetic internally to access array elements. And because of the conversion rules that apply to the binary + operator, if E1 is an array object (equiv... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n01 Jul, 2017"
},
{
"code": null,
"e": 25573,
"s": 25479,
"text": "The definition of [] subscript operator operator in C, according to (C99, 6.5.2.1p2), is that"
},
{
"code": null,
"e": 25612,
"s": 25573,
"text... |
Identifying handwritten digits using Logistic Regression in PyTorch - GeeksforGeeks | 12 Aug, 2021
Logistic Regression is a very commonly used statistical method that allows us to predict a binary output from a set of independent variables. The various properties of logistic regression and its Python implementation have been covered in this article previously. Now, we shall find out how to implement thi... | [
{
"code": null,
"e": 25533,
"s": 25505,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 26441,
"s": 25533,
"text": "Logistic Regression is a very commonly used statistical method that allows us to predict a binary output from a set of independent variables. The various propertie... |
HTML | DOM Form Object - GeeksforGeeks | 31 Jan, 2019
The Form Object in HTML DOM is used to represent the HTML < form > element.This tag is used to set or get the properties of < form > element. This element can be accessed by using getElementById() method.
Syntax:
document.getElementById("Form_ID");
This Form_ID is assigned to HTML < form > element.
Exampl... | [
{
"code": null,
"e": 25319,
"s": 25291,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 25524,
"s": 25319,
"text": "The Form Object in HTML DOM is used to represent the HTML < form > element.This tag is used to set or get the properties of < form > element. This element can be a... |
How to download File Using JavaScript/jQuery ? - GeeksforGeeks | 03 Aug, 2021
Suppose you want to download a file when you click on a link. For downloading the file, we mentioned here to implementation as well as folder structure where you can see the file location.
Approach:
Create an anchor tag link on the normal HTML page. We want to download a file when we click on an anchor tag... | [
{
"code": null,
"e": 26630,
"s": 26602,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26819,
"s": 26630,
"text": "Suppose you want to download a file when you click on a link. For downloading the file, we mentioned here to implementation as well as folder structure where you c... |
rdiff-backup Command in Linux with Examples - GeeksforGeeks | 05 Aug, 2021
rdiff-backup is a command in Linux that is used to backup files over server or local machine and even has a feature of incremental backup which means it only contains those files that have been modified or changed. Its source code is written in python and hence it needs a python interpreter to function. It... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 26093,
"s": 25651,
"text": "rdiff-backup is a command in Linux that is used to backup files over server or local machine and even has a feature of incremental backup which means it only conta... |
Maximum consecutive numbers present in an array - GeeksforGeeks | 22 Mar, 2022
Find the length of maximum number of consecutive numbers jumbled up in an array.Examples:
Input : arr[] = {1, 94, 93, 1000, 5, 92, 78};
Output : 3
The largest set of consecutive elements is
92, 93, 94
Input : arr[] = {1, 5, 92, 4, 78, 6, 7};
Output : 4
The largest set of consecutive elements is
4, 5... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n22 Mar, 2022"
},
{
"code": null,
"e": 26157,
"s": 26065,
"text": "Find the length of maximum number of consecutive numbers jumbled up in an array.Examples: "
},
{
"code": null,
"e": 26379,
"s": 26157,
"text":... |
How to Replace a value if null or undefined in JavaScript? - GeeksforGeeks | 02 Mar, 2020
In JavaScript if a variable is not initialised with any value, then it is set to undefined. We can set a default value if a value is undefined. This can be done using two ways.
Example 1: By using if checks (Brute force). In this method, we will manually check whether a value is not null or not undefined, ... | [
{
"code": null,
"e": 26029,
"s": 26001,
"text": "\n02 Mar, 2020"
},
{
"code": null,
"e": 26206,
"s": 26029,
"text": "In JavaScript if a variable is not initialised with any value, then it is set to undefined. We can set a default value if a value is undefined. This can be done us... |
Combine Multiple ggplot2 Legend in R - GeeksforGeeks | 23 May, 2021
In this article, we will see how to combine multiple ggplot2 Legends in the R programming language.
First, load the ggplot2 package by using the library() function. If you have not installed it yet, you can simply install it by writing the below command in R Console.
install.packages("ggplot2")
To create a... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n23 May, 2021"
},
{
"code": null,
"e": 26587,
"s": 26487,
"text": "In this article, we will see how to combine multiple ggplot2 Legends in the R programming language."
},
{
"code": null,
"e": 26755,
"s": 26587,
... |
Counters in Python | Set 2 (Accessing Counters) - GeeksforGeeks | 04 Feb, 2020
Counters in Python | Set 1 (Initialization and Updation)
Once initialized, counters are accessed just like dictionaries. Also, it does not raise the KeyValue error (if key is not present) instead the value’s count is shown as 0.
Example :
# Python program to demonstrate accessing of# Counter elementsfrom c... | [
{
"code": null,
"e": 25419,
"s": 25391,
"text": "\n04 Feb, 2020"
},
{
"code": null,
"e": 25476,
"s": 25419,
"text": "Counters in Python | Set 1 (Initialization and Updation)"
},
{
"code": null,
"e": 25648,
"s": 25476,
"text": "Once initialized, counters are ac... |
Bigram formation from a given Python list - GeeksforGeeks | 11 Dec, 2020
When we are dealing with text classification, sometimes we need to do certain kind of natural language processing and hence sometimes require to form bigrams of words for processing. In case of absence of appropriate library, its difficult and having to do the same is always quite useful. Let’s discuss cer... | [
{
"code": null,
"e": 25709,
"s": 25681,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 26057,
"s": 25709,
"text": "When we are dealing with text classification, sometimes we need to do certain kind of natural language processing and hence sometimes require to form bigrams of wo... |
PLSQL | LPAD Function - GeeksforGeeks | 24 Sep, 2019
The PLSQL LPAD function is used for padding the left-side of a string with a specific set of characters. a prerequisite for this is that string shouldn’t be NULL. The LPAD function in PLSQL is useful for formatting the output of a query. The LPAD function accepts three parameters which are input_string, pa... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n24 Sep, 2019"
},
{
"code": null,
"e": 25564,
"s": 25225,
"text": "The PLSQL LPAD function is used for padding the left-side of a string with a specific set of characters. a prerequisite for this is that string shouldn’t be NULL. ... |
Build a COVID19 Vaccine Tracker Using Python - GeeksforGeeks | 29 Dec, 2020
As we know the world is facing an unprecedented challenge with communities and economies everywhere affected by the COVID19. So, we are going to do some fun during this time by tracking their vaccine. Let’s see a simple Python script to improve for tracking the COVID19 vaccine.
bs4: Beautiful Soup(bs4) is ... | [
{
"code": null,
"e": 26229,
"s": 26201,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 26508,
"s": 26229,
"text": "As we know the world is facing an unprecedented challenge with communities and economies everywhere affected by the COVID19. So, we are going to do some fun during... |
TreeMap floorEntry() Method in Java With Examples - GeeksforGeeks | 02 Sep, 2020
The java.util.TreeMap.floorEntry() method is used to return a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key.
Syntax:
tree_map.floorEntry(K key)
Parameters: This method takes one parameter key to be matched while mapping.
Return Value... | [
{
"code": null,
"e": 25509,
"s": 25481,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 25692,
"s": 25509,
"text": "The java.util.TreeMap.floorEntry() method is used to return a key-value mapping associated with the greatest key less than or equal to the given key, or null if th... |
Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors | 09 Jun, 2022
Given an integer N. The task is to find the number of integers 1 < x < N, for which x and x + 1 have the same number of positive divisors.
Examples:
Input: N = 3 Output: 1 Divisors(1) = 1 Divisors(2) = 1 and 2 Divisors(3) = 1 and 3 Only valid x is 2.
Input: N = 15 Output: 2
Approach: Find the number o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 167,
"s": 28,
"text": "Given an integer N. The task is to find the number of integers 1 < x < N, for which x and x + 1 have the same number of positive divisors."
},
{
"code": null,
"e":... |
Convert Double to Integer in Java | At first, initialize a double value −
double val = 978.65;
Now, convert the Double to Integer value using intValue() method −
Double d = new Double(val);
int res = d.intValue();
Following is the program to convert Double to Integer in Java −
public class Demo {
public static void main(String args[]) {
double v... | [
{
"code": null,
"e": 1225,
"s": 1187,
"text": "At first, initialize a double value −"
},
{
"code": null,
"e": 1246,
"s": 1225,
"text": "double val = 978.65;"
},
{
"code": null,
"e": 1313,
"s": 1246,
"text": "Now, convert the Double to Integer value using intVa... |
Painting Fence Algorithm | 03 Jun, 2021
Given a fence with n posts and k colors, find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color. Since answer can be large return it modulo 10^9 + 7.Examples:
Input : n = 2 k = 4
Output : 16
We have 4 colors and 2 posts.
Ways when both posts have same color... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 261,
"s": 52,
"text": "Given a fence with n posts and k colors, find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color. Since answer can be large r... |
How to Rename and Move a File in Golang? | 02 Apr, 2020
In the Go language, you are allowed to rename and move the existing file to a new path with the help of the Rename() method. This method is used to rename and move a file from the old path to the new path.
If the given new path already exists and it is not in a directory, then this method will replace it. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Apr, 2020"
},
{
"code": null,
"e": 234,
"s": 28,
"text": "In the Go language, you are allowed to rename and move the existing file to a new path with the help of the Rename() method. This method is used to rename and move a file from... |
HTML5 | <details> tag | 06 Jun, 2022
The <details> tag is used for the content/information which is initially hidden but could be displayed if the user wishes to see it. This tag is used to create an interactive widget that the user can open or close. The content of the details tag is visible when open the set attributes. The summary tag is u... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 418,
"s": 53,
"text": "The <details> tag is used for the content/information which is initially hidden but could be displayed if the user wishes to see it. This tag is used to create an interactive... |
Data Reduction in Data Mining | 15 Dec, 2021
Prerequisite – Data Mining The method of data reduction may achieve a condensed description of the original data which is much smaller in quantity but keeps the quality of the original data.
Methods of data reduction: These are explained as following below.
1. Data Cube Aggregation: This technique is use... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 220,
"s": 28,
"text": "Prerequisite – Data Mining The method of data reduction may achieve a condensed description of the original data which is much smaller in quantity but keeps the quality of the... |
How To Dynamically Resize Button Text in Tkinter? | 16 Oct, 2021
Prerequisite: Python GUI – tkinter, Dynamically Resize Buttons When Resizing a Window using Tkinter
In this article, we will see how to make the button text size dynamic. Dynamic means whenever button size will change, the button text size will also change. In Tkinter there is no in-built function, that wi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Oct, 2021"
},
{
"code": null,
"e": 128,
"s": 28,
"text": "Prerequisite: Python GUI – tkinter, Dynamically Resize Buttons When Resizing a Window using Tkinter"
},
{
"code": null,
"e": 379,
"s": 128,
"text": "In thi... |
Image Processing in Java – Colored to Red Green Blue Image Conversion | 14 Nov, 2021
Prerequisites:
Image Processing in Java – Read and Write
Image Processing In Java – Get and Set Pixels
Image Processing in Java – Colored Image to Grayscale Image Conversion
Image Processing in Java – Colored Image to Negative Image Conversion
In this set, we will be converting a colored image to an image... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Nov, 2021"
},
{
"code": null,
"e": 70,
"s": 54,
"text": "Prerequisites: "
},
{
"code": null,
"e": 112,
"s": 70,
"text": "Image Processing in Java – Read and Write"
},
{
"code": null,
"e": 158,
"s"... |
Popup Menu in Android With Example | 26 Nov, 2020
In android, Menu is an important part of the UI component which is used to provide some common functionality around the application. With the help of the menu, users can experience smooth and consistent experiences throughout the application. In android, we have three types of Menus available to define a s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 467,
"s": 52,
"text": "In android, Menu is an important part of the UI component which is used to provide some common functionality around the application. With the help of the menu, users can expe... |
Substring in Java | 07 Jul, 2021
There are two variants of the substring() method. This article depicts all of them, as follows :
1. String substring(): This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this st... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 151,
"s": 53,
"text": "There are two variants of the substring() method. This article depicts all of them, as follows : "
},
{
"code": null,
"e": 419,
"s": 151,
"text": "1. Stri... |
LINQ | How to find maximum value of the given sequence? | 21 May, 2019
In LINQ, you can find the maximum element of the given sequence by using Max() function. This method provides the maximum element of the given set of values. It does not support query syntax in C#, but it supports in VB.NET. It is available in both Enumerable and Queryable classes in C#. It returns null if... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 665,
"s": 28,
"text": "In LINQ, you can find the maximum element of the given sequence by using Max() function. This method provides the maximum element of the given set of values. It does not suppo... |
Default Methods In Java 8 | 17 Feb, 2020
Before Java 8, interfaces could have only abstract methods. The implementation of these methods has to be provided in a separate class. So, if a new method is to be added in an interface, then its implementation code has to be provided in the class implementing the same interface. To overcome this issue, J... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2020"
},
{
"code": null,
"e": 534,
"s": 52,
"text": "Before Java 8, interfaces could have only abstract methods. The implementation of these methods has to be provided in a separate class. So, if a new method is to be added in ... |
Storage Classes in C++ with Examples | 28 Jun, 2021
Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particular variable during the runtime of a program. To specify the storage class for a variable, the following syntax is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 375,
"s": 52,
"text": "Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the exis... |
Parsero – Tool for reading the Robots.txt file in Kali Linux | 18 Jul, 2021
Parsero is a free and open-source tool available on GitHub. Parsero is used to reading Robots.txt files of websites and web apps. This tool can be used to get information about our target(domain). We can target any domain using Parsero. It has an interactive console that provides a number of helpful featu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 491,
"s": 28,
"text": "Parsero is a free and open-source tool available on GitHub. Parsero is used to reading Robots.txt files of websites and web apps. This tool can be used to get information abo... |
Nth root of a number using log | 08 Apr, 2021
Given two integers N and K, the task is to find the Nth root of the K.
Examples:
Input: N = 3, K = 8 Output: 2.00 Explanation: Cube root of 8 is 2. i.e. 23 = 8
Input: N = 2, K = 16 Output: 4.00 Explanation: Square root of 16 is 4, i.e. 42 = 16
Approach: The idea is to use logarithmic function to find t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 100,
"s": 28,
"text": "Given two integers N and K, the task is to find the Nth root of the K. "
},
{
"code": null,
"e": 111,
"s": 100,
"text": "Examples: "
},
{
"code": n... |
SAP ABAP - Operators | ABAP provides a rich set of operators to manipulate variables. All ABAP operators are classified into four categories −
Arithmetic Operators
Comparison Operators
Bitwise Operators
Character String Operators
Arithmetic operators are used in mathematical expressions in the same way that they are used in algebra. The foll... | [
{
"code": null,
"e": 3152,
"s": 3032,
"text": "ABAP provides a rich set of operators to manipulate variables. All ABAP operators are classified into four categories −"
},
{
"code": null,
"e": 3173,
"s": 3152,
"text": "Arithmetic Operators"
},
{
"code": null,
"e": 3194... |
FLOOR() AND CEIL() Function in MySQL | 28 Sep, 2020
1. FLOOR() Function :FLOOR() function in MySQL is used to return the largest integer value which will be either equal to or less than from a given input number.
Syntax :
FLOOR(X)
Parameter : Required.X : A number whose floor value we want to calculate.Returns : It returns the closest integer which is <=X. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Sep, 2020"
},
{
"code": null,
"e": 189,
"s": 28,
"text": "1. FLOOR() Function :FLOOR() function in MySQL is used to return the largest integer value which will be either equal to or less than from a given input number."
},
{
... |
PyQt5 – How to set text to progress bar ? | 22 Apr, 2020
In this article we will see how to set text to progress bar. When we create a progress bar only progress percentage text is visible but we can also set some text on it.
Below is how normal progress bar vs progress bar with text looks like.
In order to do this we will use setFormat method, although it is u... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 197,
"s": 28,
"text": "In this article we will see how to set text to progress bar. When we create a progress bar only progress percentage text is visible but we can also set some text on it."
},
... |
Use of print() and say() in Perl | 18 Jun, 2019
Perl uses statements and expressions to evaluate the input provided by the user or given as Hardcoded Input in the code. This evaluated expression will not be shown to the programmer as it’s been evaluated in the compiler. To display this evaluated expression, Perl uses print() function and say() function.... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 428,
"s": 54,
"text": "Perl uses statements and expressions to evaluate the input provided by the user or given as Hardcoded Input in the code. This evaluated expression will not be shown to the pr... |
Python program to count upper and lower case characters without using inbuilt functions | 24 Nov, 2020
Given a string that contains both upper and lower case characters in it. The task is to count number of upper and lower case characters in it without using in-built functions.
Counting the upper and lower case characters of a string can be easily done using isupper() and islower() functions, refer this. Bu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Nov, 2020"
},
{
"code": null,
"e": 229,
"s": 53,
"text": "Given a string that contains both upper and lower case characters in it. The task is to count number of upper and lower case characters in it without using in-built functions... |
JavaScript | Object Constructors | 31 May, 2019
Object: Object is the collection of related data or functionality in the form of key. This functionalities are usually consists of several functions and variables. All JavaScript values are objects except primitives.
Example:
var GFG = {
subject : "programming",
language : "JavaScript",
}
Here, sub... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n31 May, 2019"
},
{
"code": null,
"e": 270,
"s": 53,
"text": "Object: Object is the collection of related data or functionality in the form of key. This functionalities are usually consists of several functions and variables. All JavaSc... |
Find minimum weight cycle in an undirected graph | 07 Jul, 2022
Given a positive weighted undirected graph, find the minimum weight cycle in it.
Examples:
Minimum weighted cycle is :
Minimum weighed cycle : 7 + 1 + 6 = 14 or
2 + 6 + 2 + 4 = 14
The idea is to use shortest path algorithm. We one by one remove every edge from the graph, then we... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 133,
"s": 52,
"text": "Given a positive weighted undirected graph, find the minimum weight cycle in it."
},
{
"code": null,
"e": 145,
"s": 133,
"text": "Examples: "
},
{
... |
Count Number of List Elements in R | 05 Apr, 2021
In this article, we are going to count the elements in a list and elements in a nested list in R Programming Language. So we are going to use length() and lengths() to find the elements count in a list.
Steps –
Create a list with vectors/list/range operator
Find the count of elements using the length and l... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 231,
"s": 28,
"text": "In this article, we are going to count the elements in a list and elements in a nested list in R Programming Language. So we are going to use length() and lengths() to find th... |
Python – Remove dictionary from a list of dictionaries if a particular value is not present | When it is required to remove dictionary from a list of dictionaries if a particular value is not present, a simple iteration and the ‘del’ operator is used.
Below is a demonstration of the same −
my_list = [{"id" : 1, "data" : "Python"},
{"id" : 2, "data" : "Code"},
{"id" : 3, "data" : "Learn"}]
print("The list... | [
{
"code": null,
"e": 1220,
"s": 1062,
"text": "When it is required to remove dictionary from a list of dictionaries if a particular value is not present, a simple iteration and the ‘del’ operator is used."
},
{
"code": null,
"e": 1259,
"s": 1220,
"text": "Below is a demonstration... |
How to Solve java.lang.IllegalStateException in Java main Thread? - GeeksforGeeks | 03 Mar, 2022
An unexpected, unwanted event that disturbed the normal flow of a program is called Exception.
Most of the time exception is caused by our program and these are recoverable. Example: If our program requirement is to read data from the remote file locating in U.S.A. At runtime, if a remote file is not avail... | [
{
"code": null,
"e": 24418,
"s": 24390,
"text": "\n03 Mar, 2022"
},
{
"code": null,
"e": 24513,
"s": 24418,
"text": "An unexpected, unwanted event that disturbed the normal flow of a program is called Exception."
},
{
"code": null,
"e": 24927,
"s": 24513,
"tex... |
wxPython - Environment | Prebuilt binaries for Windows OS (both 32 bit and 64 bit) are available on http://www.wxpython.org/download.php page. Latest versions of installers available are − wxPython3.0-win32-3.0.2.0-py27.exe for 32-bit Python 2.7 wxPython3.0-win64-3.0.2.0-py27.exe for 64-bit Python 2.7
wxPython demo, samples and wxWidgets docum... | [
{
"code": null,
"e": 2160,
"s": 1882,
"text": "Prebuilt binaries for Windows OS (both 32 bit and 64 bit) are available on http://www.wxpython.org/download.php page. Latest versions of installers available are − wxPython3.0-win32-3.0.2.0-py27.exe for 32-bit Python 2.7 wxPython3.0-win64-3.0.2.0-py27.e... |
Java - The TreeSet Class | TreeSet provides an implementation of the Set interface that uses a tree for storage. Objects are stored in a sorted and ascending order.
Access and retrieval times are quite fast, which makes TreeSet an excellent choice when storing large amounts of sorted information that must be found quickly.
Following is the list ... | [
{
"code": null,
"e": 2515,
"s": 2377,
"text": "TreeSet provides an implementation of the Set interface that uses a tree for storage. Objects are stored in a sorted and ascending order."
},
{
"code": null,
"e": 2675,
"s": 2515,
"text": "Access and retrieval times are quite fast, w... |
A Simple Song Recommender System in Python (Tutorial) | by Jack Bandy | Towards Data Science | This material is based on content from a workshop I taught in April 2020.
Most of us now use AI-based recommender systems every day: looking for a show on Netflix, scrolling through social media feeds, watching “up next” videos on YouTube, and listening to “Discover Weekly” playlists on Spotify.
So how do these recomme... | [
{
"code": null,
"e": 245,
"s": 171,
"text": "This material is based on content from a workshop I taught in April 2020."
},
{
"code": null,
"e": 468,
"s": 245,
"text": "Most of us now use AI-based recommender systems every day: looking for a show on Netflix, scrolling through soci... |
Detecting Malaria with Deep Learning | by Dipanjan (DJ) Sarkar | Towards Data Science | The content for this article has been adapted from my own article published previously in opensource.com
Welcome to the AI for Social Good Series, where we will be focusing on different aspects of how Artificial Intelligence (AI) coupled with popular open-source tools, technologies and frameworks are being used for dev... | [
{
"code": null,
"e": 277,
"s": 172,
"text": "The content for this article has been adapted from my own article published previously in opensource.com"
},
{
"code": null,
"e": 1029,
"s": 277,
"text": "Welcome to the AI for Social Good Series, where we will be focusing on different... |
R - Data Reshaping | Data Reshaping in R is about changing the way data is organized into rows and columns. Most of the time data processing in R is done by taking the input data as a data frame. It is easy to extract data from the rows and columns of a data frame but there are situations when we need the data frame in a format that is dif... | [
{
"code": null,
"e": 2866,
"s": 2402,
"text": "Data Reshaping in R is about changing the way data is organized into rows and columns. Most of the time data processing in R is done by taking the input data as a data frame. It is easy to extract data from the rows and columns of a data frame but there... |
Batch Script - EXIT | This batch command exits the DOS console.
Exit
@echo off
echo "Hello World"
exit
The batch file will terminate and the command prompt window will close.
Print
Add Notes
Bookmark this page | [
{
"code": null,
"e": 2211,
"s": 2169,
"text": "This batch command exits the DOS console."
},
{
"code": null,
"e": 2217,
"s": 2211,
"text": "Exit\n"
},
{
"code": null,
"e": 2253,
"s": 2217,
"text": "@echo off \necho \"Hello World\" \nexit"
},
{
"code": ... |
Data Augmentation and Handling Huge Datasets with Keras: A Simple Way | by Lucas Robinet | Towards Data Science | In today’s tutorial, we will see a well-known technique to reduce overfitting in computer vision and a simple way to implement it : Data Augmentation. We will be going over the following.
A Definition of Data Augmentation
The Keras’ ImageDataGeneratorClass
How to handle Datasets that does not fit into memory
In the Dee... | [
{
"code": null,
"e": 360,
"s": 172,
"text": "In today’s tutorial, we will see a well-known technique to reduce overfitting in computer vision and a simple way to implement it : Data Augmentation. We will be going over the following."
},
{
"code": null,
"e": 394,
"s": 360,
"text":... |
Pneumonia Detection using Convolutional Neural Networks | by Nischal Madiraju | Towards Data Science | With the completion of my AIML course, I wanted to put my newfound knowledge to use and work on some side-projects which will both help me get some practical exposure in the field and either solve an interesting real-life problem or have some sort of practical usefulness to it. On this quest to find a project that fits... | [
{
"code": null,
"e": 629,
"s": 172,
"text": "With the completion of my AIML course, I wanted to put my newfound knowledge to use and work on some side-projects which will both help me get some practical exposure in the field and either solve an interesting real-life problem or have some sort of prac... |
C++ program to find the sum of the series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n! | In this tutorial, we will be discussing a program to find the sum of the given series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!.
For this, we will be given with the value of n and our task is to add up every term starting from the first one to find the sum of the given series.
#include <iostream>
using namespace std;
//... | [
{
"code": null,
"e": 1190,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to find the sum of the given series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!."
},
{
"code": null,
"e": 1339,
"s": 1190,
"text": "For this, we will be given with the value of n and our... |
Finding sum of digits of a number until sum becomes single digit - GeeksforGeeks | 13 Feb, 2022
Given a number n, we need to find the sum of its digits such that:
If n < 10
digSum(n) = n
Else
digSum(n) = Sum(digSum(n))
Examples :
Input : 1234
Output : 1
Explanation : The sum of 1+2+3+4 = 10,
digSum(x) == 10
Hence ans will be 1+0 = 1
Input : 5674
Ou... | [
{
"code": null,
"e": 24962,
"s": 24934,
"text": "\n13 Feb, 2022"
},
{
"code": null,
"e": 25030,
"s": 24962,
"text": "Given a number n, we need to find the sum of its digits such that: "
},
{
"code": null,
"e": 25107,
"s": 25030,
"text": "If n < 10 \n dig... |
Java Program to calculate area of a Tetrahedron | A Tetrahedron is a polyhedron composed of four triangular faces, six straight edges, and four vertex corners.
Following is the Java program to calculate area of a Tetrahedron −
Live Demo
import java.io.*;
public class Demo{
static double tetra_vol(int side){
double my_vol = (Math.pow(side, 3) / (6 * Math.sqrt... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "A Tetrahedron is a polyhedron composed of four triangular faces, six straight edges, and four vertex corners."
},
{
"code": null,
"e": 1239,
"s": 1172,
"text": "Following is the Java program to calculate area of a Tetrahedron −"
},... |
Downloading & Uploading Images | In this chapter we are going to see how you can download an image from internet, perform some image processing techniques on the image, and then again upload the processed image to a server.
In order to download an image from a website, we use java class named URL, which can be found under java.net package. Its syntax ... | [
{
"code": null,
"e": 2528,
"s": 2337,
"text": "In this chapter we are going to see how you can download an image from internet, perform some image processing techniques on the image, and then again upload the processed image to a server."
},
{
"code": null,
"e": 2674,
"s": 2528,
... |
Create ML: A GUI for training Neural Networks | by Dario Radečić | Towards Data Science | A couple of weeks ago I’ve bought a new laptop — a 2019 MacBook Pro and I’ve been loving it ever since. Naturally, I started experimenting with Swift and Xcode, mostly to create some dummy iOS apps. That’s where I discovered Create ML — a GUI tool for training custom neural networks.
Here’s a quick statement directly f... | [
{
"code": null,
"e": 456,
"s": 171,
"text": "A couple of weeks ago I’ve bought a new laptop — a 2019 MacBook Pro and I’ve been loving it ever since. Naturally, I started experimenting with Swift and Xcode, mostly to create some dummy iOS apps. That’s where I discovered Create ML — a GUI tool for tra... |
Inverse Factorial in Python | Suppose we have a number a, we have to find n, such that factorial of n (n!) is same as a. As we
know, the factorial n = n * (n - 1) * (n - 2) * ... * 1. If there is no such integer n then return -1.
So, if the input is like a = 120, then the output will be 5.
To solve this, we will follow these steps −
i := 0, num := ... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "Suppose we have a number a, we have to find n, such that factorial of n (n!) is same as a. As we\nknow, the factorial n = n * (n - 1) * (n - 2) * ... * 1. If there is no such integer n then return -1."
},
{
"code": null,
"e": 1323,
"s": ... |
Find a number in minimum steps - GeeksforGeeks | 02 Jul, 2021
Given an infinite number line from -INFINITY to +INFINITY and we are on zero. We can move n steps either side at each n’th time.
Approach 1 : Using Tree
1st time; we can move only 1 step to both ways, means -1 1;
2nd time we can move 2 steps from -1 and 1;
-1 : -3 (-1-2) 1(-1+2)
1 : -1 ( 1-2) 3(1+... | [
{
"code": null,
"e": 25308,
"s": 25280,
"text": "\n02 Jul, 2021"
},
{
"code": null,
"e": 25438,
"s": 25308,
"text": "Given an infinite number line from -INFINITY to +INFINITY and we are on zero. We can move n steps either side at each n’th time. "
},
{
"code": null,
"... |
AngularJS | Modules - GeeksforGeeks | 31 May, 2019
The AngularJS module defines the functionality of the application which is applied on the entire HTML page. It helps to link many components. So it is just a group of related components. It is a container which consists of different parts like controllers, services, directives.
Note: This modules should be... | [
{
"code": null,
"e": 28271,
"s": 28243,
"text": "\n31 May, 2019"
},
{
"code": null,
"e": 28550,
"s": 28271,
"text": "The AngularJS module defines the functionality of the application which is applied on the entire HTML page. It helps to link many components. So it is just a group... |
How to Pretty-Print Pandas DataFrames and Series | Towards Data Science | When we have to work with large pandas DataFrames that may also have multiple columns and rows it’s important to be able to display the DataFrames in a readable format. This is probably useful when debugging your code, too.
By default, only a subset of columns is displayed to the standard output when a DataFrame is pri... | [
{
"code": null,
"e": 396,
"s": 172,
"text": "When we have to work with large pandas DataFrames that may also have multiple columns and rows it’s important to be able to display the DataFrames in a readable format. This is probably useful when debugging your code, too."
},
{
"code": null,
... |
How to manipulate Date in PowerShell? | To add/remove date from the date string you need to use AddDay() method. For example,
We need to add 6 days to the current date.
(Get-Date).AddDays(6)
25 March 2020 22:40:36
To go back to the specific number of days, the same AddDays() method will be used but the numbers are negative.
For example,
(Get-Date).AddDays(-... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "To add/remove date from the date string you need to use AddDay() method. For example,"
},
{
"code": null,
"e": 1191,
"s": 1148,
"text": "We need to add 6 days to the current date."
},
{
"code": null,
"e": 1236,
"s": 1... |
Removing Duplicate or Similar Images in Python | by Angel Igareta | Towards Data Science | One of the most naive approaches to detecting duplicate images would be to compare pixel by pixel by checking that all values are the same. However, this becomes very inefficient when testing a large number of images.
A second very common approach would be to extract the cryptographic hash of both images and compare if... | [
{
"code": null,
"e": 390,
"s": 172,
"text": "One of the most naive approaches to detecting duplicate images would be to compare pixel by pixel by checking that all values are the same. However, this becomes very inefficient when testing a large number of images."
},
{
"code": null,
"e": ... |
What are the rules for a local variable in lambda expression in Java? | A lambda expression can capture variables like local and anonymous classes. In other words, they have the same access to local variables of the enclosing scope. We need to follow some rules in case of local variables in lambda expressions.
A lambda expression can't define any new scope as an anonymous inner class does,... | [
{
"code": null,
"e": 1302,
"s": 1062,
"text": "A lambda expression can capture variables like local and anonymous classes. In other words, they have the same access to local variables of the enclosing scope. We need to follow some rules in case of local variables in lambda expressions."
},
{
... |
Frequency of each character in String in Python | Text processing has emerged as an important field in machine learning and AI. Python supports this filed with many available tools and libraries. In this article we will see how we can find the number of occurrence of each letter of a given string.
The Counter method counts the number of occurrences of an element in an... | [
{
"code": null,
"e": 1311,
"s": 1062,
"text": "Text processing has emerged as an important field in machine learning and AI. Python supports this filed with many available tools and libraries. In this article we will see how we can find the number of occurrence of each letter of a given string."
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.