title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Work with ZIP archives in Python (zipfile) | The ZIP is one of the most popular file formats used for archiving and compression. It has been in use since the days of MSDOS and PC and has been used by famous PKZIP application.
The zipfile module in Python’s standard library provides classes that facilitate the tools for creating, extracting, reading and writing to... | [
{
"code": null,
"e": 1368,
"s": 1187,
"text": "The ZIP is one of the most popular file formats used for archiving and compression. It has been in use since the days of MSDOS and PC and has been used by famous PKZIP application."
},
{
"code": null,
"e": 1522,
"s": 1368,
"text": "T... |
Scrape Tables From any website using Python | 06 Aug, 2021
Scraping is a very essential skill for everyone to get data from any website. Scraping and parsing a table can be very tedious work if we use standard Beautiful soup parser to do so. Therefore, here we will be describing a library with the help of which any table can be scraped from any website easily. Wit... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 529,
"s": 54,
"text": "Scraping is a very essential skill for everyone to get data from any website. Scraping and parsing a table can be very tedious work if we use standard Beautiful soup parser t... |
Services in Android with Example | 15 Sep, 2020
Services in Android are a special component that facilitates an application to run in the background in order to perform long-running operation tasks. The prime aim of a service is to ensure that the application remains active in the background so that the user can operate multiple applications at the same... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Sep, 2020"
},
{
"code": null,
"e": 1102,
"s": 52,
"text": "Services in Android are a special component that facilitates an application to run in the background in order to perform long-running operation tasks. The prime aim of a ser... |
CloudFail - Unmask/Bypass CloudFlare Security in Kali Linux - GeeksforGeeks | 20 Apr, 2021
CloudFail is a free and open-source tool available on GitHub. CloudFail is a tactical reconnaissance tool. There are some websites that are protected by Cloudflare security. It’s hard to find information about such websites but now impossible. By using CloudFail tool we can get enough information about the... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n20 Apr, 2021"
},
{
"code": null,
"e": 24838,
"s": 24326,
"text": "CloudFail is a free and open-source tool available on GitHub. CloudFail is a tactical reconnaissance tool. There are some websites that are protected by Cloudflare... |
Exporting Pandas DataFrame to JSON File - GeeksforGeeks | 31 Aug, 2021
Let us see how to export a Pandas DataFrame as a JSON file. To perform this task we will be using the DataFrame.to_json() and the pandas.read_json() function.
Example 1 :
Python3
# importing the moduleimport pandas as pd # creating a DataFramedf = pd.DataFrame([['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', ... | [
{
"code": null,
"e": 23921,
"s": 23893,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 24080,
"s": 23921,
"text": "Let us see how to export a Pandas DataFrame as a JSON file. To perform this task we will be using the DataFrame.to_json() and the pandas.read_json() function."
}... |
5 tips for data aggregation in pandas | by Zolzaya Luvsandorj | Towards Data Science | When doing data analysis, being able to skillfully aggregate data plays an important role. Pandas provides many useful methods, some of which are perhaps less popular than others. Moreover, even for the well-known methods, we could increase its utility by tweaking its arguments further or complement it with other metho... | [
{
"code": null,
"e": 610,
"s": 172,
"text": "When doing data analysis, being able to skillfully aggregate data plays an important role. Pandas provides many useful methods, some of which are perhaps less popular than others. Moreover, even for the well-known methods, we could increase its utility by... |
Clojure - Variadic Functions | Variadic functions are functions that take varying number of arguments (some arguments are optional). Function can also specify the ‘&’ ampersand symbol to take in an arbitrary number of arguments.
Following example shows how this can be achieved.
(defn demo
[message & others]
(str message (clojure.string/join "... | [
{
"code": null,
"e": 2572,
"s": 2374,
"text": "Variadic functions are functions that take varying number of arguments (some arguments are optional). Function can also specify the ‘&’ ampersand symbol to take in an arbitrary number of arguments."
},
{
"code": null,
"e": 2622,
"s": 257... |
File Handling in Java using FileReader and FileWriter | Java Byte streams are used to perform input and output of 8-bit bytes, whereas Java Character streams are used to perform input and output for 16-bit unicode. Though there are many classes related to character streams but the most frequently used classes are, FileReader and FileWriter. Though internally FileReader uses... | [
{
"code": null,
"e": 1554,
"s": 1062,
"text": "Java Byte streams are used to perform input and output of 8-bit bytes, whereas Java Character streams are used to perform input and output for 16-bit unicode. Though there are many classes related to character streams but the most frequently used classe... |
Binary search in Java. | Following is the required program.
Live Demo
public class Tester {
public static int binarySearch(int arr[], int first, int last, int element){
int mid = (first + last)/2;
while( first <= last ){
if ( arr[mid] < element ){
first = mid + 1;
}else if ( arr[mid] == element ... | [
{
"code": null,
"e": 1097,
"s": 1062,
"text": "Following is the required program."
},
{
"code": null,
"e": 1107,
"s": 1097,
"text": "Live Demo"
},
{
"code": null,
"e": 1957,
"s": 1107,
"text": "public class Tester {\n public static int binarySearch(int arr[]... |
Remove consonants from a string | Practice | GeeksforGeeks | Given a string S, remove all consonants and print the modified string that contains vowels only.
Example 1:
Input
S = "abEkipo"
Output
aEio
Explanation : a, E, i, o are only vowels in the string.
Example 2:
Input
S = "rrty"
Output
No Vowel
Explanation: There are no vowels.
Your Task: You don't need to read input or ... | [
{
"code": null,
"e": 335,
"s": 238,
"text": "Given a string S, remove all consonants and print the modified string that contains vowels only."
},
{
"code": null,
"e": 346,
"s": 335,
"text": "Example 1:"
},
{
"code": null,
"e": 435,
"s": 346,
"text": "Input\nS ... |
How to use SELF JOIN in MySQL? | To use SELF JOIN, let us create a table. The query to create a table is as follows −
mysql> create table SelfJoinDemo
-> (
-> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> CountryName varchar(20),
-> CountryRank int,
-> `Year` varchar(10)
-> );
Query OK, 0 rows affected (1.02 sec)
Now you can insert ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "To use SELF JOIN, let us create a table. The query to create a table is as follows −"
},
{
"code": null,
"e": 1363,
"s": 1147,
"text": "mysql> create table SelfJoinDemo\n -> (\n -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n ... |
Pair with maximum difference in a Matrix - GeeksforGeeks | 28 May, 2021
Given a NxM matrix with N rows and M columns of positive integers. The task is to find the pair with the maximum difference in the given matrix.Note: Pairs at positions (a, b) and (b, a) are considered equivalent.Examples:
Input : mat[N][M] = {{1, 2, 3, 4},
{25, 6, 7, 8},
... | [
{
"code": null,
"e": 25099,
"s": 25071,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 25324,
"s": 25099,
"text": "Given a NxM matrix with N rows and M columns of positive integers. The task is to find the pair with the maximum difference in the given matrix.Note: Pairs at posi... |
Python SQLite – Update Data | 08 May, 2021
In this article, we will discuss how we can update data in tables in the SQLite database using Python – sqlite3 module.
The UPDATE statement in SQL is used to update the data of an existing table in the database. We can update single columns as well as multiple columns using UPDATE statement as per our re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2021"
},
{
"code": null,
"e": 149,
"s": 28,
"text": "In this article, we will discuss how we can update data in tables in the SQLite database using Python – sqlite3 module. "
},
{
"code": null,
"e": 346,
"s": 149... |
Change figure size in Pandas – Python | 11 Dec, 2020
Prerequisites: Pandas
The size of a plot can be modified by passing required dimensions as a tuple to the figsize parameter of the plot() method. it is used to determine the size of a figure object.
Syntax:
figsize=(width, height)
Where dimensions should be given in inches.
Import pandas.
Create or load da... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 74,
"s": 52,
"text": "Prerequisites: Pandas"
},
{
"code": null,
"e": 251,
"s": 74,
"text": "The size of a plot can be modified by passing required dimensions as a tuple to the f... |
GATE | GATE CS 2019 | Question 15 | 27 Sep, 2021
Consider Z = X − Y where X, Y and Z are all in sign-magnitude form. X and Y are each represented in n bits. To avoid overflow, the representation of Z would require a minimum of:(A) n bits(B) n−1 bits(C) n+1 bits(D) n+2 bitsAnswer: (C)Explanation: Overflow can occur when two same sign numbers are added or ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 403,
"s": 54,
"text": "Consider Z = X − Y where X, Y and Z are all in sign-magnitude form. X and Y are each represented in n bits. To avoid overflow, the representation of Z would require a minimum... |
Split the string into substrings using delimiter | 21 May, 2021
Given a string and a delimiter character. Split the string based on the delimiter and print the list of resulting sub strings.Examples:
Input : str = "geeks;for;geeks"
d_ch = ';'
Output : geeks
for
geeks
Input : str = "##ayush##jauhari####"
d_ch = '#'
Output : ayush
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 190,
"s": 52,
"text": "Given a string and a delimiter character. Split the string based on the delimiter and print the list of resulting sub strings.Examples: "
},
{
"code": null,
"e":... |
R program to find perfect numbers upto n numbers and in the given range | 25 Feb, 2021
Given a range the task is to write a R program to print all perfect numbers in that range.
A positive integer that is equal to the sum of its proper divisors is known as a perfect number. The smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496, and 8,128. Please... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 143,
"s": 52,
"text": "Given a range the task is to write a R program to print all perfect numbers in that range."
},
{
"code": null,
"e": 622,
"s": 143,
"text": "A positive int... |
Infosys-InfyTQ Archives - GeeksforGeeks | Infosys Interview Experience for Digital Specialist Engineer Through InfyTQ
Infosys InfyTQ Interview Experience 2022
Infosys Infytq Interview Experience for System Engineer
Infosys InfyTQ DSE Interview Experience 2023
Infosys Certification Exam (InfyTQ) 2021
Infosys InfyTq System Engineer Specialist Interview Experienc... | [
{
"code": null,
"e": 24206,
"s": 24130,
"text": "Infosys Interview Experience for Digital Specialist Engineer Through InfyTQ"
},
{
"code": null,
"e": 24247,
"s": 24206,
"text": "Infosys InfyTQ Interview Experience 2022"
},
{
"code": null,
"e": 24303,
"s": 24247,
... |
File uploading in React.js | 29 Jan, 2021
For any developer who envisions building an application, uploading images is a major component they have to take into account. It is an essential requirement while creating a complete application. File uploading means a user from a client machine wants to upload files to the server. For example, users can ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jan, 2021"
},
{
"code": null,
"e": 662,
"s": 54,
"text": "For any developer who envisions building an application, uploading images is a major component they have to take into account. It is an essential requirement while creating a... |
Python – Consecutive identical elements count | 12 Nov, 2020
Given the elements list, get all the elements that have an identical element as the next element.
Input : test_list = [4, 5, 5, 5, 5, 6, 6, 7, 8, 2, 2, 10] Output : 3 Explanation : 5, 6 and 2 has identical element as their next element.
Input : test_list = [4, 5, 5, 5, 5, 6, 6, 7, 8, 2, 3, 10] Output : 2 E... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Nov, 2020"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "Given the elements list, get all the elements that have an identical element as the next element."
},
{
"code": null,
"e": 265,
"s": 126,
"text": "Input : ... |
Testing with Jest | 27 Jan, 2022
Jest is a Javascript Testing Framework by Facebook. It is used most commonly for unit testing. Unit testing is when you provide input to a unit of code(usually, a function) and match the output with the expected output.
Jest Features:
zero config: As we will see later in this article, close to none conf... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 249,
"s": 28,
"text": "Jest is a Javascript Testing Framework by Facebook. It is used most commonly for unit testing. Unit testing is when you provide input to a unit of code(usually, a function) an... |
PHP | list() Function | 03 Jun, 2020
The list() function is an inbuilt function in PHP which is used to assign array values to multiple variables at a time. This function will only work on numerical arrays. When the array is assigned to multiple values, then the first element in the array is assigned to the first variable, second to the secon... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 461,
"s": 28,
"text": "The list() function is an inbuilt function in PHP which is used to assign array values to multiple variables at a time. This function will only work on numerical arrays. When ... |
Python String center() Method | Python string method center() returns centered in a string of length width. Padding is done using the specified fillchar. Default filler is a space.
str.center(width[, fillchar])
width − This is the total width of the string.
width − This is the total width of the string.
fillchar − This is the filler character.
fillc... | [
{
"code": null,
"e": 2527,
"s": 2378,
"text": "Python string method center() returns centered in a string of length width. Padding is done using the specified fillchar. Default filler is a space."
},
{
"code": null,
"e": 2558,
"s": 2527,
"text": "str.center(width[, fillchar])\n"
... |
Dart – Symbols | 09 May, 2021
In Dart, Symbols are basically an object representation of either an identifier or operator. The symbols in dart are opaque and dynamic string names that cannot be changed and remains constant throughout the compile time. It can be used for reflecting the metadata on a type, such as a library or class. Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 498,
"s": 28,
"text": "In Dart, Symbols are basically an object representation of either an identifier or operator. The symbols in dart are opaque and dynamic string names that cannot be changed an... |
GATE | GATE-CS-2014-(Set-2) | Question 65 | 28 Jun, 2021
Which one of the following correctly determines the solution of the recurrence relation with T(1) = 1?
T(n) = 2T(n/2) + Logn
(A) Θ(n)(B) Θ(nLogn)(C) Θ(n*n)(D) Θ(log n)Answer: (A)Explanation:
T(n) = 2T(n/2) + log n
T(1) = 1
Substitute n = 2^k
T(2^k) = k + 2T(2^(k-1))
T(2^k) = k + 2(k-1) + 4T(2^(k-2))
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 157,
"s": 54,
"text": "Which one of the following correctly determines the solution of the recurrence relation with T(1) = 1?"
},
{
"code": null,
"e": 180,
"s": 157,
"text": "T(... |
Plotting multiple bar charts using Matplotlib in Python | 25 Feb, 2021
A multiple bar chart is also called a Grouped Bar chart. A Bar plot or a Bar Chart has many customizations such as Multiple bar plots, stacked bar plots, horizontal bar charts. Multiple bar charts are generally used for comparing different entities. In this article, plotting multiple bar charts are discuss... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 363,
"s": 52,
"text": "A multiple bar chart is also called a Grouped Bar chart. A Bar plot or a Bar Chart has many customizations such as Multiple bar plots, stacked bar plots, horizontal bar chart... |
How to Build an Instagram Like Custom RecyclerView in Android? | 28 Nov, 2021
We have seen implementing RecyclerView in Android with simple data inside our app. In this article, we will take a look at the implementation of Instagram like Custom RecyclerView in Android.
We will be building a simple application in which we will be displaying data from the Instagram profile, and we wi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "We have seen implementing RecyclerView in Android with simple data inside our app. In this article, we will take a look at the implementation of Instagram like Custom Recycler... |
JavaScript Comparison Operators | 24 Mar, 2022
In this article, we will know about various comparison operators & their implementation in Javascript. The Comparison operators are mainly used to perform the logical operations that determine the equality or difference between the values.
Operators are used to performing specific mathematical and logical ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 268,
"s": 28,
"text": "In this article, we will know about various comparison operators & their implementation in Javascript. The Comparison operators are mainly used to perform the logical operatio... |
TreeMap descendingMap() Method in Java with Examples | 15 Oct, 2020
The descendingMap() method is used to return a reverse order view of the mappings contained in this map. The reverse order or descending order of mappings are according to the descending order of keys. The descending map is backed by this map, so changes to the map are reflected in the descending map, and ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 348,
"s": 28,
"text": "The descendingMap() method is used to return a reverse order view of the mappings contained in this map. The reverse order or descending order of mappings are according to the... |
How to set active class to nav menu from bootstrap ? | 14 Dec, 2020
To set the active class to the navigation menu dynamically by scrolling or clicking on the navigation links, the active class is to be set on each section depending on the position of the webpage. To add methods and variables, JavaScript is used. To perform some action, the functions can be called on some ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Dec, 2020"
},
{
"code": null,
"e": 368,
"s": 28,
"text": "To set the active class to the navigation menu dynamically by scrolling or clicking on the navigation links, the active class is to be set on each section depending on the pos... |
readdir() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1600,
"s": 1588,
"text": "Unix - Home"
},
{
"code": null,
"e": 1623,
"s": 1600,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1646,
"s": 1623,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1665,
"s": 1... |
How to Download & Install NLTK on Windows? | 16 Dec, 2021
NLTK is Natural Language Tool Kit. It is used to build python programming. It helps to work with human languages data. It gives a very easy user interface. It supports classification, steaming, tagging, etc.
In windows, we first have to install the python current version. Then we have to install pip with i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "NLTK is Natural Language Tool Kit. It is used to build python programming. It helps to work with human languages data. It gives a very easy user interface. It supports classif... |
Create Grouped Bar Chart using Altair in Python | 16 Mar, 2021
Grouped bar charts are a handy tool to represent our data when we want to compare multiple sets of data items one against another. To make a grouped bar chart, we require at least three rows of three columns of data in our dataset. The three columns can be used as- one for values, one for series, and one f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 674,
"s": 28,
"text": "Grouped bar charts are a handy tool to represent our data when we want to compare multiple sets of data items one against another. To make a grouped bar chart, we require at l... |
Introduction to Processing | Java | 07 May, 2020
Processing is an open-source low level animation and GUI library built on Java with additional simplifications like additional classes, aliased mathematical functions and operations. It also provides a GUI for simple compilation of the programs written in processing.
Features of Processing: The following a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 May, 2020"
},
{
"code": null,
"e": 322,
"s": 54,
"text": "Processing is an open-source low level animation and GUI library built on Java with additional simplifications like additional classes, aliased mathematical functions and ope... |
How to set active tab style with AngularJS? | 19 Aug, 2020
To set an active tab style using AngularJS we need to use isActive and the ng-controller method .
Method 1:
The ng-controller Directive in AngularJS is used to add controller to the application. It can be used to add methods, functions and variables that can be called on some event like click, etc to perfo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "To set an active tab style using AngularJS we need to use isActive and the ng-controller method ."
},
{
"code": null,
"e": 136,
"s": 126,
"text": "Method 1... |
PostgreSQL – SELECT INTO | 28 Aug, 2020
In PostgreSQL, the SELECT INTO statement allows users to create a new table and inserts data returned by a query. The new table columns have names and data types linked with the output columns of the SELECT clause. Unlike the SELECT statement, the SELECT INTO statement does not return data to the client.
S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 334,
"s": 28,
"text": "In PostgreSQL, the SELECT INTO statement allows users to create a new table and inserts data returned by a query. The new table columns have names and data types linked with t... |
Java Program to Find 2 Elements in the Array such that Difference Between them is Largest | 26 Mar, 2021
An array is the most efficient data structure that is designed to store and access a group of objects. Given an array of integers, our task is to find out two elements from that array such that the difference between them is the maximum.
We will be discussing two approaches:
By comparing and checking the d... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 290,
"s": 52,
"text": "An array is the most efficient data structure that is designed to store and access a group of objects. Given an array of integers, our task is to find out two elements from t... |
Nested Decorators in Python | 25 Aug, 2021
Everything in Python is an object. Even function is a type of object in Python. Decorators are a special type of function which return a wrapper function. They are considered very powerful in Python and are used to modify the behaviour of a function temporarily without changing its actual value.
Nesting m... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 352,
"s": 54,
"text": "Everything in Python is an object. Even function is a type of object in Python. Decorators are a special type of function which return a wrapper function. They are considered... |
numpy.finfo() function – Python | 18 Jun, 2020
numpy.finfo() function shows machine limits for floating point types.
Syntax : numpy.finfo(dtype)
Parameters :dtype : [float, dtype, or instance] Kind of floating point data-type about which to get information.Return : Machine parameters for floating point types.
Code #1 :
# Python program explaining# nump... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 98,
"s": 28,
"text": "numpy.finfo() function shows machine limits for floating point types."
},
{
"code": null,
"e": 126,
"s": 98,
"text": "Syntax : numpy.finfo(dtype)"
},
{
... |
Grouping and Aggregating with Pandas | 15 Mar, 2021
In this article, we are going to see grouping and aggregating using pandas. Grouping and aggregating will help to achieve data analysis easily using various functions. These methods will help us to the group and summarize our data and make complex analysis comparatively easy.
Creating a sample dataset of... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 307,
"s": 28,
"text": "In this article, we are going to see grouping and aggregating using pandas. Grouping and aggregating will help to achieve data analysis easily using various functions. These m... |
Reverse an array using Stack | 18 Jan, 2021
Given an array arr[] of size N, the task to reverse the array using Stack.
Examples:
Input: arr[] = { 10, 20, 30, 40, 50 }Output: 50 40 30 20 10Explanation:Reversing the array modifies arr[] to { 50, 40, 30, 20, 10 }Therefore, the required output is 50 40 30 20 10.
Input: arr[] = { 1 }Output: 1
Iterative a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 103,
"s": 28,
"text": "Given an array arr[] of size N, the task to reverse the array using Stack."
},
{
"code": null,
"e": 113,
"s": 103,
"text": "Examples:"
},
{
"code":... |
How to avoid NullPointerException in Java using Optional class? | 23 May, 2019
In order to learn how to avoid an error, we must first understand the error.
NullPointerException
NullPointerException is a RuntimeException. In Java, a special null value can be assigned to an object reference. NullPointerException is thrown when program attempts to use an object reference that has the nu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 105,
"s": 28,
"text": "In order to learn how to avoid an error, we must first understand the error."
},
{
"code": null,
"e": 126,
"s": 105,
"text": "NullPointerException"
},
... |
How to Implement TextWatcher in Android? | 24 Nov, 2020
If there is an application containing a login form to be filled by the user, the login button should be disabled (meaning: it shouldn’t be clickable). When the user enters the credentials of the form the button should be enabled to click for the user. So in this article, we are implementing a TextWatcher t... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Nov, 2020"
},
{
"code": null,
"e": 580,
"s": 53,
"text": "If there is an application containing a login form to be filled by the user, the login button should be disabled (meaning: it shouldn’t be clickable). When the user enters th... |
Shell in a Box – Remote Linux Server via Web Browser | 23 Jun, 2021
For accessing Linux-based machines, Secure Shell (SSH) is used and for accessing Windows-based machines, Remote Desktop Protocol (RDP) is used. Putty is the most famous SSH client in windows. Just like that, SSH can be used for accessing the Linux server remotely via a web browser using shellinabox applica... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jun, 2021"
},
{
"code": null,
"e": 341,
"s": 28,
"text": "For accessing Linux-based machines, Secure Shell (SSH) is used and for accessing Windows-based machines, Remote Desktop Protocol (RDP) is used. Putty is the most famous SSH cl... |
How to set the collapsing borders model for a table ? | 01 Apr, 2021
CSS describes the way HTML elements should be displayed. There are various CSS properties that can add magic to the basic HTML document.
This article is focused on setting the collapsing borders model for the table element of HTML.
HTML tables allow us to arrange our data using rows and columns. The <tabl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "CSS describes the way HTML elements should be displayed. There are various CSS properties that can add magic to the basic HTML document."
},
{
"code": null,
"e": 2... |
Python | Split multiple characters from string | 11 Nov, 2019
While coding or improvising your programming skill, you surely must have come across many scenarios where you wished to use .split() in Python not to split on only one character but multiple characters at once. Consider this for an example:
"GeeksforGeeks, is an-awesome! website"
Using .split() on the abov... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 269,
"s": 28,
"text": "While coding or improvising your programming skill, you surely must have come across many scenarios where you wished to use .split() in Python not to split on only one charact... |
How to select rows of an R data frame that are non-NA? | To select rows of an R data frame that are non-Na, we can use complete.cases function with single square brackets. For example, if we have a data frame called that contains some missing values (NA) then the selection of rows that are non-NA can be done by using the command df[complete.cases(df),].
Consider the below da... | [
{
"code": null,
"e": 1361,
"s": 1062,
"text": "To select rows of an R data frame that are non-Na, we can use complete.cases function with single square brackets. For example, if we have a data frame called that contains some missing values (NA) then the selection of rows that are non-NA can be done ... |
Wildcard matching of string JavaScript | We are required to write a JavaScript function that accepts two strings and a number n. The
function matches the two strings i.e., it checks if the two strings contains the same characters.
The function should return true if both the strings contain the same character irrespective of
their order or if they contain at m... | [
{
"code": null,
"e": 1454,
"s": 1062,
"text": "We are required to write a JavaScript function that accepts two strings and a number n. The\nfunction matches the two strings i.e., it checks if the two strings contains the same characters.\nThe function should return true if both the strings contain t... |
Assigning Panel Data to Training, Testing and Validation Groups for Machine Learning Models | by Shad Griffin | Towards Data Science | Make sure your groups are independent and avoid deployment disasters
github.com
Cross-Sectional data includes individual entities measured in one time period. For example, 10,000 people measured once is cross-sectional data.
Time series includes one entity measured over multiple time periods. For example, a single mach... | [
{
"code": null,
"e": 240,
"s": 171,
"text": "Make sure your groups are independent and avoid deployment disasters"
},
{
"code": null,
"e": 251,
"s": 240,
"text": "github.com"
},
{
"code": null,
"e": 396,
"s": 251,
"text": "Cross-Sectional data includes individ... |
Change Cursor Color with CSS caret-color | For changing the color of insertion caret, CSS caret-color property is used.
The following examples illustrate the CSS caret-color property.
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
form {
padding: 2%;
margin: 2%;
text-align: center;
}
form:focus-within {
box-shadow: 0 0 10px rgba(0,0,0,0.6);
bac... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "For changing the color of insertion caret, CSS caret-color property is used."
},
{
"code": null,
"e": 1203,
"s": 1139,
"text": "The following examples illustrate the CSS caret-color property."
},
{
"code": null,
"e": 1214... |
How to select the maximum value of a column in MySQL? | You can use ORDER BY clause or aggregate function MAX() to select the maximum value.
Following is the syntax −
select yourColumnName from yourTableName order by yourColumnName desc limit 0,1;
Let us first create a table −
mysql> create table DemoTable
(
Number int
);
Query OK, 0 rows affected (0.52 sec)
Insert... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "You can use ORDER BY clause or aggregate function MAX() to select the maximum value."
},
{
"code": null,
"e": 1173,
"s": 1147,
"text": "Following is the syntax −"
},
{
"code": null,
"e": 1254,
"s": 1173,
"text": "... |
Recovering Lost Commits in Git - GeeksforGeeks | 10 May, 2020
Git is a very powerful tool, and with great power comes great responsibilities. If not used and handles properly, It might cause you to lose your commits. There might be situations when you may find all of your work missing at once.
If you have regularly committed your work, there is a way to recover these... | [
{
"code": null,
"e": 24294,
"s": 24266,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24527,
"s": 24294,
"text": "Git is a very powerful tool, and with great power comes great responsibilities. If not used and handles properly, It might cause you to lose your commits. There mi... |
How to Calculate a Five Number Summary in Excel? - GeeksforGeeks | 18 Jul, 2021
In statistics, the five-number summary is mostly used as it gives a rough idea about the dataset. It is basically a summary of the dataset describing some key features in statistics. The five key features are :
Minimum value: It is the minimum value in the data setFirst Quartile, Q1: It is also known as th... | [
{
"code": null,
"e": 25044,
"s": 25016,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 25255,
"s": 25044,
"text": "In statistics, the five-number summary is mostly used as it gives a rough idea about the dataset. It is basically a summary of the dataset describing some key feat... |
Filter column value by the first character in MySQL | You can use LEFT() from MySQL. Let us first create a −
mysql> create table DemoTable1428
-> (
-> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> EmployeeName varchar(20)
-> );
Query OK, 0 rows affected (1.05 sec)
Insert some records in the table using insert −
mysql> insert into DemoTable1428(Employe... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "You can use LEFT() from MySQL. Let us first create a −"
},
{
"code": null,
"e": 1294,
"s": 1117,
"text": "mysql> create table DemoTable1428\n -> (\n -> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> EmployeeName varch... |
Amazon Interview | Set 18 - GeeksforGeeks | 14 Jun, 2019
Amazon visited our campus on 16,17 and 18 Dec.
WRITTEN ROUND(1.5 hrs)
20 MCQ + 2 CODEMCQ- mainly Aptitude, C-output questions, OS- unix related and DBMS
CODE-...1) Binary complement of a number....2) Easy question related to bets
42 out of around 200 students were shortlisted after this round.
ROUND 1:Arou... | [
{
"code": null,
"e": 24596,
"s": 24568,
"text": "\n14 Jun, 2019"
},
{
"code": null,
"e": 24643,
"s": 24596,
"text": "Amazon visited our campus on 16,17 and 18 Dec."
},
{
"code": null,
"e": 24666,
"s": 24643,
"text": "WRITTEN ROUND(1.5 hrs)"
},
{
"code"... |
Winner of an election | Practice | GeeksforGeeks | Given an array of names (consisting of lowercase characters) of candidates in an election. A candidate name in array represents a vote casted to the candidate. Print the name of candidate that received Max votes. If there is tie, print lexicographically smaller name.
Example 1:
Input:
n = 13
Votes[] = {john,johnny,jack... | [
{
"code": null,
"e": 506,
"s": 238,
"text": "Given an array of names (consisting of lowercase characters) of candidates in an election. A candidate name in array represents a vote casted to the candidate. Print the name of candidate that received Max votes. If there is tie, print lexicographically s... |
Python 3 - while Loop Statements | A while loop statement in Python programming language repeatedly executes a target statement as long as a given condition is true.
The syntax of a while loop in Python programming language is −
while expression:
statement(s)
Here, statement(s) may be a single statement or a block of statements with uniform indent. ... | [
{
"code": null,
"e": 2471,
"s": 2340,
"text": "A while loop statement in Python programming language repeatedly executes a target statement as long as a given condition is true."
},
{
"code": null,
"e": 2534,
"s": 2471,
"text": "The syntax of a while loop in Python programming la... |
Transpose of Matrix | Practice | GeeksforGeeks | Write a program to find the transpose of a square matrix of size N*N. Transpose of a matrix is obtained by changing rows to columns and columns to rows.
Example 1:
Input:
N = 4
mat[][] = {{1, 1, 1, 1},
{2, 2, 2, 2}
{3, 3, 3, 3}
{4, 4, 4, 4}}
Output:
{{1, 2, 3, 4},
{1, 2, 3, 4}
{... | [
{
"code": null,
"e": 391,
"s": 226,
"text": "Write a program to find the transpose of a square matrix of size N*N. Transpose of a matrix is obtained by changing rows to columns and columns to rows.\n\nExample 1:"
},
{
"code": null,
"e": 575,
"s": 391,
"text": "Input:\nN = 4\nmat[... |
How to Get the Number of Elements in a Python List? | 01 Jul, 2022
In this article, we will discuss how do we get the number of elements in a list in Python.
Input: [1,2,3,4,5]
Output:No of elements in the list are 5
Input: [1.2 ,4.5, 2.2]
Output:No of elements in the list are 3
Input: [“apple”, “banana”, “mangoe”]
Output:No of elements in the list are 3
Before getting... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Jul, 2022"
},
{
"code": null,
"e": 143,
"s": 52,
"text": "In this article, we will discuss how do we get the number of elements in a list in Python."
},
{
"code": null,
"e": 162,
"s": 143,
"text": "Input: [1,2,3,... |
Python | Pandas Series.str.findall() | 28 Sep, 2018
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 str.findall() method is also used to find substrings or separators in each string in a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Sep, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp... |
Python – Call function from another function | 15 Dec, 2021
Prerequisite: Functions in PythonIn Python, any written function can be called by another function. Note that this could be the most elegant way of breaking a problem into chunks of small problems. In this article, we will learn how can we call a defined function from another function with help of multiple... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 371,
"s": 52,
"text": "Prerequisite: Functions in PythonIn Python, any written function can be called by another function. Note that this could be the most elegant way of breaking a problem into ch... |
Text Highlighter in Android | 23 Feb, 2021
Text Highlighter is one of the popular functions in most apps. You can get to see this function in Notes keeping application or in any educational application. The main function of this feature is that it highlights the searched word in any document. In this article, we are going to see how to implement Te... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 535,
"s": 28,
"text": "Text Highlighter is one of the popular functions in most apps. You can get to see this function in Notes keeping application or in any educational application. The main functi... |
How to Brute Force ZIP File Passwords in Python? | 24 Feb, 2021
In this article, we will see a Python program that will crack the zip file’s password using the brute force method.
The ZIP file format is a common archive and compression standard. It is used to compress files. Sometimes, compressed files are confidential and the owner doesn’t want to give its access to e... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 168,
"s": 52,
"text": "In this article, we will see a Python program that will crack the zip file’s password using the brute force method."
},
{
"code": null,
"e": 554,
"s": 168,
... |
How to Implement Loading AlertDialog in Android? | 03 Sep, 2021
AlertDialog is defined as the small window that shows a particular message to the user when the user performs or commits certain action. In this article, we are going to build a simple android application in which we learn how to implement a Loading AlertDialog that means whenever the user clicks on the su... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 651,
"s": 28,
"text": "AlertDialog is defined as the small window that shows a particular message to the user when the user performs or commits certain action. In this article, we are going to build... |
Python | Difference Between List and Tuple | 17 Mar, 2021
List and Tuple in Python are the class of data structure. The list is dynamic, whereas the tuple has static characteristics. List is just like the arrays, declared in other languages. Lists need not be homogeneous always which makes it the most powerful tool in Python. In Python, the list is a type of cont... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 538,
"s": 52,
"text": "List and Tuple in Python are the class of data structure. The list is dynamic, whereas the tuple has static characteristics. List is just like the arrays, declared in other l... |
Python – Vertical Concatenation in Matrix | 30 Aug, 2020
Given a String Matrix, perform column-wise concatenation of strings, handling variable lists lengths.
Input : [[“Gfg”, “good”], [“is”, “for”]]Output : [‘Gfgis’, ‘goodfor’]Explanation : Column wise concatenated Strings, “Gfg” concatenated with “is”, and so on.
Input : [[“Gfg”, “good”, “geeks”], [“is”, “for”... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Aug, 2020"
},
{
"code": null,
"e": 154,
"s": 52,
"text": "Given a String Matrix, perform column-wise concatenation of strings, handling variable lists lengths."
},
{
"code": null,
"e": 312,
"s": 154,
"text": "Inp... |
jQuery data() with Examples | The data() method in jQuery is used to attach data to or gets data from selected elements.
The syntax is as follows −
$(selector).data(name)
$(selector).data(name,value)
Above, the name is the name of data to retrieve for the 1st syntax.
For the 2nd syntax, the name is the name of data to set, whereas value is the valu... | [
{
"code": null,
"e": 1278,
"s": 1187,
"text": "The data() method in jQuery is used to attach data to or gets data from selected elements."
},
{
"code": null,
"e": 1305,
"s": 1278,
"text": "The syntax is as follows −"
},
{
"code": null,
"e": 1357,
"s": 1305,
"t... |
Python | Tail Sliced List Summation | 10 Oct, 2021
We often come to the situations in which we need to decrease the size of the list by truncating the last elements of the list and perform remaining list summation. This particular problem occurs when we need to optimize memory. This has its application in the day-day programming when sometimes we require t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 707,
"s": 28,
"text": "We often come to the situations in which we need to decrease the size of the list by truncating the last elements of the list and perform remaining list summation. This partic... |
How to Reference Elements in an Array in Python | 03 Jan, 2021
Prerequisites: Numpy
Elements of an array can be referenced like a regular python array. Since python internally doesn’t support arrays, here whenever we use the term array we are referring to pythons list that can be used to build an array of any required dimension. Besides this, Python’s NumPy module als... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 74,
"s": 53,
"text": "Prerequisites: Numpy"
},
{
"code": null,
"e": 545,
"s": 74,
"text": "Elements of an array can be referenced like a regular python array. Since python inter... |
Check if all rows of a matrix are circular rotations of each other | 06 Jul, 2022
Given a matrix of n*n size, the task is to find whether all rows are circular rotations of each other or not.
Examples:
Input: mat[][] = 1, 2, 3
3, 1, 2
2, 3, 1
Output: Yes
All rows are rotated permutation
of each other.
Input: mat[3][3] = 1, 2, 3
3,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 165,
"s": 54,
"text": "Given a matrix of n*n size, the task is to find whether all rows are circular rotations of each other or not. "
},
{
"code": null,
"e": 176,
"s": 165,
"te... |
Tailwind CSS Min-Height | 23 Mar, 2022
This class accepts lots of values in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS Min-Height Property. This class is used to set the minimum height of an element. The min-height class is used when the content of the element is smaller than the min-he... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 543,
"s": 28,
"text": "This class accepts lots of values in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS Min-Height Property. This class is u... |
Creating a Neural Network from Scratch | by Joao Zsigmond | Towards Data Science | Neural networks have been around for many years. In fact, the idea behind the algorithm was first introduced over 60 years ago by a psychologist named Frank Rosenblatt.
It wasn’t until the start of the last decade, however, that these machine learning models started getting more attention, with the publication of this ... | [
{
"code": null,
"e": 341,
"s": 172,
"text": "Neural networks have been around for many years. In fact, the idea behind the algorithm was first introduced over 60 years ago by a psychologist named Frank Rosenblatt."
},
{
"code": null,
"e": 573,
"s": 341,
"text": "It wasn’t until t... |
Java Generics - Parameterized Types | A Generic class can have parameterized types where a type parameter can be substituted with a parameterized type. Following example will showcase above mentioned concept.
Create the following java program using any editor of your choice.
GenericsTester.java
package com.tutorialspoint;
import java.util.ArrayList;
impor... | [
{
"code": null,
"e": 2811,
"s": 2640,
"text": "A Generic class can have parameterized types where a type parameter can be substituted with a parameterized type. Following example will showcase above mentioned concept."
},
{
"code": null,
"e": 2878,
"s": 2811,
"text": "Create the ... |
Multi-label image classification with Inception net | by Radek Bartyzal | Towards Data Science | Update: This article has been updated to fix possible issues with accuracy calculation pointed out by Theresa Barton. The git repo has also been updated and you can find all the changes there.
Inception v3 is a deep convolutional neural network trained for single-label image classification on ImageNet data set. The Ten... | [
{
"code": null,
"e": 364,
"s": 171,
"text": "Update: This article has been updated to fix possible issues with accuracy calculation pointed out by Theresa Barton. The git repo has also been updated and you can find all the changes there."
},
{
"code": null,
"e": 738,
"s": 364,
"t... |
Count numbers in range 1 to N which are divisible by X but not by Y in C++ | We are provided a number N. The goal is to find the numbers that are divisible by X and not by Y and are in the range [1,N].
Let’s understand with examples.
Input
N=20 X=5 Y=20
Output
Numbers from 1 to N divisible by X not Y: 2
Explanation
Only 5 and 15 are divisible by 5 and not 10.
Input
N=20 X=4 Y=7
Output
Numb... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "We are provided a number N. The goal is to find the numbers that are divisible by X and not by Y and are in the range [1,N]."
},
{
"code": null,
"e": 1219,
"s": 1187,
"text": "Let’s understand with examples."
},
{
"code": nul... |
Java program to swap two integers | Read integers from users using the nextInt() method of the Scanner class.
To swap them −
Create a variable (temp), initialize it with 0.
Assign 1st number to temp.
Assign 2nd number to 1st number.
Assign temp to second number.
import java.util.Scanner;
public class SwapTwoNumbers {
public static void main(String arg... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "Read integers from users using the nextInt() method of the Scanner class."
},
{
"code": null,
"e": 1151,
"s": 1136,
"text": "To swap them −"
},
{
"code": null,
"e": 1199,
"s": 1151,
"text": "Create a variable (tem... |
Part 1: Using YouTube’s Python API for Data Science | by Pres Nichols | Towards Data Science | Last week, I wrote a quick guide to using Google’s Speech Recognition API, which I described as “kinda-sorta-really confusing.” Well, guess what? Their YouTube Data API isn’t super clear either.
If you’re an expert coder with decades of experience, you can probably stop reading right now. However, if you’re an intermed... | [
{
"code": null,
"e": 366,
"s": 171,
"text": "Last week, I wrote a quick guide to using Google’s Speech Recognition API, which I described as “kinda-sorta-really confusing.” Well, guess what? Their YouTube Data API isn’t super clear either."
},
{
"code": null,
"e": 616,
"s": 366,
... |
Difference between Direct and Indirect Addressing Modes - GeeksforGeeks | 04 May, 2020
Prerequisite: Addressing Modes
1. Direct Addressing Mode:In direct addressing mode, address field in the instruction contains the effective address of the operand and no intermediate memory access is required. Now a days it is rarely used.
Example:Add the content of R1 and 1001 and store back to R1:
Add R1... | [
{
"code": null,
"e": 24626,
"s": 24598,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 24657,
"s": 24626,
"text": "Prerequisite: Addressing Modes"
},
{
"code": null,
"e": 24866,
"s": 24657,
"text": "1. Direct Addressing Mode:In direct addressing mode, addres... |
pwdx - Unix, Linux Command | pwdx pids...
pwdx -V
Advertisements
129 Lectures
23 hours
Eduonix Learning Solutions
5 Lectures
4.5 hours
Frahaan Hussain
35 Lectures
2 hours
Pradeep D
41 Lectures
2.5 hours
Musab Zayadneh
46 Lectures
4 hours
GUHARAJANM
6 Lectures
... | [
{
"code": null,
"e": 10601,
"s": 10579,
"text": "pwdx pids...\npwdx -V\n"
},
{
"code": null,
"e": 10628,
"s": 10611,
"text": "\nAdvertisements\n"
},
{
"code": null,
"e": 10663,
"s": 10628,
"text": "\n 129 Lectures \n 23 hours \n"
},
{
"code": nu... |
How to detect airplane mode is on or off in Android? | This example demonstrates about How to detect airplane mode is on or off in Android
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Re... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "This example demonstrates about How to detect airplane mode is on or off in Android"
},
{
"code": null,
"e": 1275,
"s": 1146,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required de... |
ios manipulators boolalpha() function in C++ - GeeksforGeeks | 28 Aug, 2019
The boolalpha() method of stream manipulators in C++ is used to set the boolalpha format flag for the specified str stream.
Syntax:
ios_base& boolalpha (ios_base& str)
Parameters: This method accepts str as a a parameter which is the stream for which the format flag is affected.
Return Value: This method ... | [
{
"code": null,
"e": 24369,
"s": 24341,
"text": "\n28 Aug, 2019"
},
{
"code": null,
"e": 24493,
"s": 24369,
"text": "The boolalpha() method of stream manipulators in C++ is used to set the boolalpha format flag for the specified str stream."
},
{
"code": null,
"e": 24... |
Heap in C++ STL | make_heap(), push_heap(), pop_heap(), sort_heap(), is_heap, is_heap_until() - GeeksforGeeks | 17 Feb, 2021
Heap data structure can be implemented in a range using STL which allows faster input into heap and retrieval of a number always results in the largest number i.e. largest number of the remaining numbers is popped out each time. Other numbers of the heap are arranged depending upon the implementation.
Oper... | [
{
"code": null,
"e": 25411,
"s": 25383,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 25714,
"s": 25411,
"text": "Heap data structure can be implemented in a range using STL which allows faster input into heap and retrieval of a number always results in the largest number i.e.... |
iomanip setiosflags() function in C++ with Examples - GeeksforGeeks | 10 Jun, 2021
The setiosflags() method of iomanip library in C++ is used to set the ios library format flags specified as the parameter to this method.Syntax:
setiosflags (ios_base::format_flag)
Parameters: This method accepts format_flag as a parameter which is the ios library format flag to be set by this method.Ret... | [
{
"code": null,
"e": 26039,
"s": 26011,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 26186,
"s": 26039,
"text": "The setiosflags() method of iomanip library in C++ is used to set the ios library format flags specified as the parameter to this method.Syntax: "
},
{
"c... |
HashMap merge(key, value, BiFunction) method in Java with Examples - GeeksforGeeks | 11 Oct, 2019
The merge(Key, Value, BiFunctional) method of HashMap class is used to combine multiple mapped values for a key using the given mapping function. Bucket is actually an index of array, that array is called table in HashMap implementation. So table[0] is referred to as bucket0, table[1] as bucket1 and so on.... | [
{
"code": null,
"e": 25831,
"s": 25803,
"text": "\n11 Oct, 2019"
},
{
"code": null,
"e": 26139,
"s": 25831,
"text": "The merge(Key, Value, BiFunctional) method of HashMap class is used to combine multiple mapped values for a key using the given mapping function. Bucket is actuall... |
Constant Propagation in Compiler Design - GeeksforGeeks | 14 Dec, 2021
Constant Propagation is one of the local code optimization technique in Compiler Design. It can be defined as the process of replacing the constant value of variables in the expression. In simpler words, we can say that if some value is assigned a known constant, than we can simply replace the that value... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 26108,
"s": 25665,
"text": "Constant Propagation is one of the local code optimization technique in Compiler Design. It can be defined as the process of replacing the constant value of varia... |
Simple Bill Splitter Application using Java Servlets - GeeksforGeeks | 02 Dec, 2020
Pre-requisite: Java Servlets
Servlets is a Java Technology for server-side programming generally used to create web applications. It is a module that runs inside a Java-enabled web server.
Here, you will see the implementation by developing a Bill Splitter Application. In this Java Servlets app, there are... | [
{
"code": null,
"e": 25249,
"s": 25221,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 25278,
"s": 25249,
"text": "Pre-requisite: Java Servlets"
},
{
"code": null,
"e": 25439,
"s": 25278,
"text": "Servlets is a Java Technology for server-side programming gen... |
Scala Map clone() method with example - GeeksforGeeks | 13 Aug, 2019
The clone() method is utilized to make a copy of the receivers object. value clone is a member of scala.collection.mutable.Map[String, Int].
Method Definition: def clone(): Map[A, B]
Return Type: It returns the copy of the map used.
Example #1:
// Scala program of clone()// method // Creating objectobject... | [
{
"code": null,
"e": 25251,
"s": 25223,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 25392,
"s": 25251,
"text": "The clone() method is utilized to make a copy of the receivers object. value clone is a member of scala.collection.mutable.Map[String, Int]."
},
{
"code": ... |
Expression Tree | Practice | GeeksforGeeks | Given a full binary expression tree consisting of basic binary operators (+ , – ,*, /) and some integers, Your task is to evaluate the expression tree.
Example 1:
Input:
+
/ \
* -
/ \ / \
5 4 100 20
Output: 100
Explanation:
((5 * 4) + (100 - 20)... | [
{
"code": null,
"e": 390,
"s": 238,
"text": "Given a full binary expression tree consisting of basic binary operators (+ , – ,*, /) and some integers, Your task is to evaluate the expression tree."
},
{
"code": null,
"e": 401,
"s": 390,
"text": "Example 1:"
},
{
"code": n... |
JSON Pretty Print using Python - GeeksforGeeks | 08 Dec, 2020
JSON (JavaScript Object Notation) is a text-based data format that is interchangeable with many programming languages. It is commonly used for data transmission between client-server applications. Usually, minified versions of JSON text are transmitted to save bandwidth. However, for debugging and analysis... | [
{
"code": null,
"e": 25579,
"s": 25551,
"text": "\n08 Dec, 2020"
},
{
"code": null,
"e": 26107,
"s": 25579,
"text": "JSON (JavaScript Object Notation) is a text-based data format that is interchangeable with many programming languages. It is commonly used for data transmission be... |
How to Display Suggestions for Input Field in HTML ? - GeeksforGeeks | 09 Oct, 2021
Generally, we have seen most of the time, there is an input field that provides an autocomplete feature either by typing the specific input data or by seeing a drop-down list from pre-defined options while filling up the form. This feature can be designed & utilized using the HTML <datalist> tag in the for... | [
{
"code": null,
"e": 26647,
"s": 26619,
"text": "\n09 Oct, 2021"
},
{
"code": null,
"e": 27309,
"s": 26647,
"text": "Generally, we have seen most of the time, there is an input field that provides an autocomplete feature either by typing the specific input data or by seeing a dro... |
Inequality Operator in SQL - GeeksforGeeks | 09 Jul, 2021
In this article, we will discuss the overview of operators in SQL and mainly our focus will be on Inequality Operator in SQL. Let’s discuss it one by one.
Pre-requisite – Operators in SQL
Overview :SQL Operators are widely used to access information on the basis of conditions. In the Inequality operator, ... | [
{
"code": null,
"e": 25585,
"s": 25554,
"text": " \n09 Jul, 2021\n"
},
{
"code": null,
"e": 25740,
"s": 25585,
"text": "In this article, we will discuss the overview of operators in SQL and mainly our focus will be on Inequality Operator in SQL. Let’s discuss it one by one."
},... |
Minimum deletions from string to reduce it to string with at most 2 unique characters - GeeksforGeeks | 25 May, 2021
Given a string containing lowercase English alphabets. The task is to find the minimum number of characters needed to be removed so that the remaining string contains at most 2 unique characters.Note: The final string can have duplicate characters. The task is only to reduce the string with minimum deletio... | [
{
"code": null,
"e": 26607,
"s": 26579,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 26998,
"s": 26607,
"text": "Given a string containing lowercase English alphabets. The task is to find the minimum number of characters needed to be removed so that the remaining string conta... |
Desugaring in Android - GeeksforGeeks | 21 Dec, 2020
Google has officially announced Kotlin as a recommended language for Android Development and that’s why so many developers are switching from Java to Kotlin for Android development. So day by day new APIs are been introduced in Android by the Google Team and which are available in newer versions of Android... | [
{
"code": null,
"e": 26405,
"s": 26377,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 26941,
"s": 26405,
"text": "Google has officially announced Kotlin as a recommended language for Android Development and that’s why so many developers are switching from Java to Kotlin for An... |
Leaf nodes from Preorder of a Binary Search Tree - GeeksforGeeks | 09 Feb, 2022
Given a Preorder traversal of a Binary Search Tree. The task is to print leaf nodes of the Binary Search Tree from the given preorder.Examples:
Input : preorder[] = {890, 325, 290, 530, 965};
Output : 290 530 965
Explanation : Tree represented is,
890
/ \
325 965
/ \
290 530
Input... | [
{
"code": null,
"e": 26469,
"s": 26441,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 26615,
"s": 26469,
"text": "Given a Preorder traversal of a Binary Search Tree. The task is to print leaf nodes of the Binary Search Tree from the given preorder.Examples: "
},
{
"co... |
Python | Pandas Series.quantile() - GeeksforGeeks | 11 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.quantile() function return value at ... | [
{
"code": null,
"e": 26119,
"s": 26091,
"text": "\n11 Feb, 2019"
},
{
"code": null,
"e": 26376,
"s": 26119,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label... |
PyQt5 - Count the number of items in ComboBox - GeeksforGeeks | 22 Apr, 2020
In this article we will see how we can find the total number of items present in the combo box. We know we can add items in the combo box with the help of addItem method to add single item and addItems method to add multiple items. In order to get the count of all the items in the combo box we will use cou... | [
{
"code": null,
"e": 25667,
"s": 25639,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25985,
"s": 25667,
"text": "In this article we will see how we can find the total number of items present in the combo box. We know we can add items in the combo box with the help of addItem ... |
'IPCS' command in Linux with examples - GeeksforGeeks | 22 May, 2019
ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default, it shows information about all three resources: shared memory segments, message queues, and semaphore arrays.Without options, the information shall be written in short format for ... | [
{
"code": null,
"e": 25281,
"s": 25253,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 25773,
"s": 25281,
"text": "ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default, it shows information about all thre... |
Node.js stringDecoder.end() Method - GeeksforGeeks | 08 Oct, 2021
The stringDecoder.end() method is used to return all the remaining input stored in the internal buffer as a string. This method ensures that any incomplete UTF-8 and UTF-16 characters are replaced with substitution characters that are appropriate for character encoding.
When the optional buffer argument is... | [
{
"code": null,
"e": 38501,
"s": 38473,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 38772,
"s": 38501,
"text": "The stringDecoder.end() method is used to return all the remaining input stored in the internal buffer as a string. This method ensures that any incomplete UTF-8 a... |
Get the SUM of records between two given dates in MySQL | For this, use BETWEEN keyword. Let us first create a −
mysql> create table DemoTable1444
-> (
-> Value int,
-> PurchaseDate datetime
-> );
Query OK, 0 rows affected (0.45 sec)
Insert some records in the table using insert −
mysql> insert into DemoTable1444 values(40,'2019-01-10');
Query OK, 1 row affected (... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "For this, use BETWEEN keyword. Let us first create a −"
},
{
"code": null,
"e": 1250,
"s": 1117,
"text": "mysql> create table DemoTable1444\n -> (\n -> Value int,\n -> PurchaseDate datetime\n -> );\nQuery OK, 0 rows affected ... |
Combining two sorted lists in Python | Lists are one of the most extensively used python data structures. In this article we will see how to combine the elements of two lists and produce the final output in a sorted manner.
The + operator can join the elements of two lists into one. Then we apply the sorted function which will sort the elements of the final... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "Lists are one of the most extensively used python data structures. In this article we will see how to combine the elements of two lists and produce the final output in a sorted manner."
},
{
"code": null,
"e": 1419,
"s": 1247,
"text"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.