title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to create multiple CSV files from existing CSV file using Pandas ? | 22 Jul, 2021
In this article, we will learn how to create multiple CSV files from existing CSV file using Pandas. When we enter our code into production, we will need to deal with editing our data files. Due to the large size of the data file, we will encounter more problems, so we divided this file into some small fil... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 430,
"s": 28,
"text": "In this article, we will learn how to create multiple CSV files from existing CSV file using Pandas. When we enter our code into production, we will need to deal with editing ... |
Python | Adding two list elements | 01 Dec, 2018
There can be many situations in which one requires to find index wise summation of two different lists. This can have a possible applications in day-day programming. Lets discuss various ways in which this task can be performed.
Method #1 : Naive MethodIn this method, we simply run a loop and append to the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Dec, 2018"
},
{
"code": null,
"e": 281,
"s": 52,
"text": "There can be many situations in which one requires to find index wise summation of two different lists. This can have a possible applications in day-day programming. Lets dis... |
XOR of every element of an Array with a given number K | 13 Mar, 2022
Given an array arr and a number K, find the new array formed by performing XOR of the corresponding element from the given array with the given number K.Examples:
Input: arr[] = { 2, 4, 1, 3, 5 }, K = 5 Output: 7 1 4 6 0 Explanation: 2 XOR 5 = 7 4 XOR 5 = 1 1 XOR 5 = 4 3 XOR 5 = 6 5 XOR 5 = 0 Input: arr[... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Mar, 2022"
},
{
"code": null,
"e": 217,
"s": 52,
"text": "Given an array arr and a number K, find the new array formed by performing XOR of the corresponding element from the given array with the given number K.Examples: "
},
{... |
How to Make ECDF Plot with Seaborn in Python? | 24 Jan, 2021
Prerequisites: Seaborn
In this article, we are going to make the ECDF plot with Seaborn Library.
ECDF stands for Empirical Commutative Distribution. It is more likely to use instead of the histogram for visualizing the data because the ECDF plot visualizes each and every data point of the dataset directly... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 78,
"s": 54,
"text": "Prerequisites: Seaborn"
},
{
"code": null,
"e": 152,
"s": 78,
"text": "In this article, we are going to make the ECDF plot with Seaborn Library."
},
{... |
How to Use a .dockerignore File? | 29 Oct, 2020
If you are a Docker Developer, you might have noticed that when you build a Docker Image either using a dockerfile or directly pull an image from the Docker registry, the size of the image can be considerably large depending upon your Docker Build Context.
Since Docker is a client-server application, we kn... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2020"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "If you are a Docker Developer, you might have noticed that when you build a Docker Image either using a dockerfile or directly pull an image from the Docker registry, the size... |
Smallest sum contiguous subarray | 03 Feb, 2022
Given an array containing n integers. The problem is to find the sum of the elements of the contiguous subarray having the smallest(minimum) sum.Examples:
Input : arr[] = {3, -4, 2, -3, -1, 7, -5}
Output : -6
Subarray is {-4, 2, -3, -1} = -6
Input : arr = {2, 6, 8, 1, 4}
Output : 1
Naive Approach: Con... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Feb, 2022"
},
{
"code": null,
"e": 209,
"s": 52,
"text": "Given an array containing n integers. The problem is to find the sum of the elements of the contiguous subarray having the smallest(minimum) sum.Examples: "
},
{
"co... |
C# | Thread(ParameterizedThreadStart) Constructor | 14 Sep, 2021
Thread(ParameterizedThreadStart) Constructor is used to initialize a new instance of the Thread class. It defined a delegate which allows an object to pass to the thread when the thread starts. This constructor gives ArgumentNullException if the parameter of this constructor is null.
Syntax:
public Thre... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 314,
"s": 28,
"text": "Thread(ParameterizedThreadStart) Constructor is used to initialize a new instance of the Thread class. It defined a delegate which allows an object to pass to the thread when ... |
Python | How to put limits on Memory and CPU Usage | 24 Jun, 2019
This article aims to show how to put limits on the memory or CPU use of a program running. Well to do so, Resource module can be used and thus both the task can be performed very well as shown in the code given below:
Code #1 : Restrict CPU time
# importing librariesimport signalimport resourceimport os #... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2019"
},
{
"code": null,
"e": 246,
"s": 28,
"text": "This article aims to show how to put limits on the memory or CPU use of a program running. Well to do so, Resource module can be used and thus both the task can be performed v... |
Rearrange an array such that arr[i] = i | 08 Jul, 2022
Given an array of elements of length N, ranging from 0 to N – 1. All elements may not be present in the array. If the element is not present then there will be -1 present in the array. Rearrange the array such that A[i] = i and if i is not present, display -1 at that place.
Examples:
Input : arr = {-1, -1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 327,
"s": 52,
"text": "Given an array of elements of length N, ranging from 0 to N – 1. All elements may not be present in the array. If the element is not present then there will be -1 present in ... |
Mathematical Functions in SQL | Mathematical functions are very important in SQL to implement different mathematical concepts in queries.
Some of the the major mathematical functions in SQL are as follows −
This function returns the absolute value of X. For example −
Select abs(-6);
This returns 6.
The variable X is divided by Y and their remainder i... | [
{
"code": null,
"e": 1293,
"s": 1187,
"text": "Mathematical functions are very important in SQL to implement different mathematical concepts in queries."
},
{
"code": null,
"e": 1362,
"s": 1293,
"text": "Some of the the major mathematical functions in SQL are as follows −"
},
... |
What are the template literals in ES6 ? | 10 Oct, 2021
Template Literals are literal words in programming that are used to represent some kind of fixed value and template means a blueprint that can generate some entity, Therefore, the template literals are used to generate strings of a fixed value. These are delimited with the backticks ` `, We can inject the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 381,
"s": 28,
"text": "Template Literals are literal words in programming that are used to represent some kind of fixed value and template means a blueprint that can generate some entity, Therefore,... |
Ordinal Encoding Tips | Towards Data Science | I was working with a team relatively new to business/data analytics when the group discussions on feature engineering for machine learning came up. Understandably, it may be confusing and intimidating for people new to machine learning. Working in Jupyter Notebooks and Python, we naturally would refer to 1) the built-i... | [
{
"code": null,
"e": 835,
"s": 171,
"text": "I was working with a team relatively new to business/data analytics when the group discussions on feature engineering for machine learning came up. Understandably, it may be confusing and intimidating for people new to machine learning. Working in Jupyter... |
What are the rules for a functional interface in Java? | A functional interface is a special kind of interface with exactly one abstract method in which lambda expression parameters and return types are matched. It provides target types for lambda expressions and method references.
A functional interface must have exactly one abstract method.
A functional interface has any n... | [
{
"code": null,
"e": 1288,
"s": 1062,
"text": "A functional interface is a special kind of interface with exactly one abstract method in which lambda expression parameters and return types are matched. It provides target types for lambda expressions and method references."
},
{
"code": null,... |
Difference between Yield and Return in Python - GeeksforGeeks | 20 Oct, 2020
Python YieldIt is generally used to convert a regular Python function into a generator. A generator is a special function in Python that returns a generator object to the caller. Since it stores the local variable states, hence overhead of memory allocation is controlled.
Example:
# Python3 code to demonst... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n20 Oct, 2020"
},
{
"code": null,
"e": 24590,
"s": 24317,
"text": "Python YieldIt is generally used to convert a regular Python function into a generator. A generator is a special function in Python that returns a generator object... |
Bootstrap .pager class | Get the pager links using the .pager Bootstrap class.
You can try to run the following code to implement the .pager class in Bootstrap
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "Get the pager links using the .pager Bootstrap class."
},
{
"code": null,
"e": 1197,
"s": 1116,
"text": "You can try to run the following code to implement the .pager class in Bootstrap"
},
{
"code": null,
"e": 1207,
... |
Logistic Regression: A Simplified Approach Using Python | by Surya Remanan | Towards Data Science | In Logistic Regression, we wish to model a dependent variable(Y) in terms of one or more independent variables(X). It is a method for classification. This algorithm is used for the dependent variable that is Categorical. Y is modeled using a function that gives output between 0 and 1 for all values of X. In Logistic Re... | [
{
"code": null,
"e": 547,
"s": 172,
"text": "In Logistic Regression, we wish to model a dependent variable(Y) in terms of one or more independent variables(X). It is a method for classification. This algorithm is used for the dependent variable that is Categorical. Y is modeled using a function that... |
Python | Pandas Timestamp.time - GeeksforGeeks | 14 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Timestamp.time() function return time object with same time but with tzinfo equal to N... | [
{
"code": null,
"e": 25441,
"s": 25413,
"text": "\n14 Jan, 2019"
},
{
"code": null,
"e": 25655,
"s": 25441,
"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 a... |
HTML | DOM Input Range step Property - GeeksforGeeks | 29 Mar, 2019
The DOM Input Range step Property in HTML DOM is used to set or return the value of the step attribute of the slider control. The step attribute is used to specify the size of space between two values. This attribute can be used with both min and max to create a range of values.
Syntax:
It returns the Inpu... | [
{
"code": null,
"e": 26190,
"s": 26162,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 26470,
"s": 26190,
"text": "The DOM Input Range step Property in HTML DOM is used to set or return the value of the step attribute of the slider control. The step attribute is used to specify... |
PostgreSQL - Subquery - GeeksforGeeks | 28 Aug, 2020
In this article we will discuss the process of constructing complex queries using the PostgreSQL subquery. Subqueries in the simplest term can be defined as multiple queries disguised in a single PostgreSQL command.For the sake of this article we will be using the sample DVD rental database, which is expla... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 26312,
"s": 25479,
"text": "In this article we will discuss the process of constructing complex queries using the PostgreSQL subquery. Subqueries in the simplest term can be defined as multip... |
How to Find the Antilog of Values in R? - GeeksforGeeks | 22 Dec, 2021
The antilog or anti-logarithm is the inverse process of finding log or logarithm. If q is the value of logb p then p is the antilog of q to the base b that is, q = logb p then p = antilogb q
Examples,
antilog2 3 = 8, since 23 yields 8
antilog4 2 = 16, since 42 yields 16
antilog10 4 = 10000, since 104 yield... | [
{
"code": null,
"e": 26597,
"s": 26569,
"text": "\n22 Dec, 2021"
},
{
"code": null,
"e": 26788,
"s": 26597,
"text": "The antilog or anti-logarithm is the inverse process of finding log or logarithm. If q is the value of logb p then p is the antilog of q to the base b that is, q =... |
Getting changes from a Git Repository - GeeksforGeeks | 23 Jan, 2020
Git allows performing various operations on the Repositories including the local repositories and remote repositories. The user when downloads a project to work upon, a local repository is created to store a copy of the original project. This local repository stores the changes that are being made by the u... | [
{
"code": null,
"e": 25869,
"s": 25841,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 27142,
"s": 25869,
"text": "Git allows performing various operations on the Repositories including the local repositories and remote repositories. The user when downloads a project to work up... |
How to show contents of selected row of a table in Bootstrap model using jQuery ? - GeeksforGeeks | 03 Aug, 2021
The task is to fetch data from a row of the table and show them on the bootstrap model.
Bootstrap model: The Modal component is a kind of dialog box or a popup window that is displayed on top of the present page, on clicking the provided button on the page. However, the Model automatically closes on clicki... | [
{
"code": null,
"e": 26287,
"s": 26259,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26375,
"s": 26287,
"text": "The task is to fetch data from a row of the table and show them on the bootstrap model."
},
{
"code": null,
"e": 26813,
"s": 26375,
"text": "Bo... |
Tuple Division in Python | When it is required to perform tuple division in Python, the 'zip' method and generator expressions can be used.
The zip method takes iterables, aggregates them into a tuple, and returns it as the result.
Generator is a simple way of creating iterators. It automatically implements a class with '__iter__()' and '__next_... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "When it is required to perform tuple division in Python, the 'zip' method and generator expressions can be used."
},
{
"code": null,
"e": 1267,
"s": 1175,
"text": "The zip method takes iterables, aggregates them into a tuple, and ret... |
CodeIgniter - Working with Database | Like any other framework, we need to interact with the database very often and CodeIgniter makes this job easy for us. It provides rich set of functionalities to interact with database.
In this section, we will understand how the CRUD (Create, Read, Update, Delete) functions work with CodeIgniter. We will use stud tabl... | [
{
"code": null,
"e": 2505,
"s": 2319,
"text": "Like any other framework, we need to interact with the database very often and CodeIgniter makes this job easy for us. It provides rich set of functionalities to interact with database."
},
{
"code": null,
"e": 2703,
"s": 2505,
"text... |
PHP | date_default_timezone_set() Function - GeeksforGeeks | 14 Sep, 2018
The date_default_timezone_set() function is an inbuilt function in PHP which is used to set the default timezone used by all date/time functions in a script. This function returns False if the timezone is not valid, or True otherwise.
Syntax:
bool date_default_timezone_set( $timezone_identifier )
Parameter... | [
{
"code": null,
"e": 42139,
"s": 42111,
"text": "\n14 Sep, 2018"
},
{
"code": null,
"e": 42374,
"s": 42139,
"text": "The date_default_timezone_set() function is an inbuilt function in PHP which is used to set the default timezone used by all date/time functions in a script. This ... |
How to Add Hyperlink to the Contents of a Cell using Java? - GeeksforGeeks | 17 Dec, 2020
Add a hyperlink to a content of the cell using Java and Apache POI. Apache POI is a Java library that is used to handle Microsoft Office Documents.
Installation:
There are two ways to install the Apache POI dependency in our java project:
Download below mentioned Jar files from poi.apache.org/download.htm... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 25374,
"s": 25225,
"text": "Add a hyperlink to a content of the cell using Java and Apache POI. Apache POI is a Java library that is used to handle Microsoft Office Documents. "
},
{
... |
Transitive Closure of a Graph using DFS - GeeksforGeeks | 22 Jan, 2022
Given a directed graph, find out if a vertex v is reachable from another vertex u for all vertex pairs (u, v) in the given graph. Here reachable means that there is a path from vertex u to v. The reach-ability matrix is called transitive closure of a graph.
For example, consider below graph
Transitive cl... | [
{
"code": null,
"e": 26225,
"s": 26197,
"text": "\n22 Jan, 2022"
},
{
"code": null,
"e": 26484,
"s": 26225,
"text": "Given a directed graph, find out if a vertex v is reachable from another vertex u for all vertex pairs (u, v) in the given graph. Here reachable means that there i... |
Sum of digits of a number in PL/ SQL - GeeksforGeeks | 09 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 a number and task is to find the sum of digits of the num... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n09 Jul, 2018"
},
{
"code": null,
"e": 25805,
"s": 25561,
"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,... |
numpy.ndarray.flat() in Python - GeeksforGeeks | 28 Mar, 2022
The numpy.ndarray.flat() function is used as a 1_D iterator over N-dimensional arrays. It is not a subclass of, Python’s built-in iterator object, otherwise it a numpy.flatiter instance. Syntax :
numpy.ndarray.flat()
Parameters :
index : [tuple(int)] index of the values to iterate
Return :
1-D iteratio... | [
{
"code": null,
"e": 25580,
"s": 25552,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 25777,
"s": 25580,
"text": "The numpy.ndarray.flat() function is used as a 1_D iterator over N-dimensional arrays. It is not a subclass of, Python’s built-in iterator object, otherwise it a n... |
Create a column using for loop in Pandas Dataframe - GeeksforGeeks | 08 Jan, 2019
Let’s see how to create a column in pandas dataframe using for loop. Such operation is needed sometimes when we need to process the data of dataframe created earlier for that purpose, we need this type of computation so we can process the existing data and make a separate column to store the data.
In this ... | [
{
"code": null,
"e": 26277,
"s": 26249,
"text": "\n08 Jan, 2019"
},
{
"code": null,
"e": 26576,
"s": 26277,
"text": "Let’s see how to create a column in pandas dataframe using for loop. Such operation is needed sometimes when we need to process the data of dataframe created earli... |
Python | Numpy np.assert_approx_equal() method - GeeksforGeeks | 30 Jan, 2020
With the help of np.assert_approx_equal() method, we can get the assertion error if two items are not equal up to significant digits by using np.assert_approx_equal() method.
Syntax : np.assert_approx_equal(actual, desired, significant)Return : Return the assertion error if two values are not equal.
Exampl... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n30 Jan, 2020"
},
{
"code": null,
"e": 25712,
"s": 25537,
"text": "With the help of np.assert_approx_equal() method, we can get the assertion error if two items are not equal up to significant digits by using np.assert_approx_equa... |
Blocks in PL/SQL - GeeksforGeeks | 03 Dec, 2018
In PL/SQL, All statements are classified into units that is called Blocks. PL/SQL blocks can include variables, SQL statements, loops, constants, conditional statements and exception handling. Blocks can also build a function or a procedure or a package.
Broadly, PL/SQL blocks are two types: Anonymous bloc... | [
{
"code": null,
"e": 25539,
"s": 25511,
"text": "\n03 Dec, 2018"
},
{
"code": null,
"e": 25794,
"s": 25539,
"text": "In PL/SQL, All statements are classified into units that is called Blocks. PL/SQL blocks can include variables, SQL statements, loops, constants, conditional state... |
Java Program to Convert an Array into a List - GeeksforGeeks | 09 Feb, 2022
Given an array. Your task is to convert the given array into a list in Java.
Examples:
Input: Array: [Geeks, forGeeks, A computer Portal]
Output: List: [Geeks, forGeeks, A computer Portal]
Input: Array: [1, 2, 3, 4, 5]
Output: List: [1, 2, 3, 4, 5]
Arrays: An array is a group of like-typed variables t... | [
{
"code": null,
"e": 26195,
"s": 26167,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 26272,
"s": 26195,
"text": "Given an array. Your task is to convert the given array into a list in Java."
},
{
"code": null,
"e": 26283,
"s": 26272,
"text": "Examples: "
... |
Most useful JavaScript Array Functions – Part 2 - GeeksforGeeks | 16 Mar, 2022
In Most useful JavaScript Array Functions – Part 1, we discussed two array functions namely Array.Prototype.Every() and Array.prototype.some(). It is important to note that both of these array functions accessed the array elements but did not modify/change the array itself. Today we are going to look at 2 ... | [
{
"code": null,
"e": 25865,
"s": 25837,
"text": "\n16 Mar, 2022"
},
{
"code": null,
"e": 26239,
"s": 25865,
"text": "In Most useful JavaScript Array Functions – Part 1, we discussed two array functions namely Array.Prototype.Every() and Array.prototype.some(). It is important to ... |
Perl | GET vs POST in CGI - GeeksforGeeks | 14 Jul, 2019
In Perl, Common Gateway Interface (CGI) is nothing more than a protocol which defines the interaction of web servers with some executable programs in order to produce dynamic web pages. Basically, it shows how the web server sends information to the program and the program sends the information back to the... | [
{
"code": null,
"e": 26525,
"s": 26497,
"text": "\n14 Jul, 2019"
},
{
"code": null,
"e": 27341,
"s": 26525,
"text": "In Perl, Common Gateway Interface (CGI) is nothing more than a protocol which defines the interaction of web servers with some executable programs in order to prod... |
Python - Get Function Signature - GeeksforGeeks | 29 Dec, 2020
Let’s consider a scenario where you have written a very lengthy code and want to know the function call details. So what you can do is scroll through your code each and every time for different functions to know their details or you can work smartly. You can create a code where you can get the function det... | [
{
"code": null,
"e": 25353,
"s": 25325,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 25736,
"s": 25353,
"text": "Let’s consider a scenario where you have written a very lengthy code and want to know the function call details. So what you can do is scroll through your code eac... |
Java substring() method memory leak issue and fix - GeeksforGeeks | 16 Jul, 2021
String is a special class in Java. substring() is one of the widely used methods of String class. It is used to extract part of a string and has two overloaded variants:1. substring(int beginIndex) This method is used to extract a portion of the string starting from beginIndex. Example:
Java
class GFG { ... | [
{
"code": null,
"e": 25249,
"s": 25221,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 25539,
"s": 25249,
"text": "String is a special class in Java. substring() is one of the widely used methods of String class. It is used to extract part of a string and has two overloaded var... |
C# | Convert.ToByte(String, IFormatProvider) Method - GeeksforGeeks | 02 Sep, 2021
This method is used to convert the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.Syntax:
public static byte ToByte (string value, IFormatProvider provider);
Parameters:
value: It is a string that contains the n... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 25731,
"s": 25547,
"text": "This method is used to convert the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting... |
Sum of Binomial coefficients - GeeksforGeeks | 30 Apr, 2021
Given a positive integer n, the task is to find the sum of binomial coefficient i.enC0 + nC1 + nC2 + ....... + nCn-1 + nCnExamples:
Input : n = 4
Output : 16
4C0 + 4C1 + 4C2 + 4C3 + 4C4
= 1 + 4 + 6 + 4 + 1
= 16
Input : n = 5
Output : 32
Method 1 (Brute Force): The idea is to evaluate each binomial coe... | [
{
"code": null,
"e": 26237,
"s": 26209,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 26371,
"s": 26237,
"text": "Given a positive integer n, the task is to find the sum of binomial coefficient i.enC0 + nC1 + nC2 + ....... + nCn-1 + nCnExamples: "
},
{
"code": null,
... |
How to create fullscreen search bar using HTML , CSS and JavaScript ? - GeeksforGeeks | 18 Mar, 2021
In this article, you will learn how to create a full-screen search Bar. Here You will be required to create two divs. One for the overlay container and the other for the overlay content container.
HTML Code: The first step is to create an HTML file. Here we will create the basic structure for the search ba... | [
{
"code": null,
"e": 26055,
"s": 26027,
"text": "\n18 Mar, 2021"
},
{
"code": null,
"e": 26252,
"s": 26055,
"text": "In this article, you will learn how to create a full-screen search Bar. Here You will be required to create two divs. One for the overlay container and the other f... |
Program to calculate Double Integration - GeeksforGeeks | 04 Sep, 2021
Write a program to calculate double integral numerically.
Example:
Input: Given the following integral.
where
Output: 3.915905
Explanation and Approach:
We need to decide what method we are going to use to solve the integral.In this example, we are going to use Simpson 1/3 method for both x and y integr... | [
{
"code": null,
"e": 25697,
"s": 25669,
"text": "\n04 Sep, 2021"
},
{
"code": null,
"e": 25755,
"s": 25697,
"text": "Write a program to calculate double integral numerically."
},
{
"code": null,
"e": 25764,
"s": 25755,
"text": "Example:"
},
{
"code": n... |
Rexx - Signals | In Rexx, the signal instruction is used generally for two purposes, which are −
One is to transfer control to another part of the program. This is normally like the go-to label which is used in other programming languages.
One is to transfer control to another part of the program. This is normally like the go-to label ... | [
{
"code": null,
"e": 2419,
"s": 2339,
"text": "In Rexx, the signal instruction is used generally for two purposes, which are −"
},
{
"code": null,
"e": 2562,
"s": 2419,
"text": "One is to transfer control to another part of the program. This is normally like the go-to label which... |
PHP password_verify() Function | The password_verify() function can verify that a password matches a hash.
boolean password_verify( string $password , string $hash )
The password_verify() function can verify that given hash matches the given password.
Note that the password_hash() function can return the algorithm, cost, and salt as part of a retur... | [
{
"code": null,
"e": 2832,
"s": 2757,
"text": "The password_verify() function can verify that a password matches a hash. "
},
{
"code": null,
"e": 2892,
"s": 2832,
"text": "boolean password_verify( string $password , string $hash )\n"
},
{
"code": null,
"e": 2979,
... |
Count the Number of Binary Search Trees present in a Binary Tree - GeeksforGeeks | 08 Jul, 2021
Given a binary tree, the task is to count the number of Binary Search Trees present in it.
Examples:
Input:
1
/ \
2 3
/ \ / \
4 5 6 7
Output: 4Here each leaf node represents a binary search tree and there are total 4 nodes.Input:
11
/ \
8 10
/ / \
5 9 ... | [
{
"code": null,
"e": 25226,
"s": 25198,
"text": "\n08 Jul, 2021"
},
{
"code": null,
"e": 25317,
"s": 25226,
"text": "Given a binary tree, the task is to count the number of Binary Search Trees present in it."
},
{
"code": null,
"e": 25329,
"s": 25317,
"text": ... |
How to edit a Listbox item in Tkinter? | Tkinter Listbox widget is generally used to create a list of items. It can store a list of numbers, characters and support many features like selecting and editing the list items.
To edit the Listbox items, we have to first select the item in a loop using listbox.curselection() function and insert a new item after dele... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "Tkinter Listbox widget is generally used to create a list of items. It can store a list of numbers, characters and support many features like selecting and editing the list items."
},
{
"code": null,
"e": 1504,
"s": 1242,
"text": "To... |
Android Recyclerview GridLayoutManager column spacing | This example demonstrates about Android Recyclerview GridLayoutManager column spacing
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"... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "This example demonstrates about Android Recyclerview GridLayoutManager column spacing"
},
{
"code": null,
"e": 1277,
"s": 1148,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ... |
How to display value of textbox in JavaScript? | Extract the value from text box using value and can display in paragraph using innerHTML.
Following is the code −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<link rel="styleshee... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "Extract the value from text box using value and can display in paragraph using innerHTML."
},
{
"code": null,
"e": 1176,
"s": 1152,
"text": "Following is the code −"
},
{
"code": null,
"e": 1187,
"s": 1176,
"text"... |
How to Create a Pivot Table in Python using Pandas? - GeeksforGeeks | 28 Jul, 2020
Pivot table is a statistical table that summarizes a substantial table like big datasets. It is part of data processing. This summary in pivot tables may include mean, median, sum, or other statistical terms. Pivot tables are originally associated with MS Excel but we can create a pivot table in Python usi... | [
{
"code": null,
"e": 25092,
"s": 25064,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 25445,
"s": 25092,
"text": "Pivot table is a statistical table that summarizes a substantial table like big datasets. It is part of data processing. This summary in pivot tables may include m... |
Keras - RepeatVector Layers | RepeatVector is used to repeat the input for set number, n of times. For example, if RepeatVector with argument 16 is applied to layer having input shape as (batch_size, 32), then the output shape of the layer will be (batch_size, 16, 32)
RepeatVector has one arguments and it is as follows −
keras.layers.RepeatVector(n... | [
{
"code": null,
"e": 2290,
"s": 2051,
"text": "RepeatVector is used to repeat the input for set number, n of times. For example, if RepeatVector with argument 16 is applied to layer having input shape as (batch_size, 32), then the output shape of the layer will be (batch_size, 16, 32)"
},
{
... |
Advance DAX Tutorial: Basket Analysis 2.0 | by Davis Zhang | Towards Data Science | This article aims to use DAX to analyze customer purchase behavior in Power BI and to gain insight into product potential.
Marco Russo and Alberto Ferrari have published a blog a few years ago called “Basket Analysis”, this interesting article describes in detail how to use DAX to calculate very useful measures such as... | [
{
"code": null,
"e": 294,
"s": 171,
"text": "This article aims to use DAX to analyze customer purchase behavior in Power BI and to gain insight into product potential."
},
{
"code": null,
"e": 730,
"s": 294,
"text": "Marco Russo and Alberto Ferrari have published a blog a few yea... |
ReactJS – getDerivedStateFromProps() Method | In this article, we are going to see how to execute a function before the component is rendered.
This method is called before the rendering or before any updation of the component. This method is majorly used to update the state, before the rendering of the component, which depends upon the props received by the compon... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "In this article, we are going to see how to execute a function before the component is rendered."
},
{
"code": null,
"e": 1448,
"s": 1159,
"text": "This method is called before the rendering or before any updation of the component. T... |
Merge Without Extra Space | Practice | GeeksforGeeks | Given two sorted arrays arr1[] of size N and arr2[] of size M. Each array is sorted in non-decreasing order. Merge the two arrays into one sorted array in non-decreasing order without using any extra space.
Example 1:
Input:
N = 4, M = 5
arr1[] = {1, 3, 5, 7}
arr2[] = {0, 2, 6, 8, 9}
Output: 0 1 2 3 5 6 7 8 9
Explanat... | [
{
"code": null,
"e": 445,
"s": 238,
"text": "Given two sorted arrays arr1[] of size N and arr2[] of size M. Each array is sorted in non-decreasing order. Merge the two arrays into one sorted array in non-decreasing order without using any extra space."
},
{
"code": null,
"e": 457,
"s... |
std::greater in C++ with Examples | 22 Apr, 2020
The std::greater is a functional object which is used for performing comparisons. It is defined as a Function object class for the greater-than inequality comparison. This can be used for changing the functionality of the given function. This can also be used with various standard algorithms such as sort, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 380,
"s": 52,
"text": "The std::greater is a functional object which is used for performing comparisons. It is defined as a Function object class for the greater-than inequality comparison. This ca... |
Express.js | app.route() Function | 10 Jun, 2020
The app.route() function returns an instance of a single route, which you can then use to handle HTTP verbs with optional middleware. Use app.route() to avoid duplicate route names (and thus typo errors).
Syntax:
app.route( path )
Installation of express module:
You can visit the link to Install express mo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jun, 2020"
},
{
"code": null,
"e": 233,
"s": 28,
"text": "The app.route() function returns an instance of a single route, which you can then use to handle HTTP verbs with optional middleware. Use app.route() to avoid duplicate route ... |
Python program to implement Full Adder | 09 Jun, 2021
Prerequisite : Full Adder in Digital LogicGiven three inputs of Full Adder A, B,C-IN. The task is to implement the Full Adder circuit and Print output i.e sum and C-Out of three inputs.
Full Adder : A Full Adder is a logical circuit that performs an addition operation on three one-bit binary numbers. The f... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n09 Jun, 2021"
},
{
"code": null,
"e": 239,
"s": 53,
"text": "Prerequisite : Full Adder in Digital LogicGiven three inputs of Full Adder A, B,C-IN. The task is to implement the Full Adder circuit and Print output i.e sum and C-Out of th... |
Sqrt (or Square Root) Decomposition Technique | Set 1 (Introduction) | 24 May, 2022
Sqrt (or Square Root) Decomposition Technique is one of the most common query optimization technique used by competitive programmers. This technique helps us to reduce Time Complexity by a factor of sqrt(n). The key concept of this technique is to decompose given array into small chunks specifically of siz... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 May, 2022"
},
{
"code": null,
"e": 1754,
"s": 54,
"text": "Sqrt (or Square Root) Decomposition Technique is one of the most common query optimization technique used by competitive programmers. This technique helps us to reduce Time ... |
Sum of numbers from 1 to N which are in Lucas Sequence | 22 Jun, 2022
Given a number N. The task is to find the sum of numbers from 1 to N, which are present in the Lucas Sequence.
The Lucas numbers are in the following integer sequence:
2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123 ......
Examples:
Input : N = 10
Output : 17
Input : N = 5
Output : 10
Approach:
Loop through ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 139,
"s": 28,
"text": "Given a number N. The task is to find the sum of numbers from 1 to N, which are present in the Lucas Sequence."
},
{
"code": null,
"e": 197,
"s": 139,
"tex... |
How to Improve RecyclerView Scrolling Performance in Android? | 21 Dec, 2020
RecyclerView is the main UI component in Android which is used to represent the huge list of data. If the RecyclerView is not implemented properly then it will not smoothly scrollable and it may lead to a bad user experience. To make it scrollable smoothly we have to optimize it and follow some tips to imp... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 496,
"s": 54,
"text": "RecyclerView is the main UI component in Android which is used to represent the huge list of data. If the RecyclerView is not implemented properly then it will not smoothly s... |
LogManager getLogger() method in Java with Examples | 29 Oct, 2019
The getLogger() method of java.util.logging.LogManager is used to get the specified Logger in this LogManager instance. This Logger must be a named Logger. This method will get this Logger in this LogManager if it exists. If it does not exists, then this method returns null.
Syntax:
public Logger getLogger... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 330,
"s": 54,
"text": "The getLogger() method of java.util.logging.LogManager is used to get the specified Logger in this LogManager instance. This Logger must be a named Logger. This method will g... |
jQuery UI Dialog closeOnEscape Option | 12 Jan, 2021
closeOnEscape option if set to true and the current dialog box is focused will close the dialog on pressing Escape key(esc). By default, value is true.
Syntax:
$( ".selector" ).dialog({
closeOnEscape : true
});
Approach: First, add jQuery UI scripts needed for your project.
<link href = “https://code.j... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jan, 2021"
},
{
"code": null,
"e": 180,
"s": 28,
"text": "closeOnEscape option if set to true and the current dialog box is focused will close the dialog on pressing Escape key(esc). By default, value is true."
},
{
"code": n... |
Max Circular Subarray Sum | Practice | GeeksforGeeks | Given an array arr[] of N integers arranged in a circular fashion. Your task is to find the maximum contiguous subarray sum.
Example 1:
Input:
N = 7
arr[] = {8,-8,9,-9,10,-11,12}
Output:
22
Explanation:
Starting from the last element
of the array, i.e, 12, and
moving in a circular fashion, we
have max subarray as 12... | [
{
"code": null,
"e": 363,
"s": 238,
"text": "Given an array arr[] of N integers arranged in a circular fashion. Your task is to find the maximum contiguous subarray sum."
},
{
"code": null,
"e": 375,
"s": 363,
"text": "\nExample 1:"
},
{
"code": null,
"e": 611,
"s... |
Find longest palindrome formed by removing or shuffling chars from string | 04 Jul, 2022
Given a string, find the longest palindrome that can be constructed by removing or shuffling characters from the string. Return only one palindrome if there are multiple palindrome strings of longest length.
Examples:
Input: abc
Output: a OR b OR c
Input: aabbcc
Output: abccba OR baccab OR cbaabc OR
an... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 262,
"s": 54,
"text": "Given a string, find the longest palindrome that can be constructed by removing or shuffling characters from the string. Return only one palindrome if there are multiple pali... |
Javascript Short circuiting operators | 10 Feb, 2022
Below is the example of the Short circuiting operators.
Example:<script> function gfg() { // AND short circuit document.write(false && true) document.write("</br>"); document.write(true && true) document.write("</br>"); // OR short circuit do... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 109,
"s": 53,
"text": "Below is the example of the Short circuiting operators."
},
{
"code": null,
"e": 487,
"s": 109,
"text": "Example:<script> function gfg() { /... |
jQuery | focusout() with Example | 12 Feb, 2019
The focusout() is an inbuilt method in jQuery which is used to remove focus from the selected element.Syntax:
$(selector).focusout(function);
Parameter: It accepts a parameter “function” which is to be executed after execution of fadeout method.Return Value: It returns the selected element which loses its... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "The focusout() is an inbuilt method in jQuery which is used to remove focus from the selected element.Syntax:"
},
{
"code": null,
"e": 171,
"s": 138,
"text... |
Program to print hollow Triangle pattern | 28 Jun, 2022
Given the number of lines as N, the task is to form the given hollow Triangle pattern.Examples:
Input: N = 6
Output:
************
***** *****
**** ****
*** ***
** **
* *
Approach:
Input number of rows to print from the user as N.To iterate through rows run an outer loop from num... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "Given the number of lines as N, the task is to form the given hollow Triangle pattern.Examples: "
},
{
"code": null,
"e": 225,
"s": 126,
"text": "Input: N... |
How to include one CSS file in another? | 10 May, 2022
Is it possible to include one CSS file in another? Yes, It is possible to include one CSS file in another and it can be done multiple times. Also, import multiple CSS files in the main HTML file or in the main CSS file. It can be done by using @import keyword.
Example 1:
HTML section: File name is index.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 May, 2022"
},
{
"code": null,
"e": 314,
"s": 52,
"text": "Is it possible to include one CSS file in another? Yes, It is possible to include one CSS file in another and it can be done multiple times. Also, import multiple CSS files i... |
Python math function | hypot() | 28 Aug, 2020
hypot() function is an inbuilt math function in Python that return the Euclidean norm, .
Syntax :
hypot(x, y)
Parameters :
x and y are numerical values
Returns :
Returns a float value having Euclidean norm, sqrt(x*x + y*y).
Error :
When more then two arguments are
passed, it returns a TypeError.
Note :... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 117,
"s": 28,
"text": "hypot() function is an inbuilt math function in Python that return the Euclidean norm, ."
},
{
"code": null,
"e": 126,
"s": 117,
"text": "Syntax :"
},
... |
AWS Lambda â Function in Java | In this chapter, let us understand in detail how to create a simple AWS Lambda function in Java in detail.
Before proceeding to work on creating a lambda function in AWS, we need AWS toolkit support for Eclipse. For any guidance on installation of the same, you can refer to the Environment Setup chapter in this tutoria... | [
{
"code": null,
"e": 2513,
"s": 2406,
"text": "In this chapter, let us understand in detail how to create a simple AWS Lambda function in Java in detail."
},
{
"code": null,
"e": 2729,
"s": 2513,
"text": "Before proceeding to work on creating a lambda function in AWS, we need AWS... |
How to train CNNs on ImageNet. A practical guide to using large image... | by Shivam Sharma | Towards Data Science | I’ll go over how to get the ImageNet dataset, and train your convolutional neural net on it. I’ve added some advice and learnings specific to training CNNs with PyTorch.
If you haven’t already, I recommend first trying to run your model on a sample image. When you’re starting out, it’s really tempting to jump to a big ... | [
{
"code": null,
"e": 342,
"s": 172,
"text": "I’ll go over how to get the ImageNet dataset, and train your convolutional neural net on it. I’ve added some advice and learnings specific to training CNNs with PyTorch."
},
{
"code": null,
"e": 841,
"s": 342,
"text": "If you haven’t a... |
Coding and Implementing a Relational Database using MySQL | by Craig Dickson | Towards Data Science | This is part 2 of a 3-part series taking you through the process of designing, coding, implementing and querying a relational database, starting from zero. See part 1 (Designing a Relational Database and Creating an Entity Relationship Diagram) here, and part 3 (Data Analysis in MySQL — Operators, Joins and More in Rel... | [
{
"code": null,
"e": 517,
"s": 172,
"text": "This is part 2 of a 3-part series taking you through the process of designing, coding, implementing and querying a relational database, starting from zero. See part 1 (Designing a Relational Database and Creating an Entity Relationship Diagram) here, and ... |
Generate a matrix product of two NumPy arrays - GeeksforGeeks | 29 Aug, 2020
We can multiply two matrices with the function np.matmul(a,b). When we multiply two arrays of order (m*n) and (p*q ) in order to obtained matrix product then its output contains m rows and q columns where n is n==p is a necessary condition.
Syntax: numpy.matmul(x1, x2, /, out=None, *, casting=’same_kind’,... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 24454,
"s": 24212,
"text": "We can multiply two matrices with the function np.matmul(a,b). When we multiply two arrays of order (m*n) and (p*q ) in order to obtained matrix product then its ... |
How to pass arguments in Invoke-Command in PowerShell? | To pass the argument in the Invoke-command, you need to use -ArgumentList parameter. For example, we need to get the notepad process information on the remote server.
Invoke-Command -ComputerName Test1-Win2k12 -
ScriptBlock{param($proc) Get-Process -Name $proc} -
ArgumentList "Notepad"
Handles NPM(K) PM(K) WS(K) CPU(s)... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "To pass the argument in the Invoke-command, you need to use -ArgumentList parameter. For example, we need to get the notepad process information on the remote server."
},
{
"code": null,
"e": 1349,
"s": 1229,
"text": "Invoke-Command ... |
Apache Storm - Installation | Let us now see how to install Apache Storm framework on your machine. There are three majo steps here −
Install Java on your system, if you don’t have it already.
Install ZooKeeper framework.
Install Apache Storm framework.
Use the following command to check whether you have Java already installed on your system.
$ jav... | [
{
"code": null,
"e": 2031,
"s": 1927,
"text": "Let us now see how to install Apache Storm framework on your machine. There are three majo steps here −"
},
{
"code": null,
"e": 2090,
"s": 2031,
"text": "Install Java on your system, if you don’t have it already."
},
{
"code... |
Find a value in lowercase from a MongoDB collection with documents | To find a value in lowercase, use the toLowerCase() method in MongoDB. Use the method in find() to find the value in lowercase.
Let us create a collection with documents −
> db.demo172.insertOne({"SubjectName":"MySQL"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e3838ce9e4f06af551997e1")
}
> db.demo172.i... | [
{
"code": null,
"e": 1190,
"s": 1062,
"text": "To find a value in lowercase, use the toLowerCase() method in MongoDB. Use the method in find() to find the value in lowercase."
},
{
"code": null,
"e": 1234,
"s": 1190,
"text": "Let us create a collection with documents −"
},
{
... |
Tryit Editor v3.7 | Tryit basic HTML image | [] |
Real-time Twitter Sentiment Analysis for Brand Improvement and Topic Tracking (Chapter 3/3) | by Chulong Li | Towards Data Science | This tutorial will teach you 1) how to deploy all data analytics with insights on the Heroku cloud application platform and 2) how to migrate Plotly-based data visualization to analytical dashboard web app using Dash in Python.
Note: Real-time Twitter Data Collection and Data Analytics & Sentiment Analysis were complet... | [
{
"code": null,
"e": 400,
"s": 172,
"text": "This tutorial will teach you 1) how to deploy all data analytics with insights on the Heroku cloud application platform and 2) how to migrate Plotly-based data visualization to analytical dashboard web app using Dash in Python."
},
{
"code": null,... |
Sports Reference API Intro. How to build awesome sports datasets | by Alex Muhr | Towards Data Science | This is the second installment in my weekly sports-themed series. Each week, I demonstrate applications of data science centered around sports.
Last week in my article Beating the Odds I demonstrated how to build a dataset on NBA teams using the Sports Reference API, then used the dataset to find teams which outperform... | [
{
"code": null,
"e": 315,
"s": 171,
"text": "This is the second installment in my weekly sports-themed series. Each week, I demonstrate applications of data science centered around sports."
},
{
"code": null,
"e": 641,
"s": 315,
"text": "Last week in my article Beating the Odds I... |
Maximum path sum in a triangle. - GeeksforGeeks | 07 Apr, 2022
We have given numbers in form of triangle, by starting at the top of the triangle and moving to adjacent numbers on the row below, find the maximum total from top to bottom. Examples :
Input :
3
7 4
2 4 6
8 5 9 3
Output : 23
Explanation : 3 + 7 + 4 + 9 = 23
Input :
8
-4 4
2 2 6
1 1 1 1
Outp... | [
{
"code": null,
"e": 25024,
"s": 24996,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 25211,
"s": 25024,
"text": "We have given numbers in form of triangle, by starting at the top of the triangle and moving to adjacent numbers on the row below, find the maximum total from top ... |
Standing Out From the Cloud: How to Shape and Format a Word Cloud | by Andrew Jamieson | Towards Data Science | This blog will cover Word Clouds, their limitations, followed by some formatting examples.
Word Clouds are a straightforward way to summarize text and make the most popular words jump to your attention. They are eye-catching and easy to understand without the need for any additional explanation.
However, Word Clouds do... | [
{
"code": null,
"e": 263,
"s": 172,
"text": "This blog will cover Word Clouds, their limitations, followed by some formatting examples."
},
{
"code": null,
"e": 469,
"s": 263,
"text": "Word Clouds are a straightforward way to summarize text and make the most popular words jump to... |
CSS - @ Rules | This chapter will cover the following important @ rules −
The @import: rule imports another style sheet into the current style sheet.
The @import: rule imports another style sheet into the current style sheet.
The @charset rule indicates the character set the style sheet uses.
The @charset rule indicates the character ... | [
{
"code": null,
"e": 2684,
"s": 2626,
"text": "This chapter will cover the following important @ rules −"
},
{
"code": null,
"e": 2760,
"s": 2684,
"text": "The @import: rule imports another style sheet into the current style sheet."
},
{
"code": null,
"e": 2836,
"... |
GATE | GATE-CS-2015 (Set 2) | Question 65 - GeeksforGeeks | 28 Jun, 2021
Consider two relations R1(A, B) with the tuples (1, 5), (3, 7) and R1(A, C) = (1, 7), (4, 9). Assume that R(A,B,C) is the full natural outer join of R1 and R2. Consider the following tuples of the form (A,B,C)
a = (1, 5, null),
b = (1, null, 7),
c = (3, null, 9),
d = (4, 7, null),
e = (1, 5, 7... | [
{
"code": null,
"e": 24177,
"s": 24149,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24387,
"s": 24177,
"text": "Consider two relations R1(A, B) with the tuples (1, 5), (3, 7) and R1(A, C) = (1, 7), (4, 9). Assume that R(A,B,C) is the full natural outer join of R1 and R2. Con... |
Conditional Random Field Tutorial in PyTorch 🔥 | by Freddy Boulton | Towards Data Science | Let’s say I have two identical dice, but one is fair and the other is loaded such that number 6 appears with 80% probability, while numbers 1–5 are equally likely with 4% probability. If I gave you a sequence of 15 rolls, could you predict which dice I used for each roll?
A simple model would be to predict I used the b... | [
{
"code": null,
"e": 444,
"s": 171,
"text": "Let’s say I have two identical dice, but one is fair and the other is loaded such that number 6 appears with 80% probability, while numbers 1–5 are equally likely with 4% probability. If I gave you a sequence of 15 rolls, could you predict which dice I us... |
What is Label Smoothing?. A technique to make your model less... | by Wanshun Wong | Towards Data Science | When using deep learning models for classification tasks, we usually encounter the following problems: overfitting, and overconfidence. Overfitting is well studied and can be tackled with early stopping, dropout, weight regularization etc. On the other hand, we have less tools to tackle overconfidence. Label smoothing ... | [
{
"code": null,
"e": 552,
"s": 172,
"text": "When using deep learning models for classification tasks, we usually encounter the following problems: overfitting, and overconfidence. Overfitting is well studied and can be tackled with early stopping, dropout, weight regularization etc. On the other ha... |
How to create a Calendar with CSS? | To create a calendar with CSS, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
* {
box-sizing: border-box;
}
.calender {
border: 1px solid darkorchid;
}
.month {
padding: 50px;
... | [
{
"code": null,
"e": 1118,
"s": 1062,
"text": "To create a calendar with CSS, the code is as follows −"
},
{
"code": null,
"e": 1129,
"s": 1118,
"text": " Live Demo"
},
{
"code": null,
"e": 3455,
"s": 1129,
"text": "<!DOCTYPE html>\n<html>\n<head>\n<style>\n ... |
Replace two substrings (of a string) with each other - GeeksforGeeks | 17 Dec, 2021
Given 3 strings S, A and B. The task is to replace every sub-string of S equal to A with B and every sub-string of S equal to B with A. It is possible that two or more sub-strings matching A or B overlap. To avoid confusion about this situation, you should find the leftmost sub-string that matches A or B, ... | [
{
"code": null,
"e": 25328,
"s": 25300,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 25794,
"s": 25328,
"text": "Given 3 strings S, A and B. The task is to replace every sub-string of S equal to A with B and every sub-string of S equal to B with A. It is possible that two or ... |
HTML DOM Style display Property | The HTML DOM Style display property is used for setting or returning the display type of an element. Elements are mostly block or inline. You can also hide the element using display:none.
Following is the syntax for −
Setting the display property −
object.style.display = value
The above property value is explained as f... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "The HTML DOM Style display property is used for setting or returning the display type of an element. Elements are mostly block or inline. You can also hide the element using display:none."
},
{
"code": null,
"e": 1280,
"s": 1250,
"te... |
How to use lastIndexOf () in Android textview? | This example demonstrate about How to use lastIndexOf () in Android textview.
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"?>
<LinearLa... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "This example demonstrate about How to use lastIndexOf () in Android textview."
},
{
"code": null,
"e": 1269,
"s": 1140,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ... |
TestNG - Basic Annotations - AfterMethod | @AfterMethod annotated method will be run after each test method i.e say there are three test methods (i.e test cases), then @AfterMethod annotated method will be called thrice after each test method.
The following is a list of attributes supported by the @AfterMethod annotation:
alwaysRun
For before methods (AfterClas... | [
{
"code": null,
"e": 2261,
"s": 2060,
"text": "@AfterMethod annotated method will be run after each test method i.e say there are three test methods (i.e test cases), then @AfterMethod annotated method will be called thrice after each test method."
},
{
"code": null,
"e": 2341,
"s": ... |
24-hour time in Python | Suppose we have a string s. Here s is representing a 12-hour clock time with suffixes am or pm, we have to find its 24-hour equivalent.
So, if the input is like "08:40pm", then the output will be "20:40"
To solve this, we will follow these steps −
hour := (convert the substring of s [from index 0 to 2] as integer) mod ... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "Suppose we have a string s. Here s is representing a 12-hour clock time with suffixes am or pm, we have to find its 24-hour equivalent."
},
{
"code": null,
"e": 1266,
"s": 1198,
"text": "So, if the input is like \"08:40pm\", then the... |
How to set subtitle for action bar in android? | This example demonstrates How to set subtitle for action bar 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"?>
<LinearLay... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "This example demonstrates How to set subtitle for action bar in android."
},
{
"code": null,
"e": 1264,
"s": 1135,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to cr... |
Passing Hashes to Subroutines in Perl | When you supply a hash to a Perl subroutine or operator that accepts a list, then the hash is automatically translated into a list of key/value pairs. For example −
Live Demo
#!/usr/bin/perl
# Function definition
sub PrintHash {
my (%hash) = @_;
foreach my $key ( keys %hash ) {
my $value = $hash{$key};
... | [
{
"code": null,
"e": 1227,
"s": 1062,
"text": "When you supply a hash to a Perl subroutine or operator that accepts a list, then the hash is automatically translated into a list of key/value pairs. For example −"
},
{
"code": null,
"e": 1238,
"s": 1227,
"text": " Live Demo"
},
... |
Unpacking a Tuple in Python | Python offers immutable data types known as tuples. In this article, we will learn about packing an unpacking tuple type in Python 3.x. Or earlier.
Python offers a very powerful tuple assignment tool that maps right hand side arguments into left hand side arguments. THis act of mapping together is known as unpacking of... | [
{
"code": null,
"e": 1210,
"s": 1062,
"text": "Python offers immutable data types known as tuples. In this article, we will learn about packing an unpacking tuple type in Python 3.x. Or earlier."
},
{
"code": null,
"e": 1511,
"s": 1210,
"text": "Python offers a very powerful tupl... |
How to multiply a matrix columns and rows with the same matrix rows and columns in R? | To multiply a rows or columns of a matrix, we need to use %*% symbol that perform the multiplication for matrices in R. If we have a matrix M with 5 rows and 5 columns then row 1 of M can be multiplied with column 1 of M using M[1,]%*%M[,1], similarly, we can multiply other rows and columns.
Live Demo
M<−matrix(1:100,... | [
{
"code": null,
"e": 1355,
"s": 1062,
"text": "To multiply a rows or columns of a matrix, we need to use %*% symbol that perform the multiplication for matrices in R. If we have a matrix M with 5 rows and 5 columns then row 1 of M can be multiplied with column 1 of M using M[1,]%*%M[,1], similarly, ... |
How to create an HTML Document? | An HTML document defines the structure of HTML web page. It contains two distinct parts, the head, and the body. The head contains information about the document. The body part contains the content of the document, which gets displayed.
Just keep in mind that you should use the head part inside <head>...</head> tags. T... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "An HTML document defines the structure of HTML web page. It contains two distinct parts, the head, and the body. The head contains information about the document. The body part contains the content of the document, which gets displayed."
},
{
"c... |
How do I call a JavaScript function on page load? | To call a function on page load, use −
window.onload
You can try to run the following code to implement a JavaScript function on page load
Live Demo
<!DOCTYPE html>
<html>
<body>
<script>
function alertFunction() {
alert('ok');
}
window.onload = alertFunction;
</scr... | [
{
"code": null,
"e": 1101,
"s": 1062,
"text": "To call a function on page load, use −"
},
{
"code": null,
"e": 1115,
"s": 1101,
"text": "window.onload"
},
{
"code": null,
"e": 1201,
"s": 1115,
"text": "You can try to run the following code to implement a JavaS... |
How to concatenate two or more vectors in R ? - GeeksforGeeks | 05 Apr, 2021
In this article, we will see how to concatenate two or more vectors in R Programming Language.
To concatenate two or more vectors in r we can use the combination function in R. Let’s assume we have 3 vectors vec1, vec2, vec3 the concatenation of these vectors can be done as c(vec1, vec2, vec3). Also, we c... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 25338,
"s": 25242,
"text": "In this article, we will see how to concatenate two or more vectors in R Programming Language. "
},
{
"code": null,
"e": 25633,
"s": 25338,
"te... |
Python Penetration Testing - SQLi Web Attack | The SQL injection is a set of SQL commands that are placed in a URL string or in data structures in order to retrieve a response that we want from the databases that are connected with the web applications. This type of attacksk generally takes place on webpages developed using PHP or ASP.NET.
An SQL injection attack c... | [
{
"code": null,
"e": 2152,
"s": 1857,
"text": "The SQL injection is a set of SQL commands that are placed in a URL string or in data structures in order to retrieve a response that we want from the databases that are connected with the web applications. This type of attacksk generally takes place on... |
DirectX - Compute Shaders | In 3D programming, compute shader is a programmable shader stage which calls for the respective buffer. It expands the feature of Microsoft Direct3Dt3d version 11. The shader technology which is included is DirectCOMPUTE technology.
Like vertex and geometry which we discussed in the last chapter, a compute shader is de... | [
{
"code": null,
"e": 2531,
"s": 2298,
"text": "In 3D programming, compute shader is a programmable shader stage which calls for the respective buffer. It expands the feature of Microsoft Direct3Dt3d version 11. The shader technology which is included is DirectCOMPUTE technology."
},
{
"code"... |
Program to find sum of elements in a given array in C++ | In this problem, we are given an array arr[] of n integer values. Our task is to create a Program to find sum of elements in a given array in C++.
Program Description − For the given array, we will add up all elements and return the sum.
Let’s take an example to understand the problem
arr[] = {3, 1, 7, 2, 9, 10}
32
Sum... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "In this problem, we are given an array arr[] of n integer values. Our task is to create a Program to find sum of elements in a given array in C++."
},
{
"code": null,
"e": 1300,
"s": 1209,
"text": "Program Description − For the given... |
Count of number of given string in 2D character array in C++ | The following problem is an example of daily newspaper crossword, here we are given a 2-Dimensional character array and the problem statement is to find out the given word from the 2-Dimensional character array maze.The search algorithm includes finding the individual characters from Top-to-Bottom,Right-to-Left and vic... | [
{
"code": null,
"e": 1410,
"s": 1062,
"text": "The following problem is an example of daily newspaper crossword, here we are given a 2-Dimensional character array and the problem statement is to find out the given word from the 2-Dimensional character array maze.The search algorithm includes finding... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.