title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to run a function when the page is loaded in JavaScript ?
21 Jul, 2021 A function can be executed when the page loaded successfully. This can be used for various purposes like checking for cookies or setting the correct version of the page depending on the user browser. Method 1: Using onload method: The body of a webpage contains the actual content that is to be displayed. T...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2021" }, { "code": null, "e": 228, "s": 28, "text": "A function can be executed when the page loaded successfully. This can be used for various purposes like checking for cookies or setting the correct version of the page depend...
How to Convert java.util.Date to java.sql.Date in Java?
17 Jan, 2022 Date class is present in both java.util package and java.sql package. Though the name of the class is the same for both packages, their utilities are different. Date class of java.util package is required when data is required in a java application to do any computation or for other various things, while D...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 596, "s": 28, "text": "Date class is present in both java.util package and java.sql package. Though the name of the class is the same for both packages, their utilities are different. Date class of ...
std::regex_match, std::regex_replace() | Regex (Regular Expression) In C++
04 Jul, 2022 Regex is the short form for “Regular expression”, which is often used in this way in programming languages and many different libraries. It is supported in C++11 onward compilers.Function Templates used in regex regex_match() -This function return true if the regular expression is a match against the given...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jul, 2022" }, { "code": null, "e": 266, "s": 54, "text": "Regex is the short form for “Regular expression”, which is often used in this way in programming languages and many different libraries. It is supported in C++11 onward compi...
Spring Boot – application.yml/application.yaml File
22 Dec, 2021 Spring is widely used for creating scalable applications. For web applications Spring provides. In Spring Boot, whenever we create a new Spring Boot Application in spring starter, or inside an IDE (Eclipse or STS) a file is located inside the src/main/resources folder named as application.properties file w...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Dec, 2021" }, { "code": null, "e": 394, "s": 53, "text": "Spring is widely used for creating scalable applications. For web applications Spring provides. In Spring Boot, whenever we create a new Spring Boot Application in spring sta...
Difference between MEAN Stack and MERN Stack
06 Nov, 2020 In the field of web development, full-stack development is playing a vital role. A full-stack development provides a solution for perfect solutions for front-end, back-end, testing, mobile application. In today’s world, the demand for a full-stack developer is rising tremendously. A full-stack developer ca...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 Nov, 2020" }, { "code": null, "e": 559, "s": 53, "text": "In the field of web development, full-stack development is playing a vital role. A full-stack development provides a solution for perfect solutions for front-end, back-end, t...
Stepping Numbers
04 Jul, 2022 Given two integers ‘n’ and ‘m’, find all the stepping numbers in range [n, m]. A number is called stepping number if all adjacent digits have an absolute difference of 1. 321 is a Stepping Number while 421 is not. Examples : Input : n = 0, m = 21 Output : 0 1 2 3 4 5 6 7 8 9 10 12 21 Input : n = 10, m = ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jul, 2022" }, { "code": null, "e": 266, "s": 52, "text": "Given two integers ‘n’ and ‘m’, find all the stepping numbers in range [n, m]. A number is called stepping number if all adjacent digits have an absolute difference of 1. 321...
How to reverse a Vector using STL in C++?
30 May, 2021 Given a vector, reverse this vector using STL in C++.Example: Input: vec = {1, 45, 54, 71, 76, 12} Output: {12, 76, 71, 54, 45, 1} Input: vec = {1, 7, 5, 4, 6, 12} Output: {12, 6, 4, 5, 7, 1} Approach: Reversing can be done with the help of reverse() function provided in STL. The Time complexity of the ...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 May, 2021" }, { "code": null, "e": 117, "s": 53, "text": "Given a vector, reverse this vector using STL in C++.Example: " }, { "code": null, "e": 248, "s": 117, "text": "Input: vec = {1, 45, 54, 71, 76, 12}\nOut...
How to append data to <div> element using JavaScript ?
11 Oct, 2019 To append the data to <div> element we have to use DOM(Document Object Model) manipulation techniques. The approach is to create a empty <div> with an id inside the HTML skeleton. Then that id will be used to fetch that <div> and then we will manipulate the inner text of that div. Syntax: document.getEleme...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Oct, 2019" }, { "code": null, "e": 336, "s": 54, "text": "To append the data to <div> element we have to use DOM(Document Object Model) manipulation techniques. The approach is to create a empty <div> with an id inside the HTML skel...
Minimize absolute difference between the smallest and largest array elements by minimum increment decrement operations
19 Jul, 2021 Given an array arr[] consisting of N positive integers, the task is to minimize the number of operations required to minimize the absolute difference between the smallest and largest elements present in the array. In each operation, subtract 1 from an array element and increment 1 to another array element....
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jul, 2021" }, { "code": null, "e": 336, "s": 28, "text": "Given an array arr[] consisting of N positive integers, the task is to minimize the number of operations required to minimize the absolute difference between the smallest and ...
Pythagorean Triplet in an array
21 Jun, 2022 Given an array of integers, write a function that returns true if there is a triplet (a, b, c) that satisfies a2 + b2 = c2. Example: Input: arr[] = {3, 1, 4, 6, 5} Output: True There is a Pythagorean triplet (3, 4, 5). Input: arr[] = {10, 4, 6, 12, 5} Output: False There is no Pythagorean triplet. Method...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 176, "s": 52, "text": "Given an array of integers, write a function that returns true if there is a triplet (a, b, c) that satisfies a2 + b2 = c2." }, { "code": null, "e": 186, "s":...
Using Instance Blocks in Java
31 Aug, 2021 The instance block can be defined as the name-less method in java inside which we can define logic and they possess certain characteristics as follows. They can be declared inside classes but not inside any method. Instance block logic is common for all the objects. Instance block will be executed only onc...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 Aug, 2021" }, { "code": null, "e": 400, "s": 53, "text": "The instance block can be defined as the name-less method in java inside which we can define logic and they possess certain characteristics as follows. They can be declared i...
Understanding HDBSCAN and Density-Based Clustering | by Pepe Berba | Towards Data Science
HDBSCAN is a clustering algorithm developed by Campello, Moulavi, and Sander [8]. It stands for “Hierarchical Density-Based Spatial Clustering of Applications with Noise.” In this blog post, I will try to present in a top-down approach the key concepts to help understand how and why HDBSCAN works. This is meant to comp...
[ { "code": null, "e": 344, "s": 172, "text": "HDBSCAN is a clustering algorithm developed by Campello, Moulavi, and Sander [8]. It stands for “Hierarchical Density-Based Spatial Clustering of Applications with Noise.”" }, { "code": null, "e": 630, "s": 344, "text": "In this blog p...
Removing empty fields from MongoDB
To remove empty fields, use deleteMany(). Let us first create a collection with documents − > db.removeEmptyFieldsDemo.insertOne({"StudentName":""}); { "acknowledged" : true, "insertedId" : ObjectId("5ce92b9578f00858fb12e919") } > db.removeEmptyFieldsDemo.insertOne({"StudentName":"Chris"}); { "acknowledged" : ...
[ { "code": null, "e": 1154, "s": 1062, "text": "To remove empty fields, use deleteMany(). Let us first create a collection with documents −" }, { "code": null, "e": 1737, "s": 1154, "text": "> db.removeEmptyFieldsDemo.insertOne({\"StudentName\":\"\"});\n{\n \"acknowledged\" : tr...
Causal Inference via CausalImpact | by Pranav Prathvikumar | Towards Data Science
Wikipedia defines it as the process of drawing a conclusion about a causal connection based on the conditions of the occurrence of an effect. In simpler words, Causal Inference is about determining the impact of an event/change on the desired outcome metric. Some instances of this being, if a newly launched marketing e...
[ { "code": null, "e": 1001, "s": 172, "text": "Wikipedia defines it as the process of drawing a conclusion about a causal connection based on the conditions of the occurrence of an effect. In simpler words, Causal Inference is about determining the impact of an event/change on the desired outcome met...
C# factorial
To calculate factorial in C#, you can use while loop and loop through until the number is not equal to 1. Here n is the value for which you want the factorial − int res = 1; while (n != 1) { res = res * n; n = n - 1; } Above, let’s say we want 5! (5 factorial) For that, n=5, Loop Iteration 1 − n=5 res = res*n i.e...
[ { "code": null, "e": 1168, "s": 1062, "text": "To calculate factorial in C#, you can use while loop and loop through until the number is not equal to 1." }, { "code": null, "e": 1223, "s": 1168, "text": "Here n is the value for which you want the factorial −" }, { "code":...
Support Vector Machines (SVM) clearly explained: A python tutorial for classification problems with 3D plots | by Serafeim Loukas | Towards Data Science
Everyone has heard about the famous and widely-used Support Vector Machines (SVMs). The original SVM algorithm was invented by Vladimir N. Vapnik and Alexey Ya. Chervonenkis in 1963. SVMs are supervised machine learning models that are usually employed for classification (SVC — Support Vector Classification) or regress...
[ { "code": null, "e": 354, "s": 171, "text": "Everyone has heard about the famous and widely-used Support Vector Machines (SVMs). The original SVM algorithm was invented by Vladimir N. Vapnik and Alexey Ya. Chervonenkis in 1963." }, { "code": null, "e": 808, "s": 354, "text": "SVM...
Find and Draw Contours using OpenCV in Python
For the purpose of image analysis we use the Opencv (Open Source Computer Vision Library) python library. The library name that has to be imported after installing opencv is cv2. In the below example we find the contours present in an image files. Contours help us identify the shapes present in an image. Contours are d...
[ { "code": null, "e": 1241, "s": 1062, "text": "For the purpose of image analysis we use the Opencv (Open Source Computer Vision Library) python library. The library name that has to be imported after installing opencv is cv2." }, { "code": null, "e": 1659, "s": 1241, "text": "In ...
Java if-else-if ladder statement
An if statement can be followed by an optional else if...elsestatement, which is very useful to test various conditions using single if...else if statement. When using if, else if, else statements there are a few points to keep in mind. An if can have zero or one else's and it must come after any else if's. An if can h...
[ { "code": null, "e": 1219, "s": 1062, "text": "An if statement can be followed by an optional else if...elsestatement, which is very useful to test various conditions using single if...else if statement." }, { "code": null, "e": 1299, "s": 1219, "text": "When using if, else if, e...
Error-First Callback in Node.js - GeeksforGeeks
16 Feb, 2022 Error-First Callback in Node.js is a function which either returns an error object or any successful data returned by the function. The first argument in the function is reserved for the error object. If any error has occurred during the execution of the function, it will be returned by the first argument....
[ { "code": null, "e": 25026, "s": 24998, "text": "\n16 Feb, 2022" }, { "code": null, "e": 25158, "s": 25026, "text": "Error-First Callback in Node.js is a function which either returns an error object or any successful data returned by the function." }, { "code": null, ...
SQLAlchemy ORM - Textual SQL
Earlier, textual SQL using text() function has been explained from the perspective of core expression language of SQLAlchemy. Now we shall discuss it from ORM point of view. Literal strings can be used flexibly with Query object by specifying their use with the text() construct. Most applicable methods accept it. For e...
[ { "code": null, "e": 2514, "s": 2340, "text": "Earlier, textual SQL using text() function has been explained from the perspective of core expression language of SQLAlchemy. Now we shall discuss it from ORM point of view." }, { "code": null, "e": 2693, "s": 2514, "text": "Literal ...
Mahotas - RGB to XYZ Conversion - GeeksforGeeks
10 Dec, 2021 In this article we will see how we can covert rgb image to xyz image in mahotas. An RGB image, sometimes referred to as a truecolor image, is stored in MATLAB as an m-by-n-by-3 data array that defines red, green, and blue color components for each individual pixel. Xyz is an additive color space based on h...
[ { "code": null, "e": 23975, "s": 23947, "text": "\n10 Dec, 2021" }, { "code": null, "e": 24635, "s": 23975, "text": "In this article we will see how we can covert rgb image to xyz image in mahotas. An RGB image, sometimes referred to as a truecolor image, is stored in MATLAB as a...
How to deal with CORS error in express Node.js Project ? - GeeksforGeeks
25 Jul, 2021 CORS, also known as Cross-Origin Resource Sharing, should be enabled if you want to make a request between your client and server when they are on different URLs. Let us consider client to be on http://localhost:5500 and the server on http://localhost:5000. Now if you try to make a request from your client...
[ { "code": null, "e": 24557, "s": 24529, "text": "\n25 Jul, 2021" }, { "code": null, "e": 24720, "s": 24557, "text": "CORS, also known as Cross-Origin Resource Sharing, should be enabled if you want to make a request between your client and server when they are on different URLs."...
How to multiply a polynomial to another using NumPy in Python? - GeeksforGeeks
29 Aug, 2020 In this article, we will make a NumPy program to multiply one polynomial to another. Two polynomials are given as input and the result is the multiplication of two polynomials. The polynomial p(x) = C3 x2 + C2 x + C1 is represented in NumPy as : ( C1, C2, C3 ) { the coefficients (constants)}. Let take two...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n29 Aug, 2020" }, { "code": null, "e": 24078, "s": 23901, "text": "In this article, we will make a NumPy program to multiply one polynomial to another. Two polynomials are given as input and the result is the multiplication of two...
Merge operations using STL in C++ | merge(), includes(), set_union(), set_intersection(), set_difference(), ., inplace_merge, - GeeksforGeeks
03 Mar, 2022 Some of the merge operation classes are provided in C++ STL under the header file “algorithm”, which facilitates several merge operations in a easy manner. Some of them are mentioned below. merge(beg1, end1, beg2, end2, beg3) :- This function merges two sorted containers and stores in new container in so...
[ { "code": null, "e": 23919, "s": 23891, "text": "\n03 Mar, 2022" }, { "code": null, "e": 24111, "s": 23919, "text": "Some of the merge operation classes are provided in C++ STL under the header file “algorithm”, which facilitates several merge operations in a easy manner. Some of...
C++ IOS Library - Iword
It is used to get integer element of extensible array and returns a reference to the object of type long which corresponds to index idx in the internal extensible array. If idx is an index to a new element and the internal extensible array is not long enough (or is not yet allocated), the function extends it (or alloca...
[ { "code": null, "e": 2773, "s": 2603, "text": "It is used to get integer element of extensible array and returns a reference to the object of type long which corresponds to index idx in the internal extensible array." }, { "code": null, "e": 2984, "s": 2773, "text": "If idx is an...
Breadth-first search traversal in Javascript
BFS visits the neighbor vertices before visiting the child vertices, and a queue is used in the search process. Following is how a BFS works − Visit the adjacent unvisited vertex. Mark it as visited. Display it. Insert it in a queue. If no adjacent vertex is found, remove the first vertex from the queue. Repeat Rule 1 ...
[ { "code": null, "e": 1205, "s": 1062, "text": "BFS visits the neighbor vertices before visiting the child vertices, and a queue is used in the search process. Following is how a BFS works −" }, { "code": null, "e": 1296, "s": 1205, "text": "Visit the adjacent unvisited vertex. Ma...
AI as a Movie Maker. How I created an entire short movie... | by Merzmensch | Towards Data Science
It ’s been a blast. I remember watching “Sunspring” — again and again. Fascinated and mesmerized by the absurd dialogues, I was trying to comprehend what’s going on in this short movie. But the meaning used to slip away. Because it was written by AI. Benjamin was the name of the author. Behind this name was a recurrent...
[ { "code": null, "e": 297, "s": 46, "text": "It ’s been a blast. I remember watching “Sunspring” — again and again. Fascinated and mesmerized by the absurd dialogues, I was trying to comprehend what’s going on in this short movie. But the meaning used to slip away. Because it was written by AI." },...
Python - How to search for a string in text files? - GeeksforGeeks
24 Jan, 2021 In this article, we are going to see how to search for a particular string in a text file. Consider below text File : Example 1: we are going to search string line by line if the string found then we will print that string and line number. Steps: Open a file. Set variables index and flag to zero. Run a loo...
[ { "code": null, "e": 24843, "s": 24815, "text": "\n24 Jan, 2021" }, { "code": null, "e": 24934, "s": 24843, "text": "In this article, we are going to see how to search for a particular string in a text file." }, { "code": null, "e": 24961, "s": 24934, "text": ...
Find the smallest positive number missing from an unsorted array | Set 1 - GeeksforGeeks
11 Apr, 2022 You are given an unsorted array with both positive and negative elements. You have to find the smallest positive number missing from the array in O(n) time using constant extra space. You can modify the original array. Examples Input: {2, 3, 7, 6, 8, -1, -10, 15} Output: 1 Input: { 2, 3, -7, 6, 8, 1...
[ { "code": null, "e": 25372, "s": 25344, "text": "\n11 Apr, 2022" }, { "code": null, "e": 25591, "s": 25372, "text": "You are given an unsorted array with both positive and negative elements. You have to find the smallest positive number missing from the array in O(n) time using c...
Ionic - Cards
Since mobile devices have smaller screen size, cards are one of the best elements for displaying information that will feel user friendly. In the previous chapter, we have discussed how to inset lists. Cards are very similar to inset lists, but they offer some additional shadowing that can influence the performance for...
[ { "code": null, "e": 2798, "s": 2463, "text": "Since mobile devices have smaller screen size, cards are one of the best elements for displaying information that will feel user friendly. In the previous chapter, we have discussed how to inset lists. Cards are very similar to inset lists, but they off...
Adjusting the spacing between the edge of the plot and the X-axis in Matplotlib
To adjust the spacing between the edge of the plot and the X-axis, we can use tight_layout() method or set the bottom padding of the current figure. Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy. Plot x and y data points using plot() method. To displa...
[ { "code": null, "e": 1211, "s": 1062, "text": "To adjust the spacing between the edge of the plot and the X-axis, we can use tight_layout() method or set the bottom padding of the current figure." }, { "code": null, "e": 1287, "s": 1211, "text": "Set the figure size and adjust th...
Firebase - Quick Guide
As per official Firebase documentation − Firebase can power your app's backend, including data storage, user authentication, static hosting, and more. Focus on creating extraordinary user experiences. We will take care of the rest. Build cross-platform native mobile and web apps with our Android, iOS, and JavaScript SD...
[ { "code": null, "e": 2207, "s": 2166, "text": "As per official Firebase documentation −" }, { "code": null, "e": 2594, "s": 2207, "text": "Firebase can power your app's backend, including data storage, user authentication, static hosting, and more. Focus on creating extraordinary...
Java program to find common elements in three sorted arrays
The common elements in three sorted arrays are the elements that occur in all three of them. An example of this is given as follows − Array1 = 1 3 5 7 9 Array2 = 2 3 6 7 9 Array3 = 1 2 3 4 5 6 7 8 9 Common elements = 3 7 9 A program that demonstrates this is given as follows − public class Example { public static void ...
[ { "code": null, "e": 1196, "s": 1062, "text": "The common elements in three sorted arrays are the elements that occur in all three of them. An example of this is given as follows −" }, { "code": null, "e": 1285, "s": 1196, "text": "Array1 = 1 3 5 7 9\nArray2 = 2 3 6 7 9\nArray3 =...
Get Started with C#
The easiest way to get started with C#, is to use an IDE. An IDE (Integrated Development Environment) is used to edit and compile code. In our tutorial, we will use Visual Studio Community, which is free to download from https://visualstudio.microsoft.com/vs/community/. Applications written in C# use the .NET Framework...
[ { "code": null, "e": 58, "s": 0, "text": "The easiest way to get started with C#, is to use an IDE." }, { "code": null, "e": 136, "s": 58, "text": "An IDE (Integrated Development Environment) is used to edit and compile code." }, { "code": null, "e": 271, "s": 136...
What does the two question marks together (??) mean in C#?
It is the null-coalescing operator. The null-coalescing operator ?? returns the value of its left-hand operand if it isn't null; otherwise, it evaluates the right-hand operand and returns its result. The ?? operator doesn't evaluate its right-hand operand if the lefthand operand evaluates to non-null. A nullable type c...
[ { "code": null, "e": 1365, "s": 1062, "text": "It is the null-coalescing operator. The null-coalescing operator ?? returns the value of its left-hand operand if it isn't null; otherwise, it evaluates the right-hand operand and returns its result. The ?? operator doesn't evaluate its right-hand opera...
Method and Block Synchronization in Java
When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write within a same file then they may corrupt the data because one of the ...
[ { "code": null, "e": 1517, "s": 1062, "text": "When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write wi...
Using Non-negative matrix factorization to classify companies. | by Christophe GEISSLER | Towards Data Science
Companies are complex entities that evolve over time. As a data-scientist involved in investment, I have long been asking myself the question of evaluating the most appropriate dimension for modeling enterprise data: in what space do these things live? No better answer could be found than this one: “Far too many!”. Ano...
[ { "code": null, "e": 1046, "s": 171, "text": "Companies are complex entities that evolve over time. As a data-scientist involved in investment, I have long been asking myself the question of evaluating the most appropriate dimension for modeling enterprise data: in what space do these things live? N...
Explain soft reset with an example in Git
Soft reset will move the HEAD pointer to the commit specified. This will not reset the staging area or the working directory. The diagram shows a file named File1.txt within the git repository. A, B, C and D represent lines that are added to the file. The diagram indicates that a commit is performed after adding each l...
[ { "code": null, "e": 1188, "s": 1062, "text": "Soft reset will move the HEAD pointer to the commit specified. This will not reset the staging area or the working directory." }, { "code": null, "e": 1533, "s": 1188, "text": "The diagram shows a file named File1.txt within the git ...
Java & MySQL - Statement
JDBC Statement interface defines the methods and properties to enable send SQL commands to MySQL database and retrieve data from the database. Statement is used for general-purpose access to your database. It is useful when you are using static SQL statements at runtime. The Statement interface cannot accept parameters...
[ { "code": null, "e": 3008, "s": 2686, "text": "JDBC Statement interface defines the methods and properties to enable send SQL commands to MySQL database and retrieve data from the database. Statement is used for general-purpose access to your database. It is useful when you are using static SQL stat...
Faster YOLOv4 Performance with CUDA enabled OpenCV | by Akash James | Towards Data Science
YOLO, short for You-Only-Look-Once has been undoubtedly one of the best object detectors trained on the COCO dataset. YOLOv4 being the latest iteration has a great accuracy-performance trade-off, establishing itself as one of the State-of-the-art object detectors. Typical mechanisms of employing any object detector in ...
[ { "code": null, "e": 1009, "s": 172, "text": "YOLO, short for You-Only-Look-Once has been undoubtedly one of the best object detectors trained on the COCO dataset. YOLOv4 being the latest iteration has a great accuracy-performance trade-off, establishing itself as one of the State-of-the-art object ...
Java Program to get random letters
To generate random letters, set letters as a strong and use the toCharArray() to convert it into character array − "abcdefghijklmnopqrstuvwxyz".toCharArray() Now, use the nextInt() to generate random letters from it − System.out.println("" + "abcdefghijklmnopqrstuvwxyz".toCharArray()[randNum.nextInt("abcdefghijklmnopqr...
[ { "code": null, "e": 1177, "s": 1062, "text": "To generate random letters, set letters as a strong and use the toCharArray() to convert it into character array −" }, { "code": null, "e": 1220, "s": 1177, "text": "\"abcdefghijklmnopqrstuvwxyz\".toCharArray()" }, { "code": ...
GATE | GATE CS 2019 | Question 55 - GeeksforGeeks
19 Feb, 2019 Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves a and b of T are chosen uniformly and independently at random. The expected value of the distance between a and b in T (i.e., the number of edges in the unique path between a and b) is (rounded off to 2...
[ { "code": null, "e": 25631, "s": 25603, "text": "\n19 Feb, 2019" }, { "code": null, "e": 25969, "s": 25631, "text": "Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves a and b of T are chosen uniformly and independently at ran...
Find minimum difference between any two elements - GeeksforGeeks
21 Jan, 2022 Given an unsorted array, find the minimum difference between any pair in given array.Examples : Input : {1, 5, 3, 19, 18, 25}; Output : 1 Minimum difference is between 18 and 19 Input : {30, 5, 20, 9}; Output : 4 Minimum difference is between 5 and 9 Input : {1, 19, -4, 31, 38, 25, 100}; Output : 5 Mi...
[ { "code": null, "e": 42520, "s": 42492, "text": "\n21 Jan, 2022" }, { "code": null, "e": 42616, "s": 42520, "text": "Given an unsorted array, find the minimum difference between any pair in given array.Examples :" }, { "code": null, "e": 42864, "s": 42616, "te...
NLP | Brill Tagger - GeeksforGeeks
05 Jun, 2020 BrillTagger class is a transformation-based tagger. It is not a subclass of SequentialBackoffTagger. Moreover, it uses a series of rules to correct the results of an initial tagger. These rules it follows are scored based. This score is equal to the no. of errors they correct minus the no. of new errors th...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n05 Jun, 2020" }, { "code": null, "e": 25690, "s": 25589, "text": "BrillTagger class is a transformation-based tagger. It is not a subclass of SequentialBackoffTagger." }, { "code": null, "e": 25771, "s": 25690, ...
Dictionary get() Method in Java with Examples - GeeksforGeeks
27 Dec, 2018 The get() method of Dictionary class is used to retrieve or fetch the value mapped by a particular key mentioned in the parameter. It returns NULL when the dictionary contains no such mapping for the key. Syntax: DICTIONARY.get(Object key_element) Parameters: The method takes one parameter key_element of o...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n27 Dec, 2018" }, { "code": null, "e": 25900, "s": 25695, "text": "The get() method of Dictionary class is used to retrieve or fetch the value mapped by a particular key mentioned in the parameter. It returns NULL when the diction...
Highest power of 2 that divides a number represented in binary - GeeksforGeeks
16 Nov, 2021 Given binary string str, the task is to find the largest power of 2 that divides the decimal equivalent of the given binary number. Examples: Input: str = “100100” Output: 2 22 = 4 is the highest power of 2 that divides 36 (100100).Input: str = “10010” Output: 1 Approach: Starting from the right, count...
[ { "code": null, "e": 26553, "s": 26525, "text": "\n16 Nov, 2021" }, { "code": null, "e": 26685, "s": 26553, "text": "Given binary string str, the task is to find the largest power of 2 that divides the decimal equivalent of the given binary number." }, { "code": null, ...
PHP | Constructors and Destructors - GeeksforGeeks
04 Jul, 2021 Constructors are special member functions for initial settings of newly created object instances from a class, which is the key part of the object-oriented concept in PHP5.Constructors are the very basic building blocks that define the future object and its nature. You can say that the Constructors are the...
[ { "code": null, "e": 32676, "s": 32648, "text": "\n04 Jul, 2021" }, { "code": null, "e": 33491, "s": 32676, "text": "Constructors are special member functions for initial settings of newly created object instances from a class, which is the key part of the object-oriented concept...
PHP | Remove duplicate elements from Array - GeeksforGeeks
30 Mar, 2018 You are given an Array of n-elements.You have to remove the duplicate values without using any loop in PHP and print the array. Examples: Input : array[] = {2, 3, 1, 6, 1, 6, 2, 3} Output : array ( [6] => 2 [7] => 3 [4] => 1 [5] => 6 ...
[ { "code": null, "e": 25717, "s": 25689, "text": "\n30 Mar, 2018" }, { "code": null, "e": 25845, "s": 25717, "text": "You are given an Array of n-elements.You have to remove the duplicate values without using any loop in PHP and print the array." }, { "code": null, "e"...
SetUID, SetGID, and Sticky Bits in Linux File Permissions - GeeksforGeeks
07 Aug, 2019 As explained in the article Permissions in Linux, Linux uses a combination of bits to store the permissions of a file. We can change the permissions using the chmod command, which essentially changes the ‘r’, ‘w’ and ‘x’ characters associated with the file. Further, the ownership of files also depends on t...
[ { "code": null, "e": 25815, "s": 25787, "text": "\n07 Aug, 2019" }, { "code": null, "e": 26073, "s": 25815, "text": "As explained in the article Permissions in Linux, Linux uses a combination of bits to store the permissions of a file. We can change the permissions using the chmo...
Substrings starting with vowel and ending with consonants and vice versa - GeeksforGeeks
04 May, 2022 Given a string s, count special substrings in it. A Substring of S is said to be special if either of the following properties is satisfied. It starts with a vowel and ends with a consonant. It starts with a consonant and ends with a vowel. Examples: Input : S = "aba" Output : 2 Substrings of S are : a,...
[ { "code": null, "e": 26619, "s": 26591, "text": "\n04 May, 2022" }, { "code": null, "e": 26761, "s": 26619, "text": "Given a string s, count special substrings in it. A Substring of S is said to be special if either of the following properties is satisfied. " }, { "code":...
HTML <a> ping Attribute - GeeksforGeeks
02 Jun, 2021 The HTML <a> ping Attribute is generally used to either specify a particular URL or a list of URLs that will be notified when the user will click on the hyperlink passed int HTML <a> href Attribute. This is achieved by sending a short HTTP post request to the specified URL as soon as the user clicks on the...
[ { "code": null, "e": 33003, "s": 32975, "text": "\n02 Jun, 2021" }, { "code": null, "e": 33323, "s": 33003, "text": "The HTML <a> ping Attribute is generally used to either specify a particular URL or a list of URLs that will be notified when the user will click on the hyperlink ...
MultiAutoCompleteTextView in Android with Example - GeeksforGeeks
20 Apr, 2022 MultiAutoCompleteTextView is an editable TextView, extending AutoCompleteTextView. In a text view, when the user starts to type a text, MultiAutoCompleteTextView shows completion suggestions for the substring of the text and it is useful for the user to select the option instead of typing. This feature is ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n20 Apr, 2022" }, { "code": null, "e": 27093, "s": 26381, "text": "MultiAutoCompleteTextView is an editable TextView, extending AutoCompleteTextView. In a text view, when the user starts to type a text, MultiAutoCompleteTextView s...
Most Useful Commands to Manage Apache Web Server in Linux - GeeksforGeeks
24 Feb, 2021 Prerequisite: How do Web Servers work? Apache is one of the most widely used free, open-source Web Server applications in the world, mostly used in Unix-like operating systems but can also be used in windows. As a developer or system administrator, it will be very helpful for you to know about the Apache w...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n24 Feb, 2021" }, { "code": null, "e": 25690, "s": 25651, "text": "Prerequisite: How do Web Servers work?" }, { "code": null, "e": 26134, "s": 25690, "text": "Apache is one of the most widely used free, open-so...
How to check if a date has passed in MySQL?
Let us first create a table − mysql> create table DemoTable1340 -> ( -> Deadline date -> ); Query OK, 0 rows affected (0.43 sec) Insert some records in the table using insert command − mysql> insert into DemoTable1340 values('2019-09-18'); Query OK, 1 row affected (0.52 sec) mysql> insert into DemoTable1340 va...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1200, "s": 1092, "text": "mysql> create table DemoTable1340\n -> (\n -> Deadline date\n -> );\nQuery OK, 0 rows affected (0.43 sec)" }, { "code": null, "e": 125...
NoOps Machine Learning. A PaaS End-to-End ML Setup with... | by Jacopo Tagliabue | Towards Data Science
“The princess you are looking for is in another castle.” The rapid adoption of Machine Learning, from Big Tech to literally everyone else, resulted in a blooming season for ML tooling and what cool kids now call “MLOps” (see the thoughtful overview by Chip Huyen, if you need to catch up). While my LinkedIn feed obsessi...
[ { "code": null, "e": 229, "s": 172, "text": "“The princess you are looking for is in another castle.”" }, { "code": null, "e": 913, "s": 229, "text": "The rapid adoption of Machine Learning, from Big Tech to literally everyone else, resulted in a blooming season for ML tooling an...
Understanding Images with skimage-Python | by Mathanraj Sharma | Towards Data Science
Computer Vision is a buzz word nowadays. Many useful applications and systems are emerging by incorporating Computer Vision techniques with AI and ML Image Processing is an important tool that every professional in Computer Vision should have in their toolbox. Image Processing is the use of algorithms to perform variou...
[ { "code": null, "e": 322, "s": 172, "text": "Computer Vision is a buzz word nowadays. Many useful applications and systems are emerging by incorporating Computer Vision techniques with AI and ML" }, { "code": null, "e": 533, "s": 322, "text": "Image Processing is an important too...
Ensemble Learning case study: Model Interpretability | by Gabriel Signoretti | Towards Data Science
This is the first of a two-part article where we will be exploring the 1994 census income dataset, which contains information such as age, years of education, marital status, race, and many others. We will be using this dataset to classify if the potential income of people into 2 categories: people who make less or equ...
[ { "code": null, "e": 583, "s": 172, "text": "This is the first of a two-part article where we will be exploring the 1994 census income dataset, which contains information such as age, years of education, marital status, race, and many others. We will be using this dataset to classify if the potentia...
Customers Subscription Analysis and Prediction Based on App Behavior Analysis (Logistic Regression) | by Shekhar Koirala | Towards Data Science
We will do the customers churn analysis based on the customers behavior on the website or app. We will classify what kind of customers are likely to sign up for the paid subscription of a website. After analyzing and classifying the dataset, we will be able to do the targeting based marketing or recommendation to the c...
[ { "code": null, "e": 558, "s": 171, "text": "We will do the customers churn analysis based on the customers behavior on the website or app. We will classify what kind of customers are likely to sign up for the paid subscription of a website. After analyzing and classifying the dataset, we will be ab...
Array algorithms in C++ STL
Since C++11 there are different functions added into the STL. These functions are present at algorithm header file. Here we will see some functions of this. The all_of() function is used to check one condition, that is true for all elements of a container. Let us see the code to get the idea The all_of() function is us...
[ { "code": null, "e": 1219, "s": 1062, "text": "Since C++11 there are different functions added into the STL. These functions are present at algorithm header file. Here we will see some functions of this." }, { "code": null, "e": 1355, "s": 1219, "text": "The all_of() function is ...
Sort vector of Numeric Strings in ascending order - GeeksforGeeks
21 Mar, 2022 Given a vector of numeric strings arr[], the task is to sort the given vector of numeric strings in ascending order. Examples: Input: arr[] = {“120000”, “2”, “33”}Output: {“2”, “33”, “120000”} Input: arr[] = {“120”, “2”, “3”}Output: {“2”, “3”, “120”} Approach: The sort() function in C++ STL is able to sor...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n21 Mar, 2022" }, { "code": null, "e": 24939, "s": 24822, "text": "Given a vector of numeric strings arr[], the task is to sort the given vector of numeric strings in ascending order." }, { "code": null, "e": 24949, ...
private access modifier in Java
Methods, variables, and constructors that are declared private can only be accessed within the declared class itself. Private access modifier is the most restrictive access level. Class and interfaces cannot be private. Variables that are declared private can be accessed outside the class, if public getter methods are ...
[ { "code": null, "e": 1180, "s": 1062, "text": "Methods, variables, and constructors that are declared private can only be accessed within the declared class itself." }, { "code": null, "e": 1282, "s": 1180, "text": "Private access modifier is the most restrictive access level. Cl...
OpenGL in Java: how to use hardware acceleration | by Mario Emmanuel | Towards Data Science
Hardware acceleration is often seen as a niche solution for game development, but there are many other graphical applications that can benefit from this technology, especially those involving data visualisation such as specialised data science tools or software displaying real time data. Conventional charting tools and...
[ { "code": null, "e": 585, "s": 171, "text": "Hardware acceleration is often seen as a niche solution for game development, but there are many other graphical applications that can benefit from this technology, especially those involving data visualisation such as specialised data science tools or so...
Print all unique words of a String - GeeksforGeeks
27 Jan, 2022 Write a function that takes a String as an argument and prints all unique words in it. Examples: Input : Java is great. Grails is also great Output : Java Grails also Approach:The idea is to use map to keep track of words already occurred. But first, we have to extract all words from a St...
[ { "code": null, "e": 23893, "s": 23865, "text": "\n27 Jan, 2022" }, { "code": null, "e": 23980, "s": 23893, "text": "Write a function that takes a String as an argument and prints all unique words in it." }, { "code": null, "e": 23990, "s": 23980, "text": "Exa...
How to Add a New Disk Drive to a Linux Machine
This article helps you to configure and add a new disk to the Linux box. This is one of the most common problems encountered by system administrators these days since the servers are tending to run out of disk space to store excess data. Fortunately, disk space is now one of the cheapest. We shall look at the steps nec...
[ { "code": null, "e": 1477, "s": 1062, "text": "This article helps you to configure and add a new disk to the Linux box. This is one of the most common problems encountered by system administrators these days since the servers are tending to run out of disk space to store excess data. Fortunately, di...
Bugzilla - Quick Guide
Bugzilla is an open-source tool used to track bugs and issues of a project or a software. It helps the developers and other stakeholders to keep track of outstanding problems with the product. It was written by Terry Weissman in TCL programming language in 1998. It was written by Terry Weissman in TCL programming langu...
[ { "code": null, "e": 2438, "s": 2245, "text": "Bugzilla is an open-source tool used to track bugs and issues of a project or a software. It helps the developers and other stakeholders to keep track of outstanding problems with the product." }, { "code": null, "e": 2508, "s": 2438, ...
3 Lines of Python Code to Write A Web Server | by Christopher Tao | Towards Data Science
You must know that Python can be used to write web servers very effectively. It is known that there are many popular and excellent frameworks and libraries such as Django and Flask, which allows backend developers to focus on the business logic and save a lot of time on coding. However, have you ever know that Python’s...
[ { "code": null, "e": 450, "s": 171, "text": "You must know that Python can be used to write web servers very effectively. It is known that there are many popular and excellent frameworks and libraries such as Django and Flask, which allows backend developers to focus on the business logic and save a...
TCS Coding Practice Question | HCF or GCD of 2 Numbers - GeeksforGeeks
09 Apr, 2019 Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest number that divides both of them. Examples: Input: n1 = 10, n2 = 20 Output: 10 Input: n1 = 100, n2 = 101 Output: 1 Approac...
[ { "code": null, "e": 24785, "s": 24757, "text": "\n09 Apr, 2019" }, { "code": null, "e": 25002, "s": 24785, "text": "Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two num...
Find numbers a and b that satisfy the given condition in C++
Consider we have an integer n. Our task is to find two numbers a and b, where these three conditions will be satisfied. a mod b = 0 a * b > n a / b < n If no pair is found, print -1. For an example, if the number n = 10, then a and b can be a = 90, b = 10. This satisfies given rules. To solve this problem, we will foll...
[ { "code": null, "e": 1182, "s": 1062, "text": "Consider we have an integer n. Our task is to find two numbers a and b, where these three conditions will be satisfied." }, { "code": null, "e": 1194, "s": 1182, "text": "a mod b = 0" }, { "code": null, "e": 1204, "s"...
How to create a JavaScript code for multiple keys pressed at once?
Use the keydown event in JavaScript to get to know which keys are pressed at once. The following is the script − var log = $('#log')[0], keyPressed = []; $(document.body).keydown(function (evt) { var li = keyPressed [evt.keyCode]; if (!li) { li = log.appendChild(document.createElement('li')); keyP...
[ { "code": null, "e": 1175, "s": 1062, "text": "Use the keydown event in JavaScript to get to know which keys are pressed at once. The following is the script −" }, { "code": null, "e": 1722, "s": 1175, "text": "var log = $('#log')[0],\n keyPressed = [];\n\n$(document.body).keyd...
React useReducer Hook
The useReducer Hook is similar to the useState Hook. It allows for custom state logic. If you find yourself keeping track of multiple pieces of state that rely on complex logic, useReducer may be useful. The useReducer Hook accepts two arguments. useReducer(<reducer>, <initialState>) The reducer function contains your ...
[ { "code": null, "e": 53, "s": 0, "text": "The useReducer Hook is similar to the useState Hook." }, { "code": null, "e": 87, "s": 53, "text": "It allows for custom state logic." }, { "code": null, "e": 204, "s": 87, "text": "If you find yourself keeping track o...
How to add new keys to a dictionary in Python?
Dictionary is an unordered collection of key-value pairs. Each element is not identified by positional index. Moreover, the fact that key can’t be repeated, we simply use a new key and assign a value to it so that a new pair will be added to dictionary. >>> D1 = {1: 'a', 2: 'b', 3: 'c', 'x': 1, 'y': 2, 'z': 3} >>> D1[1...
[ { "code": null, "e": 1316, "s": 1062, "text": "Dictionary is an unordered collection of key-value pairs. Each element is not identified by positional index. Moreover, the fact that key can’t be repeated, we simply use a new key and assign a value to it so that a new pair will be added to dictionary....
Addition and Blending of images using OpenCv in Python
We know that when we solve any image related problem, we have to take a matrix. The matrix content will vary depending upon the image type - either it would be a binary image(0, 1), gray scale image(0-255) or RGB image(255 255 255). So if we want to add of two images then that means very simple we have to add respectiv...
[ { "code": null, "e": 1398, "s": 1062, "text": "We know that when we solve any image related problem, we have to take a matrix. The matrix content will vary depending upon the image type - either it would be a binary image(0, 1), gray scale image(0-255) or RGB image(255 255 255). So if we want to add...
Explaining K-Means Clustering. Comparing PCA and t-SNE dimensionality... | by Kamil Mysiak | Towards Data Science
Today’s data comes in all shapes and sizes. NLP data encompasses the written word, time-series data tracks sequential data movement over time (ie. stocks), structured data which allows computers to learn by example, and unclassified data allows the computer to apply structure. Whichever dataset you possess, you can be ...
[ { "code": null, "e": 806, "s": 172, "text": "Today’s data comes in all shapes and sizes. NLP data encompasses the written word, time-series data tracks sequential data movement over time (ie. stocks), structured data which allows computers to learn by example, and unclassified data allows the comput...
How to change a textView Style at runtime in android?
This example demonstrates how do I change a textView style in runtime in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Rela...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrates how do I change a textView style in runtime in android." }, { "code": null, "e": 1273, "s": 1144, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required deta...
SQLAlchemy Core - Using Set Operations
In the last chapter, we have learnt about various functions such as max(), min(), count(), etc., here, we will learn about set operations and their uses. Set operations such as UNION and INTERSECT are supported by standard SQL and most of its dialect. SQLAlchemy implements them with the help of following functions − Wh...
[ { "code": null, "e": 2494, "s": 2340, "text": "In the last chapter, we have learnt about various functions such as max(), min(), count(), etc., here, we will learn about set operations and their uses." }, { "code": null, "e": 2658, "s": 2494, "text": "Set operations such as UNION...
DAX Information - LOOKUPVALUE function
Returns the value in result_columnName for the row that meets all criteria specified by search_columnName and search_value. LOOKUPVALUE ( <result_columnName>, <search_columnName>, <search_value>, [<search_columnName>, <search_value>] ... ) result_columnName The fully qualified name of a column that contains the...
[ { "code": null, "e": 2125, "s": 2001, "text": "Returns the value in result_columnName for the row that meets all criteria specified by search_columnName and search_value." }, { "code": null, "e": 2249, "s": 2125, "text": "LOOKUPVALUE (\n <result_columnName>, <search_columnName>...
How to perform arithmetic across columns of a MySQL table using Python?
The arithmetic operations as the name suggests are used to perform the operations such as additon, subtraction,division, multiplication or modulus. The arithmetic operations are operated on the numeric data in your table. To perform addition SELECT op1+op2 FROM table_name Here, the op1 and op2 are the column names or t...
[ { "code": null, "e": 1210, "s": 1062, "text": "The arithmetic operations as the name suggests are used to perform the operations such as additon, subtraction,division, multiplication or modulus." }, { "code": null, "e": 1284, "s": 1210, "text": "The arithmetic operations are oper...
How can I change root username in MySQL?
To change the root username in MySQL, you need to use UPDATE and SET command. The syntax is as follows − UPDATE user set user = ’yourNewUserName’ WHERE user = ’root’; To understand the above syntax, let us switch the database to MySQL using USE command. The query is as follows to switch the database. mysql> use mysql; ...
[ { "code": null, "e": 1167, "s": 1062, "text": "To change the root username in MySQL, you need to use UPDATE and SET command. The syntax is as follows −" }, { "code": null, "e": 1229, "s": 1167, "text": "UPDATE user set user = ’yourNewUserName’ WHERE user = ’root’;" }, { "...
Laravel - Session
Sessions are used to store information about the user across the requests. Laravel provides various drivers like file, cookie, apc, array, Memcached, Redis, and database to handle session data. By default, file driver is used because it is lightweight. Session can be configured in the file stored at config/session.php....
[ { "code": null, "e": 2793, "s": 2472, "text": "Sessions are used to store information about the user across the requests. Laravel provides various drivers like file, cookie, apc, array, Memcached, Redis, and database to handle session data. By default, file driver is used because it is lightweight. ...
Another JupyterLab Extension You Should Know About | by Roman Orac | Towards Data Science
It’s really an exciting time to be a part of the Data Science community with all the new JupyterLab extensions that are coming out. They make Data Science much more enjoyable by minimizing the tedious work. I remember the old days where we had to rely on numpy and matplotlib as our main tools for Exploratory Data Analy...
[ { "code": null, "e": 379, "s": 172, "text": "It’s really an exciting time to be a part of the Data Science community with all the new JupyterLab extensions that are coming out. They make Data Science much more enjoyable by minimizing the tedious work." }, { "code": null, "e": 549, "s...
Fixed Length and Variable Length Subnet Mask Numericals - GeeksforGeeks
29 May, 2020 Before starting off with this article make sure you know the basics of Subnetting and Classless Addressing. 1. Fixed-Length Subnet Mask :When a block of addresses is divided into subnets all having an equal number of addresses, the type of subnetting is said to be Fixed Length Subnetting. The subnet masks ...
[ { "code": null, "e": 24430, "s": 24402, "text": "\n29 May, 2020" }, { "code": null, "e": 24538, "s": 24430, "text": "Before starting off with this article make sure you know the basics of Subnetting and Classless Addressing." }, { "code": null, "e": 24837, "s": 24...
Report Expression
Report expressions are the powerful features of JasperReports, which allow us to display calculated data on a report. Calculated data is the data that is not a static data and is not specifically passed as a report parameter or datasource field. Report expressions are built from combining report parameters, fields, and...
[ { "code": null, "e": 2812, "s": 2254, "text": "Report expressions are the powerful features of JasperReports, which allow us to display calculated data on a report. Calculated data is the data that is not a static data and is not specifically passed as a report parameter or datasource field. Report ...
C program to find if the given number is perfect number or not
Perfect number is the number; whose sum of factors is equal to 2*number. An algorithm is explained below − START Step 1: declare int variables and initialized result=0. Step 2: read number at runtime. Step 3: for loop i=1;i<=number;i++ Condition satisfies i. if(number%i==0) ii. result=result+i; Step 4: checking t...
[ { "code": null, "e": 1135, "s": 1062, "text": "Perfect number is the number; whose sum of factors is equal to 2*number." }, { "code": null, "e": 1169, "s": 1135, "text": "An algorithm is explained below −" }, { "code": null, "e": 1499, "s": 1169, "text": "STAR...
How to use “window.print()” function to print a page?
To print a page in JavaScript, use the window.print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing. You can try to run the following code to learn how to print a page − Live Demo <!DOCTYPE html> <html> <body> <butto...
[ { "code": null, "e": 1258, "s": 1062, "text": "To print a page in JavaScript, use the window.print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing." }, { "code": null, "e": 1327, "s": 1258,...
HTML5 Semantics
The HTML5 Semantics refers to the semantic tags that provide meaning to an HTML page. In HTML5 the tags are divided into two categories - semantic and non-semantic. HTML5 brings several new semantic tags to the HTML. Some HTML5 Semantic tags are − Let us see an example of HTML5 Semantics − Live Demo <!DOCTYPE html> <h...
[ { "code": null, "e": 1279, "s": 1062, "text": "The HTML5 Semantics refers to the semantic tags that provide meaning to an HTML page. In HTML5 the tags are divided into two categories - semantic and non-semantic. HTML5 brings several new semantic tags to the HTML." }, { "code": null, "e":...
How to set a minimum and maximum value for an input element in HTML5 ? - GeeksforGeeks
17 Mar, 2021 In this article, we are going to learn how to set a minimum and maximum value for an input element by using the HTML <input> min and max attribute. This prevents the input element from accepting values that are lower than the minimum value or higher than the maximum. Approach: This can be implemented by us...
[ { "code": null, "e": 24894, "s": 24866, "text": "\n17 Mar, 2021" }, { "code": null, "e": 25162, "s": 24894, "text": "In this article, we are going to learn how to set a minimum and maximum value for an input element by using the HTML <input> min and max attribute. This prevents t...
How to create Custom Cursor using CSS
We can create a custom cursor image with extensions like .cur (for Internet Explorer), .gif and .png (for Chrome, Firefox, Safari) and apply it to an element using the CSS cursor property and setting it to a url and in addition a generic cursor value such as auto,default, pointer, etc. Selector { cursor: url("/*path...
[ { "code": null, "e": 1349, "s": 1062, "text": "We can create a custom cursor image with extensions like .cur (for Internet Explorer), .gif and .png (for Chrome, Firefox, Safari) and apply it to an element using the CSS cursor property and setting it to a url and in addition a generic cursor value su...
68–95–99.7 — The Three-Sigma Rule of Thumb Used in Power BI. | by Sebastian Zolg 🤝 | Towards Data Science
Even in the smallest of all data projects, one of the most important steps is detecting abnormal values, outliers or anomalies within your data structure. In this brief guide, I will show you the most basic way of detecting such values using no code at all. Besides the many ways to achieve this in Power BI, this is the...
[ { "code": null, "e": 327, "s": 172, "text": "Even in the smallest of all data projects, one of the most important steps is detecting abnormal values, outliers or anomalies within your data structure." }, { "code": null, "e": 558, "s": 327, "text": "In this brief guide, I will sho...
MySQL query to delete all rows older than 30 days?
To delete all rows older than 30 days, you need to use the DELETE with INTERVAL. Use < now() i.e. less than operator to get all the records before the current date. Let us first create a table − mysql> create table DemoTable -> ( -> UserMessage text, -> UserMessageSentDate date -> ); Query OK, 0 rows affect...
[ { "code": null, "e": 1227, "s": 1062, "text": "To delete all rows older than 30 days, you need to use the DELETE with INTERVAL. Use < now() i.e. less than operator to get all the records before the current date." }, { "code": null, "e": 1257, "s": 1227, "text": "Let us first crea...
How to Add and Subtract Days to and from Date in R ? - GeeksforGeeks
21 Apr, 2021 R Programming Language provides a variety of ways for dealing with both date and date/time data. The built-in framework as.Date function is responsible for the handling of dates alone, the library chron in R handles both dates and times, without any support for time zones; whereas the POSIXct and POSIXlt c...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n21 Apr, 2021" }, { "code": null, "e": 25713, "s": 25242, "text": "R Programming Language provides a variety of ways for dealing with both date and date/time data. The built-in framework as.Date function is responsible for the han...
Data Mining Graphs and Networks - GeeksforGeeks
29 Dec, 2021 Data mining is the process of collecting and processing data from a heap of unprocessed data. When the patterns are established, various relationships between the datasets can be identified and they can be presented in a summarized format which helps in statistical analysis in various industries. Among the...
[ { "code": null, "e": 24506, "s": 24478, "text": "\n29 Dec, 2021" }, { "code": null, "e": 25346, "s": 24506, "text": "Data mining is the process of collecting and processing data from a heap of unprocessed data. When the patterns are established, various relationships between the ...
An implementation guide to Word2Vec using NumPy and Google Sheets | by Derek Chia | Towards Data Science
This article is an implementation guide to Word2Vec using NumPy and Google Sheets. If you you have trouble reading this, consider subscribing to Medium Membership here! Word2Vec is touted as one of the biggest, most recent breakthrough in the field of Natural Language Processing (NLP). The concept is simple, elegant an...
[ { "code": null, "e": 340, "s": 171, "text": "This article is an implementation guide to Word2Vec using NumPy and Google Sheets. If you you have trouble reading this, consider subscribing to Medium Membership here!" }, { "code": null, "e": 777, "s": 340, "text": "Word2Vec is toute...
RENAME (ρ) Operation in Relational Algebra - GeeksforGeeks
05 Oct, 2020 Prerequisites – Introduction of Relational Algebra in DBMS, Basic Operators in Relational Algebra The RENAME operation is used to rename the output of a relation. Sometimes it is simple and suitable to break a complicated sequence of operations and rename it as a relation with different names. Reasons to...
[ { "code": null, "e": 24710, "s": 24682, "text": "\n05 Oct, 2020" }, { "code": null, "e": 24809, "s": 24710, "text": "Prerequisites – Introduction of Relational Algebra in DBMS, Basic Operators in Relational Algebra " }, { "code": null, "e": 24875, "s": 24809, ...
Beyond Linear Regression: An Introduction to GLMs | by Genevieve Hayes | Towards Data Science
Coming from a statistics background, my first foray into data science and machine learning was via linear regression. At the time, I genuinely believed there was no statistical modelling problem so complex it couldn’t be solved using a linear regression model that was appropriately defined. At that same time, I also be...
[ { "code": null, "e": 464, "s": 172, "text": "Coming from a statistics background, my first foray into data science and machine learning was via linear regression. At the time, I genuinely believed there was no statistical modelling problem so complex it couldn’t be solved using a linear regression m...
Angular Material 7 - SnackBar
The <MatSnackBar>, an Angular Directive, is used to show a notification bar to show on mobile devices as an alternative of dialogs/popups. In this chapter, we will showcase the configuration required to show a snack bar using Angular Material. Following is the content of the modified module descriptor app.module.ts. im...
[ { "code": null, "e": 2894, "s": 2755, "text": "The <MatSnackBar>, an Angular Directive, is used to show a notification bar to show on mobile devices as an alternative of dialogs/popups." }, { "code": null, "e": 2999, "s": 2894, "text": "In this chapter, we will showcase the confi...
Calculating Sales Conversion using Bayesian Probability | by Adnan Gillani | Towards Data Science
The article published below takes motivation and reference from Rasmus Bååth tutorials on Bayesian Statistics. Below, I have tried to explain how Bayesian Statistics can be applied to answer questions that someone in the analytics department at any company may be faced with. Background A successful business is often ...
[ { "code": null, "e": 449, "s": 171, "text": "The article published below takes motivation and reference from Rasmus Bååth tutorials on Bayesian Statistics. Below, I have tried to explain how Bayesian Statistics can be applied to answer questions that someone in the analytics department at any comp...
Implementing YOLO on a custom dataset | by Renu Khandelwal | Towards Data Science
In this article we will learn step by step implementation of YOLO v2 using keras on a custom data set and some common issues and their solutions From CNN to Mask R-CNN and Yolo Part 1 From CNN to Mask R-CNN and Yolo Part 2 Object detection using Yolov3 Orignal paper on Yolo I will use Kangaroo dataset as my custom data...
[ { "code": null, "e": 317, "s": 172, "text": "In this article we will learn step by step implementation of YOLO v2 using keras on a custom data set and some common issues and their solutions" }, { "code": null, "e": 356, "s": 317, "text": "From CNN to Mask R-CNN and Yolo Part 1" ...
Python Set | difference_update() - GeeksforGeeks
30 Jun, 2021 The difference_update() method helps in an in-place way of differentiating the set. The previously discussed set difference() helps to find out the difference between two sets and returns a new set with the difference value, but the difference_update() updates the existing caller set.If A and B are two set...
[ { "code": null, "e": 22731, "s": 22703, "text": "\n30 Jun, 2021" }, { "code": null, "e": 23312, "s": 22731, "text": "The difference_update() method helps in an in-place way of differentiating the set. The previously discussed set difference() helps to find out the difference betw...
SQLite - LIKE Clause
SQLite LIKE operator is used to match text values against a pattern using wildcards. If the search expression can be matched to the pattern expression, the LIKE operator will return true, which is 1. There are two wildcards used in conjunction with the LIKE operator − The percent sign (%) The underscore (_) The percent...
[ { "code": null, "e": 2907, "s": 2638, "text": "SQLite LIKE operator is used to match text values against a pattern using wildcards. If the search expression can be matched to the pattern expression, the LIKE operator will return true, which is 1. There are two wildcards used in conjunction with the ...
Minimum swaps to balance the given brackets at any index - GeeksforGeeks
12 Oct, 2021 Given a balanced string of even length consisting of equal number of opening brackets ‘[‘ and closing brackets ‘]’ , Calculate the minimum number of swaps to make string balanced. An unbalanced string can be made balanced by swapping any two brackets. A string is called balanced if it can be represented i...
[ { "code": null, "e": 24461, "s": 24433, "text": "\n12 Oct, 2021" }, { "code": null, "e": 24714, "s": 24461, "text": "Given a balanced string of even length consisting of equal number of opening brackets ‘[‘ and closing brackets ‘]’ , Calculate the minimum number of swaps to make ...