title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
C program to print name inside heart pattern using for loop. | Write a program to print heart shaped pattern with the name in centre using for loop.
The user has to enter the name that should be printed in centre along with the number of rows the stars has to be print.
Refer an algorithm given below to print the name in heart pattern by using for loop.
Step 1 − Declare variables.
... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "Write a program to print heart shaped pattern with the name in centre using for loop."
},
{
"code": null,
"e": 1269,
"s": 1148,
"text": "The user has to enter the name that should be printed in centre along with the number of rows th... |
aclocal command in Linux with Examples - GeeksforGeeks | 15 May, 2019
aclocal command in Linux is used to automatically generate aclocal.m4 files from configure.in file. automake in Linux contain a lot of autoconf macros that can be used in the different packages. These macros must be defined in the aclocal.m4. If not, then it can’t be accessed by the autoconf.The aclocal co... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 26279,
"s": 25651,
"text": "aclocal command in Linux is used to automatically generate aclocal.m4 files from configure.in file. automake in Linux contain a lot of autoconf macros that can be ... |
A/B testing: A step-by-step guide in Python | by Renato Fillinich | Towards Data Science | In this article we’ll go over the process of analysing an A/B experiment, from formulating a hypothesis, testing it, and finally interpreting results. For our data, we’ll use a dataset from Kaggle which contains the results of an A/B test on what seems to be 2 different designs of a website page (old_page vs. new_page)... | [
{
"code": null,
"e": 606,
"s": 172,
"text": "In this article we’ll go over the process of analysing an A/B experiment, from formulating a hypothesis, testing it, and finally interpreting results. For our data, we’ll use a dataset from Kaggle which contains the results of an A/B test on what seems to... |
How to Install an APK on the Emulator in Android Studio? - GeeksforGeeks | 06 Oct, 2021
In this article, we will know, how we can install APK in our Android Studio Emulator. There are several methods to do that but most of them are quite unreliable and confusing but in this article, we are going to do that with some very easy methods with some very easy steps.
Step 1: Opening Emulator
First o... | [
{
"code": null,
"e": 25234,
"s": 25206,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 25509,
"s": 25234,
"text": "In this article, we will know, how we can install APK in our Android Studio Emulator. There are several methods to do that but most of them are quite unreliable an... |
How do I bind the enter key to a function in Tkinter? | Pressing a key and handling some operation with the key is an event that can be triggered through a button. We can bind the key event using the Binding method in a tkinter application.
Whenever the key will be triggered, it will call a handler that will raise the specific operation for the key event.
If we want to trig... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "Pressing a key and handling some operation with the key is an event that can be triggered through a button. We can bind the key event using the Binding method in a tkinter application."
},
{
"code": null,
"e": 1364,
"s": 1247,
"text"... |
CSS | polygon() Function | 05 Apr, 2021
The polygon() function is an inbuilt function in CSS which is used with the filter property to create a polygon of images or text.Syntax:
polygon( percentage | length);
Parameter: This function accepts two parameter percentage or length which is used to hold the value of polygon size. Return value: It ma... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 168,
"s": 28,
"text": "The polygon() function is an inbuilt function in CSS which is used with the filter property to create a polygon of images or text.Syntax: "
},
{
"code": null,
"e"... |
React.js stateless vs stateful | In state management post, we learned how we can handle state in react if something is changed.
Stateless components are simple functional component without having a local state but remember there is a hook in react to add state behavior in functional component as well.
Stateful component can contains the state object a... | [
{
"code": null,
"e": 1282,
"s": 1187,
"text": "In state management post, we learned how we can handle state in react if something is changed."
},
{
"code": null,
"e": 1457,
"s": 1282,
"text": "Stateless components are simple functional component without having a local state but r... |
Mahotas – Zernike Moments | 19 Feb, 2022
In this article, we will see how we can get the Zernike moments of the given image in mahotas. Zernike polynomials are an orthogonal basis set (a set of functions for which the integral of the product of any pair of functions is zero). In image processing, computer vision, and related fields, an image mome... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2022"
},
{
"code": null,
"e": 670,
"s": 28,
"text": "In this article, we will see how we can get the Zernike moments of the given image in mahotas. Zernike polynomials are an orthogonal basis set (a set of functions for which th... |
Longest Increasing Subsequence | DP-3 | 06 Jun, 2022
We have already discussed Overlapping Subproblems and Optimal Substructure properties. Now, let us discuss the Longest Increasing Subsequence (LIS) problem as an example problem that can be solved using Dynamic Programming.
The Longest Increasing Subsequence (LIS) problem is to find the length of the long... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 279,
"s": 54,
"text": "We have already discussed Overlapping Subproblems and Optimal Substructure properties. Now, let us discuss the Longest Increasing Subsequence (LIS) problem as an example prob... |
Output of C++ Program | Set 1 | 21 May, 2019
Predict the output of below C++ programs.
Question 1
// Assume that integers take 4 bytes.#include<iostream> using namespace std; class Test{ static int i; int j;}; int Test::i; int main(){ cout << sizeof(Test); return 0;}
Output: 4 (size of integer)static data members do not contribute in s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 94,
"s": 52,
"text": "Predict the output of below C++ programs."
},
{
"code": null,
"e": 105,
"s": 94,
"text": "Question 1"
},
{
"code": "// Assume that integers take 4 ... |
Comparing enum members in Java | 12 Jul, 2018
Prerequisite : enum in Java, == vs equals
In Java, enum is a special Java type used to define collections of constants. More precisely, a Java enum type is a special kind of Java class. An enum can contain constants, methods etc. enum can be defined as a group of named constant.
There are two ways for maki... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Jul, 2018"
},
{
"code": null,
"e": 94,
"s": 52,
"text": "Prerequisite : enum in Java, == vs equals"
},
{
"code": null,
"e": 332,
"s": 94,
"text": "In Java, enum is a special Java type used to define collections o... |
Convert a binary number to hexadecimal number | 08 Jun, 2022
Given a Binary Number, the task is to convert the given binary number to its equivalent hexadecimal number. The input could be very large and may not fit even into an unsigned long long int.
Examples:
Input: 110001110
Output: 18E
Input: 1111001010010100001.010110110011011
Output: 794A1.5B36
Approach 1:... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 243,
"s": 52,
"text": "Given a Binary Number, the task is to convert the given binary number to its equivalent hexadecimal number. The input could be very large and may not fit even into an unsigne... |
Lodash _.indexOf() Method | 22 Jul, 2020
The lodash _.indexOf() method is used to get the index of first occurrence of the particular element in the array. If fromIndex is not present in the array negative one is given as the output and no error is displayed.
Syntax:
indexOf(array, value, fromIndex)
Note: If the value is not found in the array -1... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2020"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "The lodash _.indexOf() method is used to get the index of first occurrence of the particular element in the array. If fromIndex is not present in the array negative one is giv... |
Melting and Casting in R Programming | 12 Jun, 2020
Melting and Casting are one of the interesting aspects in R programming to change the shape of the data and further, getting the desired shape. R programming language has many methods to reshape the data using reshape package. melt() and cast() are the functions that efficiently reshape the data. There are... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 529,
"s": 28,
"text": "Melting and Casting are one of the interesting aspects in R programming to change the shape of the data and further, getting the desired shape. R programming language has many... |
Flutter – Animation in Route Transition | 20 Jun, 2022
Routes are simply Pages in Flutter applications. An application often needs to move from one page to another. But to make these transitions smoother, Animations can be used. These animations can be used to curve or tween the Animation object of the PageRouteBuilder class to alter the transition animation. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 372,
"s": 28,
"text": "Routes are simply Pages in Flutter applications. An application often needs to move from one page to another. But to make these transitions smoother, Animations can be used. T... |
Java Program To Write Your Own atoi() | 23 Jun, 2022
The atoi() function in C takes a string (which represents an integer) as an argument and returns its value of type int. So basically the function is used to convert a string argument to an integer.
Syntax:
int atoi(const char strn)
Parameters: The function accepts one parameter strn which refers to the s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 226,
"s": 28,
"text": "The atoi() function in C takes a string (which represents an integer) as an argument and returns its value of type int. So basically the function is used to convert a string a... |
Optimization Tips for Python Code | 19 Nov, 2020
In this article, some interesting optimization tips for Faster Python Code are discussed. These techniques help to produce result faster in a python code.
Use builtin functions and libraries: Builtin functions like map() are implemented in C code. So the interpreter doesn’t have to execute the loop, this g... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Nov, 2020"
},
{
"code": null,
"e": 209,
"s": 54,
"text": "In this article, some interesting optimization tips for Faster Python Code are discussed. These techniques help to produce result faster in a python code."
},
{
"code... |
Microsoft Cognitive Toolkit (CNTK) - CPU and GPU | Microsoft Cognitive Toolkit offers two different build versions namely CPU-only and GPU-only.
The CPU-only build version of CNTK uses the optimised Intel MKLML, where MKLML is the subset of MKL (Math Kernel Library) and released with Intel MKL-DNN as a terminated version of Intel MKL for MKL-DNN.
On the other hand, the... | [
{
"code": null,
"e": 2447,
"s": 2353,
"text": "Microsoft Cognitive Toolkit offers two different build versions namely CPU-only and GPU-only."
},
{
"code": null,
"e": 2651,
"s": 2447,
"text": "The CPU-only build version of CNTK uses the optimised Intel MKLML, where MKLML is the su... |
How to catch SystemExit Exception in Python? | In python documentation, SystemExit is not a subclass of Exception class. BaseException class is the base class of SystemExit. So in given code, we replace the Exception with BaseException to make the code work
try:
raise SystemExit
except BaseException:
print "It works!"
It works!
The exception inherits from BaseExcep... | [
{
"code": null,
"e": 1273,
"s": 1062,
"text": "In python documentation, SystemExit is not a subclass of Exception class. BaseException class is the base class of SystemExit. So in given code, we replace the Exception with BaseException to make the code work"
},
{
"code": null,
"e": 1335,... |
Write a program to separate date and time from the datetime column in Python Pandas | Assume, you have datetime column in dataframe and the result for separating date and time as,
datetime date time
0 2020-01-01 07:00:00 2020-01-06 07:00:00
1 2020-01-02 07:00:00 2020-01-06 07:00:00
2 2020-01-03 07:00:00 2020-01-06 07:00:00
3 2020-01-04 07:00:00 2020-01-06 07:00:00
4 2020-01-05 07:00:00 20... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "Assume, you have datetime column in dataframe and the result for separating date and time as,"
},
{
"code": null,
"e": 1442,
"s": 1156,
"text": " datetime date time\n0 2020-01-01 07:00:00 2020-01-06 07:00:00\n1 2020-01-... |
Credit Card Customer Clustering with K-means | by Luke Sun | Towards Data Science | In a previous post, we attempted to detect fraud in credit card transactions using various models. Here we will turn to another popular topic - Customer Clustering. This post aims to help friends in the marketing department. As usual, it is split into 5 parts.
Problem statementData ReviewData processingk-means clusteri... | [
{
"code": null,
"e": 433,
"s": 172,
"text": "In a previous post, we attempted to detect fraud in credit card transactions using various models. Here we will turn to another popular topic - Customer Clustering. This post aims to help friends in the marketing department. As usual, it is split into 5 p... |
How to set a different look and feels to swing components in Java? | The Java Swing allows us to customize the GUI by changing the look and feel(L&F). The look defines the general appearance of components and the feel defines their behavior. L&Fs are subclasses of the LookAndFeel class and each L&F is identified by its fully qualified class name. By default, the L&F is set to the Swing ... | [
{
"code": null,
"e": 1399,
"s": 1062,
"text": "The Java Swing allows us to customize the GUI by changing the look and feel(L&F). The look defines the general appearance of components and the feel defines their behavior. L&Fs are subclasses of the LookAndFeel class and each L&F is identified by its f... |
SQL - SELECT Query | The SQL SELECT statement is used to fetch the data from a database table which returns this data in the form of a result table. These result tables are called result-sets.
The basic syntax of the SELECT statement is as follows −
SELECT column1, column2, columnN FROM table_name;
Here, column1, column2... are the fields... | [
{
"code": null,
"e": 2625,
"s": 2453,
"text": "The SQL SELECT statement is used to fetch the data from a database table which returns this data in the form of a result table. These result tables are called result-sets."
},
{
"code": null,
"e": 2682,
"s": 2625,
"text": "The basic ... |
Java Substring | Practice | GeeksforGeeks | Given a string S and two integers L and R. Print the characters in the range L to R of the string.
NOTE: Assume zero based indexing.
Example 1:
Input:
S = "cdbkdub"
L = 0 , R = 5
Output: "cdbkdu"
Explanation: Starting from index 0 ('c')
to index 5 ('u').
Example 2:
Input:
S = "sdiblcsdbud"
L = 3 , R = 7
Output: "b... | [
{
"code": null,
"e": 371,
"s": 226,
"text": "Given a string S and two integers L and R. Print the characters in the range L to R of the string.\nNOTE: Assume zero based indexing.\n\nExample 1:"
},
{
"code": null,
"e": 485,
"s": 371,
"text": "Input: \nS = \"cdbkdub\"\nL = 0 , R = ... |
Difference between strncmp() and strcmp in C/C++ - GeeksforGeeks | 01 Feb, 2018
Prerequisites : strncmp, strcmp
The basic difference between these two are :
strcmp compares both the strings till null-character of either string comes whereas strncmp compares at most num characters of both strings. But if num is equal to the length of either string than strncmp behaves similar to strcmp... | [
{
"code": null,
"e": 23843,
"s": 23815,
"text": "\n01 Feb, 2018"
},
{
"code": null,
"e": 23875,
"s": 23843,
"text": "Prerequisites : strncmp, strcmp"
},
{
"code": null,
"e": 23920,
"s": 23875,
"text": "The basic difference between these two are :"
},
{
... |
Python - Ways to rotate a list | List is an important container and used almost in every code of day-day programming as well as web-development, more it is used, more is the requirement to master it and hence knowledge of its operations is necessary.
Live Demo
# using slice
# initializing list
test_list = [1, 4, 6, 7, 2]
# printing original list
pr... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "List is an important container and used almost in every code of day-day programming as well as web-development, more it is used, more is the requirement to master it and hence knowledge of its operations is necessary."
},
{
"code": null,
"e"... |
How to properly highlight selected item on Android RecyclerView? | This example demonstrates how do I properly highlight the selected item on android RecyclerView.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Add the following dependency in the build.gradle (Module: app)
implementation 'com.android.sup... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "This example demonstrates how do I properly highlight the selected item on android RecyclerView."
},
{
"code": null,
"e": 1288,
"s": 1159,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill al... |
Preprocessing: Calculate the Distance Between Longitude and Latitude Points with a Function | by The Data Detective | Towards Data Science | As part of a series that will focus on some unique pre-processing techniques, the first in this series will focus on working with latitude / longitude information. This type of data is important for mapping visualizations and other geolocation purposes.
Latitude is the geographical location that specifies the North-Sou... | [
{
"code": null,
"e": 426,
"s": 172,
"text": "As part of a series that will focus on some unique pre-processing techniques, the first in this series will focus on working with latitude / longitude information. This type of data is important for mapping visualizations and other geolocation purposes."
... |
Jacobian matrix in PyTorch - GeeksforGeeks | 15 Jul, 2021
Introduction:
The Jacobian is a very powerful operator used to calculate the partial derivatives of a given function with respect to its constituent latent variables. For refresher purposes, the Jacobian of a given function with respect to a vector is defined as
Example:
Suppose we have a vector and a... | [
{
"code": null,
"e": 23953,
"s": 23925,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 23967,
"s": 23953,
"text": "Introduction:"
},
{
"code": null,
"e": 24218,
"s": 23967,
"text": "The Jacobian is a very powerful operator used to calculate the partial deriv... |
Dart Programming - Quick Guide | Dart is an object-oriented language with C-style syntax which can optionally trans compile into JavaScript. It supports a varied range of programming aids like interfaces, classes, collections, generics, and optional typing.
Dart can be extensively used to create single-page applications. Single-page applications apply... | [
{
"code": null,
"e": 2750,
"s": 2525,
"text": "Dart is an object-oriented language with C-style syntax which can optionally trans compile into JavaScript. It supports a varied range of programming aids like interfaces, classes, collections, generics, and optional typing."
},
{
"code": null,
... |
Union and Intersection of two Graphs - GeeksforGeeks | 21 Apr, 2021
Given two graphs G1 and G2, the task is to find the union and intersection of the two given graphs, i.e. (G1 ∪ G2) and (G1 ∩ G2).
Examples:
Input: G1 = { (“e1”, 1, 2), (“e2”, 1, 3), (“e3”, 3, 4), (“e4”, 2, 4) }, G2 = = { (“e4”, 2, 4), (“e5”, 2, 5), (“e6”, 4, 5) }Output:G1 union G2 ise1 1 2e2 1 3e3 3 4e4 2... | [
{
"code": null,
"e": 24677,
"s": 24649,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 24807,
"s": 24677,
"text": "Given two graphs G1 and G2, the task is to find the union and intersection of the two given graphs, i.e. (G1 ∪ G2) and (G1 ∩ G2)."
},
{
"code": null,
"... |
How to use a variable in a string in jQuery? | jQuery is a JavaScript library introduced to make development with JavaScript easier. Let us see how to use variable in a string using the html() method.
You can try to run the following code to learn how to use variable in a string in jQuery −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapi... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "jQuery is a JavaScript library introduced to make development with JavaScript easier. Let us see how to use variable in a string using the html() method."
},
{
"code": null,
"e": 1307,
"s": 1216,
"text": "You can try to run the follo... |
How to perform heapsort on an array in Java? | Following is the algorithm for heapsort (maxheap).
Step 1 − Create a new node at the end of the heap.
Step 2 − Assign new value to the node.
Step 3 − Compare the value of this child node with its parent.
Step 4 − If the value of parent is less than a child, then swap them.
Step 5 − Repeat step 3 & 4 until Heap property... | [
{
"code": null,
"e": 1113,
"s": 1062,
"text": "Following is the algorithm for heapsort (maxheap)."
},
{
"code": null,
"e": 1164,
"s": 1113,
"text": "Step 1 − Create a new node at the end of the heap."
},
{
"code": null,
"e": 1203,
"s": 1164,
"text": "Step 2 − ... |
ktrain: A Lightweight Wrapper for Keras to Help Train Neural Networks | by Arun Maiya | Towards Data Science | ktrain is a library to help build, train, debug, and deploy neural networks in the deep learning software framework, Keras. (As of v0.7, ktrain uses tf.keras in TensorFlow instead of standalone Keras.) Inspired by the fastai library, with only a few lines of code, ktrain allows you to easily:
estimate an optimal learni... | [
{
"code": null,
"e": 465,
"s": 171,
"text": "ktrain is a library to help build, train, debug, and deploy neural networks in the deep learning software framework, Keras. (As of v0.7, ktrain uses tf.keras in TensorFlow instead of standalone Keras.) Inspired by the fastai library, with only a few lines... |
GATE | GATE CS 2011 | Question 28 - GeeksforGeeks | 19 Nov, 2018
On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory.
Initialize the address register
Initialize the count to 500
LOOP: Load a byte from device
... | [
{
"code": null,
"e": 24492,
"s": 24464,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 24663,
"s": 24492,
"text": "On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to ... |
How to set a property value by reflection in C#? | The System. Reflection namespace contains classes that allow you to obtain information about the application and to dynamically add types, values, and objects to the application.
Reflection objects are used for obtaining type information at runtime. The classes that give access to the metadata of a running program are ... | [
{
"code": null,
"e": 1241,
"s": 1062,
"text": "The System. Reflection namespace contains classes that allow you to obtain information about the application and to dynamically add types, values, and objects to the application."
},
{
"code": null,
"e": 1419,
"s": 1241,
"text": "Ref... |
Check if the sum of digits of N is palindrome - GeeksforGeeks | 04 Aug, 2021
Given an integer N, the task is to check whether the sum of digits of N is palindrome or not.Example:
Input: N = 56 Output: Yes Digit sum is (5 + 6) = 11 which is a palindrome.Input: N = 51241 Output: No (5 + 1 + 2 + 4 + 1) = 13
Approach: Find the sum of digits of N and store it in a variable sum. No... | [
{
"code": null,
"e": 26117,
"s": 26089,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 26221,
"s": 26117,
"text": "Given an integer N, the task is to check whether the sum of digits of N is palindrome or not.Example: "
},
{
"code": null,
"e": 26350,
"s": 26221,... |
JavaScript Array isArray() Method - GeeksforGeeks | 01 Nov, 2021
Below is the example of the Array isArray() method.
Example:<script> // JavaScript code for isArray() function function func() { document.write(Array.isArray('foobar')); } func();</script>
<script> // JavaScript code for isArray() function function func() { document.write(A... | [
{
"code": null,
"e": 25086,
"s": 25058,
"text": "\n01 Nov, 2021"
},
{
"code": null,
"e": 25138,
"s": 25086,
"text": "Below is the example of the Array isArray() method."
},
{
"code": null,
"e": 25295,
"s": 25138,
"text": "Example:<script> // JavaScript code... |
Visualizing real-time traffic patterns using HERE traffic api | by Skanda Vivek | Towards Data Science | While Google Maps shows live traffic, there’s no way to access the underlying traffic data. HERE technologies offers a variety of location based services including a REST API that provides traffic flow and incidents information.
HERE has a pretty powerful Freemium account, that allows up to 250K free transactions. Howe... | [
{
"code": null,
"e": 401,
"s": 172,
"text": "While Google Maps shows live traffic, there’s no way to access the underlying traffic data. HERE technologies offers a variety of location based services including a REST API that provides traffic flow and incidents information."
},
{
"code": null... |
Download Youtube Video(s) or whole Playlist with Python - GeeksforGeeks | 10 May, 2022
Prerequisite:
Tkinter
pyyoutube
pytube
threading in Tkinter
YouTube API
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python wit... | [
{
"code": null,
"e": 24390,
"s": 24362,
"text": "\n10 May, 2022"
},
{
"code": null,
"e": 24404,
"s": 24390,
"text": "Prerequisite:"
},
{
"code": null,
"e": 24412,
"s": 24404,
"text": "Tkinter"
},
{
"code": null,
"e": 24422,
"s": 24412,
"tex... |
Deque interface in Java with Example - GeeksforGeeks | 03 Sep, 2020
The Deque interface present in java.util package is a subtype of the queue interface. The Deque is related to the double-ended queue that supports addition or removal of elements from either end of the data structure. It can either be used as a queue(first-in-first-out/FIFO) or as a stack(last-in-first-out... | [
{
"code": null,
"e": 29048,
"s": 29020,
"text": "\n03 Sep, 2020"
},
{
"code": null,
"e": 29408,
"s": 29048,
"text": "The Deque interface present in java.util package is a subtype of the queue interface. The Deque is related to the double-ended queue that supports addition or remo... |
Web Scraping Basics. How to scrape data from a website in... | by Songhao Wu | Towards Data Science | We always say “Garbage in Garbage out” in data science. If you do not have good quality and quantity of data, most likely you would not get many insights out of it. Web Scraping is one of the important methods to retrieve third-party data automatically. In this article, I will be covering the basics of web scraping and... | [
{
"code": null,
"e": 440,
"s": 47,
"text": "We always say “Garbage in Garbage out” in data science. If you do not have good quality and quantity of data, most likely you would not get many insights out of it. Web Scraping is one of the important methods to retrieve third-party data automatically. In... |
How to Create and Add Data to SQLite Database in Android? - GeeksforGeeks | 25 Feb, 2021
SQLite is another data storage available in Android where we can store data in the user’s device and can use it any time when required. In this article, we will take a look at creating an SQLite database in the Android app and adding data to that database in the Android app. This is a series of 4 articles ... | [
{
"code": null,
"e": 26457,
"s": 26429,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 26953,
"s": 26457,
"text": "SQLite is another data storage available in Android where we can store data in the user’s device and can use it any time when required. In this article, we will ta... |
How to check whether a String contains a substring or not? | This example shows how we can search a word within a String object using indexOf() method which returns a position index of a word within the string if found. Otherwise, it returns -1.
public class SearchStringEmp {
public static void main(String[] args) {
String strOrig = "Hello readers"; int intIndex = strO... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "This example shows how we can search a word within a String object using indexOf() method which returns a position index of a word within the string if found. Otherwise, it returns -1. "
},
{
"code": null,
"e": 1569,
"s": 1248,
"text... |
How to find the Strings within a text file in Java? | Following Java program accepts a String value from the user, verifies whether a file contains the given String and prints the number of occurrences of the word too.
Live Demo
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class FindingWordFromFile {
public sta... | [
{
"code": null,
"e": 1227,
"s": 1062,
"text": "Following Java program accepts a String value from the user, verifies whether a file contains the given String and prints the number of occurrences of the word too."
},
{
"code": null,
"e": 1238,
"s": 1227,
"text": " Live Demo"
},
... |
How RGB and Grayscale Images Are Represented in NumPy Arrays | by Rukshan Pramoditha | Towards Data Science | Today, you’re going to learn some of the most important and fundamental topics in machine learning and deep learning. I guarantee that today’s content will deliver some of the foundational concepts that are key to start learning deep learning — a subset of machine learning.
First, we’ll begin describing image basics su... | [
{
"code": null,
"e": 446,
"s": 171,
"text": "Today, you’re going to learn some of the most important and fundamental topics in machine learning and deep learning. I guarantee that today’s content will deliver some of the foundational concepts that are key to start learning deep learning — a subset o... |
Java Method Overloading | With method overloading, multiple methods can have the same name with different
parameters:
int myMethod(int x)
float myMethod(float x)
double myMethod(double x, double y)
Consider the following example, which has two methods that add numbers of different type:
static int plusMethodInt(int x, int y) {
return x + y;
}... | [
{
"code": null,
"e": 92,
"s": 0,
"text": "With method overloading, multiple methods can have the same name with different\nparameters:"
},
{
"code": null,
"e": 172,
"s": 92,
"text": "int myMethod(int x)\nfloat myMethod(float x)\ndouble myMethod(double x, double y)"
},
{
"... |
ASP AddHeader Method - GeeksforGeeks | 04 Aug, 2020
The ASP AddHeader Method is used to specify for adding a new named for the HTTP Header and provide and given a value to the HTTP Response. It is a method of a Response type Object.
Once a header has been added then it can not be further removed.
This method must be called before any output is sent to the ... | [
{
"code": null,
"e": 23959,
"s": 23931,
"text": "\n04 Aug, 2020"
},
{
"code": null,
"e": 24141,
"s": 23959,
"text": "The ASP AddHeader Method is used to specify for adding a new named for the HTTP Header and provide and given a value to the HTTP Response. It is a method of a Resp... |
Different Ways to Run Applet in Java - GeeksforGeeks | 10 Nov, 2021
Applets are tiny Java programs that can be installed and run automatically as part of a web page. They can be viewed on an Internet server, transmitted over the Internet, and installed and run automatically as part of a web document or desktop application.
There are two standard methods for running an appl... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 23814,
"s": 23557,
"text": "Applets are tiny Java programs that can be installed and run automatically as part of a web page. They can be viewed on an Internet server, transmitted over the In... |
Class Based Generic Views Django (Create, Retrieve, Update, Delete) - GeeksforGeeks | 21 Sep, 2021
Django is a Python-based web framework that allows you to quickly create web applications. It has built-in admin interface which makes easy to work with it. It is often called Batteries included framework because it provides built-in facilities for every functionality. Class Based Generic Views are advance... | [
{
"code": null,
"e": 41553,
"s": 41525,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 42194,
"s": 41553,
"text": "Django is a Python-based web framework that allows you to quickly create web applications. It has built-in admin interface which makes easy to work with it. It is ... |
EDA: Visualization in Geopandas, Matplotlib & Bokeh | by Denise Chen | Towards Data Science | Nowadays, everyone is immersed with plenty of data from news sources, cellphones, laptops, workplaces, and so on. Data conveys with tons of information from different data variables like date, string, numeric, and geographical format. How to effectively grasp the core value from a huge dataset that is easily interprete... | [
{
"code": null,
"e": 786,
"s": 172,
"text": "Nowadays, everyone is immersed with plenty of data from news sources, cellphones, laptops, workplaces, and so on. Data conveys with tons of information from different data variables like date, string, numeric, and geographical format. How to effectively g... |
Berkeley’s Algorithm in C/C++ | Berkeley’s Algorithm is an algorithm that is used for clock Synchronisation in distributed systems. This algorithm is used in cases when some or all systems of the distributed network have one of these issues −
A. The machine does not have an accurate time source.
A. The machine does not have an accurate time source.
B... | [
{
"code": null,
"e": 1273,
"s": 1062,
"text": "Berkeley’s Algorithm is an algorithm that is used for clock Synchronisation in distributed systems. This algorithm is used in cases when some or all systems of the distributed network have one of these issues −"
},
{
"code": null,
"e": 1327,... |
Feature selection — Correlation and P-value | by Vishal R | Towards Data Science | This article is being moved to my Substack Publication. You can read the article for free here. This post will be deleted on 18th May 2022.
Often when we get a dataset, we might find a plethora of features in the dataset. All of the features we find in the dataset might not be useful in building a machine learning mode... | [
{
"code": null,
"e": 312,
"s": 172,
"text": "This article is being moved to my Substack Publication. You can read the article for free here. This post will be deleted on 18th May 2022."
},
{
"code": null,
"e": 672,
"s": 312,
"text": "Often when we get a dataset, we might find a p... |
Java program to find the area of a rectangle | Area of a rectangle is the product of its length and breadth. Therefore, to calculate the area of a rectangle
Get the length of the rectangle form the user.
Get the breadth of the rectangle form the user.
Calculate their product.
Print the product.
import java.util.Scanner;
public class AreaOfRectangle {
public stat... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "Area of a rectangle is the product of its length and breadth. Therefore, to calculate the area of a rectangle"
},
{
"code": null,
"e": 1219,
"s": 1172,
"text": "Get the length of the rectangle form the user."
},
{
"code": nul... |
Shell Scripting Tutorial | A shell script is a computer program designed to be run by the Unix/Linux shell which could be one of the following:
The Bourne Shell
The C Shell
The Korn Shell
The GNU Bourne-Again Shell
A shell is a command-line interpreter and typical operations performed by shell scripts include file manipulation, program executio... | [
{
"code": null,
"e": 2864,
"s": 2747,
"text": "A shell script is a computer program designed to be run by the Unix/Linux shell which could be one of the following:"
},
{
"code": null,
"e": 2881,
"s": 2864,
"text": "The Bourne Shell"
},
{
"code": null,
"e": 2893,
"... |
Exploratory Data Analysis With Movies | by Jeremy Lee | Towards Data Science | As a part of the Flatiron School bootcamp requirements, we are required to complete a project at the end of each learning module that demonstrates our ability to apply what we’ve learned.
The prompt for the first project is as follows:
The primary skills that required to perform the exploratory data analysis (EDA) of t... | [
{
"code": null,
"e": 359,
"s": 171,
"text": "As a part of the Flatiron School bootcamp requirements, we are required to complete a project at the end of each learning module that demonstrates our ability to apply what we’ve learned."
},
{
"code": null,
"e": 407,
"s": 359,
"text":... |
Diagonal Traversal of Binary Tree | Practice | GeeksforGeeks | Given a Binary Tree, print the diagonal traversal of the binary tree.
Consider lines of slope -1 passing between nodes. Given a Binary Tree, print all diagonal elements in a binary tree belonging to same line.
Example 1:
Input :
8
/ \
3 10
/ \ \
1 6 14
... | [
{
"code": null,
"e": 308,
"s": 238,
"text": "Given a Binary Tree, print the diagonal traversal of the binary tree."
},
{
"code": null,
"e": 448,
"s": 308,
"text": "Consider lines of slope -1 passing between nodes. Given a Binary Tree, print all diagonal elements in a binary tree ... |
How to check if a given number is a Fibonacci number in Python Program ? | In this article, we will learn about the solution to the problem statement given below −
Given a number n, check whether n is a Fibonacci number or not
We all are aware that the nth Fibonacci number is the sum of the previous two Fibonacci numbers. But they also offer an interesting relation other than the recurrence r... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below −"
},
{
"code": null,
"e": 1214,
"s": 1151,
"text": "Given a number n, check whether n is a Fibonacci number or not"
},
{
"code": null,
... |
PL/SQL - DBMS Output | In this chapter, we will discuss the DBMS Output in PL/SQL. The DBMS_OUTPUT is a built-in package that enables you to display output, debugging information, and send messages from PL/SQL blocks, subprograms, packages, and triggers. We have already used this package throughout our tutorial.
Let us look at a small code s... | [
{
"code": null,
"e": 2356,
"s": 2065,
"text": "In this chapter, we will discuss the DBMS Output in PL/SQL. The DBMS_OUTPUT is a built-in package that enables you to display output, debugging information, and send messages from PL/SQL blocks, subprograms, packages, and triggers. We have already used ... |
Regular Expression "\D" Metacharacter in Java | The subexpression/metacharacter “\D” matches the non-digits.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexExample {
public static void main( String args[] ) {
String regex = "\\D";
String input = "This is sample text 12 24 56 89 24";
Pattern p = Pattern.compile(... | [
{
"code": null,
"e": 1123,
"s": 1062,
"text": "The subexpression/metacharacter “\\D” matches the non-digits."
},
{
"code": null,
"e": 1559,
"s": 1123,
"text": "import java.util.regex.Matcher;\nimport java.util.regex.Pattern;\npublic class RegexExample {\n public static void mai... |
Python - All Possible unique K size combinations till N - GeeksforGeeks | 08 Jun, 2020
Sometimes, while working with Python domain, we can have a problem in which we need to produce various combination of elements. This can be K sized unique combinations till N. This problem can have application in data domains and school programming. Let’s discuss certain ways in which this task can be perf... | [
{
"code": null,
"e": 24493,
"s": 24465,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 24807,
"s": 24493,
"text": "Sometimes, while working with Python domain, we can have a problem in which we need to produce various combination of elements. This can be K sized unique combinat... |
Program to multiply two strings and return result as string in C++ | Suppose we have two numbers as string. We have to multiply them and return the result also in string. So if the numbers are “28” and “25”, then the result will be “700”
To solve this, we will follow these steps −
Taking two arguments x and y it indicates x divides y
Taking two arguments x and y it indicates x divides y... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "Suppose we have two numbers as string. We have to multiply them and return the result also in string. So if the numbers are “28” and “25”, then the result will be “700”"
},
{
"code": null,
"e": 1275,
"s": 1231,
"text": "To solve this... |
Intersection over union (IoU) calculation for evaluating an image segmentation model | by Oleksii Sheremet | Towards Data Science | In the simplest case, segmentation is the process of dividing a digital image into several segments. The result of instance segmentation using Mask R-CNN is a mask applied to the desired object and a bounding box around this object.
In a practical task that I was solving, it was necessary to determine the buildings in ... | [
{
"code": null,
"e": 405,
"s": 172,
"text": "In the simplest case, segmentation is the process of dividing a digital image into several segments. The result of instance segmentation using Mask R-CNN is a mask applied to the desired object and a bounding box around this object."
},
{
"code": ... |
How to add separator in a ToolBar with Java? | To add a separator, use the addSeparator() method. Let us first create a toolbar −
JToolBar toolbar = new JToolBar();
Now, we will create some components and set a separator to separate them as shown below −
toolbar.add(new JTextArea(" Add name here"));
toolbar.add(new JButton("Submit Name"));
toolbar.addSeparator();
t... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "To add a separator, use the addSeparator() method. Let us first create a toolbar −"
},
{
"code": null,
"e": 1180,
"s": 1145,
"text": "JToolBar toolbar = new JToolBar();"
},
{
"code": null,
"e": 1270,
"s": 1180,
"t... |
Sort array by year and month JavaScript | We have an array like this −
const arr = [{
year: 2020,
month: 'January'
}, {
year: 2017,
month: 'March'
}, {
year: 2010,
month: 'January'
}, {
year: 2010,
month: 'December'
}, {
year: 2020,
month: 'April'
}, {
year: 2017,
month: 'August'
}, {
year: 2010,
month: 'February'
}, {... | [
{
"code": null,
"e": 1091,
"s": 1062,
"text": "We have an array like this −"
},
{
"code": null,
"e": 1458,
"s": 1091,
"text": "const arr = [{\n year: 2020,\n month: 'January'\n}, {\n year: 2017,\n month: 'March'\n}, {\n year: 2010,\n month: 'January'\n}, {\n year: 2... |
C++ Program for Bisection Method | Given with the function f(x) with the numbers a and b where, f(a) * f(b) > 0 and the function f(x) should lie between a and b i.e. f(x) = [a, b]. The task is to find the value of root that lies between interval a and b in function f(x) using bisection method.
What is bisection method?
Bisection method is used to find t... | [
{
"code": null,
"e": 1322,
"s": 1062,
"text": "Given with the function f(x) with the numbers a and b where, f(a) * f(b) > 0 and the function f(x) should lie between a and b i.e. f(x) = [a, b]. The task is to find the value of root that lies between interval a and b in function f(x) using bisection m... |
How can we check if specific string occurs multiple times in another string in Java? | You can find whether a String contains a specified sequence of characters using any of the methods −
The indexOf() method − The indexOf() method of the String class accepts a string value and finds the (starting) index of it in the current String and returns it. This method returns -1 if it doesn’t find the given strin... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "You can find whether a String contains a specified sequence of characters using any of the methods −"
},
{
"code": null,
"e": 1404,
"s": 1163,
"text": "The indexOf() method − The indexOf() method of the String class accepts a string ... |
How to create a link from a text using JavaScript? | To create a link, use the JavaScript link() method. This method creates an HTML hypertext link that requests another URL. The following is the syntax:
string.link( hrefname )
Above, hrefname is any string that specifies the HREF of the <a> tag; it should be a valid URL.
You can try to run the following code to learn ho... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "To create a link, use the JavaScript link() method. This method creates an HTML hypertext link that requests another URL. The following is the syntax:"
},
{
"code": null,
"e": 1237,
"s": 1213,
"text": "string.link( hrefname )"
},
... |
Javascript Program For Cloning A Linked List With Next And Random Pointer In O(1) Space - GeeksforGeeks | 06 Jan, 2022
Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of the list. Write a program that clones the given list in O(1) space, i.e., without any extra space. Examples:
Input : Head of the below... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n06 Jan, 2022"
},
{
"code": null,
"e": 26461,
"s": 26179,
"text": "Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any ... |
Rectangular (or Pronic) Numbers - GeeksforGeeks | 24 Mar, 2021
The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few rectangular numbers are: 0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 110, 132, 156, 182, 210, 240, 272, 306, 342, 380, 420, 462 . . . . . . Given a number n, find n-th rectangular numb... | [
{
"code": null,
"e": 26069,
"s": 26041,
"text": "\n24 Mar, 2021"
},
{
"code": null,
"e": 26391,
"s": 26069,
"text": "The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few rectangular numbers are: 0, 2, 6,... |
Fast average of two numbers without division - GeeksforGeeks | 24 May, 2021
Given two numbers, find floor of their average without using division.
Input : x = 10, y = 12
Output : 11
Input : x = 10, y = 7
Output : 8
We take floor of sum.
The idea is to use right shift operator, instead of doing (x + y)/2, we do (x + y) >> 1
C++
C
Java
Python3
C#
PHP
Javascript
// C++ program to ... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 26350,
"s": 26279,
"text": "Given two numbers, find floor of their average without using division."
},
{
"code": null,
"e": 26441,
"s": 26350,
"text": "Input : x = 10, y =... |
Java Program to Implement Hash Tables Chaining with Doubly Linked Lists - GeeksforGeeks | 19 Jan, 2021
Hash Tables(similar to tables in general) provide a subset of the dynamic set operations. Usually, a set of keys are mapped with some values based on certain relations. However, there might be situations when different keys map to the same position provided by the Hash function, which leads to a collision.... | [
{
"code": null,
"e": 25251,
"s": 25223,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 25559,
"s": 25251,
"text": "Hash Tables(similar to tables in general) provide a subset of the dynamic set operations. Usually, a set of keys are mapped with some values based on certain relat... |
Check if the array is beautiful - GeeksforGeeks | 06 May, 2021
Given an integer n and an array of size n check if it satisfies following conditions:-
All elements of array must lie between 1 to n.Array must NOT be sorted in ascending order.The array consists of unique elements.
All elements of array must lie between 1 to n.
Array must NOT be sorted in ascending orde... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 26154,
"s": 26065,
"text": "Given an integer n and an array of size n check if it satisfies following conditions:- "
},
{
"code": null,
"e": 26283,
"s": 26154,
"text": "A... |
unicode_literals in Python - GeeksforGeeks | 21 Jun, 2021
Unicode is also called Universal Character set. ASCII uses 8 bits(1 byte) to represents a character and can have a maximum of 256 (2^8) distinct combinations. The issue with the ASCII is that it can only support the English language but what if we want to use another language like Hindi, Russian, Chinese, ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 26091,
"s": 25537,
"text": "Unicode is also called Universal Character set. ASCII uses 8 bits(1 byte) to represents a character and can have a maximum of 256 (2^8) distinct combinations. The ... |
Berkeley's Algorithm - GeeksforGeeks | 03 Mar, 2022
Berkeley’s Algorithm is a clock synchronization technique used in distributed systems. The algorithm assumes that each machine node in the network either doesn’t have an accurate time source or doesn’t possess a UTC server.Algorithm 1) An individual node is chosen as the master node from a pool node in the... | [
{
"code": null,
"e": 25717,
"s": 25689,
"text": "\n03 Mar, 2022"
},
{
"code": null,
"e": 26401,
"s": 25717,
"text": "Berkeley’s Algorithm is a clock synchronization technique used in distributed systems. The algorithm assumes that each machine node in the network either doesn’t h... |
harmonic_mean() in Python - GeeksforGeeks | 29 Sep, 2021
Harmonic Mean (also known as Contrary mean) is one of several kinds of average and in particular one of the Pythagorean means. Usually used in situations when average rates are desired. The harmonic mean is also the reciprocal of the arithmetic mean of the reciprocals of a given set of observations.
For ex... | [
{
"code": null,
"e": 25435,
"s": 25407,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 25736,
"s": 25435,
"text": "Harmonic Mean (also known as Contrary mean) is one of several kinds of average and in particular one of the Pythagorean means. Usually used in situations when aver... |
Program to calculate area and perimeter of a rhombus whose diagonals are given - GeeksforGeeks | 18 Mar, 2021
Given the length of diagonals of a rhombus, d1 and d2. The task is to find the perimeter and the area of that rhombus. A rhombus is a polygon having 4 equal sides in which both the opposite sides are parallel, and opposite angles are equal.
Examples:
Input: d1 = 2 and d2 = 4
Output: The area of rhombus ... | [
{
"code": null,
"e": 26221,
"s": 26193,
"text": "\n18 Mar, 2021"
},
{
"code": null,
"e": 26463,
"s": 26221,
"text": "Given the length of diagonals of a rhombus, d1 and d2. The task is to find the perimeter and the area of that rhombus. A rhombus is a polygon having 4 equal sides ... |
Emojis as markers in Matplotlib - GeeksforGeeks | 06 May, 2021
Prerequisite: Matplotlib
When we plot graphs, quite often there’s a need to highlight certain points and show them explicitly. This makes our demonstration more precise and informative. It can be achieved with the use of markers. Markers in Matplotlib are a way to emphasize each point that is plotted. Th... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 25563,
"s": 25537,
"text": "Prerequisite: Matplotlib"
},
{
"code": null,
"e": 26077,
"s": 25563,
"text": "When we plot graphs, quite often there’s a need to highlight cer... |
Pills with Dropdowns in Bootstrap - GeeksforGeeks | 27 Dec, 2021
Bootstrap provides various options for improving the navigation of the content. Bootstrap dropdowns are the toggleable menu for displaying a list of data, made interactive with the JavaScript plugin. We can toggle the list by clicking. Along with this, we can use bootstrap component pills with a dropdown w... | [
{
"code": null,
"e": 26865,
"s": 26837,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 27240,
"s": 26865,
"text": "Bootstrap provides various options for improving the navigation of the content. Bootstrap dropdowns are the toggleable menu for displaying a list of data, made int... |
Reading Files in R Programming - GeeksforGeeks | 22 Nov, 2021
So far the operations using the R program are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are written to store the information fetched from the program. One such way is to store the fetched information in a file. So the two most common operatio... | [
{
"code": null,
"e": 30315,
"s": 30287,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 30662,
"s": 30315,
"text": "So far the operations using the R program are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are writte... |
Endless RecyclerView in Android - GeeksforGeeks | 18 Apr, 2021
In this article, we are going to see how to build an endless RecyclerView in Android Studio. It is mostly used to design the user interface with great control over the lists and grids of android applications. We can implement both horizontal and vertical layouts using RecyclerView. Here, we will be creatin... | [
{
"code": null,
"e": 26405,
"s": 26377,
"text": "\n18 Apr, 2021"
},
{
"code": null,
"e": 26906,
"s": 26405,
"text": "In this article, we are going to see how to build an endless RecyclerView in Android Studio. It is mostly used to design the user interface with great control over... |
Python string | ascii_uppercase - GeeksforGeeks | 16 Oct, 2018
In Python3, ascii_uppercase is a pre-initialized string used as string constant. In Python, string ascii_uppercase will give the uppercase letters ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’.
Syntax : string.ascii_uppercase
Parameters: Doesn’t take any parameter, since it’s not a function.
Returns: Return all uppercase l... | [
{
"code": null,
"e": 26054,
"s": 26026,
"text": "\n16 Oct, 2018"
},
{
"code": null,
"e": 26231,
"s": 26054,
"text": "In Python3, ascii_uppercase is a pre-initialized string used as string constant. In Python, string ascii_uppercase will give the uppercase letters ‘ABCDEFGHIJKLMNO... |
Convert a given Binary Tree to Doubly Linked List | Set 3 - GeeksforGeeks | 02 Dec, 2021
Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted DLL. The order of nodes in DLL must be the same as in Inorder for the given Binary Tree. The first node of Inorder traversa... | [
{
"code": null,
"e": 26223,
"s": 26195,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 26589,
"s": 26223,
"text": "Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as previous and next pointers respe... |
Ruby | Symbol Class - GeeksforGeeks | 11 Oct, 2019
The objects of the Symbol class represent the names present inside the Ruby interpreter. They are usually generated by using :name literal syntax or by using to_sym methods. The similar Symbol objects are created for a given name string for the duration of a program’s execution, regardless of the content a... | [
{
"code": null,
"e": 24877,
"s": 24849,
"text": "\n11 Oct, 2019"
},
{
"code": null,
"e": 25208,
"s": 24877,
"text": "The objects of the Symbol class represent the names present inside the Ruby interpreter. They are usually generated by using :name literal syntax or by using to_sy... |
HTML | canvas isPointInPath() Method - GeeksforGeeks | 25 Jul, 2019
The canvas isPointInPath() Method is used to check whether or not the specified point is contained in the current path. The isPointInPath() method returns true if the specified point is in the current path, otherwise false.
Syntax:
context.isPointInPath( x, y );
Parameters: This method accepts two paramete... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n25 Jul, 2019"
},
{
"code": null,
"e": 26363,
"s": 26139,
"text": "The canvas isPointInPath() Method is used to check whether or not the specified point is contained in the current path. The isPointInPath() method returns true if ... |
Raspberry Pi - GPIO Connector | Here, we will learn about the GPIO (general-purpose input output) connector in Raspberry Pi.
One of the powerful features of the Raspberry Pi is the row of GPIO (general-purpose input output) pins and the GPIO Pinout is an interactive reference to these GPIO pins.
Following diagram shows a 40-pin GPIO header, which is ... | [
{
"code": null,
"e": 2056,
"s": 1963,
"text": "Here, we will learn about the GPIO (general-purpose input output) connector in Raspberry Pi."
},
{
"code": null,
"e": 2228,
"s": 2056,
"text": "One of the powerful features of the Raspberry Pi is the row of GPIO (general-purpose inpu... |
How to wrap multiple divs in one with jQuery? | To wrap multiple divs in one with jQuery, use the wrapAll() method. You can try to run the following code to wrap multiple divs in one with jQuery −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "To wrap multiple divs in one with jQuery, use the wrapAll() method. You can try to run the following code to wrap multiple divs in one with jQuery −"
},
{
"code": null,
"e": 1221,
"s": 1211,
"text": "Live Demo"
},
{
"code": n... |
RequireJS - AMD Modules | A module in RequireJS is a scoped object and is not available in the global namespace. Hence, global namespace will not be polluted. RequireJS syntax allows to load modules faster without worrying about keeping track of the order of dependencies. You can load multiple versions of the same module in the same page.
Modul... | [
{
"code": null,
"e": 2157,
"s": 1842,
"text": "A module in RequireJS is a scoped object and is not available in the global namespace. Hence, global namespace will not be polluted. RequireJS syntax allows to load modules faster without worrying about keeping track of the order of dependencies. You ca... |
Implement Your Own sizeof | 15 Mar, 2019
Here is an implementation.
#include<stdio.h>#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)int main(){ double x; printf("%ld", my_sizeof(x)); getchar(); return 0;}
Type is like a local variable to the macro. &type gives the address of the variable (double x) declared in the program and... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Mar, 2019"
},
{
"code": null,
"e": 81,
"s": 54,
"text": "Here is an implementation."
},
{
"code": "#include<stdio.h>#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)int main(){ double x; printf(\"%ld\", my_sizeo... |
Difference between ISO9000 and SEI-CMM | 14 Aug, 2021
ISO 9000: It is a set of International Standards on quality management and quality assurance developed to help companies effectively document the quality system elements needed to an efficient quality system.
SEICMM: SEI (Software Engineering Institute), Capability Maturity Model (CMM) specifies an increa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 262,
"s": 52,
"text": "ISO 9000: It is a set of International Standards on quality management and quality assurance developed to help companies effectively document the quality system elements need... |
How to add a checkbox in forms using HTML ? | 29 Sep, 2021
In this article, we will learn how to add a checkbox in HTML Forms. Basically, the checkbox is used to select one or more options from a variety of options. It is a multi-control unit that will be presented as a small square box on the screen. Normally, Checkbox has 3 states namely- Checked, unchecked & in... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 421,
"s": 28,
"text": "In this article, we will learn how to add a checkbox in HTML Forms. Basically, the checkbox is used to select one or more options from a variety of options. It is a multi-cont... |
Flutter – Animated Navigation | 28 Jul, 2021
By default, Flutter has no animation when navigating from one Screen to another Screen. But in this tutorial, we are going to learn how to animate the Screen Transition.
Before directly applying to your existing project, practice the code in some example projects. For this tutorial, we are going to name ou... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 198,
"s": 28,
"text": "By default, Flutter has no animation when navigating from one Screen to another Screen. But in this tutorial, we are going to learn how to animate the Screen Transition."
},... |
How to make JavaScript wait for a API request to return? | 10 May, 2020
Prerequisite:Async/Await Function in Javascript
JavaScript is a synchronous language, i.e. JavaScript executes one line of code at a time. It queues the events in action and perform them in order. But in some case, Javascript behaves as asynchronous, such as in AJAX or Axios calls. It makes a call to the A... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 102,
"s": 54,
"text": "Prerequisite:Async/Await Function in Javascript"
},
{
"code": null,
"e": 455,
"s": 102,
"text": "JavaScript is a synchronous language, i.e. JavaScript exe... |
Pandas – How to shuffle a DataFrame rows | 10 Jul, 2020
Let us see how to shuffle the rows of a DataFrame. We will be using the sample() method of the pandas module to to randomly shuffle DataFrame rows in Pandas.
Algorithm :
Import the pandas and numpy modules.Create a DataFrame.Shuffle the rows of the DataFrame using the sample() method with the parameter fra... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 186,
"s": 28,
"text": "Let us see how to shuffle the rows of a DataFrame. We will be using the sample() method of the pandas module to to randomly shuffle DataFrame rows in Pandas."
},
{
"co... |
HTML | <col> width Attribute | 29 May, 2019
The HTML <col> width Attribute is used to specify the width of <col> element. It sets the fixed width of column element. In general, the width of <col> element is the width needed to display its content.
Syntax:
<col width="pixels | % | relative_length">
Attribute Values:
pixels: It sets the width of <col>... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 232,
"s": 28,
"text": "The HTML <col> width Attribute is used to specify the width of <col> element. It sets the fixed width of column element. In general, the width of <col> element is the width ne... |
Grammar Checker in Python using Language-check | 10 May, 2020
Python is an open-source programming language. It offers a vast variety of libraries that provide greater functionalities. The one such library is language_check. The language_check library doesn’t come bundled with Python 3. Instead, you have to manually download it from the command line or download it fr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 381,
"s": 28,
"text": "Python is an open-source programming language. It offers a vast variety of libraries that provide greater functionalities. The one such library is language_check. The language... |
Function Composition in Python | 07 Aug, 2020
Prerequisite: reduce(), lambda
Function composition is the way of combining two or more functions in such a way that the output of one function becomes the input of the second function and so on. For example, let there be two functions “F” and “G” and their composition can be represented as F(G(x)) where “... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Aug, 2020"
},
{
"code": null,
"e": 85,
"s": 54,
"text": "Prerequisite: reduce(), lambda"
},
{
"code": null,
"e": 447,
"s": 85,
"text": "Function composition is the way of combining two or more functions in such a... |
math.ceil() function in Lua programming | There are several occurrences when we want to get the ceil value of an integer to round it off and then use that value later on.
The Ceiling value of a number is the value that is rounded to the closest integer greater than or equal to that integer.
Lua provides us with a math.ceil() function that we can use to find th... | [
{
"code": null,
"e": 1191,
"s": 1062,
"text": "There are several occurrences when we want to get the ceil value of an integer to round it off and then use that value later on."
},
{
"code": null,
"e": 1312,
"s": 1191,
"text": "The Ceiling value of a number is the value that is ro... |
MySQL - COMMIT Statement | In general, transactions are units or sequences of work accomplished in a logical order, whether in a manual fashion by a user or automatically by some sort of a database program.
A database transaction is the propagation of one or more changes as a single action on the database.
For example, if you consider the transf... | [
{
"code": null,
"e": 2513,
"s": 2333,
"text": "In general, transactions are units or sequences of work accomplished in a logical order, whether in a manual fashion by a user or automatically by some sort of a database program."
},
{
"code": null,
"e": 2614,
"s": 2513,
"text": "A ... |
Create a Scatter Chart using Recharts in ReactJS - GeeksforGeeks | 27 Jul, 2021
Introduction: RechartJS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of React and D3 (Data-Driven Documents).
To create a Scatter chart using Recharts, we create a dataset with x and y coordinate detail... | [
{
"code": null,
"e": 24921,
"s": 24893,
"text": "\n27 Jul, 2021"
},
{
"code": null,
"e": 25136,
"s": 24921,
"text": "Introduction: RechartJS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, wit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.