title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Recursive program to print all subsets with given sum | 12 Jul, 2021
Given an array and a number, print all subsets with sum equal to given the sum.Examples:
Input : arr[] = {2, 5, 8, 4, 6, 11}, sum = 13
Output :
5 8
2 11
2 5 6
Input : arr[] = {1, 5, 8, 4, 6, 11}, sum = 9
Output :
5 4
1 8
This problem is an extension of check if there is a subset with given sum. We... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Jul, 2021"
},
{
"code": null,
"e": 145,
"s": 54,
"text": "Given an array and a number, print all subsets with sum equal to given the sum.Examples: "
},
{
"code": null,
"e": 282,
"s": 145,
"text": "Input : arr[]... |
Rotate image without cutting off sides using Python – OpenCV | 03 Nov, 2021
Prerequisite: Image Processing in Python (Scaling, Rotating, Shifting and Edge Detection)
Rotating images with OpenCV is easy, but sometimes simple rotation tasks cropped/cut sides of an image, which leads to a half image. Now, In this tutorial, We will explore a solution to safely rotate an image without... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 118,
"s": 28,
"text": "Prerequisite: Image Processing in Python (Scaling, Rotating, Shifting and Edge Detection)"
},
{
"code": null,
"e": 508,
"s": 118,
"text": "Rotating images ... |
Python | Extracting rows using Pandas .iloc[] | 09 Jun, 2022
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 that makes importing and analyzing data much easier.
The Pandas library provides a unique method to retrieve rows from a Data Frame. Dataframe.i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 268,
"s": 52,
"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 that makes i... |
How React Native works? | 07 Feb, 2018
In the previous blog post, we built starter app which Displays “GeeksForGeeks is Awesome!” text and learned some JavaScript code using React Native platform.
But what happens in the low level code, in the native project?So before digging into React Native Examples, Lets first know what exactly happens in t... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Feb, 2018"
},
{
"code": null,
"e": 211,
"s": 53,
"text": "In the previous blog post, we built starter app which Displays “GeeksForGeeks is Awesome!” text and learned some JavaScript code using React Native platform."
},
{
"c... |
jQuery | attr() Method | 27 Feb, 2019
The attr() method in jQuery is used to set or return the attributes and values of the selected elements.
Syntax:
To return the value of an attribute:$(selector).attr(attribute)
$(selector).attr(attribute)
To set the attribute and value:$(selector).attr(attribute, value)
$(selector).attr(attribute, value)
T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Feb, 2019"
},
{
"code": null,
"e": 133,
"s": 28,
"text": "The attr() method in jQuery is used to set or return the attributes and values of the selected elements."
},
{
"code": null,
"e": 141,
"s": 133,
"text": "S... |
Number of unique pairs in an array | 30 Jun, 2021
Given an array of N elements, the task is to find all the unique pairs that can be formed using the elements of a given array. Examples:
Input: arr[] = {1, 1, 2} Output: 4 (1, 1), (1, 2), (2, 1), (2, 2) are the only possible pairs.
Input: arr[] = {1, 2, 3} Output: 9
Naive approach: The simple solution is... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 191,
"s": 53,
"text": "Given an array of N elements, the task is to find all the unique pairs that can be formed using the elements of a given array. Examples: "
},
{
"code": null,
"e":... |
SQL Query to Combine Two Tables Without a Common Column | 19 May, 2021
In most of the queries in the learning process, we usually use to join those tables which have some common columns or relationships between them. But when it comes to real-life problems, then such easiest conditions are rarely found. Complex tasks like joining two tables without a common column is majorly ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 343,
"s": 28,
"text": "In most of the queries in the learning process, we usually use to join those tables which have some common columns or relationships between them. But when it comes to real-lif... |
How to set the size of specific flex-item using CSS? - GeeksforGeeks | 23 Apr, 2021
CSS provides Flexible box layout module, also known as flexbox, which makes it easier to design flexible responsive layout. To start using a flexbox model, we need to first define a flex container and the direct child elements of the container are called flex items.
Flex has following pre-defined propertie... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 26888,
"s": 26621,
"text": "CSS provides Flexible box layout module, also known as flexbox, which makes it easier to design flexible responsive layout. To start using a flexbox model, we need... |
Find number of months between two dates in R - GeeksforGeeks | 07 Sep, 2021
In this article, we will discuss how to Find the number of months between two dates in the R programming language.
Example:
Input: Date_1 = 2020/02/21
Date_2 = 2020/03/21
Output: 1
Explanation: In Date_1 and Date_2 have only one difference in month.
Here we will use seq() function to get the result. Thi... | [
{
"code": null,
"e": 26512,
"s": 26484,
"text": "\n07 Sep, 2021"
},
{
"code": null,
"e": 26628,
"s": 26512,
"text": "In this article, we will discuss how to Find the number of months between two dates in the R programming language. "
},
{
"code": null,
"e": 26637,
... |
JavaScript | trimStart() and trimLeft() Method - GeeksforGeeks | 30 Dec, 2019
The trimStart() method in JavaScript is used to remove whitespace from the beginning of a string. The value of the string is not modified in any manner, including any whitespace present after the string.
Syntax:
string.trimStart()
Return Value: It returns the final string that is stripped out of all the wh... | [
{
"code": null,
"e": 25949,
"s": 25921,
"text": "\n30 Dec, 2019"
},
{
"code": null,
"e": 26153,
"s": 25949,
"text": "The trimStart() method in JavaScript is used to remove whitespace from the beginning of a string. The value of the string is not modified in any manner, including ... |
log2() function in C++ with Examples - GeeksforGeeks | 04 May, 2020
The function log2() of cmath header file in C++ is used to find the logarithmic value with base 2 of the passed argument.
Syntax:
log2(x)
Parameters: This function takes a value x, in the range [0, ∞] whose log value is to be found.
Return Type: It returns the logarithmic value, as double, float or long do... | [
{
"code": null,
"e": 25421,
"s": 25393,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 25543,
"s": 25421,
"text": "The function log2() of cmath header file in C++ is used to find the logarithmic value with base 2 of the passed argument."
},
{
"code": null,
"e": 2555... |
Create MySQL Database Login Page in Python using Tkinter - GeeksforGeeks | 18 Jan, 2022
Prerequisites: Python GUI – tkinter, Python MySQL – Select QueryTkinter is one of the Python libraries which contains many functions for the development of graphic user interface pages and windows. Login pages are important for the development of any kind of mobile or web application. This page is most ess... | [
{
"code": null,
"e": 25611,
"s": 25583,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 26221,
"s": 25611,
"text": "Prerequisites: Python GUI – tkinter, Python MySQL – Select QueryTkinter is one of the Python libraries which contains many functions for the development of graphic... |
Insertion sort using C++ STL - GeeksforGeeks | 30 Aug, 2017
Implementation of Insertion Sort using STL functions.
Pre-requisites : Insertion Sort, std::rotate, std::upper_bound, C++ Iterators.
The idea is to use std::upper_bound to find an element making the array unsorted. Then we can rotate the unsorted part so that it ends up sorted. We can traverse the array do... | [
{
"code": null,
"e": 25321,
"s": 25293,
"text": "\n30 Aug, 2017"
},
{
"code": null,
"e": 25375,
"s": 25321,
"text": "Implementation of Insertion Sort using STL functions."
},
{
"code": null,
"e": 25454,
"s": 25375,
"text": "Pre-requisites : Insertion Sort, std... |
How to Show Schema of a Table in MySQL Database? - GeeksforGeeks | 26 Sep, 2021
The term “schema” refers to the organization of data as a blueprint of how the database is constructed (divided into database tables in the case of relational databases). The formal definition of a database schema is a set of formulas (sentences) called integrity constraints imposed on a database. In this ... | [
{
"code": null,
"e": 26121,
"s": 26093,
"text": "\n26 Sep, 2021"
},
{
"code": null,
"e": 26523,
"s": 26121,
"text": "The term “schema” refers to the organization of data as a blueprint of how the database is constructed (divided into database tables in the case of relational data... |
PyQt5 QLabel - Adding blur effect - GeeksforGeeks | 10 May, 2020
In this article we will see how we can add blur effect to the label, blur means smoothing of the label, by default there is no blur effect to the label although we can add blur effect any time. Below is the representation of label with blur effect.
In order to do this we have to do the following –
1. Creat... | [
{
"code": null,
"e": 26215,
"s": 26187,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 26464,
"s": 26215,
"text": "In this article we will see how we can add blur effect to the label, blur means smoothing of the label, by default there is no blur effect to the label although we... |
What is StrictMode in React ? - GeeksforGeeks | 30 Jun, 2021
StrictMode is a React Developer Tool primarily used for highlighting possible problems in a web application. It activates additional deprecation checks and warnings for its child components. One of the reasons for its popularity is the fact that it provides visual feedback (warning/error messages) whenever... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 26538,
"s": 26071,
"text": "StrictMode is a React Developer Tool primarily used for highlighting possible problems in a web application. It activates additional deprecation checks and warning... |
Censor bad words in Python using better-profanity - GeeksforGeeks | 24 Jan, 2021
In this article, we will learn how to Censor bad words using Python. For this, we are using the better_profanity module from python.
Installation
pip install better_profanity
For censoring bad words, we are using profanity.censor() method from better_profanity. So, we discuss first its syntax and arguments... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 25688,
"s": 25555,
"text": "In this article, we will learn how to Censor bad words using Python. For this, we are using the better_profanity module from python."
},
{
"code": null,
... |
PHP Database connection - GeeksforGeeks | 02 Nov, 2020
The collection of related data is called a database. XAMPP stands for cross-platform, Apache, MySQL, PHP, and Perl. It is among the simple light-weight local servers for website development.
Requirements: XAMPP web server procedure:
Start XAMPP server by starting Apache and MySQL.
Write PHP script for conn... | [
{
"code": null,
"e": 26201,
"s": 26173,
"text": "\n02 Nov, 2020"
},
{
"code": null,
"e": 26392,
"s": 26201,
"text": "The collection of related data is called a database. XAMPP stands for cross-platform, Apache, MySQL, PHP, and Perl. It is among the simple light-weight local serve... |
Randomized Block Design with R Programming - GeeksforGeeks | 22 Oct, 2020
Experimental Designs are part of ANOVA in statistics. They are predefined algorithms that help us in analyzing the differences among group means in an experimental unit. Randomized Block Design (RBD) or Randomized Complete Block Design is one part of the Anova types.
Randomized Block Design:
The three basi... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n22 Oct, 2020"
},
{
"code": null,
"e": 26755,
"s": 26487,
"text": "Experimental Designs are part of ANOVA in statistics. They are predefined algorithms that help us in analyzing the differences among group means in an experimental... |
What is Chaining in Node.js ? - GeeksforGeeks | 21 Jul, 2020
Chaining in Node.js can be achieved using the async npm module. In order to install the async module, we need to run the following script in our directory:
npm init
npm i async
There are two most commonly used methods for chaining functions provided by the async module:
parallel(tasks, callback): The tasks... | [
{
"code": null,
"e": 25713,
"s": 25685,
"text": "\n21 Jul, 2020"
},
{
"code": null,
"e": 25869,
"s": 25713,
"text": "Chaining in Node.js can be achieved using the async npm module. In order to install the async module, we need to run the following script in our directory:"
},
... |
CSS | visibility Property - GeeksforGeeks | 09 Aug, 2019
This property is used to specify whether an element is visible or not in a web document but the hidden elements take up space in the web document. Use the display property to remove or display property to both hide and delete an element from the browser.
Syntax:
visibility: visible|hidden|collapse|initial|... | [
{
"code": null,
"e": 24905,
"s": 24877,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 25160,
"s": 24905,
"text": "This property is used to specify whether an element is visible or not in a web document but the hidden elements take up space in the web document. Use the display ... |
Java.io.StreamTokenizer Class in Java | Set 1 - GeeksforGeeks | 09 Jan, 2017
Java.io.StreamTokenizer class parses input stream into “tokens”.It allows to read one token at a time. Stream Tokenizer can recognize numbers, quoted strings, and various comment styles.Declaration :
public class StreamTokenizer
extends Object
Constructor :StreamTokenizer(Reader arg) : Creates a tokenize... | [
{
"code": null,
"e": 25801,
"s": 25773,
"text": "\n09 Jan, 2017"
},
{
"code": null,
"e": 26001,
"s": 25801,
"text": "Java.io.StreamTokenizer class parses input stream into “tokens”.It allows to read one token at a time. Stream Tokenizer can recognize numbers, quoted strings, and ... |
RAND() Function in SQL Server - GeeksforGeeks | 30 Dec, 2020
RAND() function :This function in SQL Server is used to return a random decimal value and this value lies in the range greater than and equal to zero (>=0) and less than 1. If we want to obtain a random integer R in the range i <= R < j, we have to use the expression “FLOOR(i + RAND() * (j − i))”.
Features... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 25812,
"s": 25513,
"text": "RAND() function :This function in SQL Server is used to return a random decimal value and this value lies in the range greater than and equal to zero (>=0) and les... |
Node.js response.setHeader() Method - GeeksforGeeks | 15 Sep, 2020
The response.setHeader(name, value) (Added in v0.4.0) method is an inbuilt application programming interface of the ‘http‘ module which sets a single header value for implicit headers. If this header already exists in the to-be-sent headers, its value will be replaced. Use an array of strings here to send ... | [
{
"code": null,
"e": 25767,
"s": 25739,
"text": "\n15 Sep, 2020"
},
{
"code": null,
"e": 26314,
"s": 25767,
"text": "The response.setHeader(name, value) (Added in v0.4.0) method is an inbuilt application programming interface of the ‘http‘ module which sets a single header value ... |
Python | set() method - GeeksforGeeks | 19 Feb, 2022
Set, a term in mathematics for a sequence consisting of distinct language is also extended in its language by Python and can easily be made using set().
set() method is used to convert any of the iterable to sequence of iterable elements with distinct elements, commonly called Set.
Syntax : set(iterable)P... | [
{
"code": null,
"e": 25335,
"s": 25307,
"text": "\n19 Feb, 2022"
},
{
"code": null,
"e": 25488,
"s": 25335,
"text": "Set, a term in mathematics for a sequence consisting of distinct language is also extended in its language by Python and can easily be made using set()."
},
{
... |
How to create a Struct Instance Using a Struct Literal in Golang? - GeeksforGeeks | 21 Feb, 2022
A structure or struct in Golang is a user-defined data type which is a composition of various data fields. Each data field has its own data type, which can be a built-in or another user-defined type. Struct represents any real-world entity which has some set of properties/fields. For Example, a student has... | [
{
"code": null,
"e": 25417,
"s": 25389,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 25859,
"s": 25417,
"text": "A structure or struct in Golang is a user-defined data type which is a composition of various data fields. Each data field has its own data type, which can be a bu... |
Poisson Regression in R Programming - GeeksforGeeks | 10 May, 2020
A Poisson Regression model is used to model count data and model response variables (Y-values) that are counts. It shows which X-values work on the Y-value and more categorically, it counts data: discrete data with non-negative integer values that count something.
In other words, it shows which explanatory... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 26752,
"s": 26487,
"text": "A Poisson Regression model is used to model count data and model response variables (Y-values) that are counts. It shows which X-values work on the Y-value and mor... |
Lazy Composables in Android Jetpack Compose - Columns, Rows, Grids - GeeksforGeeks | 28 Jul, 2021
In Jetpack compose we have Composables like Column and Row but when the app needs to display a large number of items in a row or columns then it’s not efficient if done by Row or Column Composable. Therefore we have Lazy Composables in Jetpack Compose. Mainly we have three kinds of Lazy Composables Row, Co... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 26851,
"s": 26381,
"text": "In Jetpack compose we have Composables like Column and Row but when the app needs to display a large number of items in a row or columns then it’s not efficient if... |
Print reverse of a Linked List without extra space and modifications - GeeksforGeeks | CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+... | [
{
"code": null,
"e": 419,
"s": 0,
"text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc... |
C# Program to Print Employees Whose Salary is Greater than Average of all Employees Salaries Using LINQ - GeeksforGeeks | 16 Oct, 2021
LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matter whic... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n16 Oct, 2021"
},
{
"code": null,
"e": 26033,
"s": 25547,
"text": "LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the d... |
Pattern Searching using Suffix Tree - GeeksforGeeks | 22 Feb, 2019
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m.
Preprocess Pattern or Preoprocess Text?We have discussed the following algorithms in the previous posts:
KMP AlgorithmRabin Karp Algo... | [
{
"code": null,
"e": 24706,
"s": 24678,
"text": "\n22 Feb, 2019"
},
{
"code": null,
"e": 24880,
"s": 24706,
"text": "Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume t... |
Count of pairs containing even or consecutive elements from given Array - GeeksforGeeks | 15 Dec, 2021
Given an array arr[] of even size, the task is to find the count of pairs after partitioning arr[] into pairs, such that:
each element of arr[] belongs to exactly one pair
both of them are even or
absolute difference between them is 1, i.e, |X – Y| = 1.
Examples:
Input: arr[] = {11, 12, 16, 14}Output: {11... | [
{
"code": null,
"e": 24429,
"s": 24401,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 24551,
"s": 24429,
"text": "Given an array arr[] of even size, the task is to find the count of pairs after partitioning arr[] into pairs, such that:"
},
{
"code": null,
"e": 2460... |
Image Processing using Streamlit. In this article, we will see how we can... | by Aniket Wattamwar | Towards Data Science | In this article, we will see how we can use Streamlit with Image Processing Techniques and Object Detection Algorithms. I am assuming that you have Streamlit installed and working on your system. If you do not know how to start with streamlit then you can refer to my previous article where I have explained it in brief.... | [
{
"code": null,
"e": 492,
"s": 171,
"text": "In this article, we will see how we can use Streamlit with Image Processing Techniques and Object Detection Algorithms. I am assuming that you have Streamlit installed and working on your system. If you do not know how to start with streamlit then you can... |
How to Get Started with PySpark. PySpark is a Python API to using Spark... | by Sanket Gupta | Towards Data Science | PySpark is a Python API to using Spark, which is a parallel and distributed engine for running big data applications. Getting started with PySpark took me a few hours — when it shouldn’t have — as I had to read a lot of blogs/documentation to debug some of the setup issues. This blog is an attempt to help you get up an... | [
{
"code": null,
"e": 525,
"s": 172,
"text": "PySpark is a Python API to using Spark, which is a parallel and distributed engine for running big data applications. Getting started with PySpark took me a few hours — when it shouldn’t have — as I had to read a lot of blogs/documentation to debug some o... |
Attn: Illustrated Attention. Attention illustrated in GIFs and how... | by Raimi Karim | Towards Data Science | (TLDR: animation for attention here)
Changelog:5 Jan 2022 — Fix typos and improve clarity
For decades, Statistical Machine Translation has been the dominant translation model [9], until the birth of Neural Machine Translation (NMT). NMT is an emerging approach to machine translation that attempts to build and train a s... | [
{
"code": null,
"e": 209,
"s": 172,
"text": "(TLDR: animation for attention here)"
},
{
"code": null,
"e": 262,
"s": 209,
"text": "Changelog:5 Jan 2022 — Fix typos and improve clarity"
},
{
"code": null,
"e": 576,
"s": 262,
"text": "For decades, Statistical Ma... |
Tryit Editor v3.7 | Tryit: Audio autoplay and muted | [] |
How to count unique elements in the array using java? | The interface Set does not allow duplicate elements, therefore, create a set object and try to add each element to it using the add() method in case of repetition of elements this method returns false −
If you try to add all the elements of the array to a Set, it accepts only unique elements −
import java.util.Arrays;
... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "The interface Set does not allow duplicate elements, therefore, create a set object and try to add each element to it using the add() method in case of repetition of elements this method returns false −"
},
{
"code": null,
"e": 1357,
"s"... |
HTML - Entities | Some characters are reserved in HTML and they have special meaning when used in HTML document. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will try to draw a meaning related to HTML tag.
HTML processors must... | [
{
"code": null,
"e": 2674,
"s": 2374,
"text": "Some characters are reserved in HTML and they have special meaning when used in HTML document. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and w... |
Cordova - Plugman | Cordova Plugman is a useful command line tool for installing and managing plugins. You should use plugman if your app needs to run on one specific platform. If you want to create a cross-platform app you should use cordova-cli which will modify plugins for different platforms.
Open the command prompt window and run the... | [
{
"code": null,
"e": 2458,
"s": 2180,
"text": "Cordova Plugman is a useful command line tool for installing and managing plugins. You should use plugman if your app needs to run on one specific platform. If you want to create a cross-platform app you should use cordova-cli which will modify plugins ... |
How to check if a Python string contains only digits? | There is a method called isdigit() in String class that returns true if all characters in the string are digits and there is at least one character, false otherwise. You can call it as follows −
print("12345".isdigit())
print("12345a".isdigit())
True
False
You can also use regexes for the same result. For matching only... | [
{
"code": null,
"e": 1257,
"s": 1062,
"text": "There is a method called isdigit() in String class that returns true if all characters in the string are digits and there is at least one character, false otherwise. You can call it as follows −"
},
{
"code": null,
"e": 1308,
"s": 1257,
... |
AWK - Loops | This chapter explains AWK's loops with suitable example. Loops are used to execute a set of actions in a repeated manner. The loop execution continues as long as the loop condition is true.
The syntax of for loop is −
for (initialization; condition; increment/decrement)
action
Initially, the for statement performs ... | [
{
"code": null,
"e": 2047,
"s": 1857,
"text": "This chapter explains AWK's loops with suitable example. Loops are used to execute a set of actions in a repeated manner. The loop execution continues as long as the loop condition is true."
},
{
"code": null,
"e": 2075,
"s": 2047,
"... |
Display a message on console while focusing on input type in JavaScript? | For this, you can use the concept of focus(). Following is the code −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initialscale=1.0">
<title>Document</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "For this, you can use the concept of focus(). Following is the code −"
},
{
"code": null,
"e": 1143,
"s": 1132,
"text": " Live Demo"
},
{
"code": null,
"e": 2186,
"s": 1143,
"text": "<!DOCTYPE html>\n<html lang=\"... |
Data Type Conversion in R - GeeksforGeeks | 21 Apr, 2021
Prerequisite: Data Types in the R
Data Type conversion is the process of converting one type of data to another type of data. R Programming Language has only 3 data types: Numeric, Logical, Character. In this article, we are going to see how to convert the data type in the R Programming language
Since R is... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25196,
"s": 25162,
"text": "Prerequisite: Data Types in the R"
},
{
"code": null,
"e": 25459,
"s": 25196,
"text": "Data Type conversion is the process of converting one ty... |
Display result of a table into a temp table with MySQL? | Let us first create a table −
mysql> create table DemoTable1 (Id int,Name varchar(100));
Query OK, 0 rows affected (0.89 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1 values(100,'John');
Query OK, 1 row affected (0.19 sec)
mysql> insert into DemoTable1 values(110,'Chris');
Q... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1188,
"s": 1092,
"text": "mysql> create table DemoTable1 (Id int,Name varchar(100));\nQuery OK, 0 rows affected (0.89 sec)"
},
{
"code": null,
"e": 1244,
"s": 118... |
Lodash _.mergeWith() Method - GeeksforGeeks | 14 Sep, 2020
Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc.
The _.mergeWith() method uses a customizer function that is invoked to produce the merged values of the given destination and source properties. When the customizer fu... | [
{
"code": null,
"e": 24387,
"s": 24359,
"text": "\n14 Sep, 2020"
},
{
"code": null,
"e": 24527,
"s": 24387,
"text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc."
},
{
"code": n... |
Adding and Deleting Cookies in Selenium Python - GeeksforGeeks | 02 Jul, 2020
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 25275,
"s": 24302,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi... |
AngularJS | orderBy Filter - GeeksforGeeks | 30 Apr, 2019
The orderBy filter is a handy tool used in angular js.The orderBy channel encourages you to sort an exhibit.Of course, it sorts strings in sequential order requests and numbers in the numerical request.
Syntax:
{{ orderBy_expression | orderBy : expression : reverse }}
Parameter explanation:
expression: I... | [
{
"code": null,
"e": 28369,
"s": 28341,
"text": "\n30 Apr, 2019"
},
{
"code": null,
"e": 28572,
"s": 28369,
"text": "The orderBy filter is a handy tool used in angular js.The orderBy channel encourages you to sort an exhibit.Of course, it sorts strings in sequential order request... |
How to use <mat-divider> in Angular Material ? - GeeksforGeeks | 05 Feb, 2021
Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. <mat-divider> ... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n05 Feb, 2021"
},
{
"code": null,
"e": 25488,
"s": 25109,
"text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to in... |
Adding Permission in API - Django REST Framework - GeeksforGeeks | 14 Sep, 2021
There are many different scenarios to consider when it comes to access control. Allowing unauthorized access to risky operations or restricted areas results in a massive vulnerability. This highlights the importance of adding permissions in APIs.
Django REST framework allows us to leverage permissions to... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 25804,
"s": 25555,
"text": "There are many different scenarios to consider when it comes to access control. Allowing unauthorized access to risky operations or restricted areas results in a m... |
C/C++ program to make a simple calculator? | A simple calculator is a calculator that performs some basic operations like ‘+’ , ‘-’ , ‘*’ , ‘/’. A calculator does basic operation in a fast way. We will use switch statement to make a calculator.
Operator − ‘+’ => 34 + 324 = 358
Operator − ‘-’ => 3874 - 324 = 3550
Operator − ‘*’ => 76 * 24 = 1824
Operator − ‘/’ => ... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "A simple calculator is a calculator that performs some basic operations like ‘+’ , ‘-’ , ‘*’ , ‘/’. A calculator does basic operation in a fast way. We will use switch statement to make a calculator."
},
{
"code": null,
"e": 1394,
"s": 1... |
How do we add a menu list in HTML? | Use the <menu> tag in HTML to add a menu list. The HTML <menu> tag is used for creating a menu list.
The HTML <menu> tag also supports the following additional attributes −
Note − This tag deprecated in HTML and redefined in HTML5
You can try to run the following code to add a menu list in HTML −
<!DOCTYPE html>
<html>... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "Use the <menu> tag in HTML to add a menu list. The HTML <menu> tag is used for creating a menu list."
},
{
"code": null,
"e": 1235,
"s": 1163,
"text": "The HTML <menu> tag also supports the following additional attributes −"
},
{... |
Inheritance in Python: Fundamentals for Data Scientists | by Erdem Isbilen | Towards Data Science | Class inheritance is an important concept in object-oriented programming. It enables us to extend the abilities of an existing class. To create a new class, we use an available class as a base and extend its functionality according to our needs. Since we build a new class by using methods and data definitions available... | [
{
"code": null,
"e": 583,
"s": 172,
"text": "Class inheritance is an important concept in object-oriented programming. It enables us to extend the abilities of an existing class. To create a new class, we use an available class as a base and extend its functionality according to our needs. Since we ... |
Design an Event Webpage using HTML & CSS - GeeksforGeeks | 07 Feb, 2022
Events webpage plays a vital role in promoting and booking for an event. In this article, we are going to build an event page, it will contain the details of the events like date, booking option and view more details button. We will use HTML to give the basic layout like title, details, buttons etc. and CS... | [
{
"code": null,
"e": 31761,
"s": 31733,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 32216,
"s": 31761,
"text": "Events webpage plays a vital role in promoting and booking for an event. In this article, we are going to build an event page, it will contain the details of the e... |
HTML DOM div object | The HTML DOM div object is associated with the HTML <div> element. Div is a general purpose block level element that allows us to group elements together to either apply style to them or to manipulate a group of HTML elements under a single tag name or id.
Following is the property for div object −
Following is the syn... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "The HTML DOM div object is associated with the HTML <div> element. Div is a general purpose block level element that allows us to group elements together to either apply style to them or to manipulate a group of HTML elements under a single tag name or ... |
Optimization: Loss Function Under the Hood (Part I) | by Shuyu Luo | Towards Data Science | When building a machine learning model, some questions similar like these usually comes into my mind: How does a model being optimized? Why does Model A outperform Model B?
To answer them, I think one of entry points can be understanding loss functions of different models, and furthermore, being able to choose an appro... | [
{
"code": null,
"e": 220,
"s": 47,
"text": "When building a machine learning model, some questions similar like these usually comes into my mind: How does a model being optimized? Why does Model A outperform Model B?"
},
{
"code": null,
"e": 770,
"s": 220,
"text": "To answer them... |
How to create a MenuBar in JavaFX? | A menu bar is a user interface element that holds all the menus, it is usually placed on the top. In JavaFX the javafx.scene.control.MenuBar class represents a menu bar. You can create a menu bar by instantiating this class.
A menu is a list of options or commands presented to the user. In JavaFX a menu is represented ... | [
{
"code": null,
"e": 1287,
"s": 1062,
"text": "A menu bar is a user interface element that holds all the menus, it is usually placed on the top. In JavaFX the javafx.scene.control.MenuBar class represents a menu bar. You can create a menu bar by instantiating this class."
},
{
"code": null,
... |
CICS - READNEXT / READPREV | When we issue a STARTBR command, it does not make the records available. It just tells from where to start reading the file. To get the first record and sequence after that, we need to use the READNEXT command.
The FILE, INTO, and LENGTH parameters are defined in the same way as they are in the READ command. We only ne... | [
{
"code": null,
"e": 2137,
"s": 1926,
"text": "When we issue a STARTBR command, it does not make the records available. It just tells from where to start reading the file. To get the first record and sequence after that, we need to use the READNEXT command."
},
{
"code": null,
"e": 2370,... |
Stream Editor - Regular Expressions | It is the regular expressions that make SED powerful and efficient. A number of complex tasks can be solved with regular expressions. Any command-line expert knows the power of regular expressions.
Like many other GNU/Linux utilities, SED too supports regular expressions, which are often referred to as as regex. This c... | [
{
"code": null,
"e": 2021,
"s": 1823,
"text": "It is the regular expressions that make SED powerful and efficient. A number of complex tasks can be solved with regular expressions. Any command-line expert knows the power of regular expressions."
},
{
"code": null,
"e": 2324,
"s": 202... |
Largest Independent Set Problem | The Independent Set is the subset of all binary tree nodes when there is no edge between any two nodes in that subset.
Now from a set of elements, we will find the longest independent set. i.e. If the elements are used to form a binary tree, then all largest subset, where no elements in that subset are connected to ea... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "The Independent Set is the subset of all binary tree nodes when there is no edge between any two nodes in that subset. "
},
{
"code": null,
"e": 1392,
"s": 1182,
"text": "Now from a set of elements, we will find the longest independe... |
PHP date_interval_create_from_date_string() Function | The date_interval_create_from_date_string() function is an alias of DateInterval::createFromDateString. This accepts a string specifying an interval and returns a DateInterval object.
date_interval_create_from_date_string($time)
time (Mandatory)
This is a string value specifying the date/interval in relative formats f... | [
{
"code": null,
"e": 2941,
"s": 2757,
"text": "The date_interval_create_from_date_string() function is an alias of DateInterval::createFromDateString. This accepts a string specifying an interval and returns a DateInterval object."
},
{
"code": null,
"e": 2987,
"s": 2941,
"text":... |
Print with your own font using Python? | In this, we are going to see how differently we can display our text in a very unique way using python.
So let suppose I want to display “Hello, Python” and out many ways I could display my text/string (“Hello, Python”) like:
“Hello, Python”
___ ___ .__ .__
/ | \ ____ | | | | ____
/ ~ \_/ __ \| | | | / _ \
\ Y /\ ___/|... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "In this, we are going to see how differently we can display our text in a very unique way using python."
},
{
"code": null,
"e": 1288,
"s": 1166,
"text": "So let suppose I want to display “Hello, Python” and out many ways I could dis... |
What are the differences between recursion and iteration in Java? | The Recursion and Iteration both repeatedly execute the set of instructions. Recursion is when a statement in a function calls itself repeatedly. The iteration is when a loop repeatedly executes until the controlling condition becomes false. The primary difference between recursion and iteration is that recursion is a ... | [
{
"code": null,
"e": 1514,
"s": 1062,
"text": "The Recursion and Iteration both repeatedly execute the set of instructions. Recursion is when a statement in a function calls itself repeatedly. The iteration is when a loop repeatedly executes until the controlling condition becomes false. The primary... |
Go beyond the basics of the request package in python | by Aaron S | Towards Data Science | When you get used to the requests python package, it can be useful in command line applications to consider ways of validating files, resuming incomplete get requests and using progress bars. These go beyond the basic use of the request package. We will go through simple ways to do just that using the request package.
... | [
{
"code": null,
"e": 492,
"s": 172,
"text": "When you get used to the requests python package, it can be useful in command line applications to consider ways of validating files, resuming incomplete get requests and using progress bars. These go beyond the basic use of the request package. We will g... |
Python program for removing nth character from a string | In this article, we will learn about the solution to the problem statement given below −
Problem statement − We are given a string, we have to remove the ith indexed character from the given string and display it.
In any string in Python, indexing always starts from 0. Suppose we have a string “tutorialspoint” then its... | [
{
"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": 1276,
"s": 1151,
"text": "Problem statement − We are given a string, we have to remove the ith indexed character from t... |
Hands-on Machine Learning Model Interpretation | by Dipanjan (DJ) Sarkar | Towards Data Science | Interpreting Machine Learning models is no longer a luxury but a necessity given the rapid adoption of AI in the industry. This article in a continuation in my series of articles aimed at ‘Explainable Artificial Intelligence (XAI)’. The idea here is to cut through the hype and enable you with the tools and techniques n... | [
{
"code": null,
"e": 693,
"s": 172,
"text": "Interpreting Machine Learning models is no longer a luxury but a necessity given the rapid adoption of AI in the industry. This article in a continuation in my series of articles aimed at ‘Explainable Artificial Intelligence (XAI)’. The idea here is to cu... |
Django - Upload files with FileSystemStorage - GeeksforGeeks | 21 Jan, 2022
Django ships with the FileSystemStorage class that helps to store files locally so that these files can be served as media in development. In this article, we will see how to implement a file upload system using FileSystemStorage API to store the files locally. Note:This method should only be used in devel... | [
{
"code": null,
"e": 24440,
"s": 24412,
"text": "\n21 Jan, 2022"
},
{
"code": null,
"e": 24778,
"s": 24440,
"text": "Django ships with the FileSystemStorage class that helps to store files locally so that these files can be served as media in development. In this article, we will... |
Order MySQL records randomly and display name in Ascending order | You can use subquery to order randomly and display name in asending order. The rand() is used for random, whereas ORDER BY is used to display name records in ascending order. The syntax is as follows −
select *from
(
select *from yourTableName order by rand() limit anyIntegerValue;
) anyVariableName
order by yourCol... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "You can use subquery to order randomly and display name in asending order. The rand() is used for random, whereas ORDER BY is used to display name records in ascending order. The syntax is as follows −"
},
{
"code": null,
"e": 1391,
"s":... |
Difference between DBMS and DSMS - GeeksforGeeks | 13 Oct, 2020
1. DBMS :In DBMS the nature of data is non-volatile and random data access is performed using DBMS. It operates on one time queries and gives the exact output for that query. DBMS uses unlimited secondary storage to store the data and also here in DBMS the data update rate is very low. DBMS is used when th... | [
{
"code": null,
"e": 24304,
"s": 24276,
"text": "\n13 Oct, 2020"
},
{
"code": null,
"e": 24649,
"s": 24304,
"text": "1. DBMS :In DBMS the nature of data is non-volatile and random data access is performed using DBMS. It operates on one time queries and gives the exact output for ... |
Sort a K sorted Doubly Linked List | Set 2 (Using Shell Sort) - GeeksforGeeks | 12 Jan, 2022
Given a doubly-linked list containing N nodes, where each node is at most K away from its target position in the list, the task is to sort the given doubly linked list.
Examples:
Input: DLL: 3<->6<->2<->12<->56<->8, K = 2Output: 2<->3<->6<->8<->12<->56
Input: DLL: 3<->2<->1<->5<->4Output:1<->2<->3<->4<->... | [
{
"code": null,
"e": 24126,
"s": 24095,
"text": " \n12 Jan, 2022\n"
},
{
"code": null,
"e": 24296,
"s": 24126,
"text": "Given a doubly-linked list containing N nodes, where each node is at most K away from its target position in the list, the task is to sort the given doubly link... |
SQL - Alias Syntax | You can rename a table or a column temporarily by giving another name known as Alias. The use of table aliases is to rename a table in a specific SQL statement. The renaming is a temporary change and the actual table name does not change in the database. The column aliases are used to rename a table's columns for the p... | [
{
"code": null,
"e": 2807,
"s": 2453,
"text": "You can rename a table or a column temporarily by giving another name known as Alias. The use of table aliases is to rename a table in a specific SQL statement. The renaming is a temporary change and the actual table name does not change in the database... |
spaCy - Models and Languages | Let us learn about the languages supported by spaCy and its statistical models.
Currently, spaCy supports the following languages −
spaCy’s statistical models
As we know that spaCy’s models can be installed as Python packages, which means like any other module, they are a component of our application. These modules can... | [
{
"code": null,
"e": 2152,
"s": 2072,
"text": "Let us learn about the languages supported by spaCy and its statistical models."
},
{
"code": null,
"e": 2204,
"s": 2152,
"text": "Currently, spaCy supports the following languages −"
},
{
"code": null,
"e": 2231,
"s"... |
MySQL Tryit Editor v1.0 | SELECT * FROM Customers;
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support WebSQL.
Your are now using a light-version of the Try-SQL Edito... | [
{
"code": null,
"e": 25,
"s": 0,
"text": "SELECT * FROM Customers;"
},
{
"code": null,
"e": 27,
"s": 25,
"text": ""
},
{
"code": null,
"e": 99,
"s": 36,
"text": "Edit the SQL Statement, and click \"Run SQL\" to see the result."
},
{
"code": null,
... |
Swap two Strings without using temp variable in C# | To swap two strings without using a temp variable, you can try the following code and logic.
Append the second string with the first.
str1 = str1 + str2;
Set the str1 in str2.
str2 = str1.Substring(0, str1.Length - str2.Length);
Now, the final step is to set str2 in str1 −
str1 = str1.Substring(str2.Length);
using Syst... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "To swap two strings without using a temp variable, you can try the following code and logic."
},
{
"code": null,
"e": 1196,
"s": 1155,
"text": "Append the second string with the first."
},
{
"code": null,
"e": 1216,
"... |
Express.js – app.delete() Method | The app.delete() method routes all the HTTP DELETE requests to the specified path with the specified callback functions.
app.delete(path, callback, [callback])
path − This is the path for which the middleware function is invoked. A path can be a string, path pattern, a regular expression, or an array of all these.
call... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "The app.delete() method routes all the HTTP DELETE requests to the specified path with the specified callback functions."
},
{
"code": null,
"e": 1222,
"s": 1183,
"text": "app.delete(path, callback, [callback])"
},
{
"code": ... |
Video analytics at the edge. Use Raspberry PI and Intel NCS to... | by Aby Varghese | Towards Data Science | I have recently installed a CCTV system at my home. It consisted of 4 IP cameras. I wanted them to be a bit more smarter. Instead of looking at the CCTV footage always, it would be good to get a notification if there is human detected by any of the cameras. This is a really cool stuff. I thought it would be really good... | [
{
"code": null,
"e": 785,
"s": 172,
"text": "I have recently installed a CCTV system at my home. It consisted of 4 IP cameras. I wanted them to be a bit more smarter. Instead of looking at the CCTV footage always, it would be good to get a notification if there is human detected by any of the camera... |
Redis - Hash Hset Command | Redis HSET command is used to set field in the hash stored at the key to value. If the key does not exist, a new key holding a hash is created. If the field already exists in the hash, it is overwritten.
Integer reply
1 if the field is a new field in the hash and value was set.
0 if the field already exists in the hash... | [
{
"code": null,
"e": 2249,
"s": 2045,
"text": "Redis HSET command is used to set field in the hash stored at the key to value. If the key does not exist, a new key holding a hash is created. If the field already exists in the hash, it is overwritten."
},
{
"code": null,
"e": 2263,
"s... |
How to select a range of rows from a dataframe in PySpark ? - GeeksforGeeks | 29 Jun, 2021
In this article, we are going to select a range of rows from a PySpark dataframe.
It can be done in these ways:
Using filter().
Using where().
Using SQL expression.
Creating Dataframe for demonstration:
Python3
# importing moduleimport pyspark # importing sparksession from pyspark.sql modulefrom pyspark.s... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 24399,
"s": 24317,
"text": "In this article, we are going to select a range of rows from a PySpark dataframe."
},
{
"code": null,
"e": 24429,
"s": 24399,
"text": "It can b... |
SQL statement to add a table as Virtual table in SAP HANA Smart Data Access | You can use following SQL statement for this −
CREATE VIRTUAL TABLE <table_name> <remote_location_clause>
CREATE VIRTUAL TABLE ABC.test_VT AT “ORCL_11G_WIN”.”NULL”.”OUTLN”.”Dept”;
In this SQL statement, ABC.test_VT is Virtual table name
“ORCL_11G_WIN”.”NULL”.”OUTLN”.”Dept”;- Remote location for creating Virtual table | [
{
"code": null,
"e": 1109,
"s": 1062,
"text": "You can use following SQL statement for this −"
},
{
"code": null,
"e": 1168,
"s": 1109,
"text": "CREATE VIRTUAL TABLE <table_name> <remote_location_clause>"
},
{
"code": null,
"e": 1242,
"s": 1168,
"text": "CREAT... |
SQL - Using GROUP BY to COUNT the Number of Rows For Each Unique Entry in a Column - GeeksforGeeks | 18 Oct, 2021
In this article, we will see how to use GROUP BY to count the number of rows for each unique entry in a given table. Using COUNT, without GROUP BY clause will return a total count of a number of rows present in the table.
Adding GROUP BY, we can COUNT total occurrences for each unique value present in the ... | [
{
"code": null,
"e": 24188,
"s": 24160,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 24410,
"s": 24188,
"text": "In this article, we will see how to use GROUP BY to count the number of rows for each unique entry in a given table. Using COUNT, without GROUP BY clause will retu... |
Counting the occurrences of JavaScript array elements and put in a new 2d array | We are required to write a JavaScript function that takes in an array of literal values. The function should then count the frequency of each element of the input array and prepare a new array on that basis.
For example − If the input array is −
const arr = [5, 5, 5, 2, 2, 2, 2, 2, 9, 4];
Then the output should be −
co... | [
{
"code": null,
"e": 1270,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of literal values. The function should then count the frequency of each element of the input array and prepare a new array on that basis."
},
{
"code": null,
"e": 1308,
... |
Python 3 - os.listdir() Method | The method listdir() returns a list containing the names of the entries in the directory given by path. The list is in arbitrary order. It does not include the special entries '.' and '..' even if they are present in the directory.
path may be either of type str or of type bytes. If path is of type bytes, the filenames... | [
{
"code": null,
"e": 2572,
"s": 2340,
"text": "The method listdir() returns a list containing the names of the entries in the directory given by path. The list is in arbitrary order. It does not include the special entries '.' and '..' even if they are present in the directory."
},
{
"code":... |
JavaScript RegExp return values between various square brackets? How to get value brackets? | Use regular expression with indexes 0,1....N to get the value without brackets. Following is the
code −
var regularExpression= /(?<=\[).*?(?=\])/g;
var getTheValueWithIndex= "[John Smith][David
Miller]".match(regularExpression);
console.log("The first value without bracket="+getTheValueWithIndex[0]);
console.log("The s... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "Use regular expression with indexes 0,1....N to get the value without brackets. Following is the\ncode −"
},
{
"code": null,
"e": 1438,
"s": 1166,
"text": "var regularExpression= /(?<=\\[).*?(?=\\])/g;\nvar getTheValueWithIndex= \"[J... |
PyQt5 – Hide push button on click - GeeksforGeeks | 23 Sep, 2021
In this article we will see how to hide the push button. When we design a GUI (Graphical User Interface) we create push button in it which do some task when they are pressed. But some time their is a need to hide the button if task is completed, in order to hide the button we will use hide method.
Syntax :... | [
{
"code": null,
"e": 24133,
"s": 24105,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 24432,
"s": 24133,
"text": "In this article we will see how to hide the push button. When we design a GUI (Graphical User Interface) we create push button in it which do some task when they a... |
How to delete azure blob (file) from the Storage account using PowerShell? | To delete the Azure blob from the azure storage account using PowerShell, we can use the RemoveAzStorageBlob command. Before running this command, we need to make sure that the Azure cloud account is connected (Connect-AzAccount) and the proper subscription is set in which the storage account resides (Set-AzContext).
O... | [
{
"code": null,
"e": 1381,
"s": 1062,
"text": "To delete the Azure blob from the azure storage account using PowerShell, we can use the RemoveAzStorageBlob command. Before running this command, we need to make sure that the Azure cloud account is connected (Connect-AzAccount) and the proper subscrip... |
How to launch Chrome Browser via Selenium? | We can launch Chrome browser via Selenium. Java JDK, Eclipse and Selenium webdriver should be installed in the system before Chrome browser is launch.
Follow the steps one by one to launch Chrome −
Navigate to the link: https://chromedriver.chromium.org/downloads.
Navigate to the link: https://chromedriver.chromium.org... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "We can launch Chrome browser via Selenium. Java JDK, Eclipse and Selenium webdriver should be installed in the system before Chrome browser is launch."
},
{
"code": null,
"e": 1260,
"s": 1213,
"text": "Follow the steps one by one to ... |
How to add items to a list in C#? | Firstly, declare a list −
var teams = new List<string>();
To add items to a C# list, use the Add() method −
teams.Add("US");
teams.Add("Canada");
teams.Add("India");
teams.Add("Australia");
You can try to run the following code to add items to a list in C# −
using System;
using System.Collections.Generic;
public class... | [
{
"code": null,
"e": 1088,
"s": 1062,
"text": "Firstly, declare a list −"
},
{
"code": null,
"e": 1120,
"s": 1088,
"text": "var teams = new List<string>();"
},
{
"code": null,
"e": 1170,
"s": 1120,
"text": "To add items to a C# list, use the Add() method −"
... |
Dart Programming - ceil Method | This property returns the ceiling value, that is the smallest integer greater than or equal to a number.
Number.ceil()
void main() {
var a = 2.4;
print("The ceiling value of 2.4 = ${a.ceil()}");
}
It will produce the following output −.
The ceiling value of 2.4 = 3
44 Lectures
4.5 hours
Sriy... | [
{
"code": null,
"e": 2630,
"s": 2525,
"text": "This property returns the ceiling value, that is the smallest integer greater than or equal to a number."
},
{
"code": null,
"e": 2645,
"s": 2630,
"text": "Number.ceil()\n"
},
{
"code": null,
"e": 2734,
"s": 2645,
... |
The Modin view of Scaling Pandas. Comparing Modin with Dask, Ray, Vaex... | by Devin Petersohn | Towards Data Science | Recently, a blog post was written that compared a variety of tools in a set of head to heads. I wanted to take the opportunity to talk about our vision with Modin and where we’d like to take the field of data science.
Modin (https://github.com/modin-project/modin) takes a different view of how systems should be built. ... | [
{
"code": null,
"e": 389,
"s": 171,
"text": "Recently, a blog post was written that compared a variety of tools in a set of head to heads. I wanted to take the opportunity to talk about our vision with Modin and where we’d like to take the field of data science."
},
{
"code": null,
"e": ... |
A Complete Guide to Learn XML For Android App Development - GeeksforGeeks | 23 Jul, 2021
XML stands for Extensible Markup Language. XML is a markup language much like HTML used to describe data. It is derived from Standard Generalized Markup Language(SMGL). Basically, the XML tags are not predefined in XML. We need to implement and define the tags in XML. XML tags define the data and used to s... | [
{
"code": null,
"e": 26515,
"s": 26487,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 27093,
"s": 26515,
"text": "XML stands for Extensible Markup Language. XML is a markup language much like HTML used to describe data. It is derived from Standard Generalized Markup Language(S... |
Directi Interview Questions - GeeksforGeeks | 09 Aug, 2019
I took Coding Round 1 of Direct I campus recruitment today. Sharing the 2 questions which have been asked.
Question 1 (Optimal substring reversal):You are given a string S. Each character of S is either ‘a’, or ‘b’. You wish to reverse exactly one sub-string of S such that the new string is lexicographical... | [
{
"code": null,
"e": 25949,
"s": 25921,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 26056,
"s": 25949,
"text": "I took Coding Round 1 of Direct I campus recruitment today. Sharing the 2 questions which have been asked."
},
{
"code": null,
"e": 26690,
"s": 260... |
HTML <center> Tag - GeeksforGeeks | 17 Mar, 2022
The <center> tag in HTML is used to set the alignment of text into the center. This tag is not supported in HTML5. CSS’s property is used to set the alignment of the element instead of the center tag in HTML5.
Syntax:
<center> Contents... </center>
Attributes: This tag dos not accept any attribute.
Example... | [
{
"code": null,
"e": 23003,
"s": 22975,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 23213,
"s": 23003,
"text": "The <center> tag in HTML is used to set the alignment of text into the center. This tag is not supported in HTML5. CSS’s property is used to set the alignment of t... |
How to target desktop, tablet and mobile using Media Query ? - GeeksforGeeks | 10 Jan, 2022
Media Query is a popular technique that enables to deliver a style sheet to different devices which have different screen sizes and resolutions respectively. They are used to customize the appearance of a website on multiple devices. A media query consist of a media type that can contain one or more expres... | [
{
"code": null,
"e": 25210,
"s": 25182,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 25729,
"s": 25210,
"text": "Media Query is a popular technique that enables to deliver a style sheet to different devices which have different screen sizes and resolutions respectively. They ... |
Neural Network Model Architecture Visualization | by Himanshu Sharma | Towards Data Science | Neural Network is a subset of Machine Learning which is inspired by the human brain and is used to solve AI-related problems. It is inspired by neurons found in the human brain, it is a network that is connected using different neurons called a Neural Network. It is an advanced field of Data Science that generally help... | [
{
"code": null,
"e": 553,
"s": 172,
"text": "Neural Network is a subset of Machine Learning which is inspired by the human brain and is used to solve AI-related problems. It is inspired by neurons found in the human brain, it is a network that is connected using different neurons called a Neural Net... |
C++ Program to Find Strongly Connected Components in Graphs | Weakly or Strongly Connected for a given a directed graph can be found out using DFS. This is a C++ program of this problem.
Begin
Function fillorder() = fill stack with all the vertices.
a) Mark the current node as visited and print it
b) Recur for all the vertices adjacent to this vertex
c) All vertices reac... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "Weakly or Strongly Connected for a given a directed graph can be found out using DFS. This is a C++ program of this problem."
},
{
"code": null,
"e": 1573,
"s": 1187,
"text": "Begin\nFunction fillorder() = fill stack with all the ver... |
Which CSS property is used to run Animation in Reverse Direction? | Use the animation-direction property to run animation in reverse direction. The property is used with the reverse animation value to achieve this.
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
background-color: yellow;
... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "Use the animation-direction property to run animation in reverse direction. The property is used with the reverse animation value to achieve this."
},
{
"code": null,
"e": 1219,
"s": 1209,
"text": "Live Demo"
},
{
"code": nul... |
How to create a responsive login form with CSS? | Following is the code to create a responsive login form with CSS −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background-color: rgb(189, 189, 255);
}
form {
border: 3px solid #f1f1f1;
... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "Following is the code to create a responsive login form with CSS −"
},
{
"code": null,
"e": 1140,
"s": 1129,
"text": " Live Demo"
},
{
"code": null,
"e": 3314,
"s": 1140,
"text": "<!DOCTYPE html>\n<html>\n<head>\n... |
How to create a covariance matrix in R? | To create a covariance matrix, we first need to find the correlation matrix and a vector of standard deviations is also required. The correlation matrix can be found by using cor function with matrix object. For example, if we have matrix M then the correlation matrix can be found as cor(M). Now we can use this matrix ... | [
{
"code": null,
"e": 1484,
"s": 1062,
"text": "To create a covariance matrix, we first need to find the correlation matrix and a vector of standard deviations is also required. The correlation matrix can be found by using cor function with matrix object. For example, if we have matrix M then the cor... |
How to Speedup your Pandas Code by 10x | by Peter Grant | Towards Data Science | As we all know, pandas is a fantastic data science tool. It provides us with the dataframe structure we need, powerful computational abilities, and does so in a very user-friendly format. It even has quality documentation and a large support network, making it easy to learn. It’s excellent.
But it’s not always particul... | [
{
"code": null,
"e": 464,
"s": 172,
"text": "As we all know, pandas is a fantastic data science tool. It provides us with the dataframe structure we need, powerful computational abilities, and does so in a very user-friendly format. It even has quality documentation and a large support network, maki... |
Human Computer Interface - Quick Guide | Human Computer Interface (HCI) was previously known as the man-machine studies or man-machine interaction. It deals with the design, execution and assessment of computer systems and related phenomenon that are for human use.
HCI can be used in all disciplines wherever there is a possibility of computer installation. So... | [
{
"code": null,
"e": 1997,
"s": 1772,
"text": "Human Computer Interface (HCI) was previously known as the man-machine studies or man-machine interaction. It deals with the design, execution and assessment of computer systems and related phenomenon that are for human use."
},
{
"code": null,
... |
Decimal count of a Number in JavaScript | We are required to write a JavaScript function that takes in a number which may be an integer
or a floating-point number.
If it's a floating-point number, we have to return the count of numbers after the decimal point.
Otherwise we should return 0.
The code for this will be −
const num1 = 1.123456789;
const num2 = 1234... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a number which may be an integer\nor a floating-point number."
},
{
"code": null,
"e": 1281,
"s": 1184,
"text": "If it's a floating-point number, we have to return the coun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.