title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python - Data Cleansing
Missing data is always a problem in real life scenarios. Areas like machine learning and data mining face severe issues in the accuracy of their model predictions because of poor quality of data caused by missing values. In these areas, missing value treatment is a major point of focus to make their models more accurat...
[ { "code": null, "e": 2996, "s": 2663, "text": "Missing data is always a problem in real life scenarios. Areas like machine learning and data mining face severe issues in the accuracy of their model predictions because of poor quality of data caused by missing values. In these areas, missing value tr...
Count unique values with Pandas per groups
29 Jul, 2021 Prerequisites: Pandas In this article, we are finding and counting the unique values present in the group/column with Pandas. Unique values are the distinct values that occur only once in the dataset or the first occurrences of duplicate values counted as unique values. Import the pandas library. Import or...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jul, 2021" }, { "code": null, "e": 50, "s": 28, "text": "Prerequisites: Pandas" }, { "code": null, "e": 299, "s": 50, "text": "In this article, we are finding and counting the unique values present in the group/co...
Underscore.js _.find() Function
27 Dec, 2021 The _.find() function looks at each element of the list and returns the first occurrence of the element that satisfy the condition. If any element of list is not satisfy the condition then it returns the undefined value. Syntax: _.find(list, predicate, [context]) Parameters: This function accept three para...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 249, "s": 28, "text": "The _.find() function looks at each element of the list and returns the first occurrence of the element that satisfy the condition. If any element of list is not satisfy the c...
MySQL query to find a value appearing more than once?
Let us first create a table − mysql> create table DemoTable -> ( -> value int -> ); Query OK, 0 rows affected (0.82 sec) Insert some records in the table using insert command − mysql> insert into DemoTable values(10); Query OK, 1 row affected (0.19 sec) mysql> insert into DemoTable values(100); Query OK, 1 ro...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1192, "s": 1092, "text": "mysql> create table DemoTable\n -> (\n -> value int\n -> );\nQuery OK, 0 rows affected (0.82 sec)" }, { "code": null, "e": 1248, "...
Sqoop - Import
This chapter describes how to import data from MySQL database to Hadoop HDFS. The ‘Import tool’ imports individual tables from RDBMS to HDFS. Each row in a table is treated as a record in HDFS. All records are stored as text data in the text files or as binary data in Avro and Sequence files. The following syntax is us...
[ { "code": null, "e": 2081, "s": 1787, "text": "This chapter describes how to import data from MySQL database to Hadoop HDFS. The ‘Import tool’ imports individual tables from RDBMS to HDFS. Each row in a table is treated as a record in HDFS. All records are stored as text data in the text files or as...
What is the use of the "requires" clause in a module-info file in Java 9?
A module is an important concept introduced in Java 9. By using this concept, we can able to divide code into smaller components called modules. Therefore, each module has its own responsibility and declare its dependency on other modules to work properly. In order to declare a module, we need to include the "module-in...
[ { "code": null, "e": 1417, "s": 1062, "text": "A module is an important concept introduced in Java 9. By using this concept, we can able to divide code into smaller components called modules. Therefore, each module has its own responsibility and declare its dependency on other modules to work proper...
How to Find the Volume of a Tetrahedron Using Determinants in Java? - GeeksforGeeks
04 Nov, 2020 Given the vertices of a tetrahedron. The task is to determine the volume of that tetrahedron using determinants. Approach: 1. Given the four vertices of the tetrahedron (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), and (x4, y4, z4). Using these vertices create a (4 × 4) matrix in which the coordinate triplets ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n04 Nov, 2020" }, { "code": null, "e": 23670, "s": 23557, "text": "Given the vertices of a tetrahedron. The task is to determine the volume of that tetrahedron using determinants." }, { "code": null, "e": 23680, "s...
GATE | GATE-CS-2015 (Set 3) | Question 65 - GeeksforGeeks
28 Jun, 2021 Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is 500 × 106 bits per second. The propagation speed of the media is 4 × 106 meters per second. It is needed to design a Go-Back-N sliding window protocol for this network. The average packet size is 107 bi...
[ { "code": null, "e": 24145, "s": 24117, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24682, "s": 24145, "text": "Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is 500 × 106 bits per second. The propagation speed of the me...
Get execution stats in MongoDB for a collection
To get stats, use explain() in MongoDB. Let us create a collection with documents − > db.demo157.insertOne({"Status":"Active"}); { "acknowledged" : true, "insertedId" : ObjectId("5e354fdffdf09dd6d08539fc") } > db.demo157.insertOne({"Status":"InActive"}); { "acknowledged" : true, "insertedId" : ObjectId("5e3...
[ { "code": null, "e": 1146, "s": 1062, "text": "To get stats, use explain() in MongoDB. Let us create a collection with documents −" }, { "code": null, "e": 1408, "s": 1146, "text": "> db.demo157.insertOne({\"Status\":\"Active\"});\n{\n \"acknowledged\" : true,\n \"insertedId\...
ggplot2 - Installation of R
R packages come with various capabilities like analyzing statistical information or getting in depth research of geospatial data or simple we can create basic reports. Packages of R can be defined as R functions, data and compiled code in a well-defined format. The folder or directory where the packages are stored is c...
[ { "code": null, "e": 2190, "s": 2022, "text": "R packages come with various capabilities like analyzing statistical information or getting in depth research of geospatial data or simple we can create basic reports." }, { "code": null, "e": 2361, "s": 2190, "text": "Packages of R ...
Python Tools for Web scraping
In computer science Web scraping means extracting data from websites. Using this technique transform the unstructured data on the web into structured data. Most common web Scraping tools In Python3 are − Urllib2 Requests BeautifulSoup Lxml Selenium MechanicalSoup Urllib2 − This tool is pre-installed with Python. This m...
[ { "code": null, "e": 1218, "s": 1062, "text": "In computer science Web scraping means extracting data from websites. Using this technique transform the unstructured data on the web into structured data." }, { "code": null, "e": 1266, "s": 1218, "text": "Most common web Scraping t...
Interesting Ways to Select Pandas DataFrame Columns | by Casey Whorton | Towards Data Science
Manipulating pandas data frames is a common task during exploratory analysis or preprocessing in a Data Science project. Filtering and sub-setting the data is also common. Over time, I have found myself needing to select columns based on different criteria. I hope readers find this article as a reference. If you want t...
[ { "code": null, "e": 479, "s": 172, "text": "Manipulating pandas data frames is a common task during exploratory analysis or preprocessing in a Data Science project. Filtering and sub-setting the data is also common. Over time, I have found myself needing to select columns based on different criteri...
Find all pairs (a, b) in an array such that a % b = k - GeeksforGeeks
01 Feb, 2022 Given an array with distinct elements, the task is to find the pairs in the array such that a % b = k, where k is a given integer. Examples : Input : arr[] = {2, 3, 5, 4, 7} k = 3 Output : (7, 4), (3, 4), (3, 5), (3, 7) 7 % 4 = 3 3 % 4 = 3 3 % 5 = 3 3 % 7 = 3 A Naive Solution is to mak...
[ { "code": null, "e": 24787, "s": 24759, "text": "\n01 Feb, 2022" }, { "code": null, "e": 24918, "s": 24787, "text": "Given an array with distinct elements, the task is to find the pairs in the array such that a % b = k, where k is a given integer." }, { "code": null, ...
Hands on Churn Prediction with R and comparison of Different Models for Churn Prediction | by Aashiq Reza | Towards Data Science
What is Churn ? Churn rate, when applied to a customer base, refers to the proportion of contractual customers or subscribers who leave a supplier during a given time period.(wikipedia) Why Churn Prediction is important? Churn is directly related to the profitability of a company. The more some can learn about customer...
[ { "code": null, "e": 188, "s": 172, "text": "What is Churn ?" }, { "code": null, "e": 358, "s": 188, "text": "Churn rate, when applied to a customer base, refers to the proportion of contractual customers or subscribers who leave a supplier during a given time period.(wikipedia)"...
Buffer array() methods in Java with Examples - GeeksforGeeks
28 Jun, 2019 The array() method of java.nio.Buffer class is used to return the array that backs the taken buffer.This method is intended to allow array-backed buffers to be passed to native code more efficiently. Concrete subclasses provide more strongly-typed return values for this method. Modifications to this buffer...
[ { "code": null, "e": 24167, "s": 24139, "text": "\n28 Jun, 2019" }, { "code": null, "e": 24446, "s": 24167, "text": "The array() method of java.nio.Buffer class is used to return the array that backs the taken buffer.This method is intended to allow array-backed buffers to be pas...
Kickstarter Projects Walk-Through — Simple Data Exploration in Python | by Franz B. | Towards Data Science
This article analyses a dataset of roughly 380.000 Kickstarter projects. I will lead you through a simple data exploration with Python to reveal interesting insights in Kickstarter projects and what attributes are important when it comes to examining the success (or failure) of a certain project. In general, we will ha...
[ { "code": null, "e": 566, "s": 171, "text": "This article analyses a dataset of roughly 380.000 Kickstarter projects. I will lead you through a simple data exploration with Python to reveal interesting insights in Kickstarter projects and what attributes are important when it comes to examining the ...
How can I insert default value in MySQL ENUM data type?
We can do it with the help of the DEFAULT attribute of the ENUM data type. The DEFAULT attribute causes an ENUM data type to have a default value when a value is not specified. In other words, we can say that INSERT statement does not have to include a value for this field because if it does not include then the value ...
[ { "code": null, "e": 1545, "s": 1062, "text": "We can do it with the help of the DEFAULT attribute of the ENUM data type. The DEFAULT attribute causes an ENUM data type to have a default value when a value is not specified. In other words, we can say that INSERT statement does not have to include a ...
React ES6 Spread Operator
The JavaScript spread operator (...) allows us to quickly copy all or part of an existing array or object into another array or object. const numbersOne = [1, 2, 3]; const numbersTwo = [4, 5, 6]; const numbersCombined = [...numbersOne, ...numbersTwo]; Try it Yourself » The spread operator is often used in combination...
[ { "code": null, "e": 136, "s": 0, "text": "The JavaScript spread operator (...) allows us to quickly copy all or part of an existing array or object into another array or object." }, { "code": null, "e": 252, "s": 136, "text": "const numbersOne = [1, 2, 3];\nconst numbersTwo = [4...
How to Make a Login and Sign Up Application in MIT App Inventor using Firebase? - GeeksforGeeks
06 Jun, 2021 Prerequisite: Welcome to The Modern Android App Development Hello geeks, today we are going to make a very basic level login and sign up the application using MIT App Inventor and we will learn that how we can connect MIT App Inventor to Firebase and store data which we have collected from the user. And us...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n06 Jun, 2021" }, { "code": null, "e": 25096, "s": 25036, "text": "Prerequisite: Welcome to The Modern Android App Development" }, { "code": null, "e": 25440, "s": 25096, "text": "Hello geeks, today we are goin...
HTML <time> Tag - GeeksforGeeks
17 Mar, 2022 The <time> tag is used to display the human-readable date/time. It can also be used to encode dates and times in a machine-readable form. The main advantage for users is that they can offer to add birthday reminders or scheduled events in their calendar’s and search engines can produce smarter search resul...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n17 Mar, 2022" }, { "code": null, "e": 24628, "s": 24317, "text": "The <time> tag is used to display the human-readable date/time. It can also be used to encode dates and times in a machine-readable form. The main advantage for us...
Area of a Hexagon - GeeksforGeeks
07 Nov, 2021 A hexagon is a 6-sided, 2-dimensional geometric figure. The total of the internal angles of any hexagon is 720°. A regular hexagon has 6 rotational symmetries and 6 reflection symmetries. All internal angles are 120 degrees. Examples : Input: 4 Output: 41.5692 Input: 6 Output: 93.5307 Number of ve...
[ { "code": null, "e": 24869, "s": 24841, "text": "\n07 Nov, 2021" }, { "code": null, "e": 25096, "s": 24869, "text": "A hexagon is a 6-sided, 2-dimensional geometric figure. The total of the internal angles of any hexagon is 720°. A regular hexagon has 6 rotational symmetries and ...
Find Second largest element in an array - GeeksforGeeks
27 Feb, 2022 Given an array of integers, our task is to write a program that efficiently finds the second largest element present in the array. Example: Input: arr[] = {12, 35, 1, 10, 34, 1} Output: The second largest element is 34. Explanation: The largest element of the array is 35 and the second largest element is...
[ { "code": null, "e": 41194, "s": 41166, "text": "\n27 Feb, 2022" }, { "code": null, "e": 41334, "s": 41194, "text": "Given an array of integers, our task is to write a program that efficiently finds the second largest element present in the array. Example:" }, { "code": n...
Difference between Cellpadding and Cellspacing
31 Jul, 2020 Cellpadding:Cellpadding specifies the space between the border of a table cell and its contents (i.e) it defines the whitespace between the cell edge and the content of the cell.Syntax:<table cellpadding="value" >.....</table> where, value determines the padding (space between the border of a table and it...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 Jul, 2020" }, { "code": null, "e": 371, "s": 53, "text": "Cellpadding:Cellpadding specifies the space between the border of a table cell and its contents (i.e) it defines the whitespace between the cell edge and the content of the c...
How to set the RadioButton to Checked State in C#?
30 Jun, 2019 In Windows Forms, RadioButton control is used to select a single option among the group of the options. For example, select your gender from the given list, so you will choose only one option among three options like Male or Female or Transgender. In Windows Forms, you are allowed to set a value which repr...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2019" }, { "code": null, "e": 675, "s": 28, "text": "In Windows Forms, RadioButton control is used to select a single option among the group of the options. For example, select your gender from the given list, so you will choose...
Design a Learning System in Machine Learning
05 Apr, 2022 According to Arthur Samuel “Machine Learning enables a Machine to Automatically learn from Data, Improve performance from an Experience and predict things without explicitly programmed.” In Simple Words, When we fed the Training Data to Machine Learning Algorithm, this algorithm will produce a mathematical...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Apr, 2022" }, { "code": null, "e": 241, "s": 54, "text": "According to Arthur Samuel “Machine Learning enables a Machine to Automatically learn from Data, Improve performance from an Experience and predict things without explicitly ...
KPMG Digital Enablement Oracle Interview Experience
09 Aug, 2021 KPMG came to our campus on 28th July 2021 looking for students for three profiles. Digital Enablement Oracle, Digital Enablement Microsoft, and Digital Trust. This article is about Digital Enablement Oracle. The other two profiles were non-coding. Round 1(Online Test): 60 mins MCQ test with questions on a...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Aug, 2021" }, { "code": null, "e": 277, "s": 28, "text": "KPMG came to our campus on 28th July 2021 looking for students for three profiles. Digital Enablement Oracle, Digital Enablement Microsoft, and Digital Trust. This article is ...
How to convert array values to lowercase in PHP ?
24 Jun, 2021 Given an array containing uppercase string elements and the task is to convert the array elements (uppercase) into lowercase. There are two ways to convert array values to lowercase in PHP. Using foreach loop Using array_map() function Using foreach loop: In this approach, an iterator iterates through th...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jun, 2021" }, { "code": null, "e": 220, "s": 28, "text": "Given an array containing uppercase string elements and the task is to convert the array elements (uppercase) into lowercase. There are two ways to convert array values to low...
Understanding Character Encoding
07 Feb, 2018 Ever imagined how a computer is able to understand and display what you have written? Ever wondered what a UTF-8 or UTF-16 meant when you were going through some configurations? Just think about how “HeLLo WorlD” should be interpreted by a computer.We all know that a computer stores data in bits and bytes....
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Feb, 2018" }, { "code": null, "e": 503, "s": 54, "text": "Ever imagined how a computer is able to understand and display what you have written? Ever wondered what a UTF-8 or UTF-16 meant when you were going through some configuratio...
Leaders in an array | Practice | GeeksforGeeks
Given an array A of positive integers. Your task is to find the leaders in the array. An element of array is leader if it is greater than or equal to all the elements to its right side. The rightmost element is always a leader. Example 1: Input: n = 6 A[] = {16,17,4,3,5,2} Output: 17 5 2 Explanation: The first leade...
[ { "code": null, "e": 467, "s": 238, "text": "Given an array A of positive integers. Your task is to find the leaders in the array. An element of array is leader if it is greater than or equal to all the elements to its right side. The rightmost element is always a leader. " }, { "code": null...
MediaMetadataRetriever Class in Android with Examples
18 Feb, 2021 anMediaMetadataRetriever class provides a unified interface for retrieving frames and metadata from an input media file. It is located under android.media package. For example: retrieving song name, artist name, width or height of the video, video format/mime-type, duration of media, media modified date, e...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Feb, 2021" }, { "code": null, "e": 653, "s": 52, "text": "anMediaMetadataRetriever class provides a unified interface for retrieving frames and metadata from an input media file. It is located under android.media package. For exampl...
Test Case Generation | Set 5 (Generating random Sorted Arrays and Palindromes)
28 Jun, 2021 Generating Random Sorted ArraysWe store the random array elements in an array and then sort it and print it. // A C++ Program to generate test cases for// array filled with random numbers#include<bits/stdc++.h>using namespace std; // Define the number of runs for the test data// generated#define RUN 5 //...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 161, "s": 52, "text": "Generating Random Sorted ArraysWe store the random array elements in an array and then sort it and print it." }, { "code": "// A C++ Program to generate test cases fo...
What is thread safe or non-thread safe in PHP ? - GeeksforGeeks
17 Jul, 2019 Thread-safe: It is used to ensure that when the shared data structure which is manipulated by different threads are prevented from entering the race condition. Thread-safety is recommended when the web server run multiple threads of execution simultaneously for different requests. In Thread Safety binary c...
[ { "code": null, "e": 24659, "s": 24631, "text": "\n17 Jul, 2019" }, { "code": null, "e": 25149, "s": 24659, "text": "Thread-safe: It is used to ensure that when the shared data structure which is manipulated by different threads are prevented from entering the race condition. Thr...
Icosagonal number - GeeksforGeeks
16 Jul, 2021 Given a number n, the task is to find the nth Icosagonal number. An Icosagonal number is the 20-gon is a twenty-sided polygon. The number derived from the figurative class. There are different pattern series number in this number. The dots are countable, arrange in a specific way of position and create a d...
[ { "code": null, "e": 24629, "s": 24601, "text": "\n16 Jul, 2021" }, { "code": null, "e": 25148, "s": 24629, "text": "Given a number n, the task is to find the nth Icosagonal number. An Icosagonal number is the 20-gon is a twenty-sided polygon. The number derived from the figurati...
Predicting customer churns without any labeled data in E-Commerce. | by Tony Liu | Towards Data Science
Do you ever feel confused or even frustrated when you are putting huge amount of effort into engaging your customers but you don’t really know who is going to engage? It all feels collapsed when you are going to spend 10k$ but only to get 5k$ revenue (potentially, to make it even worse). One thing that we found extreme...
[ { "code": null, "e": 775, "s": 172, "text": "Do you ever feel confused or even frustrated when you are putting huge amount of effort into engaging your customers but you don’t really know who is going to engage? It all feels collapsed when you are going to spend 10k$ but only to get 5k$ revenue (pot...
Program to find longest consecutive run of 1 in binary form of a number in C++
Suppose we have a number n, we have to find the length of the longest consecutive run of 1s in its binary representation. So, if the input is like n = 312, then the output will be 3, as 312 is 100111000 in binary and there are 3 consecutive 1s. To solve this, we will follow these steps − ret := 0, len := 0 ret := 0, le...
[ { "code": null, "e": 1184, "s": 1062, "text": "Suppose we have a number n, we have to find the length of the longest consecutive run of 1s in its binary representation." }, { "code": null, "e": 1307, "s": 1184, "text": "So, if the input is like n = 312, then the output will be 3,...
How to connect to Telnet server from Node.js ? - GeeksforGeeks
15 Dec, 2021 In this article, we will see how to connect the Telnet server with Node.js application. Telnet: The telnet is an application protocol over the Transmission Control Protocol (TCP) used on the internet or local area network to provide a bidirectional interactive text-oriented communication facility using a v...
[ { "code": null, "e": 24557, "s": 24529, "text": "\n15 Dec, 2021" }, { "code": null, "e": 24645, "s": 24557, "text": "In this article, we will see how to connect the Telnet server with Node.js application." }, { "code": null, "e": 25130, "s": 24645, "text": "Te...
Minimum Cost to Merge Stones in C++
Suppose we have N piles of stones arranged in a row. Here the i-th pile has stones[i] number of stones. A move consists of merging K consecutive piles into one pile, now the cost of this move is equal to the total number of stones in these K number of piles. We have to find the minimum cost to merge all piles of stones...
[ { "code": null, "e": 1444, "s": 1062, "text": "Suppose we have N piles of stones arranged in a row. Here the i-th pile has stones[i] number of stones. A move consists of merging K consecutive piles into one pile, now the cost of this move is equal to the total number of stones in these K number of p...
How to exponentially scale the Y axis with matplotlib?
To exponentially scale the Y-axis with matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Inintialize a variable dt for steps. Create x and y data points using numpy. Plot the x and y data points using numpy. Set the exponential scale for the Y-axis...
[ { "code": null, "e": 1147, "s": 1062, "text": "To exponentially scale the Y-axis with matplotlib, we can take the following steps −" }, { "code": null, "e": 1223, "s": 1147, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code":...
How to Hide an HTML Element by Class using JavaScript ? - GeeksforGeeks
02 Mar, 2020 Suppose you have given an HTML document and the task is to hide an HTML element by its class name with the help of JavaScript. There are two approaches to explain with the proper example. Approach 1: In this approach, getElementsByClassName() selector is used to select elements of specific class. Indexing ...
[ { "code": null, "e": 26593, "s": 26565, "text": "\n02 Mar, 2020" }, { "code": null, "e": 26781, "s": 26593, "text": "Suppose you have given an HTML document and the task is to hide an HTML element by its class name with the help of JavaScript. There are two approaches to explain ...
Count the total number of elements in the List in C#?
To count the total number of elements in the List, the code is as follows − Live Demo using System; using System.Collections.Generic; public class Demo { public static void Main(String[] args) { List<String> list = new List<String>(); list.Add("One"); list.Add("Two"); list.Add("Three"); ...
[ { "code": null, "e": 1138, "s": 1062, "text": "To count the total number of elements in the List, the code is as follows −" }, { "code": null, "e": 1149, "s": 1138, "text": " Live Demo" }, { "code": null, "e": 1730, "s": 1149, "text": "using System;\nusing Sys...
Find nth term of the Dragon Curve Sequence - GeeksforGeeks
26 Apr, 2021 Dragon Curve Sequence is an infinite binary sequence of 0s and 1s. The first term of the sequence is 1. From the next term, we alternately insert 1 and 0 between each element of the previous term. To understand better refer the following explanations: 1 (starts with 1) “1” 1 “0” 1 and 0 are inserted alt...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n26 Apr, 2021" }, { "code": null, "e": 26324, "s": 26071, "text": "Dragon Curve Sequence is an infinite binary sequence of 0s and 1s. The first term of the sequence is 1. From the next term, we alternately insert 1 and 0 between e...
QlikView - Mapping Tables
Mapping table is a table, which is created to map the column values between two tables. It is also called a Lookup table, which is only used to look for a related value from some other table. Let us consider the following input data file, which represents the sales values in different regions. ProductID,ProductCategory...
[ { "code": null, "e": 3112, "s": 2920, "text": "Mapping table is a table, which is created to map the column values between two tables. It is also called a Lookup table, which is only used to look for a related value from some other table." }, { "code": null, "e": 3215, "s": 3112, ...
Mood & Modality and Dialogue Sentiment | Towards Data Science
In this article, we will see how verbal functional categories used in customer dialogue text and how these categories contribute to the semantics, especially the text sentiment. Verb phrase in a sentence sometimes can carry huge semantics, sometimes hint the sentiment only by itself even though if one does not see the ...
[ { "code": null, "e": 350, "s": 172, "text": "In this article, we will see how verbal functional categories used in customer dialogue text and how these categories contribute to the semantics, especially the text sentiment." }, { "code": null, "e": 681, "s": 350, "text": "Verb phr...
Maximum Profit | Practice | GeeksforGeeks
In the stock market, a person buys a stock and sells it on some future date. Given the stock prices of N days in an array A[ ] and a positive integer K, find out the maximum profit a person can make in at-most K transactions. A transaction is equivalent to (buying + selling) of a stock and new transaction can start onl...
[ { "code": null, "e": 610, "s": 238, "text": "In the stock market, a person buys a stock and sells it on some future date. Given the stock prices of N days in an array A[ ] and a positive integer K, find out the maximum profit a person can make in at-most K transactions. A transaction is equivalent t...
Large-scale Graph Mining with Spark: Part 2 | by Win Suen | Towards Data Science
A tutorial in 2 parts: Part 1: Graphs for unsupervised learning. Part 2 (you are here!): How you can wield magical graph powers. We’ll talk about label propagation, Spark GraphFrames, and results. Repo with sample graph and notebook here: https://github.com/wsuen/pygotham2018_graphmining In Part 1 (here), we saw how to...
[ { "code": null, "e": 194, "s": 171, "text": "A tutorial in 2 parts:" }, { "code": null, "e": 236, "s": 194, "text": "Part 1: Graphs for unsupervised learning." }, { "code": null, "e": 460, "s": 236, "text": "Part 2 (you are here!): How you can wield magical gr...
Sentiment Classifier Using NLP in Python | by Shivangi Sareen | Towards Data Science
The aim is to train a supervised Stochastic Gradient Descent classifier on a training set containing reviews of movies from IMDB, with labels, 0 for a negative review and 1 for a positive review. We’ll use the trained model to predict the polarity of reviews in our testing set. We’ll be training the model using a unigr...
[ { "code": null, "e": 597, "s": 172, "text": "The aim is to train a supervised Stochastic Gradient Descent classifier on a training set containing reviews of movies from IMDB, with labels, 0 for a negative review and 1 for a positive review. We’ll use the trained model to predict the polarity of revi...
How to create a speed converter with HTML and JavaScript?
To create a speed converter with HTML and JavaScript, the code is as follows − Live Demo <!DOCTYPE html> <html> <head> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } input, span { font-size: 20px; } </style> </head> <body> <h1>Speed Converter</h1> <h2>Type speed ...
[ { "code": null, "e": 1141, "s": 1062, "text": "To create a speed converter with HTML and JavaScript, the code is as follows −" }, { "code": null, "e": 1152, "s": 1141, "text": " Live Demo" }, { "code": null, "e": 1860, "s": 1152, "text": "<!DOCTYPE html>\n<htm...
How can we create and use ENUM columns in MySQL?
For creating an ENUM column, the enumeration value must be a quoted string literals. We can create ENUM columns in MySQL with the help of the following syntax − CREATE TABLE table_name( ... Col ENUM(‘Value1’,’Value2’,’Value3’), ... ); In the above syntax, we have three enumeration values. It can be more than t...
[ { "code": null, "e": 1223, "s": 1062, "text": "For creating an ENUM column, the enumeration value must be a quoted string literals. We can create ENUM columns in MySQL with the help of the following syntax −" }, { "code": null, "e": 1306, "s": 1223, "text": "CREATE TABLE table_na...
PyQt5 – How to align Text of Label - GeeksforGeeks
17 Jan, 2022 In this article, we will see how we can align text of labels in PyQt5 application, we can align text in three different ways which are left, right and Center.Syntax : label.setAlignment(QtCore.Qt.AlignLeft) label.setAlignment(QtCore.Qt.AlignCenter) label.setAlignment(QtCore.Qt.AlignRight) In order to use...
[ { "code": null, "e": 24517, "s": 24489, "text": "\n17 Jan, 2022" }, { "code": null, "e": 24686, "s": 24517, "text": "In this article, we will see how we can align text of labels in PyQt5 application, we can align text in three different ways which are left, right and Center.Synta...
Java Examples - Method Overloading
How to overload methods ? This example displays the way of overloading a method depending on type and number of parameters. class MyClass { int height; MyClass() { System.out.println("bricks"); height = 0; } MyClass(int i) { System.out.println("Building new House that is " + i + " feet tal...
[ { "code": null, "e": 2094, "s": 2068, "text": "How to overload methods ?" }, { "code": null, "e": 2192, "s": 2094, "text": "This example displays the way of overloading a method depending on type and number of parameters." }, { "code": null, "e": 2823, "s": 2192, ...
All possible strings of any length that can be formed from a given string?
In this section we will see how to generate all possible strings of any length, this will take each combination of characters to make string. For example, if the string is ABC, then it will generate − {A, B, C, AB, BA, BC, CB, CA, AC, ABC, ACB, BAC, BCA, CAB, CBA} Let us see the example to get the idea. Begin n := l...
[ { "code": null, "e": 1327, "s": 1062, "text": "In this section we will see how to generate all possible strings of any length, this will take each combination of characters to make string. For example, if the string is ABC, then it will generate − {A, B, C, AB, BA, BC, CB, CA, AC, ABC, ACB, BAC, BCA...
Grant a user permission to only view a MySQL view?
To grant a user permission to only view a MySQL view, use the below syntax GRANT SELECT ON yourDatabaseName.yourViewName TO ' yourUserName@'yourLocalHost'; First you need to display all the view names from a table. The syntax is as follows − SHOW FULL TABLES IN yourDatabaseName WHERE TABLE_TYPE LIKE 'VIEW'; Now impleme...
[ { "code": null, "e": 1137, "s": 1062, "text": "To grant a user permission to only view a MySQL view, use the below syntax" }, { "code": null, "e": 1218, "s": 1137, "text": "GRANT SELECT ON yourDatabaseName.yourViewName TO ' yourUserName@'yourLocalHost';" }, { "code": null...
How to perform mouseover function in Selenium WebDriver using Java?
A mouse hover is done on an element to fire an event on that element. If we hover on the menus of a webpage the submenus appears. Thus this event gets triggered on hovering on an element. It is evident from the above image that on hovering over the Packages menu the color of the text changed along with the tooltip disp...
[ { "code": null, "e": 1250, "s": 1062, "text": "A mouse hover is done on an element to fire an event on that element. If we hover on the menus of a webpage the submenus appears. Thus this event gets triggered on hovering on an element." }, { "code": null, "e": 1473, "s": 1250, "te...
How to Remove the computer from the AD domain using PowerShell?
To remove the computer from the domain we need to use the Remove-Computer command. Remove-Computer -ComputerName Test1-win2k16 ` -UnjoinDomainCredential Labdomain\Administrator ` -WorkgroupName WG -Restart -Force -PassThru In the above example, the Computer name Test1-Win2k16 is going to...
[ { "code": null, "e": 1145, "s": 1062, "text": "To remove the computer from the domain we need to use the Remove-Computer command." }, { "code": null, "e": 1317, "s": 1145, "text": "Remove-Computer -ComputerName Test1-win2k16 `\n -UnjoinDomainCredential Labdomain\\A...
GATE | GATE CS 2008 | Question 55 - GeeksforGeeks
14 Sep, 2021 An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if(A) the SLR(1) parser for G has S-R conflicts(B) the LR(1) parser for G has S-R conflicts(C) the LR(0) parser for G has S-R conflicts(D) the LALR(1) parser for G has reduce-reduce conflictsAnswer: (B)Explanation:Both LALR...
[ { "code": null, "e": 24432, "s": 24404, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24944, "s": 24432, "text": "An LALR(1) parser for a grammar G can have shift-reduce (S-R) conflicts if and only if(A) the SLR(1) parser for G has S-R conflicts(B) the LR(1) parser for G has S...
How to handle errors in middleware C# Asp.net Core?
Create a new folder named CustomExceptionMiddleware and a class ExceptionMiddleware.cs inside it. The first thing we need to do is to register our IloggerManager service and RequestDelegate through the dependency injection. The _next parameter of RequestDeleagate type is a function delegate that can process our HTTP re...
[ { "code": null, "e": 1160, "s": 1062, "text": "Create a new folder named CustomExceptionMiddleware and a class\nExceptionMiddleware.cs inside it." }, { "code": null, "e": 1286, "s": 1160, "text": "The first thing we need to do is to register our IloggerManager service and\nReques...
How to create an unordered_set of user defined class or struct in C++? - GeeksforGeeks
22 Nov, 2021 The unordered_set internally implements a hash table to store elements. By default we can store only predefined type as int, string, float etc. If we want to store the element of user defined type as structure then compiler will show an error because before storing elements into unordered_set compiler perf...
[ { "code": null, "e": 24018, "s": 23990, "text": "\n22 Nov, 2021" }, { "code": null, "e": 25118, "s": 24018, "text": "The unordered_set internally implements a hash table to store elements. By default we can store only predefined type as int, string, float etc. If we want to store...
Scala Int round() method with example - GeeksforGeeks
30 Jan, 2020 The round() method is utilized to return the rounded value of the specified int value. This method is used to avoid accidental loss of precision from a detour through Float. Method Definition: def round: Int Return Type: It returns the rounded value of the specified int value. Example #1: // Scala program ...
[ { "code": null, "e": 25305, "s": 25277, "text": "\n30 Jan, 2020" }, { "code": null, "e": 25479, "s": 25305, "text": "The round() method is utilized to return the rounded value of the specified int value. This method is used to avoid accidental loss of precision from a detour thro...
Document Type Definition - DTD - GeeksforGeeks
06 Nov, 2020 A Document Type Definition (DTD) describes the tree structure of a document and something about its data. It is a set of markup affirmations that actually define a type of document for the SGML family, like GML, SGML, HTML, XML. A DTD can be declared inside an XML document as inline or as an external reco...
[ { "code": null, "e": 24860, "s": 24832, "text": "\n06 Nov, 2020" }, { "code": null, "e": 25090, "s": 24860, "text": "A Document Type Definition (DTD) describes the tree structure of a document and something about its data. It is a set of markup affirmations that actually define a...
Flower Species Classifier. Build an image classifier to recognize... | by Silvio Mori Neto | Towards Data Science
• Artificial Intelligence • Deep Learning • Convolutional Neural Networks• Python • PyTorch • Numpy • Matplotlib • Jupyter Notebooks In this article, I give an overview of the project I developed that led me to be awarded a scholarship to the Deep Learning Nanodegree program at Udacity. I developed this project as the ...
[ { "code": null, "e": 305, "s": 172, "text": "• Artificial Intelligence • Deep Learning • Convolutional Neural Networks• Python • PyTorch • Numpy • Matplotlib • Jupyter Notebooks" }, { "code": null, "e": 460, "s": 305, "text": "In this article, I give an overview of the project I ...
Building a memory based collaborative filtering recommender | by Àlex Escolà Nixon | Towards Data Science
In the last post Building a movie content based recommender using tf-idf I explained how to build a simple movie recommender based on the genres. In this post, we’ll be implementing a Memory-based collaborative filtering model, and go through the main differences both conceptually and in implementation between user and...
[ { "code": null, "e": 318, "s": 172, "text": "In the last post Building a movie content based recommender using tf-idf I explained how to build a simple movie recommender based on the genres." }, { "code": null, "e": 513, "s": 318, "text": "In this post, we’ll be implementing a Me...
GATE | GATE-CS-2017 (Set 2) | Question 31 - GeeksforGeeks
10 Sep, 2021 Which of the following statements about the parser is/are correct? I. Canonical LR is more powerful than SLR. II. SLR is more powerful than LALR. III. SLR is more powerful than canonical LR. (A) I only(B) II only(C) III only(D) II and III onlyAnswer: (A)Explanation: LR parsers in term of power CLR > LALR ...
[ { "code": null, "e": 24612, "s": 24584, "text": "\n10 Sep, 2021" }, { "code": null, "e": 24679, "s": 24612, "text": "Which of the following statements about the parser is/are correct?" }, { "code": null, "e": 24804, "s": 24679, "text": "I. Canonical LR is more...
Error Handling in OpenGL - GeeksforGeeks
18 May, 2021 Many of the features of the OpenGL API are very useful and powerful. But, it’s quite possible that OpenGL programs may contain errors. So, it becomes important to learn error handling in OpenGL programs. The OpenGL and GLU libraries have a simple method of recording errors. When an OpenGL program encounter...
[ { "code": null, "e": 25751, "s": 25723, "text": "\n18 May, 2021" }, { "code": null, "e": 26446, "s": 25751, "text": "Many of the features of the OpenGL API are very useful and powerful. But, it’s quite possible that OpenGL programs may contain errors. So, it becomes important to ...
How to send data through wifi in android programmatically?
This example demonstrate about send data through wifi in android programmatically Need Server and Client Project 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...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrate about send data through wifi in android programmatically" }, { "code": null, "e": 1175, "s": 1144, "text": "Need Server and Client Project" }, { "code": null, "e": 1304, "s": 1175, "text":...
Replace all 0's with 5 | Practice | GeeksforGeeks
Given a number N. The task is to complete the function convertFive() which replace all zeros in the number with 5 and returns the number. Input: The first line of input contains an integer T, denoting the number of testcases. Then T testcases follow. Each testcase contains a single integer N denoting the number. Output...
[ { "code": null, "e": 376, "s": 238, "text": "Given a number N. The task is to complete the function convertFive() which replace all zeros in the number with 5 and returns the number." }, { "code": null, "e": 552, "s": 376, "text": "Input:\nThe first line of input contains an inte...
Kotlin infix function notation - GeeksforGeeks
20 Apr, 2022 In this article, we will learn infix notation used in Kotlin functions. In Kotlin, a functions marked with infix keyword can also be called using infix notation means calling without using parenthesis and dot. There are two types of infix function notation in Kotlin- Standard library infix function notat...
[ { "code": null, "e": 25763, "s": 25735, "text": "\n20 Apr, 2022" }, { "code": null, "e": 26033, "s": 25763, "text": "In this article, we will learn infix notation used in Kotlin functions. In Kotlin, a functions marked with infix keyword can also be called using infix notation me...
Python | Find groups of strictly increasing numbers in a list - GeeksforGeeks
08 Mar, 2019 Given a list of integers, write a Python program to find groups of strictly increasing numbers. Examples: Input : [1, 2, 3, 5, 6] Output : [[1, 2, 3], [5, 6]] Input : [8, 9, 10, 7, 8, 1, 2, 3] Output : [[8, 9, 10], [7, 8], [1, 2, 3]] Approach #1 : Pythonic naive This is a naive approach which uses an ext...
[ { "code": null, "e": 25439, "s": 25411, "text": "\n08 Mar, 2019" }, { "code": null, "e": 25535, "s": 25439, "text": "Given a list of integers, write a Python program to find groups of strictly increasing numbers." }, { "code": null, "e": 25545, "s": 25535, "te...
Trigger a keypress/keydown/keyup event in JS/jQuery - GeeksforGeeks
03 Aug, 2021 In this article, we are going to discuss 2 methods of logging key-presses in web technologies using vanilla JavaScript as well as Jquery. We will also discuss the events related to key-presses in JavaScript. Firstly we have to create a structure so let’s make an HTML and CSS layout first. HTML and CSS layo...
[ { "code": null, "e": 26602, "s": 26574, "text": "\n03 Aug, 2021" }, { "code": null, "e": 26892, "s": 26602, "text": "In this article, we are going to discuss 2 methods of logging key-presses in web technologies using vanilla JavaScript as well as Jquery. We will also discuss the ...
Get Application Version using Python - GeeksforGeeks
02 Feb, 2021 Software versioning maybe thanks to reasoning the distinctive states of pc software package because it is developed and discharged. The version symbol is typically a word, a number, or both. For instance, version 1.0 is often accustomed to denote the initial unharness of a program. In this article, we will...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n02 Feb, 2021" }, { "code": null, "e": 25904, "s": 25537, "text": "Software versioning maybe thanks to reasoning the distinctive states of pc software package because it is developed and discharged. The version symbol is typically...
Find the nearest power of 2 for every array element - GeeksforGeeks
07 Apr, 2021 Given an array arr[] of size N, the task is to print the nearest power of 2 for each array element. Note: If there happens to be two nearest powers of 2, consider the larger one. Examples: Input: arr[] = {5, 2, 7, 12} Output: 4 2 8 16 Explanation: The nearest power of arr[0] ( = 5) is 4. The nearest power ...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26220, "s": 26041, "text": "Given an array arr[] of size N, the task is to print the nearest power of 2 for each array element. Note: If there happens to be two nearest powers of 2, consider ...
C++ Program to Implement Set in STL
Set is abstract data type in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, but it is possible to remove and add the modified value of that element. Functions used here: st.size() = Returns the size of set....
[ { "code": null, "e": 1322, "s": 1062, "text": "Set is abstract data type in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, but it is possible to remove and add the modified value of that el...
Merge K sorted linked lists | Practice | GeeksforGeeks
Given K sorted linked lists of different sizes. The task is to merge them in such a way that after merging they will be a single sorted linked list. Example 1: Input: K = 4 value = {{1,2,3},{4 5},{5 6},{7,8}} Output: 1 2 3 4 5 5 6 7 8 Explanation: The test case has 4 sorted linked list of size 3, 2, 2, 2 1st list ...
[ { "code": null, "e": 388, "s": 238, "text": "Given K sorted linked lists of different sizes. The task is to merge them in such a way that after merging they will be a single sorted linked list. " }, { "code": null, "e": 399, "s": 388, "text": "Example 1:" }, { "code": nul...
AngularJS | angular.isDate() Function - GeeksforGeeks
12 Apr, 2019 The angular.isDate() function in AngularJS is used to determine the value of date is valid or not. It returns true if the reference is a date else false. Syntax: angular.isDate( value ) Parameters: This function accepts single parameter value which stores the date object. Return Value: It returns true if t...
[ { "code": null, "e": 28271, "s": 28243, "text": "\n12 Apr, 2019" }, { "code": null, "e": 28425, "s": 28271, "text": "The angular.isDate() function in AngularJS is used to determine the value of date is valid or not. It returns true if the reference is a date else false." }, {...
How to disable right click using jQuery?
To disable right click on a page, use the jQuery bind() method. You can try to run the following code to learn how to disable right click: Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(document...
[ { "code": null, "e": 1126, "s": 1062, "text": "To disable right click on a page, use the jQuery bind() method." }, { "code": null, "e": 1201, "s": 1126, "text": "You can try to run the following code to learn how to disable right click:" }, { "code": null, "e": 1211, ...
Unidirectional Channel in Golang - GeeksforGeeks
18 May, 2020 As we know that a channel is a medium of communication between concurrently running goroutines so that they can send and receive data to each other. By default a channel is bidirectional but you can create a unidirectional channel also. A channel that can only receive data or a channel that can only send d...
[ { "code": null, "e": 24515, "s": 24487, "text": "\n18 May, 2020" }, { "code": null, "e": 24949, "s": 24515, "text": "As we know that a channel is a medium of communication between concurrently running goroutines so that they can send and receive data to each other. By default a c...
Print All Link Name Using Selenium In Python - GeeksforGeeks
12 Nov, 2020 Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Requirements: You need to install...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n12 Nov, 2020" }, { "code": null, "e": 25811, "s": 25537, "text": "Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major ...
Solidity - Arrays - GeeksforGeeks
11 May, 2022 Arrays are data structures that store the fixed collection of elements of the same data types in which each and every element has a specific location called index. Instead of creating numerous individual variables of the same type, we just declare one array of the required size and store the elements in th...
[ { "code": null, "e": 25741, "s": 25713, "text": "\n11 May, 2022" }, { "code": null, "e": 26289, "s": 25741, "text": "Arrays are data structures that store the fixed collection of elements of the same data types in which each and every element has a specific location called index....
How to Get the Size of a Table in MySQL using Python? - GeeksforGeeks
26 Dec, 2020 Prerequisite: Python: MySQL Create Table In this article, we are going to see how to get the size of a table in MySQL using Python. Python allows the integration of a wide range of database servers with applications. A database interface is required to access a database from Python. MySQL Connector-Python ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n26 Dec, 2020" }, { "code": null, "e": 25578, "s": 25537, "text": "Prerequisite: Python: MySQL Create Table" }, { "code": null, "e": 25913, "s": 25578, "text": "In this article, we are going to see how to get t...
CSS | radial-gradient() Function - GeeksforGeeks
30 Jul, 2021 The radial-gradient() function is an inbuilt function in CSS which is used to set a radial gradient as the background image. It starts at a single point and emanates outward. By default, the first color starts at the center position of the element and then fade to the end color towards the edge of the elem...
[ { "code": null, "e": 24155, "s": 24127, "text": "\n30 Jul, 2021" }, { "code": null, "e": 24523, "s": 24155, "text": "The radial-gradient() function is an inbuilt function in CSS which is used to set a radial gradient as the background image. It starts at a single point and emanat...
Vector removeIf() method in Java - GeeksforGeeks
18 Sep, 2018 The removeIf() method of Vector removes all of those elements from Vector which satisfies the condition passed as a parameter to this method. This method returns true if some element are removed from the Vector. Java 8 has an important in-built functional interface which is Predicate. Predicate, or a condi...
[ { "code": null, "e": 25519, "s": 25491, "text": "\n18 Sep, 2018" }, { "code": null, "e": 25731, "s": 25519, "text": "The removeIf() method of Vector removes all of those elements from Vector which satisfies the condition passed as a parameter to this method. This method returns t...
Python - Check for Key in Dictionary Value list - GeeksforGeeks
01 Mar, 2020 Sometimes, while working with data, we might have a problem we receive a dictionary whole key has list of dictionaries as value. In this scenario, we might need to find if a particular key exists in that. Let’s discuss certain ways in which this task can be performed. Method #1 : Using any()This is simple ...
[ { "code": null, "e": 25625, "s": 25597, "text": "\n01 Mar, 2020" }, { "code": null, "e": 25894, "s": 25625, "text": "Sometimes, while working with data, we might have a problem we receive a dictionary whole key has list of dictionaries as value. In this scenario, we might need to...
Operating Systems | CPU Scheduling | Question 1 - GeeksforGeeks
03 Oct, 2019 Consider three processes (process id 0, 1, 2 respectively) with compute time bursts 2, 4 and 8 time units. All processes arrive at time zero. Consider the longest remaining time first (LRTF) scheduling algorithm. In LRTF ties are broken by giving priority to the process with the lowest process id. The aver...
[ { "code": null, "e": 25761, "s": 25733, "text": "\n03 Oct, 2019" }, { "code": null, "e": 26253, "s": 25761, "text": "Consider three processes (process id 0, 1, 2 respectively) with compute time bursts 2, 4 and 8 time units. All processes arrive at time zero. Consider the longest ...
AngularJS | ng-switch Directive - GeeksforGeeks
28 Mar, 2019 The ng-switch Directive in AngularJS is used to specify the condition to show/hide the child elements in HTML DOM. The HTML element will be displayed only if the expression inside ng-switch directive returns true otherwise it will be hidden. It is supported by all HTML elements. Syntax: <element ng-switch=...
[ { "code": null, "e": 26070, "s": 26042, "text": "\n28 Mar, 2019" }, { "code": null, "e": 26350, "s": 26070, "text": "The ng-switch Directive in AngularJS is used to specify the condition to show/hide the child elements in HTML DOM. The HTML element will be displayed only if the e...
Perfect power (1, 4, 8, 9, 16, 25, 27, ...) - GeeksforGeeks
07 Jul, 2021 A perfect power is a number that can be expressed as power of another positive integer. Given a number n, find count of numbers from 1 to n that are of type xy where x >= 1 and y > 1Examples : Input : n = 10 Output : 4 1 4 8 and 9 are the numbers that are of form x ^ y where x > 0 and y > 1 Input : n = ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n07 Jul, 2021" }, { "code": null, "e": 26682, "s": 26487, "text": "A perfect power is a number that can be expressed as power of another positive integer. Given a number n, find count of numbers from 1 to n that are of type xy whe...
Why it is important to write "using namespace std" in C++ program? - GeeksforGeeks
22 Nov, 2021 In this article, we will discuss the use of “using namespace std” in the C++ program. Need of namespace: As the same name can’t be given to multiple variables, functions, classes, etc. in the same scope. So to overcome this situation namespace is introduced. Program 1: Below is the C++ program illustrating...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n22 Nov, 2021" }, { "code": null, "e": 25453, "s": 25367, "text": "In this article, we will discuss the use of “using namespace std” in the C++ program." }, { "code": null, "e": 25472, "s": 25453, "text": "Need...
What are boolean operators in Python?
The logical operators and, or and not are also referred to as boolean operators. While and as well as or operator needs two operands, which may evaluate to true or false, not operator needs one operand evaluating to true or false. Boolean and operator returns true if both operands return true. >>> a=50 >>> b=25 >>> a>4...
[ { "code": null, "e": 1293, "s": 1062, "text": "The logical operators and, or and not are also referred to as boolean operators. While and as well as or operator needs two operands, which may evaluate to true or false, not operator needs one operand evaluating to true or false." }, { "code": ...
Underscore.js _.where() Function
24 Nov, 2021 The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without using any built-in objects. The _.where() function is used to find all the elements that matches the searching condition. Suppose to fi...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Nov, 2021" }, { "code": null, "e": 561, "s": 28, "text": "The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without usi...
NPDA for accepting the language L = {an bn | n>=1}
03 Jun, 2022 Prerequisite – Pushdown automata, Pushdown automata acceptance by final state Problem – Design a non deterministic PDA for accepting the language L = {[Tex]b^n [/Tex]| n>=1}, i.e., L = {ab, aabb, aaabbb, aaaabbbb, ......} In each of the string, the number of a’s are followed by equal number of b’s. Exp...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Jun, 2022" }, { "code": null, "e": 131, "s": 52, "text": "Prerequisite – Pushdown automata, Pushdown automata acceptance by final state " }, { "code": null, "e": 235, "s": 131, "text": "Problem – Design a non det...
Length of longest common subsequence containing vowels
14 May, 2021 Given two strings X and Y of length m and n respectively. The problem is to find the length of the longest common subsequence of strings X and Y which contains all vowel characters. Examples: Input : X = "aieef" Y = "klaief" Output : aie Input : X = "geeksforgeeks" Y = "feroeeks" Outpu...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 May, 2021" }, { "code": null, "e": 236, "s": 54, "text": "Given two strings X and Y of length m and n respectively. The problem is to find the length of the longest common subsequence of strings X and Y which contains all vowel char...
Join two ArrayLists in Java
11 Dec, 2018 Given two ArrayLists in Java, the task is to join these ArrayLists. Examples: Input: ArrayList1: [Geeks, For, ForGeeks], ArrayList2: [GeeksForGeeks, A computer portal]Output: ArrayList: [Geeks, For, ForGeeks, GeeksForGeeks, A computer portal] Input: ArrayList1: [G, e, e, k, s], ArrayList2: [F, o, r, G, e, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Dec, 2018" }, { "code": null, "e": 120, "s": 52, "text": "Given two ArrayLists in Java, the task is to join these ArrayLists." }, { "code": null, "e": 130, "s": 120, "text": "Examples:" }, { "code": null,...
ReactJS Reactstrap Carousel Component
22 Jul, 2021 Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Carousel component allows the user to show the sliding item, and it is used when there is a group of content on the same level. We can use th...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2021" }, { "code": null, "e": 417, "s": 28, "text": "Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Carousel ...
Timer Objects in Python
28 Jun, 2017 Timer objects are used to represent actions that needs to be scheduled to run after a certain instant of time. These objects get scheduled to run on a separate thread that carries out the action. However, the interval that a timer is initialized with might not be the actual instant when the action was actu...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2017" }, { "code": null, "e": 519, "s": 54, "text": "Timer objects are used to represent actions that needs to be scheduled to run after a certain instant of time. These objects get scheduled to run on a separate thread that ca...
Construct a Binary Tree in Level Order using Recursion
08 Mar, 2022 Given an array of integers, the task is to construct a binary tree in level order fashion using Recursion. Examples Given an array arr[] = {15, 10, 20, 8, 12, 16, 25} Approach: Idea is to keep track of the number of child nodes in the left sub-tree and right sub-tree and then take the decision on the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2022" }, { "code": null, "e": 135, "s": 28, "text": "Given an array of integers, the task is to construct a binary tree in level order fashion using Recursion." }, { "code": null, "e": 145, "s": 135, "text": ...
What is Vectorization in Machine Learning? | by Jalal Mansoori | Towards Data Science
Make your code execute fast using vectorization What is Vectorization?How Vectorization is important in Machine learning?Example: Unvectorized Vs Vectorized ImplementationAdvantages of Vectorized ImplementationDemonstration on jupyter notebook What is Vectorization? How Vectorization is important in Machine learning? E...
[ { "code": null, "e": 220, "s": 172, "text": "Make your code execute fast using vectorization" }, { "code": null, "e": 416, "s": 220, "text": "What is Vectorization?How Vectorization is important in Machine learning?Example: Unvectorized Vs Vectorized ImplementationAdvantages of V...
How to select a value from a static dropdown in Selenium?
The various methods available under Select class in Selenium to select a value from a static dropdown. They are as listed below − selectByVisibleText(String args)This method is most commonly used in dropdowns. It is very simple to select an option in a dropdown and multiple selection box with this method. It takes a St...
[ { "code": null, "e": 1135, "s": 1062, "text": "The various methods available under Select class in Selenium to select a" }, { "code": null, "e": 1192, "s": 1135, "text": "value from a static dropdown. They are as listed below −" }, { "code": null, "e": 1539, "s": ...
Changing the Granularity of Data in Power BI | by Salvatore Cagliari | Towards Data Science
I use the Contoso sample dataset, like in my previous articles. You can download the ContosoRetailDW Dataset for free from Microsoft here. The Contoso Data can be freely used under the MIT License, as described here. Now, let’s look at the Online Sales Fact table (FactOnlineSales). When you look at the following pictur...
[ { "code": null, "e": 311, "s": 172, "text": "I use the Contoso sample dataset, like in my previous articles. You can download the ContosoRetailDW Dataset for free from Microsoft here." }, { "code": null, "e": 389, "s": 311, "text": "The Contoso Data can be freely used under the M...
Maximum Frequency Stack in C++
Suppose we want to implement one stack called FreqStack, Our FreqStack has two functions − push(x), This will push an integer x onto the stack. push(x), This will push an integer x onto the stack. pop(), This will remove and returns the most frequent element in the stack. If there are more than one elements with same f...
[ { "code": null, "e": 1153, "s": 1062, "text": "Suppose we want to implement one stack called FreqStack, Our FreqStack has two functions −" }, { "code": null, "e": 1206, "s": 1153, "text": "push(x), This will push an integer x onto the stack." }, { "code": null, "e": 1...
Rexx - find
This method is used to search for the first occurrence of a string in another string. find(string, phrase) string − The string value that needs to be searched for. string − The string value that needs to be searched for. phrase − This is the value that needs to be searched for in the string. phrase − This is the value...
[ { "code": null, "e": 2425, "s": 2339, "text": "This method is used to search for the first occurrence of a string in another string." }, { "code": null, "e": 2447, "s": 2425, "text": "find(string, phrase)\n" }, { "code": null, "e": 2504, "s": 2447, "text": "st...
CSS Background - GeeksforGeeks
07 Oct, 2021 The CSS background properties are used to define the background effects for elements. There are lots of properties to design the background. CSS background properties are as follows: CSS Background-color Property: The background-color property in CSS is used to specify the background color of an element. ...
[ { "code": null, "e": 28072, "s": 28044, "text": "\n07 Oct, 2021" }, { "code": null, "e": 28256, "s": 28072, "text": "The CSS background properties are used to define the background effects for elements. There are lots of properties to design the background. CSS background propert...
htdigest command in Linux with examples - GeeksforGeeks
26 Feb, 2019 “htdigest” command is used to create and update password file which is used by Apache HTTPD digest authentication. Basically, it stores usernames, realm, and password of HTTP users. Before sending any sensitive information such as online shopping transactions, it confirms identity of the users. Syntax: htd...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n26 Feb, 2019" }, { "code": null, "e": 24311, "s": 24015, "text": "“htdigest” command is used to create and update password file which is used by Apache HTTPD digest authentication. Basically, it stores usernames, realm, and passw...