title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to create a row sum and a row product column in an R data frame? | To create a row sum and a row product column in an R data frame, we can use rowSums function and the star sign (*) for the product of column values inside the transform function. For example, if we have a data frame df that contains x, y, z then the column of row sums and row product can be created as:
transform(df,Row... | [
{
"code": null,
"e": 1366,
"s": 1062,
"text": "To create a row sum and a row product column in an R data frame, we can use rowSums function and the star sign (*) for the product of column values inside the transform function. For example, if we have a data frame df that contains x, y, z then the col... |
How to uninstall the MSI package using PowerShell? | To uninstall the MSI package using PowerShell, we need the product code and then the product code can be used with msiexec file to uninstall the particular application.
Product code can be retrieved using the Get-Package or Get-WmiClass method. In this example, we will uninstall the 7-zip package.
$product = Get-WmiObj... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "To uninstall the MSI package using PowerShell, we need the product code and then the product code can be used with msiexec file to uninstall the particular application."
},
{
"code": null,
"e": 1361,
"s": 1231,
"text": "Product code ... |
Incremental Programming in Python - GeeksforGeeks | 02 Feb, 2022
In incremental systems, every measurement refers to a previously dimensioned position (point-to-point). Incremental dimensions are the distances between two adjacent points. An incremental movement moves A distance based on your current position.
Start Small – First of all, start your program small and kep... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 24539,
"s": 24292,
"text": "In incremental systems, every measurement refers to a previously dimensioned position (point-to-point). Incremental dimensions are the distances between two adjace... |
Ruby - Environment Variables | Ruby interpreter uses the following environment variables to control its behavior. The ENV object contains a list of all the current environment variables set.
DLN_LIBRARY_PATH
Search path for dynamically loaded modules.
HOME
Directory moved to when no argument is passed to Dir::chdir. Also used by File::expand_path to... | [
{
"code": null,
"e": 2454,
"s": 2294,
"text": "Ruby interpreter uses the following environment variables to control its behavior. The ENV object contains a list of all the current environment variables set."
},
{
"code": null,
"e": 2471,
"s": 2454,
"text": "DLN_LIBRARY_PATH"
},... |
Find if there is a triplet in a Balanced BST that adds to zero | 20 Jun, 2022
Given a Balanced Binary Search Tree (BST), write a function isTripletPresent() that returns true if there is a triplet in given BST with sum equals to 0, otherwise returns false. Expected time complexity is O(n^2) and only O(Logn) extra space can be used. You can modify given Binary Search Tree. Note that ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 539,
"s": 52,
"text": "Given a Balanced Binary Search Tree (BST), write a function isTripletPresent() that returns true if there is a triplet in given BST with sum equals to 0, otherwise returns fa... |
Farey Sequence | 12 Jul, 2022
Farey sequence is a sequence which is generated for order n. The sequence has all rational numbers in range [0/0 to 1/1] sorted in increasing order such that the denominators are less than or equal to n and all numbers are in reduced forms i.e., 4/4 cannot be there as it can be reduced to 1/1.Examples:
F... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Jul, 2022"
},
{
"code": null,
"e": 360,
"s": 54,
"text": "Farey sequence is a sequence which is generated for order n. The sequence has all rational numbers in range [0/0 to 1/1] sorted in increasing order such that the denominators... |
HTML | <hr> size Attribute | 28 May, 2019
The HTML <hr> size Attribute is used to specify the height of the horizontal line in terms of pixels.
Syntax:
<hr size="pixels">
Attribute Values: It contains single value pixels which specify the height in terms of pixels.
Note: The <hr> size Attribute is not supported by HTML 5.
Example:
<!DOCTYPE html><... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 May, 2019"
},
{
"code": null,
"e": 155,
"s": 53,
"text": "The HTML <hr> size Attribute is used to specify the height of the horizontal line in terms of pixels."
},
{
"code": null,
"e": 163,
"s": 155,
"text": "Syn... |
Spring JDBC - Calling Stored Procedure | Following example will demonstrate how to call a stored procedure using Spring JDBC. We'll read one of the available records in Student Table by calling a stored procedure. We'll pass an id and receive a student record.
SimpleJdbcCall jdbcCall = new SimpleJdbcCall(dataSource).withProcedureName("getRecord");
SqlParamete... | [
{
"code": null,
"e": 2750,
"s": 2530,
"text": "Following example will demonstrate how to call a stored procedure using Spring JDBC. We'll read one of the available records in Student Table by calling a stored procedure. We'll pass an id and receive a student record."
},
{
"code": null,
"... |
How to use multiple ternary operators in a single statement in JavaScript ? | 08 Mar, 2021
In this article, we will see how we can use multiple ternary operators in a single statement in JavaScript. Sometimes using conditional statements like if, else, else if stretch the code unnecessarily and make the code even more lengthy. One trick to avoid them can be the use of ternary operators. But what... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 465,
"s": 28,
"text": "In this article, we will see how we can use multiple ternary operators in a single statement in JavaScript. Sometimes using conditional statements like if, else, else if stret... |
Restart your Computer with Speech Recognition | 08 Jun, 2021
We can do this with the help of Python. Python has many libraries that can help many things to be done were easy. We need the help of the terminal for doing this task. Python’s one of the best library Speech Recognition will help us to do this so.
Pyttsx3: This is a text to speech Library in Python . We ha... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 276,
"s": 28,
"text": "We can do this with the help of Python. Python has many libraries that can help many things to be done were easy. We need the help of the terminal for doing this task. Python’... |
Python Indexerror: list assignment index out of range Solution | 04 Jan, 2022
In python, lists are mutable as the elements of a list can be modified. But if you try to modify a value whose index is greater than or equal to the length of the list then you will encounter an Indexerror: list assignment index out of range.
If ‘fruits’ is a list, fruits=[‘Apple’,’ Banana’,’ Guava’]and ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 273,
"s": 28,
"text": "In python, lists are mutable as the elements of a list can be modified. But if you try to modify a value whose index is greater than or equal to the length of the list then yo... |
How to embed JavaScript in HTML file? | Following is the code to embed JavaScript in html file −
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>
<script src="script.js" defer></script>
<style>
body {
font-family: "Segoe UI", T... | [
{
"code": null,
"e": 1244,
"s": 1187,
"text": "Following is the code to embed JavaScript in html file −"
},
{
"code": null,
"e": 1255,
"s": 1244,
"text": " Live Demo"
},
{
"code": null,
"e": 1877,
"s": 1255,
"text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>... |
How to create HTML form that accept user name and display it using PHP ? | 24 Jun, 2021
Through HTML forms various data can be collected from the user and can be sent directly to the server through PHP scripting. There are basically two methods for sending data to the server one is “GET” and the other one is “POST”.
In GET method, the data goes through the browser’s URL and can be seen by any... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 258,
"s": 28,
"text": "Through HTML forms various data can be collected from the user and can be sent directly to the server through PHP scripting. There are basically two methods for sending data t... |
Difference between for and do-while loop in C, C++, Java | 27 Jun, 2019
for loop:
for loop provides a concise way of writing the loop structure. Unlike a while loop, a for statement consumes the initialization, condition and increment/decrement in one line thereby providing a shorter, easy to debug structure of looping.
Syntax:
for (initialization condition; testing condition;... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 63,
"s": 53,
"text": "for loop:"
},
{
"code": null,
"e": 303,
"s": 63,
"text": "for loop provides a concise way of writing the loop structure. Unlike a while loop, a for stateme... |
io.Pipe() Function in Golang with Examples | 05 May, 2020
In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. The Pipe() function in Go language is used to create a concurrent in-memory pipe and can be applied in order to link the code that exp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 692,
"s": 28,
"text": "In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. Th... |
JavaScript | Math.ceil( ) function | 02 Feb, 2022
The Math.ceil() function in JavaScript is used to round the number passed as a parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.Syntax
Math.ceil(value)
Parameters: This function accepts a single parameter is the number to be rounded to its the nearest integer... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 211,
"s": 28,
"text": "The Math.ceil() function in JavaScript is used to round the number passed as a parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.S... |
Python | Creating Multidimensional dictionary | 22 Jun, 2021
Sometimes, while working with Python dictionaries we need to have nested dictionaries. But the issue is that, we have to declare before initializing a value in nested dictionary. Let’s resolve this particular problem via methods discussed in this article.
Method #1 : Using setdefault() This function is use... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 284,
"s": 28,
"text": "Sometimes, while working with Python dictionaries we need to have nested dictionaries. But the issue is that, we have to declare before initializing a value in nested dictiona... |
Is it possible to catch multiple Java exceptions in single catch block? | An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed.
Before Java 7 whenever we have a code that may generate more than one exception and if you n... | [
{
"code": null,
"e": 1290,
"s": 1062,
"text": "An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed."
},
{
"code": nul... |
Tryit Editor v3.7 | Tryit: HTML comment out sections | [] |
Program to convert HashMap to TreeMap in Java | At first create a HashMap −
Map<String, String> map = new HashMap<>();
map.put("1", "One");
map.put("2", "Two");
map.put("3", "Three");
map.put("4", "Four");
map.put("5", "Five");
map.put("6", "Six");
Now, convert the above HashMap to TreeMap −
Map<String, String> treeMap = new TreeMap<>();
treeMap.putAll(map);
Followi... | [
{
"code": null,
"e": 1090,
"s": 1062,
"text": "At first create a HashMap −"
},
{
"code": null,
"e": 1263,
"s": 1090,
"text": "Map<String, String> map = new HashMap<>();\nmap.put(\"1\", \"One\");\nmap.put(\"2\", \"Two\");\nmap.put(\"3\", \"Three\");\nmap.put(\"4\", \"Four\");\nmap... |
Longest Palindrome in C++ | Suppose we have a string which consists of lowercase or uppercase letters, we have to find the length of the longest palindromes that can be built with those letters. Now the string is case sensitive, so "Aa" is not considered a palindrome here.
So, if the input is like "abccccdd", then the output will be 7, as one lon... | [
{
"code": null,
"e": 1308,
"s": 1062,
"text": "Suppose we have a string which consists of lowercase or uppercase letters, we have to find the length of the longest palindromes that can be built with those letters. Now the string is case sensitive, so \"Aa\" is not considered a palindrome here."
},... |
Machine Learning: Ridge Regression in Detail | by Ashish Singhal | Towards Data Science | As there are already more than sufficient articles about Linear Regression here, I won’t write about it one more time. Instead I will write about one kind of normalized regression type - Ridge Regression - which solves problem of data overfitting.
Linear regression model is given by following equation:
Y = Σ WjHj(Xi)He... | [
{
"code": null,
"e": 419,
"s": 171,
"text": "As there are already more than sufficient articles about Linear Regression here, I won’t write about it one more time. Instead I will write about one kind of normalized regression type - Ridge Regression - which solves problem of data overfitting."
},
... |
CSS | brightness() Function - GeeksforGeeks | 07 Aug, 2019
The brightness() function is an inbuilt function which is used to apply a filter to set the brightness of the image. This function uses the linear multiplier to the image to increase or decrease brightness.
Syntax:
brightness( amount )
Parameters: This function accepts single parameter amount which holds t... | [
{
"code": null,
"e": 24786,
"s": 24758,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 24993,
"s": 24786,
"text": "The brightness() function is an inbuilt function which is used to apply a filter to set the brightness of the image. This function uses the linear multiplier to th... |
How to Build A Machine Learning API using Flask | Towards Data Science | Machine Learning (ML) is a great way to do tasks that cannot be explicitly coded, for example, image classification. But when the model is already built, it will be useless when we don’t deploy it into an application.
Deployment is an essential step in the machine learning workflow. It is a step where we want to apply ... | [
{
"code": null,
"e": 265,
"s": 47,
"text": "Machine Learning (ML) is a great way to do tasks that cannot be explicitly coded, for example, image classification. But when the model is already built, it will be useless when we don’t deploy it into an application."
},
{
"code": null,
"e": 4... |
Area Calculation - Solved Examples | Q 1 - The difference between the length and breadth of a rectangle is 33 m. If its perimeter is 134 m, then its area is:
A - 800 m2
B - 850 m2
C - 900 m2
D - 950 m2
Answer - B
Explanation
We have: (l - b) = 33 and 2(l + b) = 134 or (l + b) = 67.
Solving the two equations, we get: l = 50 and b = 17.
∴ Area = (l x b) = (... | [
{
"code": null,
"e": 4013,
"s": 3892,
"text": "Q 1 - The difference between the length and breadth of a rectangle is 33 m. If its perimeter is 134 m, then its area is:"
},
{
"code": null,
"e": 4024,
"s": 4013,
"text": "A - 800 m2"
},
{
"code": null,
"e": 4035,
"s"... |
C library function - isxdigit() | The C library function int isxdigit(int c) checks whether the passed character is a hexadecimal digit.
Following is the declaration for isxdigit() function.
int isxdigit(int c);
c − This is the character to be checked.
c − This is the character to be checked.
This function returns a non-zero value(true) if c is a hexad... | [
{
"code": null,
"e": 2110,
"s": 2007,
"text": "The C library function int isxdigit(int c) checks whether the passed character is a hexadecimal digit."
},
{
"code": null,
"e": 2164,
"s": 2110,
"text": "Following is the declaration for isxdigit() function."
},
{
"code": nul... |
Open Closed Principle in Java with Examples | 27 Aug, 2021
In software development, the use of object-oriented design is crucial. It helps to write flexible, scalable, and reusable code. It is recommended that the developers follow SOLID principles when writing a code. One of the five SOLID principles is the open/closed principle. The principle states that softwar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 734,
"s": 28,
"text": "In software development, the use of object-oriented design is crucial. It helps to write flexible, scalable, and reusable code. It is recommended that the developers follow SO... |
GATE | GATE CS 2012 | Question 28 | 27 Sep, 2021
What is the minimal form of the Karnaugh map shown below? Assume that X denotes a don’t care term.
(A) b’d’(B) b’d’ + b’c’(C) b’d’ + a’b’c’d’(D) b’d’ + b’c’ + c’d’Answer: (B)Explanation: There are two prime implicants in the following K-Map-Prime Implicant higlighted in Green = Prime Implicant higlighted i... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 152,
"s": 53,
"text": "What is the minimal form of the Karnaugh map shown below? Assume that X denotes a don’t care term."
},
{
"code": null,
"e": 402,
"s": 152,
"text": "(A) b’... |
How to create a List with Constructor in C++ STL | 18 Jan, 2019
Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, list has slow traversal, but once a position has been found, insertion and deletion are quick. Normally, when we say a List, we talk about doubly linked list. For implementing a singly linked list, we use forw... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jan, 2019"
},
{
"code": null,
"e": 345,
"s": 28,
"text": "Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, list has slow traversal, but once a position has been found, insertion and de... |
Rest and Spread operators in JavaScript | The rest operator (...) allows us to call a function with any number of arguments and then access those excess arguments as an array. The rest operator also allows us in destructuring array or objects.
The spread operator (...) allows us to expand an iterable like array into its individual elements.
Following is the co... | [
{
"code": null,
"e": 1389,
"s": 1187,
"text": "The rest operator (...) allows us to call a function with any number of arguments and then access those excess arguments as an array. The rest operator also allows us in destructuring array or objects."
},
{
"code": null,
"e": 1488,
"s":... |
Python | Pandas Timedelta.nanoseconds | 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.
Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is the pan... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jan, 2019"
},
{
"code": null,
"e": 242,
"s": 28,
"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 imp... |
GATE | GATE CS 2013 | Question 65 | 19 Nov, 2018
A RAM chip has a capacity of 1024 words of 8 bits each (1K × 8). The number of 2 × 4 decoders with enable line needed to construct a 16K × 16 RAM from 1K × 8 RAM is(A) 4(B) 5(C) 6(D) 7Answer: (B)Explanation:
RAM chip size = 1k ×8[1024 words of 8 bits each]
RAM to construct =16k ×16
Number of chips required... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 262,
"s": 54,
"text": "A RAM chip has a capacity of 1024 words of 8 bits each (1K × 8). The number of 2 × 4 decoders with enable line needed to construct a 16K × 16 RAM from 1K × 8 RAM is(A) 4(B) 5... |
Minimum number of given moves required to make N divisible by 25 | 22 Jun, 2022
Given a number N(1 ≤ N ≤ 1018) without leading zeros. The task is to find the minimum number of moves required to make N divisible by 25. At each move, one can swap any two adjacent digits and make sure that at any time number must not contain any leading zeros. If it is not possible to make N divisible by... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 365,
"s": 28,
"text": "Given a number N(1 ≤ N ≤ 1018) without leading zeros. The task is to find the minimum number of moves required to make N divisible by 25. At each move, one can swap any two ad... |
How to run many parallel HTTP requests using Node.js ? | 02 Aug, 2021
We know NodeJS application is single-threaded. Say, if processing involves request A that takes 10 seconds, it does not mean that a request which comes after this request needs to wait 10 seconds to start processing because NodeJS event loops are only single-threaded. The entire NodeJS architecture is not ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Aug, 2021"
},
{
"code": null,
"e": 353,
"s": 28,
"text": "We know NodeJS application is single-threaded. Say, if processing involves request A that takes 10 seconds, it does not mean that a request which comes after this request need... |
Python | Loan calculator using Tkinter | 15 Feb, 2021
Prerequisite: Tkinter Introduction
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter outputs the fastest and ea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 64,
"s": 28,
"text": "Prerequisite: Tkinter Introduction "
},
{
"code": null,
"e": 420,
"s": 64,
"text": "Python offers multiple options for developing GUI (Graphical User Interf... |
Does C++ compiler create default constructor when we write our own? | 03 Jun, 2022
No, the C++ compiler doesn’t create a default constructor when we initialize our own, the compiler by default creates a default constructor for every class; But, if we define our own constructor, the compiler doesn’t create the default constructor. This is so because the default constructor does not take a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jun, 2022"
},
{
"code": null,
"e": 493,
"s": 52,
"text": "No, the C++ compiler doesn’t create a default constructor when we initialize our own, the compiler by default creates a default constructor for every class; But, if we define... |
How to Install Jekyll on Windows? | 30 Sep, 2021
Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. Jekyll was first released by Tom Preston-Werner in 2008. Jekyll was later taken ove... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 604,
"s": 28,
"text": "Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, ... |
WPF - Label | The Label class provides both functional and visual support for access keys (also known as mnemonics). It is frequently used to enable quick keyboard access to controls. The hierarchical inheritance of Label class is as follows −
Below are the commonly used properties of Label class
Background
Gets or sets a brush that... | [
{
"code": null,
"e": 2384,
"s": 2154,
"text": "The Label class provides both functional and visual support for access keys (also known as mnemonics). It is frequently used to enable quick keyboard access to controls. The hierarchical inheritance of Label class is as follows −"
},
{
"code": n... |
Java - Decision Making | Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement or statements that are to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.
Following is the general fo... | [
{
"code": null,
"e": 2670,
"s": 2377,
"text": "Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement or statements that are to be executed if the condition is determined to be true, and optionally, other statements to be executed if t... |
Golang Program to convert an integer into binary representation | For example, n = 1 (Binary Representation of 1: 1)
For example, n = 5 (Binary Representation of 5: 101)
For example, n = 20 (Binary Representation of 5: 10100)
For example, n = 31 (Binary Representation of 31: 11111)
Approach to solve this problem
Step 1 − Define a method that accepts an integer, n.
Step 2 − Convert n ... | [
{
"code": null,
"e": 1113,
"s": 1062,
"text": "For example, n = 1 (Binary Representation of 1: 1)"
},
{
"code": null,
"e": 1166,
"s": 1113,
"text": "For example, n = 5 (Binary Representation of 5: 101)"
},
{
"code": null,
"e": 1222,
"s": 1166,
"text": "For exa... |
Scala Stack diff() method with example - GeeksforGeeks | 03 Nov, 2019
In Scala Stack class, the diff() method is used to find the difference between the two stacks. It deletes elements that are present in one stack from the other one.
Method Definition: def diff[B >: A](that: collection.Seq[B]): Stack[A]
Return Type: It returns a new stack which consists of elements after th... | [
{
"code": null,
"e": 23796,
"s": 23768,
"text": "\n03 Nov, 2019"
},
{
"code": null,
"e": 23961,
"s": 23796,
"text": "In Scala Stack class, the diff() method is used to find the difference between the two stacks. It deletes elements that are present in one stack from the other one... |
Python String rjust() Method | Python string method rjust() returns the string right justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s).
Following is the syntax for rjust() method −
str.rjust(width[, fillchar])
width − This is the st... | [
{
"code": null,
"e": 2467,
"s": 2244,
"text": "Python string method rjust() returns the string right justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s)."
},
{
"code": null,
... |
arg() function for Complex Number in C++ | A complex number is a number that is expressed in the form of a + bi, where a and b are real numbers. i is the imaginary part of number.
The argument is the angle between the positive axis and the vector of the complex number. For a complex number
z = x + iy denoted by arg(z),
For finding the argument of a complex numb... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "A complex number is a number that is expressed in the form of a + bi, where a and b are real numbers. i is the imaginary part of number."
},
{
"code": null,
"e": 1310,
"s": 1199,
"text": "The argument is the angle between the positiv... |
What is the difference between a definition and a declaration in C++? | In C++, declaration and definition are often confused. A declaration means (in C) that you are telling the compiler about type, size and in case of function declaration, type and size of its parameters of any variable, or user-defined type or function in your program. No space is reserved in memory for any variable in ... | [
{
"code": null,
"e": 1407,
"s": 1062,
"text": "In C++, declaration and definition are often confused. A declaration means (in C) that you are telling the compiler about type, size and in case of function declaration, type and size of its parameters of any variable, or user-defined type or function i... |
export command in Linux with Examples | 15 May, 2019
export is bash shell BUILTINS commands, which means it is part of the shell. It marks an environment variables to be exported to child-processes.
Export is defined in POSIX as The shell shall give the export attribute to the variables corresponding to the specified names, which shall cause them to be in th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 200,
"s": 54,
"text": "export is bash shell BUILTINS commands, which means it is part of the shell. It marks an environment variables to be exported to child-processes."
},
{
"code": null,
... |
How to rotate an element using CSS ? | 31 Aug, 2020
The purpose of this article is to rotate an HTML element by using CSS transform property. This property is used to move, rotate, scale and to perform various kinds of transformation of elements.
The rotate() function can be used to rotate any HTML element or used for transformations. It takes one parameter... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 223,
"s": 28,
"text": "The purpose of this article is to rotate an HTML element by using CSS transform property. This property is used to move, rotate, scale and to perform various kinds of transfor... |
Mirror of n-ary Tree | 28 Jun, 2022
Given a Tree where every node contains variable number of children, convert the tree to its mirror. Below diagram shows an example.
We strongly recommend you to minimize your browser and try this yourself first. Node of tree is represented as a key and a variable sized array of children pointers. The idea... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 187,
"s": 54,
"text": "Given a Tree where every node contains variable number of children, convert the tree to its mirror. Below diagram shows an example. "
},
{
"code": null,
"e": 616,... |
Sets intersection() function | Guava | Java | 14 Nov, 2018
Guava’s Sets.intersection() returns an unmodifiable view of the intersection of two sets. The returned set contains all elements that are contained by both backing sets. The iteration order of the returned set matches that of set1.
Syntax:
public static <E>
Sets.SetView<E>
intersection(Set<E>... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Nov, 2018"
},
{
"code": null,
"e": 260,
"s": 28,
"text": "Guava’s Sets.intersection() returns an unmodifiable view of the intersection of two sets. The returned set contains all elements that are contained by both backing sets. The i... |
Scala | Abstract Type members | 16 May, 2019
A member of a class or trait is said to be abstract if that particular member does not have a complete definition in the class. These Abstract members are always implemented in any sub-classes of the class under which it is defined. These kinds of declaration are allowed in many programming languages and i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 May, 2019"
},
{
"code": null,
"e": 475,
"s": 28,
"text": "A member of a class or trait is said to be abstract if that particular member does not have a complete definition in the class. These Abstract members are always implemented i... |
Highlight Rows Based on a Cell Value in Excel | 06 Jun, 2021
Conditional Formatting generally checks the value in one cell and applies formatting over the other cells. A great application of conditional formatting is highlighting the entire row or multiple rows based on a cell value and condition provided in the formula.
It is very helpful because for a data set wi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 316,
"s": 54,
"text": "Conditional Formatting generally checks the value in one cell and applies formatting over the other cells. A great application of conditional formatting is highlighting the e... |
How to get city name by using geolocation ? | 02 Apr, 2020
In this article, we will learn how to get the city name of the user using reverse geocoding. We will be using a 3rd party API service provider(Location IQ) to help us to convert the latitude and longitude we receive into an address.
Steps:
Get user coordinates.Get city name.
Get user coordinates.
Get city ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Apr, 2020"
},
{
"code": null,
"e": 261,
"s": 28,
"text": "In this article, we will learn how to get the city name of the user using reverse geocoding. We will be using a 3rd party API service provider(Location IQ) to help us to conve... |
Python | Pandas dataframe.select_dtypes() | 23 Nov, 2018
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 dataframe.select_dtypes() function return a subset of the DataFrame’s columns based on... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Nov, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"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 imp... |
ImageView in Android with Example | 18 Feb, 2021
ImageView class is used to display any kind of image resource in the android application either it can be android.graphics.Bitmap or android.graphics.drawable.Drawable (it is a general abstraction for anything that can be drawn in Android). ImageView class or android.widget.ImageView inherits the android.v... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 640,
"s": 52,
"text": "ImageView class is used to display any kind of image resource in the android application either it can be android.graphics.Bitmap or android.graphics.drawable.Drawable (it is... |
Count all distinct pairs with difference equal to k | 05 Jul, 2022
Given an integer array and a positive integer k, count all distinct pairs with differences equal to k.
Examples:
Input: arr[] = {1, 5, 3, 4, 2}, k = 3
Output: 2
There are 2 pairs with difference 3, the pairs are {1, 4} and {5, 2}
Input: arr[] = {8, 12, 16, 4, 0, 20}, k = 4
Output: 5
There are 5 pairs w... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 158,
"s": 54,
"text": "Given an integer array and a positive integer k, count all distinct pairs with differences equal to k. "
},
{
"code": null,
"e": 169,
"s": 158,
"text": "E... |
Underscore.js | _.pick() Function | 27 Apr, 2020
The _.pick() function is used to return a copy of the object that filtered using the given key. This function accepts a predicate indicating which keys are picked from the object.
Syntax:
_.pick(object, *keys)
Parameters: This function accept two parameters as mentioned above and described below:
object: T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 208,
"s": 28,
"text": "The _.pick() function is used to return a copy of the object that filtered using the given key. This function accepts a predicate indicating which keys are picked from the obj... |
Create a gauss pulse using scipy.signal.gausspulse | 03 Jan, 2021
Prerequisites: Scipy
The impulse response of a Gaussian Filter is written as a Gaussian Function as follows:
Its result is also Gaussian. In this article, we will plot the gauss pulse at 3Hz using scipy and matplotlib Python library. Gauss pulse is used in digital filters for motion analysis. To create a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 49,
"s": 28,
"text": "Prerequisites: Scipy"
},
{
"code": null,
"e": 138,
"s": 49,
"text": "The impulse response of a Gaussian Filter is written as a Gaussian Function as follows:... |
DAX Aggregation - COUNTAX function | Counts nonblank results when evaluating the result of an expression over a table. That is, it works just like the COUNTA function, however it is used to iterate through the rows in a table and count rows where the specified expressions result in a nonblank result.
COUNTAX (<table>, <expression>)
table
The table contai... | [
{
"code": null,
"e": 2400,
"s": 2135,
"text": "Counts nonblank results when evaluating the result of an expression over a table. That is, it works just like the COUNTA function, however it is used to iterate through the rows in a table and count rows where the specified expressions result in a nonbl... |
How to plot a graph in R using CSV file ? | 26 Mar, 2021
To plot a graph in R using a CSV file, we need a CSV file with two-column, the values in the first column will be considered as the points at the x-axis and the values in the second column will be considered as the points at the y-axis. In this article, we will be looking at the way to plot a graph using a... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 385,
"s": 53,
"text": "To plot a graph in R using a CSV file, we need a CSV file with two-column, the values in the first column will be considered as the points at the x-axis and the values in the... |
How to Convert HTML to Markdown in Python? | 03 Mar, 2021
Markdown is a way of writing a formatted text on the web. This article discusses how an HTML text can be converted to Markdown. We can easily convert HTML to markdown using markdownify package. So let’s see how to download markdownify package and convert our HTML to markdown in python.
This module does no... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Markdown is a way of writing a formatted text on the web. This article discusses how an HTML text can be converted to Markdown. We can easily convert HTML to markdown using ma... |
Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given | 08 Jul, 2022
Given three integers d, h1, h2 where d represents the length of the diagonal of a quadrilateral. h1 and h2 represents the lengths of the perpendiculars to the given diagonal from the opposite vertices. The task is to find the area of the Quadrilateral.
Examples:
Input : d= 6, h1 = 4, h2 = 3 Output : 21I... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 282,
"s": 28,
"text": "Given three integers d, h1, h2 where d represents the length of the diagonal of a quadrilateral. h1 and h2 represents the lengths of the perpendiculars to the given diagonal f... |
How to select multiple options at once in dropdown list in HTML5? | 25 Mar, 2021
Dropdown lists are one of the most flexible elements in HTML. It is similar to that of the radio input, that is, only one item can be selected from a group of items by default. However, when the multiple attribute is used with the <select> element, we can enable the selection of multiple options from the l... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Mar, 2021"
},
{
"code": null,
"e": 451,
"s": 28,
"text": "Dropdown lists are one of the most flexible elements in HTML. It is similar to that of the radio input, that is, only one item can be selected from a group of items by default... |
Java Program to Sort the Array Elements in Descending Order | 09 Oct, 2021
Sort the given array in descending order, i.e., arrange the elements from largest to smallest.
Example:
Input :Array = {2, 6, 23, 98, 24, 35, 78}
Output:[98, 78, 35, 24, 23, 6, 2]
Input :Array = {1, 2, 3, 4, 5}
Output:[5, 4, 3, 2, 1]
Sorting is a process of arranging items systematically. sort() is an in... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Oct, 2021"
},
{
"code": null,
"e": 148,
"s": 52,
"text": "Sort the given array in descending order, i.e., arrange the elements from largest to smallest. "
},
{
"code": null,
"e": 157,
"s": 148,
"text": "Example:"... |
DBSCAN Clustering in ML | Density based clustering - GeeksforGeeks | 29 Sep, 2021
Clustering analysis or simply Clustering is basically an Unsupervised learning method that divides the data points into a number of specific batches or groups, such that the data points in the same groups have similar properties and data points in different groups have different properties in some sense. I... | [
{
"code": null,
"e": 25671,
"s": 25643,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 26300,
"s": 25671,
"text": "Clustering analysis or simply Clustering is basically an Unsupervised learning method that divides the data points into a number of specific batches or groups, suc... |
JavaScript Array some() Method - GeeksforGeeks | 04 Oct, 2021
Below is the example of Array some() method.
Example:<script> function checkAvailability(arr, val) { return arr.some(function (arrVal) { return val === arrVal; }); } function func() { // Original function var arr = [2, 5, 8, 1, 4]; // Checking for co... | [
{
"code": null,
"e": 25889,
"s": 25861,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 25934,
"s": 25889,
"text": "Below is the example of Array some() method."
},
{
"code": null,
"e": 26361,
"s": 25934,
"text": "Example:<script> function checkAvailabilit... |
Node.js fs.createWriteStream() Method - GeeksforGeeks | 04 May, 2022
The createWriteStream() method is an inbuilt application programming interface of fs module which allows to quickly make a writable stream for the purpose of writing data to a file. This method may be a smarter option compared to methods like fs.writeFile when it comes to very large amounts of data.
Syntax... | [
{
"code": null,
"e": 25813,
"s": 25785,
"text": "\n04 May, 2022"
},
{
"code": null,
"e": 26114,
"s": 25813,
"text": "The createWriteStream() method is an inbuilt application programming interface of fs module which allows to quickly make a writable stream for the purpose of writi... |
Implementation of Priority Queue in Javascript - GeeksforGeeks | 22 Jul, 2021
Priority Queue is an extension of Queue having some properties as follows:
Each element of the priority queue has a priority associated with it.Elements are added to the queue as per the priority.Lowest priority elements are removed first.
Each element of the priority queue has a priority associated with ... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 25637,
"s": 25561,
"text": "Priority Queue is an extension of Queue having some properties as follows: "
},
{
"code": null,
"e": 25802,
"s": 25637,
"text": "Each element o... |
Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula - GeeksforGeeks | 26 Mar, 2021
Given three integers a, b and c such that a + b + c = 0. The task is to find the roots of a quadratic equation ax2 + bx + c = 0.Examples:
Input: a = 1, b = 2, c = -3 Output: 1, -3Input: a = -5, b = 3, c = 2 Output: 1, -2.5
Approach: When a + b + c = 0 then the roots of the equation ax2 + bx + c = 0 a... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 26103,
"s": 25963,
"text": "Given three integers a, b and c such that a + b + c = 0. The task is to find the roots of a quadratic equation ax2 + bx + c = 0.Examples: "
},
{
"code": n... |
Creating Series from list, dictionary, and numpy array in Pandas - GeeksforGeeks | 08 Jun, 2020
Pandas Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The axis labels are collectively called index. Pandas Series is nothing but a column in an excel sheet. In this article, we will see various ways of creating a series using d... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 25865,
"s": 25537,
"text": "Pandas Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The axis labels are collective... |
Scanner skip() method in Java with Examples - GeeksforGeeks | 11 Oct, 2018
The skip(Pattern pattern) method of java.util.Scanner class skips input that matches the specified pattern, ignoring the delimiters. The function skips the input if an anchored match of the specified pattern succeeds it.
Syntax:
public Scanner skip(Pattern pattern)
Parameters: The function accepts a mandat... | [
{
"code": null,
"e": 25711,
"s": 25683,
"text": "\n11 Oct, 2018"
},
{
"code": null,
"e": 25932,
"s": 25711,
"text": "The skip(Pattern pattern) method of java.util.Scanner class skips input that matches the specified pattern, ignoring the delimiters. The function skips the input i... |
Root to leaf path sum equal to a given number - GeeksforGeeks | 10 Jan, 2022
Given a binary tree and a number, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals the given number. Return false if no such path can be found.
For example, in the above tree root to leaf paths exist with following sums.21 –> 10 – 8 – 3 23 –> 10 – 8... | [
{
"code": null,
"e": 37093,
"s": 37065,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 37295,
"s": 37093,
"text": "Given a binary tree and a number, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals the given number. Return... |
Python | Pandas Timestamp.hour - GeeksforGeeks | 08 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.hour attribute return the value of the hour for the given Timestamp object.
... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n08 Jan, 2019"
},
{
"code": null,
"e": 25751,
"s": 25537,
"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... |
How to Build a Simple Note Android App using MVVM and Room Database? - GeeksforGeeks | 31 Mar, 2022
Android provides us a feature with which we can store users’ data inside their mobile itself with different storage options such as Shared Preferences, SQLite database, and the Room Database. All the data storing techniques are having different use cases. In this article, we will specifically take a look a... | [
{
"code": null,
"e": 25413,
"s": 25385,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 25978,
"s": 25413,
"text": "Android provides us a feature with which we can store users’ data inside their mobile itself with different storage options such as Shared Preferences, SQLite data... |
Matplotlib.pyplot.title() in Python - GeeksforGeeks | 05 Jan, 2022
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
The title() method in matplotlib module is used to specify title of the visualization depicted ... | [
{
"code": null,
"e": 26211,
"s": 26183,
"text": "\n05 Jan, 2022"
},
{
"code": null,
"e": 26423,
"s": 26211,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an... |
Subset Sum | Backtracking-4 - GeeksforGeeks | 06 Jul, 2021
Subset sum problem is to find subset of elements that are selected from a given set whose sum adds up to a given number K. We are considering the set contains non-negative values. It is assumed that the input set is unique (no duplicates are presented).
Exhaustive Search Algorithm for Subset SumOne way to ... | [
{
"code": null,
"e": 35839,
"s": 35811,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 36093,
"s": 35839,
"text": "Subset sum problem is to find subset of elements that are selected from a given set whose sum adds up to a given number K. We are considering the set contains non-... |
numpy.binary_repr() in Python - GeeksforGeeks | 29 Nov, 2018
numpy.binary_repr(number, width=None) function is used to represent binary form of the input number as a string.
For negative numbers, if width is not given, a minus sign is added to the front. If width is given, the two’s complement of the number is returned, with respect to that width.In a two’s-compleme... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 25650,
"s": 25537,
"text": "numpy.binary_repr(number, width=None) function is used to represent binary form of the input number as a string."
},
{
"code": null,
"e": 26012,
"s... |
Java Program to Store Escape Sequence Using Character Literals - GeeksforGeeks | 04 Nov, 2020
An Escape Sequence is a character or a sequence of characters, the purpose of which is to implement the characters which they don’t represent literally and which might be otherwise unfeasible to represent. Some examples of such characters would be backspace, newline, horizontal or vertical tab, to name a f... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n04 Nov, 2020"
},
{
"code": null,
"e": 25718,
"s": 25225,
"text": "An Escape Sequence is a character or a sequence of characters, the purpose of which is to implement the characters which they don’t represent literally and which m... |
PyQt5 - Getting the role of selected item in ComboBox - GeeksforGeeks | 22 Apr, 2020
In this article we will see how we can get the role of selected item in the combo box. Role is basically additional data provided with the item, in order get the role of selected item we use currentData method.
Syntax : combo_box.currentData()
Argument : It takes no argument
Return : It return string i.e r... | [
{
"code": null,
"e": 26217,
"s": 26189,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 26428,
"s": 26217,
"text": "In this article we will see how we can get the role of selected item in the combo box. Role is basically additional data provided with the item, in order get the r... |
Rearrange characters in a string such that no two adjacent are same - GeeksforGeeks | 18 Apr, 2022
Given a string with repeated characters, the task is to rearrange characters in a string so that no two adjacent characters are same.Note : It may be assumed that the string has only lowercase English alphabets.
Examples:
Input: aaabc Output: abaca
Input: aaabbOutput: ababa
Input: aa Output: Not Possib... | [
{
"code": null,
"e": 26353,
"s": 26325,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 26565,
"s": 26353,
"text": "Given a string with repeated characters, the task is to rearrange characters in a string so that no two adjacent characters are same.Note : It may be assumed that ... |
Node.js fsPromises.mkdir() Method - GeeksforGeeks | 08 Oct, 2021
The fsPromises.mkdir() method is used to asynchronously create a directory then resolves the Promise with either no arguments, or the first directory path created if recursive is true.
Syntax:
fsPromises.mkdir(path, options)
Parameters: This method accept two parameters as mentioned above and described bel... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 26452,
"s": 26267,
"text": "The fsPromises.mkdir() method is used to asynchronously create a directory then resolves the Promise with either no arguments, or the first directory path created ... |
numpy.argmin() in Python - GeeksforGeeks | 09 Mar, 2022
The numpy.argmin() method returns indices of the min element of the array in a particular axis.
Syntax :
numpy.argmin(array, axis = None, out = None)
Parameters :
array : Input array to work on
axis : [int, optional]Along a specified axis like 0 or 1
out : [array optional]Provides a feature to inse... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 25653,
"s": 25555,
"text": "The numpy.argmin() method returns indices of the min element of the array in a particular axis. "
},
{
"code": null,
"e": 25663,
"s": 25653,
"... |
Download Instagram Posts Using Python Selenium module - GeeksforGeeks | 20 Sep, 2021
In this article, we will learn how we can download Instagram posts of a profile using Python Selenium module.
Google Chrome or Firefox
Chrome driver(For Google Chrome) or Gecko driver(For Mozilla Firefox)
Selenium package: It is a powerful tool for controlling a web browser through the program. It is funct... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n20 Sep, 2021"
},
{
"code": null,
"e": 25647,
"s": 25537,
"text": "In this article, we will learn how we can download Instagram posts of a profile using Python Selenium module."
},
{
"code": null,
"e": 25672,
"s": ... |
Print all possible permutations of an Array/Vector without duplicates using Backtracking - GeeksforGeeks | 08 Dec, 2021
Given vector nums, the task is to print all the possible permutations of the given vector using backtracking
Examples:
Input: nums[] = {1, 2, 3}Output: {1, 2, 3}, {1, 3, 2}, {2, 1, 3}, {2, 3, 1}, {3, 2, 1}, {3, 1, 2}Explanation: There are 6 possible permutations
Input: nums[] = {1, 3}Output: {1, 3}, {3, 1... | [
{
"code": null,
"e": 26383,
"s": 26355,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 26493,
"s": 26383,
"text": "Given vector nums, the task is to print all the possible permutations of the given vector using backtracking "
},
{
"code": null,
"e": 26503,
"s": ... |
HTML <ol> Tag - GeeksforGeeks | 09 Dec, 2021
In this article, we will know HTML <ol> Tag, & its implementation through the examples. The <ol> tag is for an ordered list, an ordered list can be numerical or alphabetical. Inside the <ol> tag you have to make a list <li> of items that will follow the order.
Syntax:
<ol>
<li>Item1</li>
<li>Item2</l... | [
{
"code": null,
"e": 25725,
"s": 25697,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 25986,
"s": 25725,
"text": "In this article, we will know HTML <ol> Tag, & its implementation through the examples. The <ol> tag is for an ordered list, an ordered list can be numerical or al... |
Difference Between Single and Multiple Inheritance | In this post, we will understand the difference between single inheritance and multiple inheritance.
It is the one wherein the derived class inherits the single base class.
It is the one wherein the derived class inherits the single base class.
The derived class inherits the features of the base class.
The derived clas... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "In this post, we will understand the difference between single inheritance and multiple inheritance."
},
{
"code": null,
"e": 1235,
"s": 1163,
"text": "It is the one wherein the derived class inherits the single base class."
},
{... |
How to Create Sentiment Analysis Application using Node.js ? - GeeksforGeeks | 20 Jan, 2022
Sentiment Analysis is a natural language processing technique used to determine emotions from textual data. It’s often performed to know customer requirements, study product sentiment in user feedback, decision-making, and more.
Types of Sentiment Analysis:
Fine-grained Sentiment Analysis: It is done when ... | [
{
"code": null,
"e": 25560,
"s": 25532,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 25789,
"s": 25560,
"text": "Sentiment Analysis is a natural language processing technique used to determine emotions from textual data. It’s often performed to know customer requirements, stu... |
Effective Resume Writing | A resume is a medium for advertising yourself, its the first most means which you use to present yourself and try to claim that you are the best choice to your prospects employer. Through your resume you have to showcase your major assets like −
Qualifications
Experience
Achievements
Capabilities, and
Qualities
You h... | [
{
"code": null,
"e": 1896,
"s": 1648,
"text": "A resume is a medium for advertising yourself, its the first most means which you use to present yourself and try to claim that you are the best choice to your prospects employer. Through your resume you have to showcase your major assets like −"
},... |
C | Structure & Union | Question 10 - GeeksforGeeks | 28 Jun, 2021
struct node { int i; float j; }; struct node *s[10];
The above C declaration define ‘s’ to be (GATE CS 2000)(A) An array, each element of which is a pointer to a structure of type node(B) A structure of 2 fields, each field being a pointer to an array of 10 elements(C) A structure of 3 fields: an int... | [
{
"code": null,
"e": 24154,
"s": 24126,
"text": "\n28 Jun, 2021"
},
{
"code": "struct node { int i; float j; }; struct node *s[10];",
"e": 24213,
"s": 24154,
"text": null
},
{
"code": null,
"e": 24635,
"s": 24213,
"text": "The above C declaration define ... |
Working with Sparse Matrices in R Programming - GeeksforGeeks | 12 Oct, 2020
Sparse matrices are sparsely populated collection of elements, where there is very less number of non-null elements. Storage of sparsely populated data in a fully dense matrix leads to increased complexities of time and space. Therefore, the data structures are optimized to store this data much more effici... | [
{
"code": null,
"e": 26597,
"s": 26569,
"text": "\n12 Oct, 2020"
},
{
"code": null,
"e": 26952,
"s": 26597,
"text": "Sparse matrices are sparsely populated collection of elements, where there is very less number of non-null elements. Storage of sparsely populated data in a fully ... |
TreeSet higher() method in Java with Examples - GeeksforGeeks | 23 Dec, 2018
The higher(E ele) method of TreeSet class in Java is used to return the least element in this set which is strictly greater than the given element ele. If no such element is there then this method returns NULL.
Here, E is the type of element maintained by this TreeSet collection.
Syntax:
public E higher(E ... | [
{
"code": null,
"e": 25687,
"s": 25659,
"text": "\n23 Dec, 2018"
},
{
"code": null,
"e": 25898,
"s": 25687,
"text": "The higher(E ele) method of TreeSet class in Java is used to return the least element in this set which is strictly greater than the given element ele. If no such ... |
JavaScript Backend basics - GeeksforGeeks | 27 Apr, 2020
The popularity of Node.js has definitely boosted the use of javascript as a backend language, and in order to get started with javascript in the backend, you need to know some basics and general rules of this language. The following article is to get started with back end development using JavaScript.
Java... | [
{
"code": null,
"e": 25843,
"s": 25815,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 26146,
"s": 25843,
"text": "The popularity of Node.js has definitely boosted the use of javascript as a backend language, and in order to get started with javascript in the backend, you need ... |
Cuts and Network Flow - GeeksforGeeks | 09 Aug, 2019
The backbone analysis of any network is broadly accomplished by using Graph Theory and its Algorithms. The performance constraints are Reliability, Delay/Throughput and the goal is to minimize cost.
In the backbone designing of a network the concerned points and considerations are :
What should be the back... | [
{
"code": null,
"e": 25969,
"s": 25941,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 26168,
"s": 25969,
"text": "The backbone analysis of any network is broadly accomplished by using Graph Theory and its Algorithms. The performance constraints are Reliability, Delay/Throughpu... |
A Simple Guide to Linear Regression using Python | by Frank Andrade | Towards Data Science | One of the first machine learning algorithms every data scientist should learn is linear regression. This simple model helps us grasp core concepts of machine learning such as recognizing the dependent and independent variables, building a model, and understand the math and statistics behind a model.
There are 2 common... | [
{
"code": null,
"e": 474,
"s": 172,
"text": "One of the first machine learning algorithms every data scientist should learn is linear regression. This simple model helps us grasp core concepts of machine learning such as recognizing the dependent and independent variables, building a model, and unde... |
MySQL | Database Files - GeeksforGeeks | 28 Jan, 2022
Whenever MySQL database installation is done, all the database related data and metadata are stored in one folder.This is the actual database schema with some values in it.Let us explore more about it.
The file extensions are as follows:
.frm – This is the extension of file which contains the schema or ... | [
{
"code": null,
"e": 25669,
"s": 25641,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 25872,
"s": 25669,
"text": "Whenever MySQL database installation is done, all the database related data and metadata are stored in one folder.This is the actual database schema with some valu... |
Python Regex Cheat Sheet - GeeksforGeeks | 24 Jan, 2021
Regex or Regular Expressions are an important part of Python Programming or any other Programming Language. It is used for searching and even replacing the specified text pattern. In the regular expression, a set of characters together form the search pattern. It is also known as reg-ex pattern. Tough thin... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 26170,
"s": 25563,
"text": "Regex or Regular Expressions are an important part of Python Programming or any other Programming Language. It is used for searching and even replacing the specifi... |
Remove brackets from an algebraic string containing + and - operators - GeeksforGeeks | 16 Mar, 2022
Simplify a given algebraic string of characters, ‘+’, ‘-‘ operators and parentheses. Output the simplified string without parentheses.Examples:
Input : "(a-(b+c)+d)"
Output : "a-b-c+d"
Input : "a-(b-c-(d+e))-f"
Output : "a-b+c+d+e-f"
The idea is to check operators just before starting of bracket, i.e.,... | [
{
"code": null,
"e": 25933,
"s": 25905,
"text": "\n16 Mar, 2022"
},
{
"code": null,
"e": 26079,
"s": 25933,
"text": "Simplify a given algebraic string of characters, ‘+’, ‘-‘ operators and parentheses. Output the simplified string without parentheses.Examples: "
},
{
"co... |
fd - Simple and Fast alternative to the find command - GeeksforGeeks | 23 Aug, 2021
fd is a command-line tool to find files on the filesystem. This tool is similar to the find command in Linux, but fd is more fast and simple to use. It is not powerful as the find command but provides the basic functionality of the find command in simple ways. Let’s see the features of fd tool.
Simple synt... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 25947,
"s": 25651,
"text": "fd is a command-line tool to find files on the filesystem. This tool is similar to the find command in Linux, but fd is more fast and simple to use. It is not powe... |
Extract first N rows from dataframe in R - GeeksforGeeks | 26 Mar, 2021
A required number of rows can be retrieved from a dataframe for some computation that demands so. In this article, we will be discussing two different approaches for extracting the first n rows from the data frame
File in Use:
Method 1: Using head() function
This function will help to extract the given fir... | [
{
"code": null,
"e": 25891,
"s": 25863,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 26105,
"s": 25891,
"text": "A required number of rows can be retrieved from a dataframe for some computation that demands so. In this article, we will be discussing two different approaches f... |
Error Handling in Express - GeeksforGeeks | 03 Jun, 2020
Error handling in Express is referred to as something that handles or processes errors that may come while executing any synchronous code or asynchronous code.
What do we mean by synchronous or asynchronous code?A lot of times, it happens that an operation begins executing but for some reason faces some de... | [
{
"code": null,
"e": 30859,
"s": 30831,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 31019,
"s": 30859,
"text": "Error handling in Express is referred to as something that handles or processes errors that may come while executing any synchronous code or asynchronous code."
... |
How to Install Go on Debian 10? - GeeksforGeeks | 06 Oct, 2021
Go is an open-source programming language built by google to write microservices. Its syntax is inspired by java and the c++. Using Golang it is easy to build simple, reliable, and efficient software In this article we are going to see how we can install Golang in our Debian System.
System on which we are ... | [
{
"code": null,
"e": 26197,
"s": 26169,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 26481,
"s": 26197,
"text": "Go is an open-source programming language built by google to write microservices. Its syntax is inspired by java and the c++. Using Golang it is easy to build simp... |
Logger getResourceBundle() Method in Java with Examples - GeeksforGeeks | 03 Jun, 2021
getResourceBundle() method of a Logger class is used to localise resource bundle for this logger. We can set ResourceBundle either by the setResourceBundle method or mapped from the resource bundle name set via the getLogger factory method for the current default locale and this method will return a Resour... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 25696,
"s": 25225,
"text": "getResourceBundle() method of a Logger class is used to localise resource bundle for this logger. We can set ResourceBundle either by the setResourceBundle method ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.