title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Install Pygame in MacOS | 09 May, 2021
PyGame is a collection of modules that break through the language of Python applications. These modules are designed to edit video games. PyGame, therefore, includes computer graphics and audio libraries created for the use and language of Python programs.
At first, open the Terminal which is located at Ap... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "PyGame is a collection of modules that break through the language of Python applications. These modules are designed to edit video games. PyGame, therefore, includes computer ... |
Python | All occurrences of substring in string | 25 Jun, 2019
Many times while working with strings, we have problems dealing with substrings. This may include the problem of finding all positions of a particular substrings in a string. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using list comprehension + startswith()This task can be ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 292,
"s": 53,
"text": "Many times while working with strings, we have problems dealing with substrings. This may include the problem of finding all positions of a particular substrings in a string.... |
EIGRP Configuration | 03 Dec, 2021
Prerequisite – EIGRP fundamentalsEnhanced Interior Gateway Routing Protocol (EIGRP) is a dynamic routing network-layer Protocol which works on protocol number 88. EIGRP supports classless routing, VLSM, route summarization, load balancing, and many other useful features. It is a Cisco proprietary protocol,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 476,
"s": 28,
"text": "Prerequisite – EIGRP fundamentalsEnhanced Interior Gateway Routing Protocol (EIGRP) is a dynamic routing network-layer Protocol which works on protocol number 88. EIGRP suppor... |
Python | Math operations for Data analysis | 18 Aug, 2021
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.There are some important math operations that can be performed on a pandas series to simplify ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 410,
"s": 52,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes im... |
What is the meaning of the ‘detached HEAD’ state in git? | Explanation − In git HEAD is a reference pointer and points to the current commit in the current branch. The below diagram shows that there are two commits ‘Commit#1’ and ‘Commit#2’, where ‘Commit#2’ is the latest commit. Every commit in Git will have a reference to its previous commit. Here, ‘Commit#2’ will have a ref... | [
{
"code": null,
"e": 1722,
"s": 1187,
"text": "Explanation − In git HEAD is a reference pointer and points to the current commit in the current branch. The below diagram shows that there are two commits ‘Commit#1’ and ‘Commit#2’, where ‘Commit#2’ is the latest commit. Every commit in Git will have a... |
The importance of layered thinking in data engineering | by Joel Schwarzmann | Towards Data Science | Are you a data scientist or data engineer keen to build sustainable and robust data pipelines? Then this article is for you! We’ll walk through a real-world example and by the end of this article you’ll understand why you need a layered data engineering convention to avoid the mistakes we made in the past 🙈. We are Qu... | [
{
"code": null,
"e": 563,
"s": 171,
"text": "Are you a data scientist or data engineer keen to build sustainable and robust data pipelines? Then this article is for you! We’ll walk through a real-world example and by the end of this article you’ll understand why you need a layered data engineering c... |
Generate Random Variable Using Inverse Transform Method in Python | by Raden Aurelius Andhika Viadinugroho | Towards Data Science | Motivation
In simulation theory, generating random variables become one of the most important “building block”, where these random variables are mostly generated from Uniform distributed random variable. One of the methods that can be used to generate the random variables is the Inverse Transform method. In this articl... | [
{
"code": null,
"e": 183,
"s": 172,
"text": "Motivation"
},
{
"code": null,
"e": 626,
"s": 183,
"text": "In simulation theory, generating random variables become one of the most important “building block”, where these random variables are mostly generated from Uniform distributed... |
7 Best UI Graphics Tools For Python Developers With Starter Codes | by Bharath K | Towards Data Science | Python is such a versatile language that it can accomplish most tasks that different programming languages are meant to achieve. Although Python is used more frequently for applications and projects related to artificial intelligence, data science, data visualizations, data analytics, and other similar operations, we a... | [
{
"code": null,
"e": 657,
"s": 172,
"text": "Python is such a versatile language that it can accomplish most tasks that different programming languages are meant to achieve. Although Python is used more frequently for applications and projects related to artificial intelligence, data science, data v... |
Construct Tree from Inorder & Preorder | Practice | GeeksforGeeks | Given 2 Arrays of Inorder and preorder traversal. Construct a tree and print the Postorder traversal.
Example 1:
Input:
N = 4
inorder[] = {1 6 8 7}
preorder[] = {1 6 7 8}
Output: 8 7 6 1
Example 2:
Input:
N = 6
inorder[] = {3 1 4 0 5 2}
preorder[] = {0 1 3 4 2 5}
Output: 3 4 1 5 2 0
Explanation: The tree will look li... | [
{
"code": null,
"e": 341,
"s": 238,
"text": "Given 2 Arrays of Inorder and preorder traversal. Construct a tree and print the Postorder traversal. "
},
{
"code": null,
"e": 352,
"s": 341,
"text": "Example 1:"
},
{
"code": null,
"e": 427,
"s": 352,
"text": "Inp... |
How to set background image of a webpage? | To set the background image of a webpage, use the CSS style. Under the CSS <style> tag, add the property background-image. The property sets a graphic such as jpg, png, svg, gif, etc. HTML5 do not support the <body> background attribute, so CSS is used to change set background image.
You can try the following code to s... | [
{
"code": null,
"e": 1347,
"s": 1062,
"text": "To set the background image of a webpage, use the CSS style. Under the CSS <style> tag, add the property background-image. The property sets a graphic such as jpg, png, svg, gif, etc. HTML5 do not support the <body> background attribute, so CSS is used ... |
C library function - sprintf() | The C library function int sprintf(char *str, const char *format, ...) sends formatted output to a string pointed to, by str.
Following is the declaration for sprintf() function.
int sprintf(char *str, const char *format, ...)
str − This is the pointer to an array of char elements where the resulting C string is stored... | [
{
"code": null,
"e": 2133,
"s": 2007,
"text": "The C library function int sprintf(char *str, const char *format, ...) sends formatted output to a string pointed to, by str."
},
{
"code": null,
"e": 2186,
"s": 2133,
"text": "Following is the declaration for sprintf() function."
... |
OpenShift - Administration | In this chapter, we will cover topics such as how to manage a node, configure a service account, etc.
In OpenShift, we need to use the start command along with OC to boot up a new server. While launching a new master, we need to use the master along with the start command, whereas while starting the new node we need to... | [
{
"code": null,
"e": 2050,
"s": 1948,
"text": "In this chapter, we will cover topics such as how to manage a node, configure a service account, etc."
},
{
"code": null,
"e": 2510,
"s": 2050,
"text": "In OpenShift, we need to use the start command along with OC to boot up a new se... |
One Hot Encoding, Standardization, PCA: Data preparation for segmentation in python | by Indraneel Dutta Baruah | Towards Data Science | Data driven customer targeting or product bundling are critical for businesses to stay relevant against the intense competition they face. Consumers are now spoilt for choice and prefer personalized product offerings. With the coming of the fourth industrial revolution in the form of the immense growth of artificial in... | [
{
"code": null,
"e": 918,
"s": 172,
"text": "Data driven customer targeting or product bundling are critical for businesses to stay relevant against the intense competition they face. Consumers are now spoilt for choice and prefer personalized product offerings. With the coming of the fourth industr... |
How to create a graph in R using ggplot2 with all the four quadrants? | The default graph created by using ggplot2 package shows the axes labels depending on the starting and ending values of the column of the data frame or vector but we might want to visualize it just like we do in paper form of graphs that shows all of the four quadrants. This can be done by using xlim, ylim, geom_hline,... | [
{
"code": null,
"e": 1449,
"s": 1062,
"text": "The default graph created by using ggplot2 package shows the axes labels depending on the starting and ending values of the column of the data frame or vector but we might want to visualize it just like we do in paper form of graphs that shows all of th... |
Improve data quality by using the pandas library and Python | by Anthony Figueroa | Towards Data Science | Data quality is a broad concept with multiple dimensions. I detail that information in another introductory article. This tutorial explores a real-life example. We identify what we want to improve, create the code to achieve our goals, and wrap up with some comments about things that can happen in real-life situations.... | [
{
"code": null,
"e": 552,
"s": 172,
"text": "Data quality is a broad concept with multiple dimensions. I detail that information in another introductory article. This tutorial explores a real-life example. We identify what we want to improve, create the code to achieve our goals, and wrap up with so... |
Poisson Distribution Explained — Intuition, Examples, and Derivation | Towards Data Science | Before setting the parameter λ and plugging it into the formula, let’s pause a second and ask a question.
Why did Poisson have to invent the Poisson Distribution?
Why does this distribution exist (= why did he invent this)?
When should Poisson be used for modeling?
To predict the # of events occurring in the future!
Mo... | [
{
"code": null,
"e": 277,
"s": 171,
"text": "Before setting the parameter λ and plugging it into the formula, let’s pause a second and ask a question."
},
{
"code": null,
"e": 334,
"s": 277,
"text": "Why did Poisson have to invent the Poisson Distribution?"
},
{
"code": n... |
Tailwind CSS Background Opacity - GeeksforGeeks | 23 Mar, 2022
This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. The bg-opacity is the class of an element that describes the transparency of the element. It is the alternative to the CSS Opacity / Transparency.
Background Opacity class:
background-opacity-0: Control ... | [
{
"code": null,
"e": 37385,
"s": 37357,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 37636,
"s": 37385,
"text": "This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. The bg-opacity is the class of an element that describes th... |
tf.transpose() function in TensorFlow - GeeksforGeeks | 01 Jun, 2020
tf.transpose() is a function provided in TensorFlow. This function is used to transpose the input tensor.
Syntax: tf.transpose(input_tensor, perm, conjugate)
Parameters:input_tensor: as the name suggests it is the tensor which is to be transposed.Type: Tensor
perm: This parameters specifies the permutation... | [
{
"code": null,
"e": 25991,
"s": 25963,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 26097,
"s": 25991,
"text": "tf.transpose() is a function provided in TensorFlow. This function is used to transpose the input tensor."
},
{
"code": null,
"e": 26149,
"s": 2609... |
Generic Implementation of QuickSort Algorithm in C - GeeksforGeeks | 24 Sep, 2018
Write a function to implement quicksort algorithm that will work for all types of data i.e ints, floats, chars etc.It should accept all types of data and show the sorted data as output.
Note: This function is similar to C standard library function qsort().
Examples:
First Input as a string.
Input :abc cad ... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n24 Sep, 2018"
},
{
"code": null,
"e": 26465,
"s": 26279,
"text": "Write a function to implement quicksort algorithm that will work for all types of data i.e ints, floats, chars etc.It should accept all types of data and show the ... |
Iterator Interface In Java - GeeksforGeeks | 09 Nov, 2020
Java Iterator Interface of java collections allows us to access elements of the collection and is used to iterate over the elements in the collection(Map, List or Set). It helps to easily retrieve the elements of a collection and perform operations on each element. Iterator is a universal iterator as it ca... | [
{
"code": null,
"e": 25249,
"s": 25221,
"text": "\n09 Nov, 2020"
},
{
"code": null,
"e": 25967,
"s": 25249,
"text": "Java Iterator Interface of java collections allows us to access elements of the collection and is used to iterate over the elements in the collection(Map, List or ... |
Draw Spiraling Square using Turtle in Python - GeeksforGeeks | 18 Aug, 2020
Prerequisite: Python Turtle Basic
Turtle is an inbuilt module of python. It enables us to draw any drawing by a turtle, methods defined in the turtle module and by using some logical loops. To draw something on the screen(cardboard) just move the turtle(pen). To move turtle(pen) there are some functions i.... | [
{
"code": null,
"e": 25581,
"s": 25553,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 25615,
"s": 25581,
"text": "Prerequisite: Python Turtle Basic"
},
{
"code": null,
"e": 25918,
"s": 25615,
"text": "Turtle is an inbuilt module of python. It enables us to ... |
Logical Not ! operator in C with Examples - GeeksforGeeks | 15 Oct, 2019
! is a type of Logical Operator and is read as “NOT” or “Logical NOT“. This operator is used to perform “logical NOT” operation, i.e. the function similar to Inverter gate in digital electronics.
Syntax:
!Condition
// returns true if the conditions is false
// else returns false
Below is an example to de... | [
{
"code": null,
"e": 25478,
"s": 25450,
"text": "\n15 Oct, 2019"
},
{
"code": null,
"e": 25674,
"s": 25478,
"text": "! is a type of Logical Operator and is read as “NOT” or “Logical NOT“. This operator is used to perform “logical NOT” operation, i.e. the function similar to Inver... |
Maximum LCM among all pairs (i, j) from the given Array - GeeksforGeeks | 15 Jun, 2021
Given an array arr[], the task is to find the maximum LCM when the elements of the array are taken in pairs.
Examples:
Input: arr[] = {17, 3, 8, 6} Output: 136 Explanation: Respective Pairs with their LCM are: {8, 17} has LCM 136, {3, 17} has LCM 51, {6, 17} has LCM 102, {3, 8} has LCM 24, {3, 6} has LCM 6... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n15 Jun, 2021"
},
{
"code": null,
"e": 26070,
"s": 25961,
"text": "Given an array arr[], the task is to find the maximum LCM when the elements of the array are taken in pairs."
},
{
"code": null,
"e": 26080,
"s": 2... |
Python - Uniform Distribution in Statistics - GeeksforGeeks | 10 Jan, 2020
scipy.stats.uniform() is a Uniform continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution.
Parameters :
q : lower and upper tail probabilityx : quantilesloc : [optiona... | [
{
"code": null,
"e": 25553,
"s": 25525,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 25784,
"s": 25553,
"text": "scipy.stats.uniform() is a Uniform continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes ... |
How to modify HTML using BeautifulSoup ? - GeeksforGeeks | 15 Mar, 2021
BeautifulSoup in Python helps in scraping the information from web pages made of HTML or XML. Not only it involves scrapping data but also involves searching, modifying, and iterating the parse tree. In this article, we will discuss modifying the content directly on the HTML web page using BeautifulSoup.
S... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 25843,
"s": 25537,
"text": "BeautifulSoup in Python helps in scraping the information from web pages made of HTML or XML. Not only it involves scrapping data but also involves searching, modi... |
Swap Two Variables in One Line - GeeksforGeeks | 21 Jan, 2022
We have discussed different approaches to swap two integers without the temporary variable. How to swap into a single line without using the library function?1) Python: In Python, there is a simple and syntactically neat construct to swap variables, we just need to write “x, y = y, x”.2) C/C++: Below is on... | [
{
"code": null,
"e": 25401,
"s": 25373,
"text": "\n21 Jan, 2022"
},
{
"code": null,
"e": 25750,
"s": 25401,
"text": "We have discussed different approaches to swap two integers without the temporary variable. How to swap into a single line without using the library function?1) Py... |
How can you delete a record from a table using MySQL in Python? | We may at times need to delete certain rows from a table. Suppose, we have a table of details of students in the class. It is possible that one of the students left the class and hence, we do not require the details of that particular student. Hence, we need to delete that particular row or record from the table.
The “... | [
{
"code": null,
"e": 1377,
"s": 1062,
"text": "We may at times need to delete certain rows from a table. Suppose, we have a table of details of students in the class. It is possible that one of the students left the class and hence, we do not require the details of that particular student. Hence, we... |
Java program to convert a Set to an array | The Set object provides a method known as toArray(). This method accepts an empty array as argument, converts the current Set to an array and places in the given array. To convert a Set object to an array −
Create a Set object.
Add elements to it.
Create an empty array with size of the created Set.
Convert the Set ... | [
{
"code": null,
"e": 1269,
"s": 1062,
"text": "The Set object provides a method known as toArray(). This method accepts an empty array as argument, converts the current Set to an array and places in the given array. To convert a Set object to an array −"
},
{
"code": null,
"e": 1291,
... |
Java Program to get prime numbers using the Sieve of Eratosthenes algorithm | To find all prime numbers up to any given limit, use the Sieve of Eratosthenes algorithm. At first we have set the value to be checked −
int val = 30;
Now, we have taken a boolean array with a length one more than the val −
boolean[] isprime = new boolean[val + 1];
Loop through val and set numbers as TRUE. Also, set 0 ... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "To find all prime numbers up to any given limit, use the Sieve of Eratosthenes algorithm. At first we have set the value to be checked −"
},
{
"code": null,
"e": 1213,
"s": 1199,
"text": "int val = 30;"
},
{
"code": null,
... |
Introducing DataJob — build and deploy a serverless data pipeline on AWS | by Vincent Claes | Towards Data Science | One of the core activities of a data engineer is to build, deploy, run and monitor data pipelines. While working in the field of data and ML engineering I lacked a tool that eased the process of deploying my data pipeline on AWS services like Glue and Sagemaker and how to easily orchestrate the steps of my data pipelin... | [
{
"code": null,
"e": 547,
"s": 172,
"text": "One of the core activities of a data engineer is to build, deploy, run and monitor data pipelines. While working in the field of data and ML engineering I lacked a tool that eased the process of deploying my data pipeline on AWS services like Glue and Sag... |
How to add background color to a div in Bootstrap ? - GeeksforGeeks | 09 Aug, 2021
Bootstrap provides many classes to set the background color of an element. We can easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Some classes of background colors are listed below example.
We can add background color to a... | [
{
"code": null,
"e": 24033,
"s": 24005,
"text": "\n09 Aug, 2021"
},
{
"code": null,
"e": 24308,
"s": 24033,
"text": "Bootstrap provides many classes to set the background color of an element. We can easily set the background of an element to any contextual class. Anchor component... |
Python break, continue and pass Statements | You might face a situation in which you need to exit a loop completely when an external condition is triggered or there may also be a situation when you want to skip a part of the loop and start next execution.
Python provides break and continue statements to handle such situations and to have good control on your loop... | [
{
"code": null,
"e": 2455,
"s": 2244,
"text": "You might face a situation in which you need to exit a loop completely when an external condition is triggered or there may also be a situation when you want to skip a part of the loop and start next execution."
},
{
"code": null,
"e": 2566,... |
How do we compare the elements of two lists in Python? | The method cmp() compares elements of two lists. If elements are of the same type, it performs the compare and returns the result. If elements are different types, it checks to see if they are numbers. If they are numbers, it performs type coercion if necessary and compares. If either element is a number, then the othe... | [
{
"code": null,
"e": 1482,
"s": 1062,
"text": "The method cmp() compares elements of two lists. If elements are of the same type, it performs the compare and returns the result. If elements are different types, it checks to see if they are numbers. If they are numbers, it performs type coercion if n... |
Sort prime numbers of an array in descending order | 11 May, 2021
Given an array of integers ‘arr’, the task is to sort all the prime numbers from the array in descending order in their relative positions i.e. other positions of the other elements must not be affected.Examples:
Input: arr[] = {2, 5, 8, 4, 3}
Output: 5 3 8 4 2
Input: arr[] = {10, 12, 2, 6, 5}
Output: 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 267,
"s": 52,
"text": "Given an array of integers ‘arr’, the task is to sort all the prime numbers from the array in descending order in their relative positions i.e. other positions of the other e... |
Internal working of list in Python | 09 Dec, 2021
Introduction to Python lists : Python lists are internally represented as arrays. The idea used is similar to implementation of vectors in C++ or ArrayList in Java. The costly operations are inserting and deleting items near the beginning (as everything has to be moved). Insert at the end also becomes cost... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 455,
"s": 53,
"text": "Introduction to Python lists : Python lists are internally represented as arrays. The idea used is similar to implementation of vectors in C++ or ArrayList in Java. The costl... |
Express.js req.params Property | 08 Jul, 2020
The req.params property is an object containing properties mapped to the named route “parameters”. For example, if you have the route /student/:id, then the “id” property is available as req.params.id. This object defaults to {}.
Syntax:
req.params
Parameter: No parameters.
Return Value: Object
Installatio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 258,
"s": 28,
"text": "The req.params property is an object containing properties mapped to the named route “parameters”. For example, if you have the route /student/:id, then the “id” property is a... |
Components of Storage Area Network (SAN) | 11 Oct, 2021
Components of Storage Area Network (SAN) involves 3 basic components:
(a). Server
(b). Network Infrastructure
(c). Storage
The above elements are classified into following elements like,
(1). Node port
(2). Cables
(3). Interconnection Devices
(4). Storage Array, and
(5). SAN Management Software
These are... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 98,
"s": 28,
"text": "Components of Storage Area Network (SAN) involves 3 basic components:"
},
{
"code": null,
"e": 152,
"s": 98,
"text": "(a). Server \n(b). Network Infrastruct... |
Get video duration using Python – OpenCV | 02 Dec, 2020
Prerequisites:
Opencv module
datetime module
OpenCV is one of the most popular cross-platform libraries and it is widely used in Deep Learning, image processing, video capturing, and many more. In this article, we will learn how to get the duration of a given video using python and computer vision.
Openc... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 44,
"s": 28,
"text": "Prerequisites: "
},
{
"code": null,
"e": 58,
"s": 44,
"text": "Opencv module"
},
{
"code": null,
"e": 74,
"s": 58,
"text": "datetime mod... |
Program to find Class, Broadcast and Network addresses | 20 Jan, 2022
Prerequisite – Introduction and Classful Addressing, Classless Addressing Given a valid IPv4 address in the form of a string. The task is to determine the class of the given IPv4 address as well as separate Network and Host ID parts from it.IPv4 address: Every host and router on the internet has an IP addr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 981,
"s": 53,
"text": "Prerequisite – Introduction and Classful Addressing, Classless Addressing Given a valid IPv4 address in the form of a string. The task is to determine the class of the given ... |
JavaFX | Line with examples | 14 Apr, 2021
Line is a part of JavaFX. The Line class represents a line in a 2D space.Constructor for the class:
Line(): Creates a new instance for lineLine(double startX, double startY, double endX, double endY): Creates a new Line with specified starting and ending point
Line(): Creates a new instance for line
Line... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "Line is a part of JavaFX. The Line class represents a line in a 2D space.Constructor for the class: "
},
{
"code": null,
"e": 291,
"s": 130,
"text": "Line... |
Intersection of two arrays in Python ( Lambda expression and filter function ) | 20 Oct, 2018
Given two arrays, find their intersection.
Examples:
Input: arr1[] = [1, 3, 4, 5, 7]
arr2[] = [2, 3, 5, 6]
Output: Intersection : [3, 5]
We have existing solution for this problem please refer Intersection of two arrays link. We will solve this problem quickly in python using Lambda expression an... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Oct, 2018"
},
{
"code": null,
"e": 95,
"s": 52,
"text": "Given two arrays, find their intersection."
},
{
"code": null,
"e": 105,
"s": 95,
"text": "Examples:"
},
{
"code": null,
"e": 199,
"s": 105... |
autoreconf command in Linux with examples | 03 Jun, 2021
autoreconf is a Autotool which is used to create automatically buildable source code for Unix-like systems. Autotool is a common name for autoconf, automake, etc. These all together are termed as Autotools.
Important Points:
Provides Portability of source code packages by automatic buildable capability... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "autoreconf is a Autotool which is used to create automatically buildable source code for Unix-like systems. Autotool is a common name for autoconf, automake, etc. These all to... |
An introduction to plotting with Matplotlib in Python | by Philip Wilkinson | Towards Data Science | This year, as Head of Science for the UCL Data Science Society, the society is presenting a series of 20 workshops covering topics such as introduction to Python, a Data Scientists toolkit and Machine learning methods, throughout the academic year. For each of these the aim is to create a series of small blogposts that... | [
{
"code": null,
"e": 719,
"s": 171,
"text": "This year, as Head of Science for the UCL Data Science Society, the society is presenting a series of 20 workshops covering topics such as introduction to Python, a Data Scientists toolkit and Machine learning methods, throughout the academic year. For ea... |
LCM of two large numbers - GeeksforGeeks | 19 Aug, 2020
Given two large numbers ‘a’ and ‘b’ such that(10^20<=a, b<=10^300). Find the LCM of two large numbers given.Examples:
Input: a = 234516789234023485693020129
b = 176892058718950472893785940
Output: 41484157651764614525905399263631111992263435437186260
Input: a = 36594652830916364940473625749407
... | [
{
"code": null,
"e": 24327,
"s": 24299,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 24445,
"s": 24327,
"text": "Given two large numbers ‘a’ and ‘b’ such that(10^20<=a, b<=10^300). Find the LCM of two large numbers given.Examples:"
},
{
"code": null,
"e": 24760,
... |
String comparison using == vs strcmp() in PHP - GeeksforGeeks | 30 Nov, 2021
In this article, we will see the string comparison using the equal (==) operator & strcmp() Function in PHP, along with understanding their implementation through the example.
PHP == Operator: The comparison operator called Equal Operator is the double equal sign “==”. This operator accepts two inputs to c... | [
{
"code": null,
"e": 25005,
"s": 24977,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 25181,
"s": 25005,
"text": "In this article, we will see the string comparison using the equal (==) operator & strcmp() Function in PHP, along with understanding their implementation through ... |
Reports Fields | Report fields are elements, which represent mapping of data between datasource and report template. Fields can be combined in the report expressions to obtain the desired output. A report template can contain zero or more <field> elements. When declaring report fields, the data source should supply data corresponding t... | [
{
"code": null,
"e": 2623,
"s": 2254,
"text": "Report fields are elements, which represent mapping of data between datasource and report template. Fields can be combined in the report expressions to obtain the desired output. A report template can contain zero or more <field> elements. When declarin... |
Get SubList from LinkedList in Java | The subList of a LinkedList can be obtained using the java.util.LinkedList.subList(). This method takes two parameters i.e. the start index for the sub-list(inclusive) and the end index for the sub-list(exclusive) from the required LinkedList. If the start index and the end index are the same, then an empty sub-list is... | [
{
"code": null,
"e": 1393,
"s": 1062,
"text": "The subList of a LinkedList can be obtained using the java.util.LinkedList.subList(). This method takes two parameters i.e. the start index for the sub-list(inclusive) and the end index for the sub-list(exclusive) from the required LinkedList. If the st... |
PHP | array_pop() Function - GeeksforGeeks | 18 Nov, 2019
This inbuilt function of PHP is used to delete or pop out and return the last element from an array passed to it as parameter. It reduces the size of the array by one since the last element is removed from the array.
Syntax:
array_pop($array)
Parameters: The function takes only one parameter $array, that i... | [
{
"code": null,
"e": 24053,
"s": 24025,
"text": "\n18 Nov, 2019"
},
{
"code": null,
"e": 24270,
"s": 24053,
"text": "This inbuilt function of PHP is used to delete or pop out and return the last element from an array passed to it as parameter. It reduces the size of the array by ... |
Protected vs Private Access Modifiers in Java - GeeksforGeeks | 28 Apr, 2021
Access modifiers are those elements in code that determine the scope for that variable. As we know there are three access modifiers available namely public, protected, and private. Let us see the differences between Protected and Private access modifiers.
Access Modifier 1: Protected
The methods or variab... | [
{
"code": null,
"e": 24778,
"s": 24750,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 25035,
"s": 24778,
"text": "Access modifiers are those elements in code that determine the scope for that variable. As we know there are three access modifiers available namely public, protec... |
How to use data version control (dvc) in a machine learning project | by Matthias Bitzer | Towards Data Science | When working in a productive machine learning project you probably deal with a tone of data and several models. To keep track of which models were trained with which data, you should use a system to version the data, similar to versioning and tracking your code. One way to solve this problem is dvc (Data Version Contro... | [
{
"code": null,
"e": 572,
"s": 172,
"text": "When working in a productive machine learning project you probably deal with a tone of data and several models. To keep track of which models were trained with which data, you should use a system to version the data, similar to versioning and tracking you... |
Data Structures | Heap | Question 4 - GeeksforGeeks | 28 Jun, 2021
Suppose the elements 7, 2, 10 and 4 are inserted, in that order, into the valid 3- ary max heap found in the above question, Which one of the following is the sequence of items in the array representing the resultant heap?
(A) 10, 7, 9, 8, 3, 1, 5, 2, 6, 4(B) 10, 9, 8, 7, 6, 5, 4, 3, 2, 1(C) 10, 9, 4, 5, 7... | [
{
"code": null,
"e": 24762,
"s": 24734,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24985,
"s": 24762,
"text": "Suppose the elements 7, 2, 10 and 4 are inserted, in that order, into the valid 3- ary max heap found in the above question, Which one of the following is the sequ... |
Introduction to Interactive Time Series Visualizations with Plotly in Python | by Will Koehrsen | Towards Data Science | There comes a time when it’s necessary to move on from even the most beloved tools. Matplotlib has served its purpose of quickly creating simple charts, but I’ve grown frustrated with how much code is required to customize plots or do seemingly easy things like get the x-axis to correctly show dates.
For a while, I’ve ... | [
{
"code": null,
"e": 474,
"s": 172,
"text": "There comes a time when it’s necessary to move on from even the most beloved tools. Matplotlib has served its purpose of quickly creating simple charts, but I’ve grown frustrated with how much code is required to customize plots or do seemingly easy thing... |
Python Program for Rabin-Karp Algorithm for Pattern Searching - GeeksforGeeks | 30 Dec, 2020
Examples:
Input: txt[] = "THIS IS A TEST TEXT"
pat[] = "TEST"
Output: Pattern found at index 10
Input: txt[] = "AABAACAADAABAABA"
pat[] = "AABA"
Output: Pattern found at index 0
Pattern found at index 9
Pattern found at index 12
The Naive String Matching algorithm sli... | [
{
"code": null,
"e": 26153,
"s": 26125,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 26163,
"s": 26153,
"text": "Examples:"
},
{
"code": null,
"e": 26421,
"s": 26163,
"text": "Input: txt[] = \"THIS IS A TEST TEXT\"\n pat[] = \"TEST\"\nOutput: Patte... |
DecimalFormat setMaximumFractionDigits() method in Java - GeeksforGeeks | 01 Apr, 2019
The setMaximumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the maximum number of digits allowed in the fractional part of a number. The fractional part of a number is the part displayed after the decimal(.) symbol.
Syntax:
public void setMaxim... | [
{
"code": null,
"e": 24308,
"s": 24280,
"text": "\n01 Apr, 2019"
},
{
"code": null,
"e": 24587,
"s": 24308,
"text": "The setMaximumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the maximum number of digits allowed in ... |
Graph Shortest Paths - GeeksforGeeks | 19 Nov, 2018
* Time Comlexity of the Dijkstra’s algorithm is O(|V|^2 + E)
* Time Comlexity of the Warshall’s algorithm is O(|V|^3)
* DFS cannot be used for finding shortest paths
* BFS can be used for unweighted graphs. Time Complexity for BFS is O(|E| + |V|)
1 1 1
s-----a-----b-----t
\ ... | [
{
"code": null,
"e": 27708,
"s": 27680,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 27961,
"s": 27708,
"text": " * Time Comlexity of the Dijkstra’s algorithm is O(|V|^2 + E) \n * Time Comlexity of the Warshall’s algorithm is O(|V|^3)\n * DFS cannot be used for finding short... |
Monty Hall Problem using Python. We have all heard the probability brain... | by Siddhartha Pachhai | Towards Data Science | We have all heard the probability brain teaser for the three door game show. Each contestant guesses whats behind the door, the show host reveals one of the three doors that didn’t have the prize and gives an opportunity to the contestant to switch doors. It is hypothesized and in fact proven using conditional probabil... | [
{
"code": null,
"e": 1016,
"s": 172,
"text": "We have all heard the probability brain teaser for the three door game show. Each contestant guesses whats behind the door, the show host reveals one of the three doors that didn’t have the prize and gives an opportunity to the contestant to switch doors... |
DAX Date & Time - YEAR function | Returns the year of a date as a four-digit integer in the range 1900-9999.
YEAR (<date>)
date
A date in datetime or text format, containing the year you want to find.
An integer in the range 1900-9999.
DAX uses datetime data type to work with dates and times.
YEAR function takes the parameter date in one of the follo... | [
{
"code": null,
"e": 2076,
"s": 2001,
"text": "Returns the year of a date as a four-digit integer in the range 1900-9999."
},
{
"code": null,
"e": 2092,
"s": 2076,
"text": "YEAR (<date>) \n"
},
{
"code": null,
"e": 2097,
"s": 2092,
"text": "date"
},
{
... |
An Introduction to Perceptron Algorithm | by Yang S | Towards Data Science | This blog will cover following questions and topics
1. What is Perceptron?
2. Stochastic Gradient Descent for Perceptron
3. Implementation in Python
1. What is Perceptron?
Perceptron set the foundations for Neural Network models in 1980s. The algorithm was developed by Frank Rosenblatt and was encapsulated in the paper... | [
{
"code": null,
"e": 224,
"s": 172,
"text": "This blog will cover following questions and topics"
},
{
"code": null,
"e": 247,
"s": 224,
"text": "1. What is Perceptron?"
},
{
"code": null,
"e": 293,
"s": 247,
"text": "2. Stochastic Gradient Descent for Percept... |
Extract properties from an object in JavaScript | We have to write a JavaScript function, say extract() that extracts properties from an object to
another object and then deletes them from the original object.
For example −
If obj1 and obj2 are two objects, then
obj1 = {color:"red", age:"23", name:"cindy"}
obj2 = extract(obj1, ["color","name"])
After passing through t... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "We have to write a JavaScript function, say extract() that extracts properties from an object to\nanother object and then deletes them from the original object."
},
{
"code": null,
"e": 1236,
"s": 1222,
"text": "For example −"
},
... |
apropos command in Linux with Examples - GeeksforGeeks | 17 Jul, 2019
Linux/Unix comes with a huge number of commands and thus it become quite difficult sometimes to remember each and every command. apropos command becomes useful in such cases. apropos command helps the user when they don’t remember the exact command but knows a few keywords related to the command that defin... | [
{
"code": null,
"e": 24004,
"s": 23976,
"text": "\n17 Jul, 2019"
},
{
"code": null,
"e": 24460,
"s": 24004,
"text": "Linux/Unix comes with a huge number of commands and thus it become quite difficult sometimes to remember each and every command. apropos command becomes useful in ... |
NLP in Python- Vectorizing. Common vectorizing techniques employed... | by Divya Raghunathan | Towards Data Science | In this article, we will learn about vectorizing and different vectorizing techniques employed in an NLP model. Then, we will apply these concepts to the context of a problem.
We will work with a dataset that classifies news as fake or real. The dataset is available on Kaggle, the link to the dataset is below:
https://... | [
{
"code": null,
"e": 347,
"s": 171,
"text": "In this article, we will learn about vectorizing and different vectorizing techniques employed in an NLP model. Then, we will apply these concepts to the context of a problem."
},
{
"code": null,
"e": 483,
"s": 347,
"text": "We will wo... |
Why is method overloading not possible by changing the return type of the method only in java? | Overloading is the mechanism of binding the method call with the method body dynamically based on the parameters passed to the method call.
If you observe the following example, it contains two methods with same name, different parameters and if you call the method by passing two integer values the first method will be... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "Overloading is the mechanism of binding the method call with the method body dynamically based on the parameters passed to the method call."
},
{
"code": null,
"e": 1643,
"s": 1202,
"text": "If you observe the following example, it c... |
Order of execution of Initialization blocks and Constructors in Java - GeeksforGeeks | 04 Apr, 2018
Prerequisite : Static blocks, Initializer block, ConstructorIn a Java program, operations can be performed on methods, constructors and initialization blocks.Instance Initialization Blocks : IIB are used to initialize instance variables. IIBs are executed before constructors. They run each time when object... | [
{
"code": null,
"e": 22791,
"s": 22763,
"text": "\n04 Apr, 2018"
},
{
"code": null,
"e": 23492,
"s": 22791,
"text": "Prerequisite : Static blocks, Initializer block, ConstructorIn a Java program, operations can be performed on methods, constructors and initialization blocks.Insta... |
Scraping a table in a PDF and then test the data quality in Python | by Ash Smith | Towards Data Science | Suppose you need to ingest some data into your data warehouse and after further discussions with your stakeholders the source of this data is a PDF document. Fortunately, this is pretty easy to do using a Python package called tabula-py. In this article I’m going to walk you through how you can scrape a table embedded ... | [
{
"code": null,
"e": 697,
"s": 172,
"text": "Suppose you need to ingest some data into your data warehouse and after further discussions with your stakeholders the source of this data is a PDF document. Fortunately, this is pretty easy to do using a Python package called tabula-py. In this article I... |
Sentiment Analysis with Deep Learning | by Edwin Tan | Towards Data Science | Sentiment analysis is a technique in natural language processing used to identify emotions associated with the text. Common use cases of sentiment analysis include monitoring customers’ feedbacks on social media, brand and campaign monitoring.
In this article, we examine how you can train your own sentiment analysis mo... | [
{
"code": null,
"e": 416,
"s": 172,
"text": "Sentiment analysis is a technique in natural language processing used to identify emotions associated with the text. Common use cases of sentiment analysis include monitoring customers’ feedbacks on social media, brand and campaign monitoring."
},
{
... |
Groovy - Switch Statement | Sometimes the nested if-else statement is so common and is used so often that an easier statement was designed called the switch statement.
switch(expression) {
case expression #1:
statement #1
...
case expression #2:
statement #2
...
case expression #N:
statement #N
...
default:... | [
{
"code": null,
"e": 2378,
"s": 2238,
"text": "Sometimes the nested if-else statement is so common and is used so often that an easier statement was designed called the switch statement."
},
{
"code": null,
"e": 2594,
"s": 2378,
"text": "switch(expression) { \n case expression ... |
Node.js Buffer.writeUInt16LE() Method - GeeksforGeeks | 13 Oct, 2021
The Buffer.writeUInt16LE() method is used to write specified bytes in Little Endian format to the buffer object. Here, value should be a valid unsigned 16-bit integer.
Syntax:
Buffer.writeUInt16LE( value, offset )
Parameters: This method accept two parameters as mentioned above and described below:
value: ... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 24469,
"s": 24301,
"text": "The Buffer.writeUInt16LE() method is used to write specified bytes in Little Endian format to the buffer object. Here, value should be a valid unsigned 16-bit inte... |
Android | Creating a SeekBar - GeeksforGeeks | 30 Nov, 2021
Android SeekBar is a type of ProgressBar. On touching the thumb on seekbar and dragging it to the right or left, the current value of the progress changes. SeekBar is used for forwarding or backwarding the songs, Video etc. In the setOnSeekBarChangeListener interface is used which provides three methods.
o... | [
{
"code": null,
"e": 26420,
"s": 26392,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 26726,
"s": 26420,
"text": "Android SeekBar is a type of ProgressBar. On touching the thumb on seekbar and dragging it to the right or left, the current value of the progress changes. SeekBar... |
Sum of all differences between Maximum and Minimum of increasing Subarrays - GeeksforGeeks | 01 Apr, 2021
Given an array arr[] consisting of N integers, the task is to find the sum of the differences between maximum and minimum element of all strictly increasing subarrays from the given array. All subarrays need to be in their longest possible form, i.e. if a subarray [i, j] form a strictly increasing subarray... | [
{
"code": null,
"e": 26339,
"s": 26311,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 26738,
"s": 26339,
"text": "Given an array arr[] consisting of N integers, the task is to find the sum of the differences between maximum and minimum element of all strictly increasing subarr... |
MySQL Tryit Editor v1.0 | SELECT IFNULL("Hello", "W3Schools.com");
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support WebSQL.
Your are now using a light-version of t... | [
{
"code": null,
"e": 41,
"s": 0,
"text": "SELECT IFNULL(\"Hello\", \"W3Schools.com\");"
},
{
"code": null,
"e": 43,
"s": 41,
"text": ""
},
{
"code": null,
"e": 115,
"s": 52,
"text": "Edit the SQL Statement, and click \"Run SQL\" to see the result."
},
{
... |
Java JDOM Parser - Parse XML Document | Following are the steps used while parsing a document using JDOM Parser.
Import XML-related packages.
Create a SAXBuilder
Create a Document from a file or stream
Extract the root element
Examine attributes
Examine sub-elements
import java.io.*;
import java.util.*;
import org.jdom2.*;
SAXBuilder saxBuilder = new SAXBuil... | [
{
"code": null,
"e": 2396,
"s": 2323,
"text": "Following are the steps used while parsing a document using JDOM Parser."
},
{
"code": null,
"e": 2425,
"s": 2396,
"text": "Import XML-related packages."
},
{
"code": null,
"e": 2445,
"s": 2425,
"text": "Create a ... |
How to read a CSV file and store the values into an array in C#? | A CSV file is a comma-separated file, that is used to store data in an organized way. It
usually stores data in tabular form. Most of the business organizations store their data
in CSV files.
In C#, StreamReader class is used to deal with the files. It opens, reads and helps in
performing other functions to different t... | [
{
"code": null,
"e": 1254,
"s": 1062,
"text": "A CSV file is a comma-separated file, that is used to store data in an organized way. It\nusually stores data in tabular form. Most of the business organizations store their data\nin CSV files."
},
{
"code": null,
"e": 1476,
"s": 1254,
... |
DateTime.IsLeapYear() Method in C# | The DateTime.IsLeapYear() method in C# is used to check whether the specified year is a leap year. The return value is a boolean, with TRUE if the year is a leap year, else FALSE.
Following is the syntax −
public static bool IsLeapYear (int y);
Above, y is the year to be checked, 2010, 2016, 2019, etc.
Let us now see a... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "The DateTime.IsLeapYear() method in C# is used to check whether the specified year is a leap year. The return value is a boolean, with TRUE if the year is a leap year, else FALSE."
},
{
"code": null,
"e": 1268,
"s": 1242,
"text": "Fo... |
Java Program to find largest element in an array - GeeksforGeeks | 13 Jun, 2020
Given an array, find the largest element in it.
Input : arr[] = {10, 20, 4}
Output : 20
Input : arr[] = {20, 10, 20, 4, 100}
Output : 100
Method 1: Iterative Way
// Java Program to find maximum in arr[] class Test{ static int arr[] = {10, 324, 45, 90, 9808}; // Method to find maximum in ar... | [
{
"code": null,
"e": 24952,
"s": 24924,
"text": "\n13 Jun, 2020"
},
{
"code": null,
"e": 25000,
"s": 24952,
"text": "Given an array, find the largest element in it."
},
{
"code": null,
"e": 25092,
"s": 25000,
"text": "Input : arr[] = {10, 20, 4}\nOutput : 20\n... |
Convert Tuple to integer in Python | When it is required to convert a tuple into an integer, the lambda function and the 'reduce' function can be used.
Anonymous function is a function which is defined without a name. The reduce function takes two parameters- a function and a sequence, where it applies the function to all the elements of the list/sequence... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "When it is required to convert a tuple into an integer, the lambda function and the 'reduce' function can be used."
},
{
"code": null,
"e": 1425,
"s": 1177,
"text": "Anonymous function is a function which is defined without a name. T... |
How can I get a file's size in C++? | To get a file’s size in C++ first open the file and seek it to the end. tell() will tell us the current position of the stream, which will be the number of bytes in the file.
Live Demo
#include<iostream>
#include<fstream>
using namespace std;
int main() {
ifstream in_file("a.txt", ios::binary);
in_file.seekg(0, ... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "To get a file’s size in C++ first open the file and seek it to the end. tell() will tell us the current position of the stream, which will be the number of bytes in the file."
},
{
"code": null,
"e": 1248,
"s": 1237,
"text": " Live D... |
Report Fonts | A report contains text elements and each of these can have its own font settings. These settings can be specified using the <font> tag available in the <textElement> tag. A report can define a number of fonts. Once defined, they can be used as default or base font settings for other font definitions throughout the enti... | [
{
"code": null,
"e": 2585,
"s": 2254,
"text": "A report contains text elements and each of these can have its own font settings. These settings can be specified using the <font> tag available in the <textElement> tag. A report can define a number of fonts. Once defined, they can be used as default o... |
Design a data structure that supports insert, delete, search and getRandom in constant time - GeeksforGeeks | 18 May, 2021
Design a data structure that supports the following operations in Θ(1) time.insert(x): Inserts an item x to the data structure if not already present.remove(x): Removes item x from the data structure if present. search(x): Searches an item x in the data structure.getRandom(): Returns a random element from ... | [
{
"code": null,
"e": 25020,
"s": 24992,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 25353,
"s": 25020,
"text": "Design a data structure that supports the following operations in Θ(1) time.insert(x): Inserts an item x to the data structure if not already present.remove(x): Re... |
Create an Analog Clock using HTML, CSS and JavaScript - GeeksforGeeks | 12 Mar, 2021
We are going to build a real-time analog clock using HTML, CSS, and JavaScript.
Prerequisite:
Basic understanding of HTML, CSS, and JavaScript.
Approach: We will create three files (HTML file, a CSS file, and JavaScript File), we also have an image of the clock that will be used in the background, and on t... | [
{
"code": null,
"e": 24512,
"s": 24484,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 24592,
"s": 24512,
"text": "We are going to build a real-time analog clock using HTML, CSS, and JavaScript."
},
{
"code": null,
"e": 24606,
"s": 24592,
"text": "Prerequisi... |
How to convert html pages to pdf using wkhtml2pdf | This article will guide you to install a tool which can convert your HTML pages or HTML output to PDF format. This feature will also be helpful to write a code for generating Pdf’s, if we need to send them to a group of customers or clients and for sending reports instead of HTML (which you can send them via emails in ... | [
{
"code": null,
"e": 1442,
"s": 1062,
"text": "This article will guide you to install a tool which can convert your HTML pages or HTML output to PDF format. This feature will also be helpful to write a code for generating Pdf’s, if we need to send them to a group of customers or clients and for send... |
Add a grey background color to the Bootstrap 4 card | To add a gray background color to the Bootstrap 4 card, use the card class with the bg-dark contextual class −
<div class="card bg-dark text-white">
Set the card body inside the same <div> class −
<div class="card bg-dark text-white">
<div class="card-body">Hello</div>
</div>
Let us see the complete example add a gre... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "To add a gray background color to the Bootstrap 4 card, use the card class with the bg-dark contextual class −"
},
{
"code": null,
"e": 1211,
"s": 1173,
"text": "<div class=\"card bg-dark text-white\">"
},
{
"code": null,
... |
Check if a number is Primorial Prime or not - GeeksforGeeks | 07 Sep, 2021
Given a positive number N, the task is to check if N is a primorial prime number or not. Print ‘YES’ if N is a primorial prime number otherwise print ‘NO.Primorial Prime: In Mathematics, A Primorial prime is a prime number of the form pn# + 1 or pn# – 1 , where pn# is the primorial of pn i.e the product of... | [
{
"code": null,
"e": 25937,
"s": 25909,
"text": "\n07 Sep, 2021"
},
{
"code": null,
"e": 26279,
"s": 25937,
"text": "Given a positive number N, the task is to check if N is a primorial prime number or not. Print ‘YES’ if N is a primorial prime number otherwise print ‘NO.Primorial... |
jQWidgets jqxLayout render() Method - GeeksforGeeks | 10 Dec, 2021
jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxLayout is used for representing a jQuery widget that is used for the creation of complex layouts with nested, resiz... | [
{
"code": null,
"e": 26954,
"s": 26926,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 27302,
"s": 26954,
"text": "jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely... |
CSS :focus-within Selector - GeeksforGeeks | 18 Sep, 2020
The :focus-within pseudo-class is a selects an element that consists of a focused element as a child. The CSS rules are applied when any child element gets focus. Example includes clicking a link, selecting an input, etc.
Syntax:
:focus {
/* CSS Properties */
}
Example: Below is the example which illus... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 26843,
"s": 26621,
"text": "The :focus-within pseudo-class is a selects an element that consists of a focused element as a child. The CSS rules are applied when any child element gets focus. ... |
Image Processing in Java - Creating a Mirror Image - GeeksforGeeks | 14 Nov, 2021
Prerequisite:
Image Processing in Java – Read and Write
Image Processing In Java – Get and Set Pixels
Image Processing in Java – Colored Image to Grayscale Image Conversion
Image Processing in Java – Colored Image to Negative Image Conversion
Image Processing in Java – Colored to Red Green Blue Image Conv... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n14 Nov, 2021"
},
{
"code": null,
"e": 26194,
"s": 26179,
"text": "Prerequisite: "
},
{
"code": null,
"e": 26236,
"s": 26194,
"text": "Image Processing in Java – Read and Write"
},
{
"code": null,
"... |
How to print a page using jQuery ? - GeeksforGeeks | 15 Oct, 2020
The task is to print a page using jQuery by calling a window.print method when the user clicks on a Button. The window.print() method is sent to open the Print Dialog Box to print the current document. It does not have any parameter value.
Example::
HTML Code:
HTML
<!DOCTYPE html><html> <head> <title... | [
{
"code": null,
"e": 26202,
"s": 26174,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 26443,
"s": 26202,
"text": "The task is to print a page using jQuery by calling a window.print method when the user clicks on a Button. The window.print() method is sent to open the Print Dia... |
NumberFormat getCurrency() method in Java with Examples - GeeksforGeeks | 01 Apr, 2019
The getCurrency() method is a built-in method of the java.text.NumberFormat returns the currency which is used while formatting currency values by this currency. It can be null if there is no valid currency to be determined or if no currency has been set previously.
Syntax:
public Currency getCurrency()
Pa... | [
{
"code": null,
"e": 25735,
"s": 25707,
"text": "\n01 Apr, 2019"
},
{
"code": null,
"e": 26002,
"s": 25735,
"text": "The getCurrency() method is a built-in method of the java.text.NumberFormat returns the currency which is used while formatting currency values by this currency. I... |
Rust - If let Operator - GeeksforGeeks | 15 Nov, 2021
The basic difference between conventional if-else and if let is that if let uses one pattern that needs to be matched to an expression also known as scrutinee, if the pattern matches the expression then the corresponding code is executed, or in most cases that value is assigned according to it.
Syntax :
le... | [
{
"code": null,
"e": 24896,
"s": 24868,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 25192,
"s": 24896,
"text": "The basic difference between conventional if-else and if let is that if let uses one pattern that needs to be matched to an expression also known as scrutinee, if ... |
Program to find transpose of a matrix - GeeksforGeeks | 29 Aug, 2021
Transpose of a matrix is obtained by changing rows to columns and columns to rows. In other words, transpose of A[][] is obtained by changing A[i][j] to A[j][i].
For Square Matrix :
The below program finds transpose of A[][] and stores the result in B[][], we can change N for different dimension.
C++
C
J... | [
{
"code": null,
"e": 26261,
"s": 26233,
"text": "\n29 Aug, 2021"
},
{
"code": null,
"e": 26423,
"s": 26261,
"text": "Transpose of a matrix is obtained by changing rows to columns and columns to rows. In other words, transpose of A[][] is obtained by changing A[i][j] to A[j][i]."
... |
Convert JSON data Into a Custom Python Object - GeeksforGeeks | 16 Dec, 2021
Let us see how to convert JSON data into a custom object in Python. Converting JSON data into a custom python object is also known as decoding or deserializing JSON data. To decode JSON data we can make use of the json.loads(), json.load() method and the object_hook parameter. The object_hook parameter is ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 26029,
"s": 25537,
"text": "Let us see how to convert JSON data into a custom object in Python. Converting JSON data into a custom python object is also known as decoding or deserializing JSO... |
HTML <marquee> Tag - GeeksforGeeks | 02 Mar, 2022
The <marquee> tag in HTML is used to create scrolling text or image in a webpages. It scrolls either from horizontally left to right or right to left, or vertically top to bottom or bottom to top.
Syntax :
The marquee element comes in pairs. It means means that the tag has opening and closing elements.
... | [
{
"code": null,
"e": 25469,
"s": 25441,
"text": "\n02 Mar, 2022"
},
{
"code": null,
"e": 25667,
"s": 25469,
"text": "The <marquee> tag in HTML is used to create scrolling text or image in a webpages. It scrolls either from horizontally left to right or right to left, or verticall... |
Data Science for E-Commerce with Python | by Julian Herrera | Towards Data Science | E-Commerce is currently one of the fastest and dynamically evolving industries in the world. Its popularity has been growing rapidly with the ease of digital transactions and quick door-to-door deliveries. A major source of big tech companies revenues comes from the interaction of their underlying proprietary algorithm... | [
{
"code": null,
"e": 634,
"s": 172,
"text": "E-Commerce is currently one of the fastest and dynamically evolving industries in the world. Its popularity has been growing rapidly with the ease of digital transactions and quick door-to-door deliveries. A major source of big tech companies revenues com... |
java.util.zip.ZipOutputStream.setLevel() Method Example | The java.util.zip.ZipOutputStream.setLevel(int level) method sets the compression level for subsequent entries which are DEFLATED. The default setting is DEFAULT_COMPRESSION.
Following is the declaration for java.util.zip.ZipOutputStream.setLevel(int level) method.
public void setLevel(int level)
level − the compressi... | [
{
"code": null,
"e": 2367,
"s": 2192,
"text": "The java.util.zip.ZipOutputStream.setLevel(int level) method sets the compression level for subsequent entries which are DEFLATED. The default setting is DEFAULT_COMPRESSION."
},
{
"code": null,
"e": 2458,
"s": 2367,
"text": "Followi... |
Seaborn - Multi Panel Categorical Plots | Categorical data can we visualized using two plots, you can either use the functions pointplot(), or the higher-level function factorplot().
Factorplot draws a categorical plot on a FacetGrid. Using ‘kind’ parameter we can choose the plot like boxplot, violinplot, barplot and stripplot. FacetGrid uses pointplot by defa... | [
{
"code": null,
"e": 2180,
"s": 2039,
"text": "Categorical data can we visualized using two plots, you can either use the functions pointplot(), or the higher-level function factorplot()."
},
{
"code": null,
"e": 2364,
"s": 2180,
"text": "Factorplot draws a categorical plot on a ... |
How to Add a Floating Action Button to Bottom Navigation Bar in Android? - GeeksforGeeks | 19 Feb, 2021
The floating action button is a bit different button from the ordinary buttons. Floating action buttons are implemented in the app’s UI for primary actions (promoted actions) for the users and the actions under the floating action button are prioritized by the developer. For example the actions like adding... | [
{
"code": null,
"e": 25142,
"s": 25114,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 25911,
"s": 25142,
"text": "The floating action button is a bit different button from the ordinary buttons. Floating action buttons are implemented in the app’s UI for primary actions (promot... |
Simple SVD algorithms. Naive ways to calculate SVD | by Risto Hinno | Towards Data Science | Aim of this post is to show some simple and educational examples how to calculate singular value decomposition using simple methods. If you are interested in industry strength implementations, you might find this useful.
Singular value decomposition (SVD) is a matrix factorization method that generalizes the eigendecom... | [
{
"code": null,
"e": 393,
"s": 172,
"text": "Aim of this post is to show some simple and educational examples how to calculate singular value decomposition using simple methods. If you are interested in industry strength implementations, you might find this useful."
},
{
"code": null,
"e... |
How to make an Android device vibrate? | In android, using vibrate service, we can vibrate android mobile. This example demonstrate about how to make an Android device vibrate
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_m... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "In android, using vibrate service, we can vibrate android mobile. This example demonstrate about how to make an Android device vibrate"
},
{
"code": null,
"e": 1326,
"s": 1197,
"text": "Step 1 − Create a new project in Android Studio... |
How to convert binary variable to 0/1 format in an R data frame? | A binary variable is a type of variable that can take only two possible values like gender that has two categories male and female, citizenship of a country with two categories as yes and no, etc. If the binary variable is not in 0/1 format then it can be converted with the help of ifelse function. Check out the below ... | [
{
"code": null,
"e": 1419,
"s": 1062,
"text": "A binary variable is a type of variable that can take only two possible values like gender that has two categories male and female, citizenship of a country with two categories as yes and no, etc. If the binary variable is not in 0/1 format then it can ... |
Display scientific notation as float in Python - GeeksforGeeks | 30 Jun, 2021
In this article, the task is to display the scientific notation as float in Python. The scientific notation means any number expressed in the power of 10.for example- 340 can be written in scientific notation as 3.4 X102.in pythons, we use str.format() on a number with “{:e}” to format the number to scient... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 25998,
"s": 25537,
"text": "In this article, the task is to display the scientific notation as float in Python. The scientific notation means any number expressed in the power of 10.for examp... |
How to implement 'add tag' functionality in an Angular 9 app ? - GeeksforGeeks | 26 Jun, 2020
Angular makes it very easy to implement almost every functionality. In this article, we will learn how to implement add tag functionality in your angular app. Adding tags have applications in several areas like music apps, online shopping apps, etc. By using this functionality we can filter the results of ... | [
{
"code": null,
"e": 26172,
"s": 26144,
"text": "\n26 Jun, 2020"
},
{
"code": null,
"e": 26528,
"s": 26172,
"text": "Angular makes it very easy to implement almost every functionality. In this article, we will learn how to implement add tag functionality in your angular app. Addi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.