title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Happiness and Life Satisfaction. Exploratory Data Analysis on World... | by XuanKhanh Nguyen | Towards Data Science | What is the purpose of life? Is that to be happy? Why people go through all the pain and hardship? Is it to achieve happiness in some way?
I’m not the only person who believed the purpose of life is happiness. If you look around, most people are pursuing happiness in their lives.
On March 20th, the world celebrates the... | [
{
"code": null,
"e": 310,
"s": 171,
"text": "What is the purpose of life? Is that to be happy? Why people go through all the pain and hardship? Is it to achieve happiness in some way?"
},
{
"code": null,
"e": 452,
"s": 310,
"text": "I’m not the only person who believed the purpos... |
Cordova - First Application | We have understood how to install Cordova and set up the environment for it. Once everything is ready, we can create our first hybrid Cordova application.
Open the directory where you want the app to be installed in command prompt. We will create it on desktop.
C:\Users\username\Desktop>cordova
create CordovaProjec... | [
{
"code": null,
"e": 2335,
"s": 2180,
"text": "We have understood how to install Cordova and set up the environment for it. Once everything is ready, we can create our first hybrid Cordova application."
},
{
"code": null,
"e": 2442,
"s": 2335,
"text": "Open the directory where yo... |
Count numbers having 0 as a digit | 19 Apr, 2021
Problem: Count how many integers from 1 to N contains 0 as a digit.Examples:
Input: n = 9
Output: 0
Input: n = 107
Output: 17
The numbers having 0 are 10, 20,..90, 100, 101..107
Input: n = 155
Output: 24
The numbers having 0 are 10, 20,..90, 100, 101..110,
120, ..150.
A naive solution is discussed in ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 133,
"s": 54,
"text": "Problem: Count how many integers from 1 to N contains 0 as a digit.Examples: "
},
{
"code": null,
"e": 328,
"s": 133,
"text": "Input: n = 9\nOutput: 0\n... |
Commonly asked DBMS interview questions | 06 Jun, 2022
1. What are the advantages of DBMS over traditional file-based systems?
Database management systems were developed to handle the following difficulties of typical File-processing systems supported by conventional operating systems. 1. Data redundancy and inconsistency 2. Difficulty in accessing data 3. Da... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 125,
"s": 52,
"text": "1. What are the advantages of DBMS over traditional file-based systems? "
},
{
"code": null,
"e": 509,
"s": 125,
"text": "Database management systems were... |
Get n-smallest values from a particular column in Pandas DataFrame | 18 Dec, 2018
Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns).
Let’s see how can we can get n-smallest values from a particular column in Pandas DataFrame.
Observe this dataset first. We’ll use ‘Age’, ‘Weight’ and ‘Salary’ columns of... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Dec, 2018"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns)."
},
{
"code": null,
"e": 2... |
Find common elements in two ArrayLists in Java | 11 Dec, 2018
Prerequisite: ArrayList in Java
Given two ArrayLists, the task is to print all common elements in both the ArrayLists in Java .
Examples:
Input: List1 = ["Hii", "Geeks", "for", "Geeks"],
List2 = ["Hii", "Geeks", "Gaurav"]
Output: [Hii, Geeks, Geeks]
Input: List1 = ["a", "b", "c", "d", "e", "f"],
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 60,
"s": 28,
"text": "Prerequisite: ArrayList in Java"
},
{
"code": null,
"e": 156,
"s": 60,
"text": "Given two ArrayLists, the task is to print all common elements in both the A... |
Scrape Google Search Results using Python BeautifulSoup | 29 Dec, 2020
In this article, we are going to see how to Scrape Google Search Results using Python BeautifulSoup.
bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does not come built-in with Python. To install this type the below command in the terminal.
pip install b... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 154,
"s": 53,
"text": "In this article, we are going to see how to Scrape Google Search Results using Python BeautifulSoup."
},
{
"code": null,
"e": 347,
"s": 154,
"text": "bs4:... |
Ruby | Array size() operation | 06 Dec, 2019
Array#size() : size() is a Array class method which returns the length of elements in the array.
Syntax: Array.size()
Parameter: Array
Return: the length of elements in the array.
Example #1 :
# Ruby code for size() method # declaring arraya = [18, 22, 33, nil, 5, 6] # declaring arrayb = [1, 4, 1, 1, 88,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 125,
"s": 28,
"text": "Array#size() : size() is a Array class method which returns the length of elements in the array."
},
{
"code": null,
"e": 146,
"s": 125,
"text": "Syntax: A... |
Sum of square-sums of first n natural numbers | 01 Sep, 2021
Given a positive integer n. The task is to find the sum of the sum of square of first n natural number. Examples :
Input : n = 3
Output : 20
Sum of square of first natural number = 1
Sum of square of first two natural number = 1^2 + 2^2 = 5
Sum of square of first three natural number = 1^2 + 2^2 + 3^2 = ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 145,
"s": 28,
"text": "Given a positive integer n. The task is to find the sum of the sum of square of first n natural number. Examples : "
},
{
"code": null,
"e": 433,
"s": 145,
... |
Parameter-Ordered Updates | The UPDATE query of raw SQL has SET clause. It is rendered by the update() construct using the column ordering given in the originating Table object. Therefore, a particular UPDATE statement with particular columns will be rendered the same each time. Since the parameters themselves are passed to the Update.values() me... | [
{
"code": null,
"e": 2870,
"s": 2474,
"text": "The UPDATE query of raw SQL has SET clause. It is rendered by the update() construct using the column ordering given in the originating Table object. Therefore, a particular UPDATE statement with particular columns will be rendered the same each time. S... |
p5.js | loadImage() Function | 17 Jan, 2020
The loadImage() function is used to load an image from the given path and create a p5.Image object with the image.
It is advised to load an image in the preload() function as the loaded image may not be available for use immediately. The image is preferably loaded from a relative path as some browsers may ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jan, 2020"
},
{
"code": null,
"e": 143,
"s": 28,
"text": "The loadImage() function is used to load an image from the given path and create a p5.Image object with the image."
},
{
"code": null,
"e": 419,
"s": 143,
... |
Shading confidence intervals manually with ggplot2 in R | 30 Jun, 2021
In this article, we will see how to generate Shading confidence intervals manually with ggplot2 in R Programming language.
Let us first draw a regular curve and then add confidence intervals to it.
Example:
R
# Load Packageslibrary("ggplot2") # Create a DataFrame for PlottingDF <- data.frame(X = rnorm(1... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 152,
"s": 28,
"text": "In this article, we will see how to generate Shading confidence intervals manually with ggplot2 in R Programming language. "
},
{
"code": null,
"e": 227,
"s": ... |
PLSQL | MOD Function | 18 Oct, 2019
The MOD function is an inbuilt function in PLSQL which is used to return the remainder when a is divided by b. Its formula is .
Syntax:
MOD(a, b)
Parameters Used:This function accepts two parameters a and b. This function gives remainder as the output when the input number a is divided by b.
Return Value:T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 156,
"s": 28,
"text": "The MOD function is an inbuilt function in PLSQL which is used to return the remainder when a is divided by b. Its formula is ."
},
{
"code": null,
"e": 164,
"... |
Sum and average of three numbers in PL/SQL | 12 Jul, 2018
Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given three numbers and the task is to find out the sum and ave... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Jul, 2018"
},
{
"code": null,
"e": 298,
"s": 54,
"text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare... |
Java Program to Convert long to int | 27 Nov, 2020
Long is a larger data type than int, we need to explicitly perform typecasting for the conversion. Typecasting is performed through the typecast operator. There are basically three methods to convert long to int:
By type-castingUsing toIntExact() methodUsing intValue() method of the Long wrapper class.
By ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Nov, 2020"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "Long is a larger data type than int, we need to explicitly perform typecasting for the conversion. Typecasting is performed through the typecast operator. There are basically ... |
DOM-based Cross-Site Scripting Attack in Depth | 21 Jun, 2021
In this article, we will be understanding one of the types of Cross-Site Scripting in-depth i.e DOM-based XSS. Let’s discuss it one by one as follows.
DOM-based Cross Site Scripting :
DOM XSS stands for Document Object Model-based Cross-site Scripting. DOM-based vulnerabilities occur in the content process... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 204,
"s": 53,
"text": "In this article, we will be understanding one of the types of Cross-Site Scripting in-depth i.e DOM-based XSS. Let’s discuss it one by one as follows."
},
{
"code": n... |
How to place a button at any position in Tkinter? | 24 Jan, 2021
Prerequisite: Creating a button in Tkinter
Tkinter is the most commonly used library for developing GUI (Graphical User Interface) in Python. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python offers multiple options for developing a GUI (Graphical User Interface). Out of a... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 96,
"s": 53,
"text": "Prerequisite: Creating a button in Tkinter"
},
{
"code": null,
"e": 624,
"s": 96,
"text": "Tkinter is the most commonly used library for developing GUI (Gr... |
numpy.isinf() in Python | 28 Mar, 2022
The numpy.isinf() function tests element-wise whether it is +ve or -ve infinity or not return the result as a boolean array.
Syntax: numpy.isinf(array [, out])
Parameters :
array : [array_like]Input array or object whose
elements, we need to test for infinity
out : [ndarray, optional]Output... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 179,
"s": 53,
"text": "The numpy.isinf() function tests element-wise whether it is +ve or -ve infinity or not return the result as a boolean array. "
},
{
"code": null,
"e": 214,
"s... |
How to Create Menu Folder & Menu File in Android Studio? | 07 Mar, 2021
Menus are the common user interface component in almost all the application. This interface provides a few options from which the user can select an option. There are 3 types of menu types available in Android:
Options menu and app barContext menu and contextual action modePopup menu
Options menu and app b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Mar, 2021"
},
{
"code": null,
"e": 239,
"s": 28,
"text": "Menus are the common user interface component in almost all the application. This interface provides a few options from which the user can select an option. There are 3 types ... |
Python | Find keys with duplicate values in dictionary | 07 Aug, 2019
Given a dictionary, the task is to find keys with duplicate values. Let’s discuss a few methods for the same.
Method #1: Using Naive approachIn this method first, we convert dictionary values to keys with the inverse mapping and then find the duplicate keys
# Python code to demonstrate # finding duplicate ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "Given a dictionary, the task is to find keys with duplicate values. Let’s discuss a few methods for the same."
},
{
"code": null,
"e": 286,
"s": 138,
"text... |
HTML dt Tag - GeeksforGeeks | 17 Mar, 2022
The <dt> tag in HTML is used to specify the description list. It is used inside the <dl> element. It is usually followed by a <dd> tag. The subsequent <dd> elements provides some related text associated with the term specified using <dt>.
Syntax:
<dt> Content... </dt>
Example:
HTML
<!DOCTYPE html> <htm... | [
{
"code": null,
"e": 23049,
"s": 23021,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 23289,
"s": 23049,
"text": "The <dt> tag in HTML is used to specify the description list. It is used inside the <dl> element. It is usually followed by a <dd> tag. The subsequent <dd> element... |
React Native - Status Bar | In this chapter, we will show you how to control the status bar appearance in React Native.
The Status bar is easy to use and all you need to do is set properties to change it.
The hidden property can be used to hide the status bar. In our example it is set to false. This is default value.
The barStyle can have three v... | [
{
"code": null,
"e": 2436,
"s": 2344,
"text": "In this chapter, we will show you how to control the status bar appearance in React Native."
},
{
"code": null,
"e": 2521,
"s": 2436,
"text": "The Status bar is easy to use and all you need to do is set properties to change it."
},... |
While Statement Implementation | There is no direct while statement available in Batch Script but we can do an implementation of this loop very easily by using the if statement and labels.
The following diagram shows the diagrammatic explanation of this loop.
The first part of the while implementation is to set the counters which will be used to contr... | [
{
"code": null,
"e": 2325,
"s": 2169,
"text": "There is no direct while statement available in Batch Script but we can do an implementation of this loop very easily by using the if statement and labels."
},
{
"code": null,
"e": 2396,
"s": 2325,
"text": "The following diagram show... |
iBATIS - Update Operation | We discussed, in the last chapter, how to perform READ operation on a table using iBATIS. This chapter explains how you can update records in a table using iBATIS.
We have the following EMPLOYEE table in MySQL −
CREATE TABLE EMPLOYEE (
id INT NOT NULL auto_increment,
first_name VARCHAR(20) default NULL,
last_n... | [
{
"code": null,
"e": 2008,
"s": 1844,
"text": "We discussed, in the last chapter, how to perform READ operation on a table using iBATIS. This chapter explains how you can update records in a table using iBATIS."
},
{
"code": null,
"e": 2056,
"s": 2008,
"text": "We have the follow... |
Different Ways to Add Parentheses in C++ | Suppose we have a string of numbers and operators, we have to find all possible results from computing all the different possible ways to group the numbers and operators. Here the valid operators are +, - and *. So if the input is like “2*3-4*5”, then the output will be [-34, -14, -10, -10, 10]. This is because −
(2*(3... | [
{
"code": null,
"e": 1377,
"s": 1062,
"text": "Suppose we have a string of numbers and operators, we have to find all possible results from computing all the different possible ways to group the numbers and operators. Here the valid operators are +, - and *. So if the input is like “2*3-4*5”, then t... |
Neural Network Optimization Algorithms | by Vadim Smolyakov | Towards Data Science | What are some of the popular optimization algorithms used for training neural networks? How do they compare?
This article attempts to answer these questions using a Convolutional Neural Network (CNN) as an example trained on MNIST dataset with TensorFlow.
SGD updates model parameters (theta) in the negative direction o... | [
{
"code": null,
"e": 280,
"s": 171,
"text": "What are some of the popular optimization algorithms used for training neural networks? How do they compare?"
},
{
"code": null,
"e": 427,
"s": 280,
"text": "This article attempts to answer these questions using a Convolutional Neural ... |
SAP ABAP - Function Modules | Function modules make up a major part of a SAP system, because for years SAP has modularized code using function modules, allowing for code reuse, by themselves, their developers and also by their customers.
Function modules are sub-programs that contain a set of reusable statements with importing and exporting paramet... | [
{
"code": null,
"e": 3106,
"s": 2898,
"text": "Function modules make up a major part of a SAP system, because for years SAP has modularized code using function modules, allowing for code reuse, by themselves, their developers and also by their customers."
},
{
"code": null,
"e": 3617,
... |
XML DOM - Replace Node | In this chapter, we will study about the replace node operation in an XML DOM object. As we know everything in the DOM is maintained in a hierarchical informational unit known as node and the replacing node provides another way to update these specified nodes or a text node.
Following are the two methods to replace the... | [
{
"code": null,
"e": 2564,
"s": 2288,
"text": "In this chapter, we will study about the replace node operation in an XML DOM object. As we know everything in the DOM is maintained in a hierarchical informational unit known as node and the replacing node provides another way to update these specified... |
Cordova - Environment Setup | In this chapter, we will understand the Environment Setup of Cordova. To begin with the setup, we need to first install a few components. The components are listed in the following table.
NodeJS and NPM
NodeJS is the platform needed for Cordova development. Check out our NodeJS Environment Setup for more details.
Andro... | [
{
"code": null,
"e": 2368,
"s": 2180,
"text": "In this chapter, we will understand the Environment Setup of Cordova. To begin with the setup, we need to first install a few components. The components are listed in the following table."
},
{
"code": null,
"e": 2383,
"s": 2368,
"te... |
Convert a given Binary Tree to Doubly Linked List | Set 4 - GeeksforGeeks | 10 May, 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 same as Inorder of the given Binary Tree. The first node of Inorder traversal (left ... | [
{
"code": null,
"e": 31010,
"s": 30982,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 31365,
"s": 31010,
"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... |
Difference between require-dev and require in PHP? - GeeksforGeeks | 05 Nov, 2018
Before going to understand the difference between require and require_dev first understand what is require and require_dev.
require: These are must packages for the code to run. It defines the actual dependency as well as package version.require_dev: It defines the packages necessary for developing the pro... | [
{
"code": null,
"e": 24552,
"s": 24524,
"text": "\n05 Nov, 2018"
},
{
"code": null,
"e": 24676,
"s": 24552,
"text": "Before going to understand the difference between require and require_dev first understand what is require and require_dev."
},
{
"code": null,
"e": 24... |
What is Pre-Request Script in Postman? | The Pre-Request Script is used to run a JavaScript prior to the execution of a request. By incorporating a Pre-Request Script for a Collection, request or a folder, we can execute precondition steps like defining a variable, Parameters, Headers, Response, or logging console output.
We can include a Pre-Request Script t... | [
{
"code": null,
"e": 1345,
"s": 1062,
"text": "The Pre-Request Script is used to run a JavaScript prior to the execution of a request. By incorporating a Pre-Request Script for a Collection, request or a folder, we can execute precondition steps like defining a variable, Parameters, Headers, Respons... |
How to Align Navbar Items to Center using Bootstrap 4 ? - GeeksforGeeks | 20 Mar, 2020
In Bootstrap the items can be easily assigned to the left and right as it provides classes for the right and left. By default, left was set, but when it comes to aligning items to the center you have to align it by yourself as there are no in-built classes for doing this.
There are basically two ways by wh... | [
{
"code": null,
"e": 26299,
"s": 26271,
"text": "\n20 Mar, 2020"
},
{
"code": null,
"e": 26572,
"s": 26299,
"text": "In Bootstrap the items can be easily assigned to the left and right as it provides classes for the right and left. By default, left was set, but when it comes to a... |
Foldable Binary Tree | Practice | GeeksforGeeks | Given a binary tree, check if the tree can be folded or not. A tree can be folded if left and right subtrees of the tree are structure wise same. An empty tree is considered as foldable.
Consider the below trees:
(a) and (b) can be folded.
(c) and (d) cannot be folded.
Example 1:
Input:
10
/ \
7 15
... | [
{
"code": null,
"e": 508,
"s": 238,
"text": "Given a binary tree, check if the tree can be folded or not. A tree can be folded if left and right subtrees of the tree are structure wise same. An empty tree is considered as foldable.\nConsider the below trees:\n(a) and (b) can be folded.\n(c) and (d) ... |
Joining 4 Tables in SQL - GeeksforGeeks | 01 Sep, 2021
The purpose of this article is to make a simple program to Join two tables using Join and Where clause in SQL. Below is the implementation for the same using MySQL. The prerequisites of this topic are MySQL and the installment of Apache Server on your computer.
Introduction :In SQL, a query is a request wi... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 25799,
"s": 25537,
"text": "The purpose of this article is to make a simple program to Join two tables using Join and Where clause in SQL. Below is the implementation for the same using MySQL... |
Find the sum of first N odd Fibonacci numbers - GeeksforGeeks | 23 Jul, 2021
Given a number, N. Find the sum of first N odd Fibonacci numbers.Note: The answer can be very large so print the answer modulo 10^9+7.
Examples:
Input : N = 3
Output : 5
Explanation : 1 + 1 + 3
Input : 6
Output : 44
Explanation : 1 + 1 + 3 + 5 + 13 + 21
Approach :Odd Fibonacci series is:
1, 1, 3, 5, ... | [
{
"code": null,
"e": 26443,
"s": 26415,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 26579,
"s": 26443,
"text": "Given a number, N. Find the sum of first N odd Fibonacci numbers.Note: The answer can be very large so print the answer modulo 10^9+7. "
},
{
"code": null,... |
Dagger 2 Android Example using Retrofit - GeeksforGeeks | 21 Dec, 2020
Dagger 2 Android implementation is easier and it is based on Dependency Injection Architecture. Dependency Injection is a design pattern, which is a concept of Object-Oriented Programming, where we don’t create an object of another class inside a class using the new keyword (for Java). Instead, we supply t... | [
{
"code": null,
"e": 25036,
"s": 25008,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 25636,
"s": 25036,
"text": "Dagger 2 Android implementation is easier and it is based on Dependency Injection Architecture. Dependency Injection is a design pattern, which is a concept of Obj... |
Number with even sum of digits - GeeksforGeeks | 06 Apr, 2021
A positive integer is considered a good number if sum of its digits is even. Find n-th smallest good number. Examples :
Input : n = 1
Output : 2
First good number is smallest positive
number with sum of digits even which is 2.
Input : n = 10
Output : 20
A simple solution is to start from 1 and traver... | [
{
"code": null,
"e": 26047,
"s": 26019,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 26169,
"s": 26047,
"text": "A positive integer is considered a good number if sum of its digits is even. Find n-th smallest good number. Examples : "
},
{
"code": null,
"e": 2630... |
5 Simple Ways to Tokenize Text in Python | by Frank Andrade | Towards Data Science | Tokenization is a common task a data scientist comes across when working with text data. It consists of splitting an entire text into small units, also known as tokens. Most Natural Language Processing (NLP) projects have tokenization as the first step because it’s the foundation for developing good models and helps be... | [
{
"code": null,
"e": 526,
"s": 172,
"text": "Tokenization is a common task a data scientist comes across when working with text data. It consists of splitting an entire text into small units, also known as tokens. Most Natural Language Processing (NLP) projects have tokenization as the first step be... |
Controlling the Web Browser with Python - GeeksforGeeks | 23 Sep, 2021
In this article, we are going to see how to control the web browser with Python using selenium. Selenium is an open-source tool that automates web browsers. It provides a single interface that lets you write test scripts in programming languages like Ruby, Java, NodeJS, PHP, Perl, Python, and C#, etc.
pip ... | [
{
"code": null,
"e": 24421,
"s": 24393,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 24724,
"s": 24421,
"text": "In this article, we are going to see how to control the web browser with Python using selenium. Selenium is an open-source tool that automates web browsers. It pro... |
Update a MySQL table with Java MySQL | For this, you need to use PreparedStatement in Java for update. Let us first create a table −
mysql> create table DemoTable(
Id int,
FirstName varchar(40)
);
Query OK, 0 rows affected (0.62 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(100,'Chris');
Query OK, 1 r... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "For this, you need to use PreparedStatement in Java for update. Let us first create a table −"
},
{
"code": null,
"e": 1263,
"s": 1156,
"text": "mysql> create table DemoTable(\n Id int,\n FirstName varchar(40)\n);\nQuery OK, 0 ro... |
Low-Cost Cell Biology Experiments for Data Scientists | by Paul Mooney | Towards Data Science | Introduction:
Can “citizen scientists” do real science without costly laboratory equipment?
In short: yes. In this blog post we point out an alternative and low-cost approach to solving biological questions that is suited to the aspiring amateur scientist. Specifically, we highlight the benefits of combining low-cost i... | [
{
"code": null,
"e": 186,
"s": 172,
"text": "Introduction:"
},
{
"code": null,
"e": 264,
"s": 186,
"text": "Can “citizen scientists” do real science without costly laboratory equipment?"
},
{
"code": null,
"e": 908,
"s": 264,
"text": "In short: yes. In this bl... |
Different ways to create Pandas Dataframe - GeeksforGeeks | 24 Dec, 2021
Pandas DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. It is generally the most commonly used pandas object. Pandas DataFrame can be created in multiple ways. Let’s discuss different ways to create a DataFrame one by one.Method #1: Creating Pandas DataFrame ... | [
{
"code": null,
"e": 24902,
"s": 24874,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 25231,
"s": 24902,
"text": "Pandas DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. It is generally the most commonly used pandas object. Panda... |
Anshuman's Favourite Number | Practice | GeeksforGeeks | You are given an integer input N and you have to find whether it is the sum or the difference of the integer 5. (5+5, 5+5+5, 5-5,5-5-5+5+5.....)
Example 1:
Input:
N = 10
Output:
YES
Explanation:
Because 10 can be
written as a sum of 5+5.
Example 2:
Input:
N = 9
Output:
NO
Explanation:
9 can not be written
in the... | [
{
"code": null,
"e": 383,
"s": 238,
"text": "You are given an integer input N and you have to find whether it is the sum or the difference of the integer 5. (5+5, 5+5+5, 5-5,5-5-5+5+5.....)"
},
{
"code": null,
"e": 396,
"s": 385,
"text": "Example 1:"
},
{
"code": null,
... |
Count all possible N-length vowel permutations that can be generated based on the given conditions - GeeksforGeeks | 21 Apr, 2021
Given an integer N, the task is to count the number of N-length strings consisting of lowercase vowels that can be generated based the following conditions:
Each ‘a’ may only be followed by an ‘e’.
Each ‘e’ may only be followed by an ‘a’ or an ‘i’.
Each ‘i’ may not be followed by another ‘i’.
Each ‘o’ may ... | [
{
"code": null,
"e": 25460,
"s": 25432,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25617,
"s": 25460,
"text": "Given an integer N, the task is to count the number of N-length strings consisting of lowercase vowels that can be generated based the following conditions:"
},
... |
Pycharm - Improving and Writing Code | PyCharm includes various standards for writing code with proper indentations valid for Python. This makes it interesting to improve the code standards and writing the complete code in PyCharm editor.
Code completion in PyCharm is really unique. You can enhance it further using many other features. Note that the editor ... | [
{
"code": null,
"e": 2299,
"s": 2099,
"text": "PyCharm includes various standards for writing code with proper indentations valid for Python. This makes it interesting to improve the code standards and writing the complete code in PyCharm editor."
},
{
"code": null,
"e": 2517,
"s": 2... |
response.encoding – Python requests | 01 Mar, 2020
Python requests are generally used to fetch the content from a particular resource URI. Whenever we make a request to a specified URI through Python, it returns a response object. Now, this response object would be used to access certain features such as content, headers, etc. This article revolves around ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Mar, 2020"
},
{
"code": null,
"e": 532,
"s": 28,
"text": "Python requests are generally used to fetch the content from a particular resource URI. Whenever we make a request to a specified URI through Python, it returns a response obj... |
Remove any corner X rows and columns from a matrix | 09 Feb, 2022
Given an NxN matrix and an integer X. The task is to remove X rows and X columns from the NxN matrix.
Remove the first X rows and columns from the matrix.
Examples:
Input: n = 4,
arr[][] = {{20, 2, 10, 16},
{20, 17, 11, 6},
{14, 16, 1, 3},
{10,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "Given an NxN matrix and an integer X. The task is to remove X rows and X columns from the NxN matrix."
},
{
"code": null,
"e": 183,
"s": 130,
"text": "Remo... |
File.Move() Method in C# with Examples | 21 Apr, 2020
File.Move() is an inbuilt File class method that is used to move a specified file to a new location. This method also provides the option to specify a new file name.
Syntax:
public static void Move (string sourceFileName, string destFileName);
Parameter: This function accepts two parameters which are illus... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 194,
"s": 28,
"text": "File.Move() is an inbuilt File class method that is used to move a specified file to a new location. This method also provides the option to specify a new file name."
},
{... |
Python | Convert List of lists to list of Strings | 22 Jun, 2022
Interconversion of data is very popular nowadays and has many applications. In this scenario, we can have a problem in which we need to convert a list of lists, i.e matrix into list of strings. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using list comprehension + join()
T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 287,
"s": 28,
"text": "Interconversion of data is very popular nowadays and has many applications. In this scenario, we can have a problem in which we need to convert a list of lists, i.e matrix int... |
Streaming Stored Video | 02 Dec, 2019
Streaming of videos involve, storing of prerecorded videos on servers.
Users send request to those servers.
Users may watch the video from the start till the end, and may pause it anytime, do a forward or reverse skip, or stop the video whenever they want to do so.
There are 3 video streaming categories:
1... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Dec, 2019"
},
{
"code": null,
"e": 99,
"s": 28,
"text": "Streaming of videos involve, storing of prerecorded videos on servers."
},
{
"code": null,
"e": 136,
"s": 99,
"text": "Users send request to those servers."... |
Golismero – Scan Website, Vulnerability Scanning, WEB Server in Kali Linux | 17 Jun, 2021
Golismero is a free and open-source tool available on GitHub. Golismero is an Open Source Intelligence and Information Gathering Tool based on (OSINT). Golismero is capable of doing everything almost you need for reconnaissance as per your need it can perform reconnaissance easily. Golismero works as an op... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 835,
"s": 28,
"text": "Golismero is a free and open-source tool available on GitHub. Golismero is an Open Source Intelligence and Information Gathering Tool based on (OSINT). Golismero is capable of... |
Remove duplicates from an unsorted array using STL in C++ | 03 Jun, 2019
Given an unsorted array, the task is to remove the duplicate elements from the array using STL in C++
Examples:
Input: arr[] = {1, 2, 5, 1, 7, 2, 4, 2}
Output: arr[] = {1, 2, 4, 5, 7}
Input: arr[] = {1, 2, 4, 3, 5, 4, 4, 2, 5}
Output: arr[] = {1, 2, 3, 4, 5}
Approach:The duplicates of the array can be re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jun, 2019"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "Given an unsorted array, the task is to remove the duplicate elements from the array using STL in C++"
},
{
"code": null,
"e": 140,
"s": 130,
"text": "Exam... |
Python Script to Shutdown your PC using Voice Commands | 08 Oct, 2021
Yes, it is possible with the help of terminal and some modules in Python through which one can shut down a PC by just using voice commands
OS module: It is an in-built module in python that provides function for interacting with the operating system.
Speech Recognition module: It is an external module in p... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 191,
"s": 52,
"text": "Yes, it is possible with the help of terminal and some modules in Python through which one can shut down a PC by just using voice commands"
},
{
"code": null,
"e"... |
Check whether a binary tree is a complete tree or not | Set 2 (Recursive Solution) | 24 Jun, 2022
A complete binary tree is a binary tree whose all levels except the last level are completely filled and all the leaves in the last level are all to the left side. More information about complete binary trees can be found here.
Example:Below tree is a Complete Binary Tree (All nodes till the second last no... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 282,
"s": 54,
"text": "A complete binary tree is a binary tree whose all levels except the last level are completely filled and all the leaves in the last level are all to the left side. More infor... |
Overview of Advanced Convolution layers | by Jehill Parikh | Towards Data Science | Convolution layers are fundamental building blocks of computer vision architectures. Neural networks employing convolutions layers are employed in wide-ranging applications in Segmentation, Reconstruction, Scene Understanding, Synthesis, Object detection and more
The goal of this post is to provide a summary and overvi... | [
{
"code": null,
"e": 435,
"s": 171,
"text": "Convolution layers are fundamental building blocks of computer vision architectures. Neural networks employing convolutions layers are employed in wide-ranging applications in Segmentation, Reconstruction, Scene Understanding, Synthesis, Object detection ... |
How to search for ^ character in a MySQL table? | To search for ^ character, use the LIKE operator as in the below syntax −
select table_schema,table_name,column_name
from information_schema.columns
where column_name like '%^%';
Let us first create a table −
mysql> create table DemoTable1826
(
`^` varchar(20),
Name varchar(20),
`^Age` int
);... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "To search for ^ character, use the LIKE operator as in the below syntax −"
},
{
"code": null,
"e": 1243,
"s": 1136,
"text": "select table_schema,table_name,column_name\n from information_schema.columns\n where column_name like '%^%';... |
DSA using C - Binary Search | Binary search is a very fast search algorithm. This search algorithm works on the principle of divide and conquer. For this algorithm to work properly the data collection should be in sorted form.
Binary search search a particular item by comparing the middle most item of the collection. If match occurs then index of i... | [
{
"code": null,
"e": 2288,
"s": 2091,
"text": "Binary search is a very fast search algorithm. This search algorithm works on the principle of divide and conquer. For this algorithm to work properly the data collection should be in sorted form."
},
{
"code": null,
"e": 2690,
"s": 2288... |
Java throws Keyword | ❮ Java Keywords
Throw an exception if age is below 18 (print "Access
denied"). If age is 18 or older, print "Access granted":
public class Main {
static void checkAge(int age) throws ArithmeticException {
if (age < 18) {
throw new ArithmeticException("Access denied - You must be at least 18 years old.");
... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 129,
"s": 18,
"text": "Throw an exception if age is below 18 (print \"Access \ndenied\"). If age is 18 or older, print \"Access granted\":"
},
{
"code": null,
"e": 523,
"s": 129... |
Bootstrap 4 - Breadcrumb | It is used to show hierarchy-based information for a site and indicates current page's location within a navigational hierarchy. Bootstrap uses .breadcrumb class to define the list into breadcrumb and adds a separator via CSS to the list.
The following example demonstrates this −
<html lang = "en">
<head>
<!--... | [
{
"code": null,
"e": 2055,
"s": 1816,
"text": "It is used to show hierarchy-based information for a site and indicates current page's location within a navigational hierarchy. Bootstrap uses .breadcrumb class to define the list into breadcrumb and adds a separator via CSS to the list."
},
{
... |
SQL Performance Tips #1. Avoiding self joins and join on... | by Guilherme Banhudo | Towards Data Science | Many consider SQL to be data science’s ugly brother, often dedicating little time exploring its nuances and capabilities. And yet, SQL is often the primary means of extracting and preparing information (ETL) to be consumed further on.
This series of posts attempts to shed light on some of the often misunderstood or unk... | [
{
"code": null,
"e": 407,
"s": 172,
"text": "Many consider SQL to be data science’s ugly brother, often dedicating little time exploring its nuances and capabilities. And yet, SQL is often the primary means of extracting and preparing information (ETL) to be consumed further on."
},
{
"code"... |
Retail Management - Quick Guide | In my whole retailing career, I have stuck to one guiding principle: give your customers what they want...and customers want everything: a wide assortment of good quality merchandise, lowest possible prices, guaranteed satisfaction with what they buy, friendly knowledgeable service, convenient hours, free parking, and ... | [
{
"code": null,
"e": 2367,
"s": 2015,
"text": "In my whole retailing career, I have stuck to one guiding principle: give your customers what they want...and customers want everything: a wide assortment of good quality merchandise, lowest possible prices, guaranteed satisfaction with what they buy, f... |
How to check Minlength and Maxlength validation of a property in C# using Fluent Validation? | Ensures that the length of a particular string property is no longer than the specified value.
Only valid on string properties
String format args:
{PropertyName} = The name of the property being validated
{MaxLength} = Maximum length
{TotalLength} = Number of characters entered
{PropertyValue} = The current value of th... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "Ensures that the length of a particular string property is no longer than the specified value."
},
{
"code": null,
"e": 1189,
"s": 1157,
"text": "Only valid on string properties"
},
{
"code": null,
"e": 1209,
"s": 118... |
Solving real-world problem using data science | by Naman Doshi | Towards Data Science | The world of data science is evolving every day. Every professional in this field needs to be updated and constantly learning, or risk being left behind. You must have an appetite to solve problems. So I decided to study and solve a real-world problem which most of us have faced in our professional careers. The technic... | [
{
"code": null,
"e": 518,
"s": 172,
"text": "The world of data science is evolving every day. Every professional in this field needs to be updated and constantly learning, or risk being left behind. You must have an appetite to solve problems. So I decided to study and solve a real-world problem whi... |
DML Full Form - GeeksforGeeks | 12 Jun, 2020
DML stands for Data Manipulation Language. Tables and formulas are helpful when communicating with data stored up to a point in a database through SQL, but a time comes when we actually want to execute some fairly complicated data interactions. We will also need the Data Manipulation Language in that situa... | [
{
"code": null,
"e": 24304,
"s": 24276,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 24896,
"s": 24304,
"text": "DML stands for Data Manipulation Language. Tables and formulas are helpful when communicating with data stored up to a point in a database through SQL, but a time ... |
Amazon RDS - MS SQL features | Microsoft SQL server is a prominent relational database in the industry. AWS RDS supports multiple versions of MS SQL server. Below list of supported versions and editions. All these versions support point-in-time restores, and automated or manual backups. DB instances running SQL Server can be used inside a VPC. You c... | [
{
"code": null,
"e": 3105,
"s": 2585,
"text": "Microsoft SQL server is a prominent relational database in the industry. AWS RDS supports multiple versions of MS SQL server. Below list of supported versions and editions. All these versions support point-in-time restores, and automated or manual backu... |
How to generate prime numbers using Python? | A prime number is the one that is not divisible by any other number except 1 and itself.
In Python % modulo operator is available to test if a number is divisible by other.
Assuming we have to find prime numbers between 1 to 100, each number (let us say x) in the range needs to be successively checked for divisibility... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "A prime number is the one that is not divisible by any other number except 1 and itself."
},
{
"code": null,
"e": 1236,
"s": 1151,
"text": "In Python % modulo operator is available to test if a number is divisible by other. "
},
... |
How to get current time in milliseconds in Python? | You can get the current time in milliseconds in Python using the time module. You can get the time in seconds using time.time function(as a floating point value). To convert it to milliseconds, you need to multiply it with 1000 and round it off.
import time
milliseconds = int(round(time.time() * 1000))
print(milliseco... | [
{
"code": null,
"e": 1309,
"s": 1062,
"text": "You can get the current time in milliseconds in Python using the time module. You can get the time in seconds using time.time function(as a floating point value). To convert it to milliseconds, you need to multiply it with 1000 and round it off. "
},
... |
BART for Paraphrasing with Simple Transformers | by Thilina Rajapakse | Towards Data Science | BART is a denoising autoencoder for pretraining sequence-to-sequence models. BART is trained by (1) corrupting text with an arbitrary noising function, and (2) learning a model to reconstruct the original text.
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Compreh... | [
{
"code": null,
"e": 382,
"s": 171,
"text": "BART is a denoising autoencoder for pretraining sequence-to-sequence models. BART is trained by (1) corrupting text with an arbitrary noising function, and (2) learning a model to reconstruct the original text."
},
{
"code": null,
"e": 500,
... |
Python | Consecutive characters frequency - GeeksforGeeks | 22 Apr, 2020
Sometimes, while working with Python, we can have a problem in which we need to compute the frequency of consecutive characters till character changes. This can have application in many domains. Lets discuss certain ways in which this task can be performed.
Method #1 : Using list comprehension + groupby()T... | [
{
"code": null,
"e": 23927,
"s": 23899,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 24185,
"s": 23927,
"text": "Sometimes, while working with Python, we can have a problem in which we need to compute the frequency of consecutive characters till character changes. This can ha... |
How to add calendar events in Android App? | This example demonstrates how do I add calendar events in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmln... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "This example demonstrates how do I add calendar events in android."
},
{
"code": null,
"e": 1258,
"s": 1129,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a... |
Bootstrap .checkbox-inline class | Use .checkbox-inline class to a series of checkboxes for controls to appear on the same line.
You can try to run the following code to implement the .checkbox-inline class
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Forms</title>
<meta name = "viewport" content = "width = device-width, init... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "Use .checkbox-inline class to a series of checkboxes for controls to appear on the same line. "
},
{
"code": null,
"e": 1235,
"s": 1157,
"text": "You can try to run the following code to implement the .checkbox-inline class"
},
{... |
Tryit Editor v3.7 | CSS Style Images
Tryit: Create circled image | [
{
"code": null,
"e": 26,
"s": 9,
"text": "CSS Style Images"
}
] |
An Introduction to the Bootstrap Method | by Lorna Yen | Towards Data Science | Bootstrap is a powerful, computer-based method for statistical inference without relying on too many assumption. The first time I applied the bootstrap method was in an A/B test project. At that time I was like using an powerful magic to form a sampling distribution just from only one sample data. No formula needed for... | [
{
"code": null,
"e": 857,
"s": 172,
"text": "Bootstrap is a powerful, computer-based method for statistical inference without relying on too many assumption. The first time I applied the bootstrap method was in an A/B test project. At that time I was like using an powerful magic to form a sampling d... |
Merging ONNX graphs. Join, Merge, Split, and concatenate... | by Maurits Kaptein | Towards Data Science | ONNX is getting more and more popular. While initially conceived predominantly as a file-format to simply store AI/ML models, its use has changed in recent years. Nowadays, we see many data scientist use ONNX as means to build and curate complete data processing pipelines. As the usage of ONNX grows, so does the need f... | [
{
"code": null,
"e": 1147,
"s": 172,
"text": "ONNX is getting more and more popular. While initially conceived predominantly as a file-format to simply store AI/ML models, its use has changed in recent years. Nowadays, we see many data scientist use ONNX as means to build and curate complete data pr... |
Angular Material - Swipe | The Swipe functionality is meant for mobile devices. The following directives are used to handle swipes.
md-swipe-down, an Angular directive is used to specify custom behavior when an element is swiped down.
md-swipe-down, an Angular directive is used to specify custom behavior when an element is swiped down.
md-swipe-... | [
{
"code": null,
"e": 2295,
"s": 2190,
"text": "The Swipe functionality is meant for mobile devices. The following directives are used to handle swipes."
},
{
"code": null,
"e": 2398,
"s": 2295,
"text": "md-swipe-down, an Angular directive is used to specify custom behavior when a... |
C++ do...while loop | Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop.
A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.
The syntax of a do...while loop in C++ is −
do {
... | [
{
"code": null,
"e": 2468,
"s": 2318,
"text": "Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop."
},
{
"code": null,
"e": 2588,
"s": 2468,
"text": "A do...while loop is similar to ... |
Deep dive into Analytical Hierarchy Process using Python | by Anirudh Chandra | Towards Data Science | Through the course of a lifetime, a human makes a number of decisions, ranging from the most trivial ones that have almost no impact, to those that have life changing consequences. And almost always, these situations involve X number of options and Y number of criteria that they are judged on.
Imagine you are out at th... | [
{
"code": null,
"e": 467,
"s": 172,
"text": "Through the course of a lifetime, a human makes a number of decisions, ranging from the most trivial ones that have almost no impact, to those that have life changing consequences. And almost always, these situations involve X number of options and Y numb... |
Python Bokeh – Colors Class | 28 Jul, 2020
Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.
In this article, we will learn about colors in Bokeh. There are 5 ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 269,
"s": 28,
"text": "Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise co... |
Multithreading in C++ | 12 Oct, 2021
Multithreading support was introduced in C+11. Prior to C++11, we had to use POSIX threads or p threads library in C. While this library did the job the lack of any standard language provided feature-set caused serious portability issues. C++ 11 did away with all that and gave us std::thread. The thread cl... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 426,
"s": 52,
"text": "Multithreading support was introduced in C+11. Prior to C++11, we had to use POSIX threads or p threads library in C. While this library did the job the lack of any standard ... |
Draw circle in C graphics | 06 Dec, 2019
The header file graphics.h contains circle() function which draws a circle with center at (x, y) and given radius.
Syntax :
circle(x, y, radius);
where,
(x, y) is center of the circle.
'radius' is the Radius of the circle.
Examples :
Input : x = 250, y = 200, radius = 50
Output :
Input : x = 300, y = 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 167,
"s": 52,
"text": "The header file graphics.h contains circle() function which draws a circle with center at (x, y) and given radius."
},
{
"code": null,
"e": 176,
"s": 167,
... |
Lexicographically smallest array after at-most K consecutive swaps | 09 Mar, 2022
Given an array arr[], find the lexicographically smallest array that can be obtained after performing at maximum of k consecutive swaps. Examples :
Input: arr[] = {7, 6, 9, 2, 1}
k = 3
Output: arr[] = {2, 7, 6, 9, 1}
Explanation: Array is: 7, 6, 9, 2, 1
Swap 1: 7, 6, 2, 9, 1
Swap 2: 7, 2, 6, ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 204,
"s": 54,
"text": "Given an array arr[], find the lexicographically smallest array that can be obtained after performing at maximum of k consecutive swaps. Examples : "
},
{
"code": nu... |
round() in C++ | 14 Nov, 2017
round is used to round off the given digit which can be in float or double. It returns the nearest integral value to provided parameter in round function, with halfway cases rounded away from zero. Instead of round(), std::round() can also be used .Header files used -> cmath, ctgmath
Syntax :
Parameters: x... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Nov, 2017"
},
{
"code": null,
"e": 338,
"s": 53,
"text": "round is used to round off the given digit which can be in float or double. It returns the nearest integral value to provided parameter in round function, with halfway cases ... |
HTML | bgcolor attribute | 10 Jan, 2022
The HTML bgcolor attribute is used to set the background color of an HTML element. Bgcolor is one of those attributes that has become deprecated with the implementation of Cascading Style Sheets (see CSS Backgrounds).Syntax:
<"tag" bgcolor="Value">
Attribute Values:
color_name: It sets the background col... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 255,
"s": 28,
"text": "The HTML bgcolor attribute is used to set the background color of an HTML element. Bgcolor is one of those attributes that has become deprecated with the implementation of Cas... |
Send unlimited Whatsapp messages using JavaScript | 03 Jul, 2022
When it comes to web development, JavaScript can do wonders! Let me show you one more wonder of JavaScript.Wouldn’t it be cool if we can send infinite WhatsApp messages at just one click? be the first one to wish birthday/anniversaries/special events to our loved ones? schedule any message for any contact/... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Jul, 2022"
},
{
"code": null,
"e": 403,
"s": 54,
"text": "When it comes to web development, JavaScript can do wonders! Let me show you one more wonder of JavaScript.Wouldn’t it be cool if we can send infinite WhatsApp messages at ju... |
C++ Program to remove spaces from a string? | The program takes a string and removes the spaces in it. This is useful when we want to save the space of our The following sample shows how it is done with an explanation.
Input: Hello World
Output: HelloWorld
To remove or delete spaces from the string or sentence, you have to ask the user to enter a string.
Now start... | [
{
"code": null,
"e": 1235,
"s": 1062,
"text": "The program takes a string and removes the spaces in it. This is useful when we want to save the space of our The following sample shows how it is done with an explanation."
},
{
"code": null,
"e": 1273,
"s": 1235,
"text": "Input: He... |
SAP Hybris - Quick Guide | SAP Hybris is a family of product from a German company Hybris, which sells e-Commerce, Marketing, Sales, Service and Product Content Management Software. SAP Hybris provides solutions that helps any organization to cut cost, save time, reduce complexity and require lesser focus to achieve excellent customer experience... | [
{
"code": null,
"e": 2785,
"s": 2463,
"text": "SAP Hybris is a family of product from a German company Hybris, which sells e-Commerce, Marketing, Sales, Service and Product Content Management Software. SAP Hybris provides solutions that helps any organization to cut cost, save time, reduce complexit... |
Find other two sides and angles of a right angle triangle - GeeksforGeeks | 03 May, 2021
Given one side of right angle triangle, check if there exists a right angle triangle possible with any other two sides of the triangle. If possible print length of the other two sides and all the angles of the triangle.
Examples:
Input : a = 12 Output : Sides are a = 12, b = 35, c = 37 Angles are A = 1... | [
{
"code": null,
"e": 24960,
"s": 24932,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 25182,
"s": 24960,
"text": "Given one side of right angle triangle, check if there exists a right angle triangle possible with any other two sides of the triangle. If possible print length of... |
Use of Callbacks in Layered Architecture - GeeksforGeeks | 05 Feb, 2019
From OSI model of network to Operating System, any daily life project is based on layered architecture. Ever thought how the abstraction between upper layers and lower layers are created?
It is all about callbacks. So, in general upper layers are created to make things simpler and easier to use (like SDKs)... | [
{
"code": null,
"e": 24119,
"s": 24091,
"text": "\n05 Feb, 2019"
},
{
"code": null,
"e": 24307,
"s": 24119,
"text": "From OSI model of network to Operating System, any daily life project is based on layered architecture. Ever thought how the abstraction between upper layers and l... |
Concatenate string with numbers in MySQL? | To concatenate string with numbers, use the CONCAT() method. Let us first create a table −
mysql> create table DemoTable682(
Name varchar(100),
Age int
);
Query OK, 0 rows affected (0.49 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable682 values('John',23);
Query OK, 1 row... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "To concatenate string with numbers, use the CONCAT() method. Let us first create a table −"
},
{
"code": null,
"e": 1260,
"s": 1153,
"text": "mysql> create table DemoTable682(\n Name varchar(100),\n Age int\n);\nQuery OK, 0 rows ... |
Mining and Classifying Medical Documents | by Georgi Tancev | Towards Data Science | In the medical world, a lot of (digital) text documents from several specialities are generated, be it patient health records, letters, or documentation of clinical studies. In fact, text data, which is usually unstructured, contributes to the huge increase of data volume globally — social media alone. Hence, retrievin... | [
{
"code": null,
"e": 432,
"s": 47,
"text": "In the medical world, a lot of (digital) text documents from several specialities are generated, be it patient health records, letters, or documentation of clinical studies. In fact, text data, which is usually unstructured, contributes to the huge increas... |
Data Scientist vs Software Engineer Salary | Towards Data Science | IntroductionSoftware EngineerData ScientistSummaryReferences
Introduction
Software Engineer
Data Scientist
Summary
References
The goal of this article is to show the differences and similarities between two popular tech roles. This information can be helpful for determining which role you would like to pursue. It can a... | [
{
"code": null,
"e": 108,
"s": 47,
"text": "IntroductionSoftware EngineerData ScientistSummaryReferences"
},
{
"code": null,
"e": 121,
"s": 108,
"text": "Introduction"
},
{
"code": null,
"e": 139,
"s": 121,
"text": "Software Engineer"
},
{
"code": null... |
How can I create directory tree using C++ in Linux? | In this section we will see how to create a directory tree using C++ code in Linux. In Linux terminal we can put some command like “mkdir –p /dir/dir1/dir2” Here –p is used to mark as parent (recursively create inner directories).
In C++ code we can use some libraries of Linux system. Then we can use Linux terminal com... | [
{
"code": null,
"e": 1293,
"s": 1062,
"text": "In this section we will see how to create a directory tree using C++ code in Linux. In Linux terminal we can put some command like “mkdir –p /dir/dir1/dir2” Here –p is used to mark as parent (recursively create inner directories)."
},
{
"code": ... |
Data visualization with Pairplot Seaborn and Pandas - GeeksforGeeks | 22 Jun, 2021
Data Visualization is the presentation of data in pictorial format. It is extremely important for Data Analysis, primarily because of the fantastic ecosystem of data-centric Python packages. And it helps to understand the data, however, complex it is, the significance of data by summarizing and presenting ... | [
{
"code": null,
"e": 26762,
"s": 26734,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 27192,
"s": 26762,
"text": "Data Visualization is the presentation of data in pictorial format. It is extremely important for Data Analysis, primarily because of the fantastic ecosystem of da... |
Switching on and off bulb in JavaScript | Consider this following situation −
There are n bulbs that are initially off. We first turn on all the bulbs. Then, we turn off every
second bulb. On the third round, we toggle every third bulb (turning on if it's off or turning off if
it's on).
In general, for the ith round, we toggle every i bulb. And lastly for the ... | [
{
"code": null,
"e": 1098,
"s": 1062,
"text": "Consider this following situation −"
},
{
"code": null,
"e": 1308,
"s": 1098,
"text": "There are n bulbs that are initially off. We first turn on all the bulbs. Then, we turn off every\nsecond bulb. On the third round, we toggle ever... |
Python Program for Subset Sum Problem | In this article, we will learn about the solution to the problem statement given below.
Problem statement − We are given a set of non-negative integers in an array, and a value sum, we need to determine if there exists a subset of the given set with a sum equal to a given sum.
Now let’s observe the solution in the impl... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below."
},
{
"code": null,
"e": 1340,
"s": 1150,
"text": "Problem statement − We are given a set of non-negative integers in an array, and a value sum, ... |
Find nth term of a given recurrence relation in Python | Suppose we have a sequence of numbers called bn, this is represented using a recurrence relation like b1=1 and bn+1/bn=2n . We have to find the value of log2(bn) for a given n.
So, if the input is like 6, then the output will be 5 as log2(bn) = (n * (n - 1)) / 2 = (6*(6-1))/2 = 15
We can solve this problem by solving t... | [
{
"code": null,
"e": 1239,
"s": 1062,
"text": "Suppose we have a sequence of numbers called bn, this is represented using a recurrence relation like b1=1 and bn+1/bn=2n . We have to find the value of log2(bn) for a given n."
},
{
"code": null,
"e": 1344,
"s": 1239,
"text": "So, i... |
Area Charts with Plotly Express. Traces & Layout | by Darío Weitz | Towards Data Science | Plotly Express, an object-oriented interface to figure creation, was released in 2019. It is a high-level wrapper for Plotly.py that includes functions to plot standard 2D & 3D charts and choropleth maps. Fully compatible with the rest of the Plotly ecosystem, is an excellent tool for the rapid development of explorato... | [
{
"code": null,
"e": 503,
"s": 172,
"text": "Plotly Express, an object-oriented interface to figure creation, was released in 2019. It is a high-level wrapper for Plotly.py that includes functions to plot standard 2D & 3D charts and choropleth maps. Fully compatible with the rest of the Plotly ecosy... |
Apache Derby - Syntax | This chapter gives you the syntax of all the Apache Derby SQL statements.
All the statements start with any of the keywords like SELECT, INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, USE, SHOW and all the statements end with a semicolon (;).
The SQL statements of Apache Derby are case in sensitives including table names... | [
{
"code": null,
"e": 2254,
"s": 2180,
"text": "This chapter gives you the syntax of all the Apache Derby SQL statements."
},
{
"code": null,
"e": 2421,
"s": 2254,
"text": "All the statements start with any of the keywords like SELECT, INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, ... |
RxJava - ReplaySubject | ReplaySubject replays events/items to current and late Observers.
Following is the declaration for io.reactivex.subjects.ReplaySubject<T> class −
public final class ReplaySubject<T>
extends Subject<T>
Create the following Java program using any editor of your choice in, say, C:\> RxJava.
import io.reactivex.subjects.R... | [
{
"code": null,
"e": 2467,
"s": 2401,
"text": "ReplaySubject replays events/items to current and late Observers."
},
{
"code": null,
"e": 2547,
"s": 2467,
"text": "Following is the declaration for io.reactivex.subjects.ReplaySubject<T> class −"
},
{
"code": null,
"e":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.