title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Event bubbling vs event capturing in JavaScript?
Event Bubbling − Whenever an event happens on an element, the event handlers will first run on it and then on its parent and finally all the way up to its other ancestors. Event Capturing − It is the reverse of the event bubbling and here the event starts from the parent element and then to its child element. Following...
[ { "code": null, "e": 1234, "s": 1062, "text": "Event Bubbling − Whenever an event happens on an element, the event handlers will first run on it and then on its parent and finally all the way up to its other ancestors." }, { "code": null, "e": 1373, "s": 1234, "text": "Event Capt...
How To Manipulate Data With DataFrames.jl | by Emmett Boudreau | Towards Data Science
While Julia might be a programming language that has exploded in popularity recently, a great test of a data science ecosystem in a particular language is usually seeing how well data can be handled and manipulated. One contribution that certainly makes approaching such a problem objectively easier is DataFrames.jl. no...
[ { "code": null, "e": 490, "s": 172, "text": "While Julia might be a programming language that has exploded in popularity recently, a great test of a data science ecosystem in a particular language is usually seeing how well data can be handled and manipulated. One contribution that certainly makes a...
Pneumonia Diagnosis using Deep Learning | by Richard Han | Towards Data Science
Introduction In the world of healthcare, one of the major issues that medical professionals face is the correct diagnosis of conditions and diseases of patients. Not being able to correctly diagnose a condition is a problem for both the patient and the doctor. The doctor is not benefitting the patient in the appropriat...
[ { "code": null, "e": 60, "s": 47, "text": "Introduction" }, { "code": null, "e": 749, "s": 60, "text": "In the world of healthcare, one of the major issues that medical professionals face is the correct diagnosis of conditions and diseases of patients. Not being able to correctly...
AWT CardLayout Class
The class CardLayout arranges each component in the container as a card. Only one card is visible at a time, and the container acts as a stack of cards. Following is the declaration for java.awt.CardLayout class: public class CardLayout extends Object implements LayoutManager2, Serializable CardLayout() Creat...
[ { "code": null, "e": 1900, "s": 1747, "text": "The class CardLayout arranges each component in the container as a card. Only one card is visible at a time, and the container acts as a stack of cards." }, { "code": null, "e": 1960, "s": 1900, "text": "Following is the declaration ...
How to order by timestamp in MySQL?
To order by timestamp, use the ORDER BY as in the following syntax − select *from yourTableName ORDER BY STR_TO_DATE(`yourColumnName`,'%m/%d/%Y%h:%i:%s %p'); Let us first create a table − mysql> create table DemoTable -> ( -> `timestamp` varchar(100) -> ); Query OK, 0 rows affected (0.56 sec) Insert some recor...
[ { "code": null, "e": 1131, "s": 1062, "text": "To order by timestamp, use the ORDER BY as in the following syntax −" }, { "code": null, "e": 1220, "s": 1131, "text": "select *from yourTableName ORDER BY STR_TO_DATE(`yourColumnName`,'%m/%d/%Y%h:%i:%s %p');" }, { "code": nu...
What is the meaning of <> in MySQL query?
The symbol <> in MySQL is same as not equal to operator (!=). Both gives the result in boolean or tinyint(1). If the condition becomes true, then the result will be 1 otherwise 0. Case 1 − Using != operator. The query is as follows − mysql> select 3!=5; The following is the output. +------+ | 3!=5 | +------+ | 1 | +...
[ { "code": null, "e": 1242, "s": 1062, "text": "The symbol <> in MySQL is same as not equal to operator (!=). Both gives the result in boolean or tinyint(1). If the condition becomes true, then the result will be 1 otherwise 0." }, { "code": null, "e": 1270, "s": 1242, "text": "Ca...
Graph Machine Learning with Python Part 1: Basics, Metrics, and Algorithms | by Ani Madurkar | Towards Data Science
Graph-based methods are some of the most fascinating and powerful techniques in the Data Science world today. Even so, I believe we’re in the early stages of widespread adoption of these methods. In this series, I’ll provide an extensive walkthrough of Graph Machine Learning starting with an overview of metrics and alg...
[ { "code": null, "e": 660, "s": 172, "text": "Graph-based methods are some of the most fascinating and powerful techniques in the Data Science world today. Even so, I believe we’re in the early stages of widespread adoption of these methods. In this series, I’ll provide an extensive walkthrough of Gr...
Distributed Neural Network Training In Pytorch | by Nilesh Vijayrania | Towards Data Science
With several advancements in Deep Learning, complex networks such as giant transformer networks, wider and deeper Resnets, etc. have evolved which keeps a larger memory footprint. More often than not, while training these networks, deep learning practitioners need to use multiple GPUs to train them efficiently. In this...
[ { "code": null, "e": 621, "s": 172, "text": "With several advancements in Deep Learning, complex networks such as giant transformer networks, wider and deeper Resnets, etc. have evolved which keeps a larger memory footprint. More often than not, while training these networks, deep learning practitio...
Guava - IntMath Class
IntMath provides utility methods on int. Following is the declaration for com.google.common.math.IntMath class − @GwtCompatible(emulated = true) public final class IntMath extends Object static int binomial(int n, int k) Returns n choose k, also known as the binomial coefficient of n and k, or Integer.MAX_VALUE if t...
[ { "code": null, "e": 1926, "s": 1885, "text": "IntMath provides utility methods on int." }, { "code": null, "e": 1998, "s": 1926, "text": "Following is the declaration for com.google.common.math.IntMath class −" }, { "code": null, "e": 2075, "s": 1998, "text":...
Importance of Understanding the Complexity of a Machine Learning Algorithm | by Baran Köseoğlu | Towards Data Science
Machine learning engineers often find themselves in situations to choose the right algorithm for the problem at hand. It is often the case that they first understand the structure of the problem they provide a solution to. They then explore the dataset at hand. After initial observations and key takeaways, they finally...
[ { "code": null, "e": 534, "s": 172, "text": "Machine learning engineers often find themselves in situations to choose the right algorithm for the problem at hand. It is often the case that they first understand the structure of the problem they provide a solution to. They then explore the dataset at...
How to create boxplot of vectors having different lengths in R?
If we have multiple vectors of different lengths then the boxplot for such vectors can be created by creating a single data frame using those vectors with a categorical column showing the name of the vectors and a numerical column having the corresponding values. Then boxplot function will be used as shown in the below...
[ { "code": null, "e": 1392, "s": 1062, "text": "If we have multiple vectors of different lengths then the boxplot for such vectors can be created by creating a single data frame using those vectors with a categorical column showing the name of the vectors and a numerical column having the correspondi...
Calculate Factorial of a value in R Programming - factorial() Function - GeeksforGeeks
01 Jun, 2020 R Language offers a factorial() function that can compute the factorial of a number without writing the whole code for computing factorial. Syntax: factorial(x) Parameters:x: The number whose factorial has to be computed. Returns: The factorial of desired number. Example 1: # R program to calculate factori...
[ { "code": null, "e": 24694, "s": 24666, "text": "\n01 Jun, 2020" }, { "code": null, "e": 24834, "s": 24694, "text": "R Language offers a factorial() function that can compute the factorial of a number without writing the whole code for computing factorial." }, { "code": n...
IMPORTING, EXPORTING and CHANGING Keywords in ABAP
IMPORTING transfers a value from the caller to the called method by passing an actual parameter EXPORTING is just opposite to what IMPORTING does. IT passes value from the method to Caller. CHANGING is transferring the value from caller to method by a variable which is processed or changed and the changed value is pass...
[ { "code": null, "e": 1158, "s": 1062, "text": "IMPORTING transfers a value from the caller to the called method by passing an actual parameter" }, { "code": null, "e": 1252, "s": 1158, "text": "EXPORTING is just opposite to what IMPORTING does. IT passes value from the method to ...
How to clear a MongoDB database?
To clear, use dropDatabase. Following is the syntax − use yourDatabaseName; db.dropDatabase(); To clear a MongoDB database, first show all the databases − > show dbs This will produce the following output − MyDB 0.000GB admin 0.000GB config 0.000GB local 0.000GB onlinecustomertracker 0.000GB test 0.006GB...
[ { "code": null, "e": 1116, "s": 1062, "text": "To clear, use dropDatabase. Following is the syntax −" }, { "code": null, "e": 1157, "s": 1116, "text": "use yourDatabaseName;\ndb.dropDatabase();" }, { "code": null, "e": 1217, "s": 1157, "text": "To clear a Mong...
Angular PrimeNG ConfirmDialog Component - GeeksforGeeks
19 Oct, 2021 Angular PrimeNG is a framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use ConfirmDialog component in angular primeNG. The ConfirmDialog component is used to make a dialog ...
[ { "code": null, "e": 25109, "s": 25081, "text": "\n19 Oct, 2021" }, { "code": null, "e": 25278, "s": 25109, "text": "Angular PrimeNG is a framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive webs...
Machine Learning With SQL — It’s Easier Than You Think | by Dario Radečić | Towards Data Science
If you’ve been studying data science, it’s likely you know how to perform machine learning tasks in languages like Python, R, and Julia. But what can you do when speed is the key, the hardware is limited, or the company you work for treats SQL as the only option for predictive analytics? In-database machine learning is...
[ { "code": null, "e": 504, "s": 171, "text": "If you’ve been studying data science, it’s likely you know how to perform machine learning tasks in languages like Python, R, and Julia. But what can you do when speed is the key, the hardware is limited, or the company you work for treats SQL as the only...
Python Input Methods for Competitive Programming?
In this we are going to see different ways of I/O methods for competitive programming in Python. In competitive programming it is important to read the input as fast as possible so as take advantage over others. Suppose you’re in a codeforces or similar online jude (like SPOJ) and you have to read numbers a, b, c, d an...
[ { "code": null, "e": 1274, "s": 1062, "text": "In this we are going to see different ways of I/O methods for competitive programming in Python. In competitive programming it is important to read the input as fast as possible so as take advantage over others." }, { "code": null, "e": 1468...
How to Build a Simple Augmented Reality Android App? - GeeksforGeeks
22 Jun, 2021 Augmented Reality has crossed a long way from Sci-fi Stories to Scientific reality. With this speed of technical advancement, it’s probably not very far when we can also manipulate digital data in this real physical world as Tony Stark did in his lab. When we superimpose information like sound, text, image...
[ { "code": null, "e": 24252, "s": 24224, "text": "\n22 Jun, 2021" }, { "code": null, "e": 24999, "s": 24252, "text": "Augmented Reality has crossed a long way from Sci-fi Stories to Scientific reality. With this speed of technical advancement, it’s probably not very far when we ca...
Creating Knockout Application along with Setting up Environment in Visual Studio - GeeksforGeeks
30 Apr, 2019 Setting up Environment –Step 1 : Open Visual Studio and Create ASP.Net Application (Web -> Visual Studio[version]), name it as KOSetup Step 2 : Install jQuery file and knockout.jsfile and Create folder named as Scripts and drag these two files(jQuery and knockout.js) into the Scripts folder Step 3 : Create...
[ { "code": null, "e": 24424, "s": 24396, "text": "\n30 Apr, 2019" }, { "code": null, "e": 24559, "s": 24424, "text": "Setting up Environment –Step 1 : Open Visual Studio and Create ASP.Net Application (Web -> Visual Studio[version]), name it as KOSetup" }, { "code": null, ...
Python Program to Find the Gravitational Force Acting Between Two Objects
When it is required to find the gravitational force that acts between the two objects, a method named ‘find_gravity’ is used, and three parameters are passed to it. Below is the demonstration of the same − Live Demo def find_gravity(m_1, m_2, r): G_val = 6.673*(10**-11) F_val = (G_val*m_1*m_2)/(r**2) return ...
[ { "code": null, "e": 1227, "s": 1062, "text": "When it is required to find the gravitational force that acts between the two objects, a method named ‘find_gravity’ is used, and three parameters are passed to it." }, { "code": null, "e": 1268, "s": 1227, "text": "Below is the demo...
C# | How to change BufferWidth of the Console - GeeksforGeeks
28 Jan, 2019 Given the normal Console in C#, the task is to find the default value of Buffer Width and change it to something else. Buffer Width refers to the current width of the buffer area of the console in columns. Approach: This can be done using the Buffer Width property in the Console class of the System package...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n28 Jan, 2019" }, { "code": null, "e": 24030, "s": 23911, "text": "Given the normal Console in C#, the task is to find the default value of Buffer Width and change it to something else." }, { "code": null, "e": 24117, ...
Finding number of occurrences of a specific string in MySQL?
Use LENGTH() for this. Let us first create a table − mysql> create table DemoTable -> ( -> Value text -> ); Query OK, 0 rows affected (0.74 sec) Insert some records in the table using insert command − mysql> insert into DemoTable values('10,20,10,30,10,40,50,40'); Query OK, 1 row affected (0.24 sec) Display all records...
[ { "code": null, "e": 1115, "s": 1062, "text": "Use LENGTH() for this. Let us first create a table −" }, { "code": null, "e": 1207, "s": 1115, "text": "mysql> create table DemoTable\n-> (\n-> Value text\n-> );\nQuery OK, 0 rows affected (0.74 sec)" }, { "code": null, "...
How to change the Drive letter using PowerShell?
To change the drive letter using PowerShell, we can use the Set−Partition command but before that, we need to know which drive letter to change. You can check the drive letter using Windows Explorer, Get−Partition, Gwmi win32_Logicaldisk, or Get−CimInstance Win32_Logicaldisk command. Suppose we have an E: and we need t...
[ { "code": null, "e": 1347, "s": 1062, "text": "To change the drive letter using PowerShell, we can use the Set−Partition command but before that, we need to know which drive letter to change. You can check the drive letter using Windows Explorer, Get−Partition, Gwmi win32_Logicaldisk, or Get−CimInst...
A Mathematical Explanation of Support Vector Machines | by Terence Shin | Towards Data Science
Support Vector Machines (SVMs) are one of the most popular machine learning models in the data science world. Intuitively, it’s a rather simple concept. Mathematically speaking, however, support vector machines can seem like a black box. In this article, I have two goals: I want to demystify the mechanics underlying su...
[ { "code": null, "e": 409, "s": 171, "text": "Support Vector Machines (SVMs) are one of the most popular machine learning models in the data science world. Intuitively, it’s a rather simple concept. Mathematically speaking, however, support vector machines can seem like a black box." }, { "co...
How to bind events to Tkinter Canvas items?
Tkinter events can be bound with the widgets to perform a set of operations on the widgets. To be more specific, we can also bind an event handler to Canvas Items by using bind(<Button>, callback) method. Binding the event with the canvas item makes a canvas item dynamic which can be customized by event handlers. #Impo...
[ { "code": null, "e": 1377, "s": 1062, "text": "Tkinter events can be bound with the widgets to perform a set of operations on the widgets. To be more specific, we can also bind an event handler to Canvas Items by using bind(<Button>, callback) method. Binding the event with the canvas item makes a c...
Evaluating performance of an object detection model | by Renu Khandelwal | Towards Data Science
In this article, you will figure out how to use mAP to evaluate the performance of an object detection model. What is mAP? How to calculate mAP along with 11-point interpolation? We use machine learning and deep learning to solve regression or classification problem. We used Root Mean Square(RMS) or Mean Average Percen...
[ { "code": null, "e": 350, "s": 171, "text": "In this article, you will figure out how to use mAP to evaluate the performance of an object detection model. What is mAP? How to calculate mAP along with 11-point interpolation?" }, { "code": null, "e": 439, "s": 350, "text": "We use ...
gRPC - Server Streaming RPC
Let us now discuss how server streaming works while using gRPC communication. In this case, the client will search for books with a given author. Assume the server requires some time to go through all the books. Instead of waiting to give all the books after going through all the books, the server instead would provide...
[ { "code": null, "e": 2219, "s": 1837, "text": "Let us now discuss how server streaming works while using gRPC communication. In this case, the client will search for books with a given author. Assume the server requires some time to go through all the books. Instead of waiting to give all the books ...
How to toggle a boolean using JavaScript?
Following is the code for toggling a Boolean using JavaScript − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-seri...
[ { "code": null, "e": 1126, "s": 1062, "text": "Following is the code for toggling a Boolean using JavaScript −" }, { "code": null, "e": 1137, "s": 1126, "text": " Live Demo" }, { "code": null, "e": 1978, "s": 1137, "text": "<!DOCTYPE html>\n<html lang=\"en\">\...
CSS Box Shadow
The CSS box-shadow property is used to apply one or more shadows to an element. In its simplest use, you only specify a horizontal and a vertical shadow. The default color of the shadow is the current text-color. Specify a horizontal and a vertical shadow: The color parameter defines the color of the shadow. Specify...
[ { "code": null, "e": 81, "s": 0, "text": "The CSS box-shadow property is used to apply \none or more shadows to an element." }, { "code": null, "e": 215, "s": 81, "text": "In its simplest use, you only specify a horizontal and a vertical shadow. The \ndefault color of the shadow ...
Structuring Text with Graph Representations | by Diogo A.P. Nunes | Towards Data Science
Text is a type of data that, when explored correctly, can be a source of valuable information. However, it can be challenging to explore data in textual form, especially free-text. Free-text lacks explicit structure and standardisation. In this post I will show you how to represent free-text with a graph, making its st...
[ { "code": null, "e": 353, "s": 172, "text": "Text is a type of data that, when explored correctly, can be a source of valuable information. However, it can be challenging to explore data in textual form, especially free-text." }, { "code": null, "e": 939, "s": 353, "text": "Free-...
Check if an Array is a permutation of numbers from 1 to N : Set 2 - GeeksforGeeks
21 May, 2021 Given an array arr containing N positive integers, the task is to check if the given array arr represents a permutation or not. A sequence of N integers is called a permutation if it contains all integers from 1 to N exactly once. Examples: Input: arr[] = {1, 2, 5, 3, 2} Output: No Explanation: The give...
[ { "code": null, "e": 25236, "s": 25208, "text": "\n21 May, 2021" }, { "code": null, "e": 25365, "s": 25236, "text": "Given an array arr containing N positive integers, the task is to check if the given array arr represents a permutation or not. " }, { "code": null, "e...
Different ways to use Const with Reference to a Pointer in C++ - GeeksforGeeks
04 Apr, 2020 Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one: Pointers are used to store the address of variables or a memory location. A variable can be declared as a pointer by putting ‘*’ in the declaration.datatype *var_name; Example:// C++ program to/...
[ { "code": null, "e": 23953, "s": 23925, "text": "\n04 Apr, 2020" }, { "code": null, "e": 24065, "s": 23953, "text": "Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one:" }, { "code": null, "e": 24458, "s"...
Java 1-d and 2-d Array | Practice | GeeksforGeeks
Given a integer n. We have n*n values of a 2-d array, and n values of 1-d array. Task is to find the sum of the left diagonal values of the 2-d array and the max element of the 1-d array and print them with space in between. Example 1: ​Input : arr[][] = {{1,2,3}, {4,5,6}, {7, 8,9}} and N = 3 brr[] = {3, 6...
[ { "code": null, "e": 452, "s": 226, "text": "Given a integer n. We have n*n values of a 2-d array, and n values of 1-d array. Task is to find the sum of the left diagonal values of the 2-d array and the max element of the 1-d array and print them with space in between." }, { "code": null, ...
Sort elements of an array in increasing order of absolute difference of adjacent elements
28 Jun, 2022 Given an array arr[], the task is to arrange the array in such a way that the absolute difference between the adjacent elements is in increasing order. Examples: Input: arr[] = {8, 1, 2, 3, 0} Output: 2 3 1 8 0 Explanation: |2-3| = 1, |3-1| = 2, |1-8| = 7, |8-0| = 8 The absolute difference between the ad...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2022" }, { "code": null, "e": 207, "s": 54, "text": "Given an array arr[], the task is to arrange the array in such a way that the absolute difference between the adjacent elements is in increasing order. " }, { "code":...
How to Speed Up Gradle build in Android Studio?
22 Mar, 2021 Gradle is one of the most important files or extensions that are present in the Android Project. Gradle handles all the libraries and application IDs and many important components of any Android application. Every time when we run our application or we build our apk we will get to see the message as Gradle...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Mar, 2021" }, { "code": null, "e": 488, "s": 28, "text": "Gradle is one of the most important files or extensions that are present in the Android Project. Gradle handles all the libraries and application IDs and many important compon...
Program to print alphabet “A” using stars
15 Apr, 2021 Given the number of lines n, print the alphabet A pattern using stars.Examples : Input : Number of lines : 5 Output : * * * *** * * * * Input : Number of lines : 10 Output : **** * * * * * * * * ****** * * * * * * * * C++ Java Python3 C# PHP Javascript // CPP program to p...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2021" }, { "code": null, "e": 111, "s": 28, "text": "Given the number of lines n, print the alphabet A pattern using stars.Examples : " }, { "code": null, "e": 277, "s": 111, "text": "Input : Number of lines...
Returning Multiple Values in Python
25 Nov, 2020 In Python, we can return multiple values from a function. Following are different ways 1) Using Object: This is similar to C/C++ and Java, we can create a class (in C, struct) to hold multiple values and return an object of the class. # A Python program to return multiple # values from a method using class...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Nov, 2020" }, { "code": null, "e": 139, "s": 52, "text": "In Python, we can return multiple values from a function. Following are different ways" }, { "code": null, "e": 287, "s": 139, "text": "1) Using Object: T...
CSS | Font Border
30 Jul, 2021 Sometimes we need to create text and adding the outline to the text. There are mainly two methods to create a border to the fonts which are listed below: Using text-shadow property Using text-stroke property Method 1: Using text-shadow property: The text-shadow property is used to add font border or shado...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2021" }, { "code": null, "e": 183, "s": 28, "text": "Sometimes we need to create text and adding the outline to the text. There are mainly two methods to create a border to the fonts which are listed below: " }, { "code"...
Program to reverse a linked list using Stack
18 May, 2022 Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack.Examples: Input : List = 3 -> 2 -> 1 Output : 1 -> 2 -> 3 Input : 9 -> 7 -> 4 -> 2 Output : 2 -> 4 -> 7 -> 9 Algorithm: Traverse the list and push all of its nodes onto a stack.Traverse...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 May, 2022" }, { "code": null, "e": 180, "s": 54, "text": "Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack.Examples: " }, { "code": null, "e": 281, "s...
Sum of list (with string types) in Python
04 Dec, 2020 In Python, type of behavior will not change for data type. Below example is list containing integer type in string.so, we have to take all int type numbers from list even it is declared in string. Examples: Input : list1 = [12, 'geek', 2, '41', 'for', 10, '8', 6, 4, 'geeks', 7, '10'] Output : 100 Input : ...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2020" }, { "code": null, "e": 225, "s": 28, "text": "In Python, type of behavior will not change for data type. Below example is list containing integer type in string.so, we have to take all int type numbers from list even it i...
SAP GRC - Quick Guide
SAP Governance, Risk and Compliance solution enables organizations to manage regulations and compliance and remove any risk in managing organizations’ key operations. As per changing market situation, organizations are growing and rapidly changing and inappropriate documents, spreadsheets are not acceptable for externa...
[ { "code": null, "e": 2749, "s": 2402, "text": "SAP Governance, Risk and Compliance solution enables organizations to manage regulations and compliance and remove any risk in managing organizations’ key operations. As per changing market situation, organizations are growing and rapidly changing and i...
Features of C++ 17
20 Nov, 2021 C++17 enables writing simple, clearer, and more expressive code. Some of the features introduced in C++17 are: Nested Namespaces Variable declaration in if and switch if constexpr statement Structured bindings Fold Expressions Direct list initialization of enums Namespaces are a very convenient tool to or...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Nov, 2021" }, { "code": null, "e": 164, "s": 52, "text": "C++17 enables writing simple, clearer, and more expressive code. Some of the features introduced in C++17 are: " }, { "code": null, "e": 182, "s": 164, "t...
Anagram | Practice | GeeksforGeeks
Given two stringsaandbconsisting of lowercase characters. The task is to check whether two given strings are an anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, act and tac are an anagram of each other. ...
[ { "code": null, "e": 558, "s": 238, "text": "Given two stringsaandbconsisting of lowercase characters. The task is to check whether two given strings are an anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be d...
How to remove a SubList from a List in Java
18 Jan, 2019 Given a list in Java, the task is to remove all the elements in the sublist whose index is between fromIndex, inclusive, and toIndex, exclusive. The range of the index is defined by the user. Example: Input list = [1, 2, 3, 4, 5, 6, 7, 8], fromIndex = 2, endIndex = 4Output [1, 2, 5, 6, 7, 8] Input list = [...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jan, 2019" }, { "code": null, "e": 220, "s": 28, "text": "Given a list in Java, the task is to remove all the elements in the sublist whose index is between fromIndex, inclusive, and toIndex, exclusive. The range of the index is defi...
SAP ABAP - Do Loop
Unconditional loops repeatedly execute several statements without specifying any condition. The DO statement implements unconditional loops by executing a set of statement blocks several times unconditionally. The general format for the DO statement is as follows − DO [n TIMES]. <statement block>. ENDDO. ‘Times’...
[ { "code": null, "e": 3242, "s": 3032, "text": "Unconditional loops repeatedly execute several statements without specifying any condition. The DO statement implements unconditional loops by executing a set of statement blocks several times unconditionally." }, { "code": null, "e": 3298, ...
How to Create New ImageView Dynamically on Button Click in Android?
23 Apr, 2021 In this article, we are going to implement a very important feature related to ImageView. Here we are going to add ImageView dynamically. We will be just changing the background color. Whenever we click on a button a new ImageView will be created. So here we are going to learn how to implement that feature...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Apr, 2021" }, { "code": null, "e": 504, "s": 28, "text": "In this article, we are going to implement a very important feature related to ImageView. Here we are going to add ImageView dynamically. We will be just changing the backgrou...
Java | Abstract Class and Interface | Question 2
22 Apr, 2022 Which of the following is true about interfaces in java. 1) An interface can contain following type of members. ....public, static, final fields (i.e., constants) ....default and static methods with bodies 2) An instance of interface can be created. 3) A class can implement multiple interfaces. 4) Many...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Apr, 2022" }, { "code": null, "e": 109, "s": 52, "text": "Which of the following is true about interfaces in java." }, { "code": null, "e": 402, "s": 109, "text": "1) An interface can contain following type of me...
Maximum distance between two occurrences of same element in array
06 Jul, 2022 Given an array with repeated elements, the task is to find the maximum distance between two occurrences of an element. Examples: Input : arr[] = {3, 2, 1, 2, 1, 4, 5, 8, 6, 7, 4, 2} Output: 10 // maximum distance for 2 is 11-1 = 10 // maximum distance for 1 is 4-2 = 2 // maximum distance for 4 is 10-5 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 171, "s": 52, "text": "Given an array with repeated elements, the task is to find the maximum distance between two occurrences of an element." }, { "code": null, "e": 183, "s": 171,...
Rat in a Maze with multiple steps or jump allowed
01 Jul, 2022 This is the variation of Rat in Maze A Maze is given as N*N binary matrix of blocks where source block is the upper left most block i.e., maze[0][0] and destination block is lower rightmost block i.e., maze[N-1][N-1]. A rat starts from source and has to reach destination. The rat can move only in two direc...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jul, 2022" }, { "code": null, "e": 716, "s": 54, "text": "This is the variation of Rat in Maze A Maze is given as N*N binary matrix of blocks where source block is the upper left most block i.e., maze[0][0] and destination block is ...
Dictionary Methods in Python Program
A python dictionary is a collection data type which is wrapped in braces, {}, with a series of key value pairs inside the braces. Each key is connected to a value. We use a key to access the value associated with that key. A key can be a number, a string, a list, or even another dictionary. There are many in-built meth...
[ { "code": null, "e": 1354, "s": 1062, "text": "A python dictionary is a collection data type which is wrapped in braces, {}, with a series of key value pairs inside the braces. Each key is connected to a value. We use a key to access the value associated with that key. A key can be a number, a strin...
Complex Numbers in C#
To work WITH and display complex numbers in C#, you need to check for real and imaginary values. A complex number like 7+5i is formed up of two parts, a real part 7, and an imaginary part 5. Here, the imaginary part is the multiple of i. To display complete numbers, use the − public struct Complex To add both the compl...
[ { "code": null, "e": 1159, "s": 1062, "text": "To work WITH and display complex numbers in C#, you need to check for real and imaginary values." }, { "code": null, "e": 1300, "s": 1159, "text": "A complex number like 7+5i is formed up of two parts, a real part 7, and an imaginary...
Android - Twitter Integration
Android allows your application to connect to twitter and share data or any kind of updates on twitter. This chapter is about integrating twitter into your application. There are two ways through which you can integrate twitter and share something from your application. These ways are listed below − Twitter SDK (Twitte...
[ { "code": null, "e": 3776, "s": 3607, "text": "Android allows your application to connect to twitter and share data or any kind of updates on twitter. This chapter is about integrating twitter into your application." }, { "code": null, "e": 3908, "s": 3776, "text": "There are two...
Random Forest in Python. A Practical End-to-End Machine Learning... | by Will Koehrsen | Towards Data Science
A Practical End-to-End Machine Learning Example There has never been a better time to get into machine learning. With the learning resources available online, free open-source tools with implementations of any algorithm imaginable, and the cheap availability of computing power through cloud services such as AWS, machin...
[ { "code": null, "e": 220, "s": 172, "text": "A Practical End-to-End Machine Learning Example" }, { "code": null, "e": 1236, "s": 220, "text": "There has never been a better time to get into machine learning. With the learning resources available online, free open-source tools wit...
Working with JSON Data in Java - GeeksforGeeks
10 Sep, 2020 JSON stands for JavaScript Object Notation which is a lightweight text-based open standard designed which is easy for human-readable data interchange. In general, JSON is extended from JavaScript. JSON is language independent and It is easy to read and write. The file extension of JSON is .json. Example – ...
[ { "code": null, "e": 23894, "s": 23866, "text": "\n10 Sep, 2020" }, { "code": null, "e": 24191, "s": 23894, "text": "JSON stands for JavaScript Object Notation which is a lightweight text-based open standard designed which is easy for human-readable data interchange. In general, ...
Understanding and implementing a fully convolutional network (FCN) | by Himanshu Rawlani | Towards Data Science
Convolutional neural networks (CNN) work great for computer vision tasks. Using a pre-trained model that is trained on huge datasets like ImageNet, COCO, etc. we can quickly specialize these architectures to work for our unique dataset. This process is termed as transfer learning. However, there’s a catch! Pre-trained ...
[ { "code": null, "e": 835, "s": 171, "text": "Convolutional neural networks (CNN) work great for computer vision tasks. Using a pre-trained model that is trained on huge datasets like ImageNet, COCO, etc. we can quickly specialize these architectures to work for our unique dataset. This process is te...
Can we define an abstract class without abstract method in java?
A method which does not have body is known as abstract method. It contains only method signature with a semi colon and, an abstract keyword before it. public abstract myMethod(); To use an abstract method, you need to inherit it by extending its class and provide implementation to it. A class which contains 0 or more a...
[ { "code": null, "e": 1213, "s": 1062, "text": "A method which does not have body is known as abstract method. It contains only method signature with a semi colon and, an abstract keyword before it." }, { "code": null, "e": 1241, "s": 1213, "text": "public abstract myMethod();" ...
Convert list of string into sorted list of integer in Python
Analysing data using python can bring us scenario when we have to deal with numbers represented as strings. In this article we will take a list which has numbers present as strings and we need to convert then to integers and then represent them in a sorted manner. In this approach we apply the int function to every ele...
[ { "code": null, "e": 1327, "s": 1062, "text": "Analysing data using python can bring us scenario when we have to deal with numbers represented as strings. In this article we will take a list which has numbers present as strings and we need to convert then to integers and then represent them in a sor...
Apache Camel - Project
We will use Maven to build a Camel project. Although, we preferable use IntelliJ IDE for development. You may use any IDE of your choice for this project. Create a new Maven project and specify the following − GroupId: Basket ArtifactId: Basket Select the default location for your project or if you prefer specify the ...
[ { "code": null, "e": 2026, "s": 1871, "text": "We will use Maven to build a Camel project. Although, we preferable use IntelliJ IDE for development. You may use any IDE of your choice for this project." }, { "code": null, "e": 2081, "s": 2026, "text": "Create a new Maven project ...
Check if a key is present in every segment of size k in an array - GeeksforGeeks
19 Jan, 2022 Given an array arr[] and size of array is n and one another key x, and give you a segment size k. The task is to find that the key x present in every segment of size k in arr[].Examples: Input : arr[] = { 3, 5, 2, 4, 9, 3, 1, 7, 3, 11, 12, 3} x = 3 k = 3 Output : Yes There are 4 non-overlapping segments o...
[ { "code": null, "e": 24740, "s": 24712, "text": "\n19 Jan, 2022" }, { "code": null, "e": 24928, "s": 24740, "text": "Given an array arr[] and size of array is n and one another key x, and give you a segment size k. The task is to find that the key x present in every segment of si...
How to get the first day of the previous month in MySQL?
With the help of following MySQL query, we can get the first day of previous month − mysql> SELECT DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01') AS 'FIRST DAY OF PREVOIUS MONTH'; +-----------------------------+ | FIRST DAY OF PREVOIUS MONTH | +-----------------------------+ | 2017-09-01 | +-----...
[ { "code": null, "e": 1147, "s": 1062, "text": "With the help of following MySQL query, we can get the first day of previous month −" }, { "code": null, "e": 1432, "s": 1147, "text": "mysql> SELECT DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01') AS 'FIRST DAY OF PREVOIUS MONT...
Python DateTime - DateTime Class - GeeksforGeeks
19 Aug, 2021 DateTime class of the DateTime module as the name suggests contains information on both date as well as time. Like a date object, DateTime assumes the current Gregorian calendar extended in both directions; like a time object, DateTime assumes there are exactly 3600*24 seconds in every day. But unlike date...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n19 Aug, 2021" }, { "code": null, "e": 24725, "s": 24292, "text": "DateTime class of the DateTime module as the name suggests contains information on both date as well as time. Like a date object, DateTime assumes the current Greg...
Sentiment Analysis in R — Good vs Not Good — handling Negations | by AbdulMajedRaja RS | Towards Data Science
Sentiment Analysis is one of the most obvious things Data Analysts with unlabelled Text data (with no score or no rating) end up doing in an attempt to extract some insights out of it and the same Sentiment analysis is also one of the potential research areas for any NLP (Natural Language Processing) enthusiasts. For a...
[ { "code": null, "e": 487, "s": 172, "text": "Sentiment Analysis is one of the most obvious things Data Analysts with unlabelled Text data (with no score or no rating) end up doing in an attempt to extract some insights out of it and the same Sentiment analysis is also one of the potential research a...
IntStream sum() in Java - GeeksforGeeks
06 Dec, 2018 IntStream sum() returns the sum of elements in this stream. This is a special case of a reduction. IntStream sum() is a terminal operation i.e, it may traverse the stream to produce a result or a side-effect. Note : A reduction operation (also called a fold) takes a sequence of input elements and combines ...
[ { "code": null, "e": 24106, "s": 24078, "text": "\n06 Dec, 2018" }, { "code": null, "e": 24315, "s": 24106, "text": "IntStream sum() returns the sum of elements in this stream. This is a special case of a reduction. IntStream sum() is a terminal operation i.e, it may traverse the...
How to customize the position of an alert box using JavaScript?
To customize the position of an alert box, use the CSS “top” and “left” properties. We have a custom alert box, which we’ve created using jQuery and styled with CSS. You can try to run the following code to customize the position of an alert box − Live Demo <!DOCTYPE html> <html> <head> <script src="https://aj...
[ { "code": null, "e": 1228, "s": 1062, "text": "To customize the position of an alert box, use the CSS “top” and “left” properties. We have a custom alert box, which we’ve created using jQuery and styled with CSS." }, { "code": null, "e": 1310, "s": 1228, "text": "You can try to r...
File globbing in Linux - GeeksforGeeks
30 Jan, 2021 Before we move to file globbing, let’s understand what are wildcard patterns, these are the patterns containing strings like ‘?’, ‘*’ File globbing is the operation that recognizes these patterns and does the job of file path expansion. See the below example for clear understanding, path expansion for...
[ { "code": null, "e": 24494, "s": 24466, "text": "\n30 Jan, 2021" }, { "code": null, "e": 24629, "s": 24494, "text": "Before we move to file globbing, let’s understand what are wildcard patterns, these are the patterns containing strings like ‘?’, ‘*’ " }, { "code": null, ...
MySQL Tryit Editor v1.0
SELECT SUBSTR(CustomerName, 2, 5) AS ExtractString FROM Customers; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now ...
[ { "code": null, "e": 51, "s": 0, "text": "SELECT SUBSTR(CustomerName, 2, 5) AS ExtractString" }, { "code": null, "e": 67, "s": 51, "text": "FROM Customers;" }, { "code": null, "e": 69, "s": 67, "text": "​" }, { "code": null, "e": 141, "s": 78, ...
GATE | GATE-CS-2015 (Set 1) | Question 62 - GeeksforGeeks
09 Dec, 2021 Suppose that the stop-and-wait protocol is used on a link with a bit rate of 64 kilobits per second and 20 milliseconds propagation delay. Assume that the transmission time for the acknowledgment and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utiliza...
[ { "code": null, "e": 24171, "s": 24143, "text": "\n09 Dec, 2021" }, { "code": null, "e": 24564, "s": 24171, "text": "Suppose that the stop-and-wait protocol is used on a link with a bit rate of 64 kilobits per second and 20 milliseconds propagation delay. Assume that the transmis...
Scala - while Loop
Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. A while loop statement repeatedly executes a target statement as long as a given condition is true. The following is a syntax for while loop. while(condition){ statement(s); } Here, sta...
[ { "code": null, "e": 2229, "s": 1998, "text": "Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. A while loop statement repeatedly executes a target statement as long as a given condition is true." }, { "code": ...
Scapy - Packet Manipulation in Kali Linux - GeeksforGeeks
15 Apr, 2021 Scapy is a free and open-source tool available on Github. Scapy is written in Python language. Scapy is used for packet manipulation programs. Scapy tool forges the data packet that is coming from a source. Scapy decodes data packets and captures them. This tool reads packets using pcap files, and then it ...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n15 Apr, 2021" }, { "code": null, "e": 24479, "s": 24015, "text": "Scapy is a free and open-source tool available on Github. Scapy is written in Python language. Scapy is used for packet manipulation programs. Scapy tool forges th...
p5.js | position() Function - GeeksforGeeks
20 Aug, 2019 The position() function is used to set the position of the element relative to origin (0, 0) coordinate. If this function is not containing any parameters then it returns the x and y position of the element. Note: This function requires the p5.dom library. So add the following line in the head section of t...
[ { "code": null, "e": 24919, "s": 24891, "text": "\n20 Aug, 2019" }, { "code": null, "e": 25127, "s": 24919, "text": "The position() function is used to set the position of the element relative to origin (0, 0) coordinate. If this function is not containing any parameters then it ...
Correlation for data science | Towards Data Science
Correlation (to be exact Correlation in Statistic) is a measure of a mutual relationship between two variables whether they are causal or not. This degree of measurement could be measured on any kind of data type (Continous and Continous, Categorical and Categorical, Continous and Categorical). Although correlation sta...
[ { "code": null, "e": 719, "s": 172, "text": "Correlation (to be exact Correlation in Statistic) is a measure of a mutual relationship between two variables whether they are causal or not. This degree of measurement could be measured on any kind of data type (Continous and Continous, Categorical and ...
Fake Job Classification with BERT | by Sadrach Pierre, Ph.D. | Towards Data Science
Recently, The University of the Aegean published the Employment Scam Aegean Dataset. The data contains about 18K real-life job advertisements. The aim is to provide a clear picture of the Employment Scam problem to the research community. In this post, we will use BERT to classify fake job descriptions in the Employmen...
[ { "code": null, "e": 515, "s": 172, "text": "Recently, The University of the Aegean published the Employment Scam Aegean Dataset. The data contains about 18K real-life job advertisements. The aim is to provide a clear picture of the Employment Scam problem to the research community. In this post, we...
Python Pandas - Reindexing
Reindexing changes the row labels and column labels of a DataFrame. To reindex means to conform the data to match a given set of labels along a particular axis. Multiple operations can be accomplished through indexing like − Reorder the existing data to match a new set of labels. Reorder the existing data to match a ne...
[ { "code": null, "e": 2604, "s": 2443, "text": "Reindexing changes the row labels and column labels of a DataFrame. To reindex means to conform the data to match a given set of labels along a particular axis." }, { "code": null, "e": 2668, "s": 2604, "text": "Multiple operations c...
Batch Script - Moving Folders
For moving folders, Batch Script provides the MOVE command. MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination Following are the description of the options which can be presented to the DEL command. [drive:][path]filename1 Specifies the location and name of the file or files you want to move destination Specifi...
[ { "code": null, "e": 2229, "s": 2169, "text": "For moving folders, Batch Script provides the MOVE command." }, { "code": null, "e": 2288, "s": 2229, "text": "MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination\n" }, { "code": null, "e": 2376, "s": 2288, ...
VBA - Text Files
You can also read Excel File and write the contents of the cell into a Text File using VBA. VBA allows the users to work with text files using two methods − File System Object using Write Command As the name suggests, FSOs help the developers to work with drives, folders, and files. In this section, we will discuss how...
[ { "code": null, "e": 2092, "s": 1935, "text": "You can also read Excel File and write the contents of the cell into a Text File using VBA. VBA allows the users to work with text files using two methods −" }, { "code": null, "e": 2111, "s": 2092, "text": "File System Object" }, ...
Check if a large number is divisible by 11 or not in C++
Here we will see how to check a number is divisible by 11 or not. In this case the number is very large number. So we put the number as string. To check whether a number is divisible by 11, if the sum of odd position values and the sum of even position values are same, then the number is divisible by 11. Live Demo #in...
[ { "code": null, "e": 1206, "s": 1062, "text": "Here we will see how to check a number is divisible by 11 or not. In this case the number is very large number. So we put the number as string." }, { "code": null, "e": 1368, "s": 1206, "text": "To check whether a number is divisible...
Function to compute factorial of a number in JavaScript
We are required to write a simple JavaScript function that takes in a Number, say n and computes its factorial. Maintain a count and a result variable. We will keep multiplying the count into result and simultaneously decreasing the count by 1, until it reaches 1. And then finally we return the result. Therefore, let’s...
[ { "code": null, "e": 1174, "s": 1062, "text": "We are required to write a simple JavaScript function that takes in a Number, say n and\ncomputes its factorial." }, { "code": null, "e": 1327, "s": 1174, "text": "Maintain a count and a result variable. We will keep multiplying the ...
jQuery UI menu collapse() Method - GeeksforGeeks
24 Jan, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI menu is a themeable menu that is used with mouse and keyboard interactions for navigating between pages. In this article, we will ...
[ { "code": null, "e": 50960, "s": 50932, "text": "\n24 Jan, 2021" }, { "code": null, "e": 51325, "s": 50960, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpag...
C Program to check if a number is divisible by sum of its digits
Given a number n we have to check whether the sum of its digits divide the number n or not. To find out we have to sum all the numbers starting from the unit place and then divide the number with the final sum. Like we have a number “521” so we have to find the sum of its digit that will be “5 + 2 + 1 = 8” but 521 is n...
[ { "code": null, "e": 1273, "s": 1062, "text": "Given a number n we have to check whether the sum of its digits divide the number n or not. To find out we have to sum all the numbers starting from the unit place and then divide the number with the final sum." }, { "code": null, "e": 1431,...
Decorator to print Function call details in Python - GeeksforGeeks
08 May, 2020 Decorators in Python are the design pattern that allows the users to add new functionalities to an existing object without the need to modify its structure. Decorators are generally called before defining a function the user wants to decorate. Example: # defining a decorator def hello_decorator(func): ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n08 May, 2020" }, { "code": null, "e": 24145, "s": 23901, "text": "Decorators in Python are the design pattern that allows the users to add new functionalities to an existing object without the need to modify its structure. Decora...
How to copy files/folders to the remote location in the PowerShell?
To copy files or folders to or from the remote location, you need to provide the UNC path of the items. For example, here we are going to copy a file from the local computer to a remote computer called Test-PC. Copy-Item D:\Temp\PowerShellcommands.csv -Destination \\Test- PC\Sharedpath\PScommands.ps1 -PassThru Here, fi...
[ { "code": null, "e": 1273, "s": 1062, "text": "To copy files or folders to or from the remote location, you need to provide the UNC path of the items. For example, here we are going to copy a file from the local computer to a remote computer called Test-PC." }, { "code": null, "e": 1374,...
D3.js | d3.set.clear() Function - GeeksforGeeks
28 Jun, 2019 The set.clear() function in D3.js is used to remove all values from the set. It clears the set and holds that blank set you can check that in the 2nd example. Syntax: d3.set().clear(); Parameters: This function does not accept any parameters. Return Value: This function does not returns any values. Below p...
[ { "code": null, "e": 24676, "s": 24648, "text": "\n28 Jun, 2019" }, { "code": null, "e": 24835, "s": 24676, "text": "The set.clear() function in D3.js is used to remove all values from the set. It clears the set and holds that blank set you can check that in the 2nd example." }...
LCS of three strings | Practice | GeeksforGeeks
Given 3 strings A, B and C, the task is to find the longest common sub-sequence in all three given sequences. Example 1: Input: A = "geeks", B = "geeksfor", C = "geeksforgeeks" Output: 5 Explanation: "geeks"is the longest common subsequence with length 5. ​Example 2: Input: A = "abcd", B = "efgh", C = "ijkl" Outp...
[ { "code": null, "e": 348, "s": 238, "text": "Given 3 strings A, B and C, the task is to find the longest common sub-sequence in all three given sequences." }, { "code": null, "e": 359, "s": 348, "text": "Example 1:" }, { "code": null, "e": 496, "s": 359, "text...
How to add function to the clear button icon in Material UI Autocomplete ? - GeeksforGeeks
22 Feb, 2021 In this article, We are going to add an extra function to the clear button of Material UI Autocomplete. Take Reference to the clear button in code and then add a click event listener on it. Creating React Application And Installing Module: Step 1: Create a React application using the following command. npx...
[ { "code": null, "e": 24540, "s": 24512, "text": "\n22 Feb, 2021" }, { "code": null, "e": 24730, "s": 24540, "text": "In this article, We are going to add an extra function to the clear button of Material UI Autocomplete. Take Reference to the clear button in code and then add a c...
MySQL: selecting rows where a column is null?
To select rows where a column is null, you can use IS NULL from MySQL with the help of where clause. The syntax is as follows − select *from yourTableName where yourColumnName IS NULL; Let us first create a table to understand the concept − mysql> create table NULLDemo1 -> ( -> StudentId int, -> StudentName va...
[ { "code": null, "e": 1163, "s": 1062, "text": "To select rows where a column is null, you can use IS NULL from MySQL with the help of where clause." }, { "code": null, "e": 1190, "s": 1163, "text": "The syntax is as follows −" }, { "code": null, "e": 1247, "s": 11...
Build your own AutoML in Power BI using PyCaret 2.0 | by Moez Ali | Towards Data Science
Last week we have announced PyCaret 2.0, an open source, low-code machine learning library in Python that automates machine learning workflow. It is an end-to-end machine learning and model management tool that speeds up machine learning experiment cycle and helps data scientists become more efficient and productive. I...
[ { "code": null, "e": 490, "s": 171, "text": "Last week we have announced PyCaret 2.0, an open source, low-code machine learning library in Python that automates machine learning workflow. It is an end-to-end machine learning and model management tool that speeds up machine learning experiment cycle ...
Area of the biggest ellipse inscribed within a rectangle - GeeksforGeeks
18 Mar, 2021 Given here is a rectangle of length l & breadth b, the task is to find the area of the biggest ellipse that can be inscribed within it.Examples: Input: l = 5, b = 3 Output: 11.775 Input: 7, b = 4 Output: 21.98 Approach: Let, the length of the major axis of the ellipse = 2x and the length of the mi...
[ { "code": null, "e": 24935, "s": 24907, "text": "\n18 Mar, 2021" }, { "code": null, "e": 25082, "s": 24935, "text": "Given here is a rectangle of length l & breadth b, the task is to find the area of the biggest ellipse that can be inscribed within it.Examples: " }, { "c...
6 Tips for Interpretable Topic Models | by Nicha Ruchirawat | Towards Data Science
With so much text outputted on digital platforms, the ability to automatically understand key topic trends can reveal tremendous insight. For example, businesses can benefit from understanding customer conversation trends around their brand and products. A common method to pick up key topics is Latent Dirichlet Allocat...
[ { "code": null, "e": 630, "s": 172, "text": "With so much text outputted on digital platforms, the ability to automatically understand key topic trends can reveal tremendous insight. For example, businesses can benefit from understanding customer conversation trends around their brand and products. ...
How to sort the output in PowerShell?
To sort the output in the PowerShell you need to use Sort-Object Pipeline cmdlet. In the below example, we will retrieve the output from the Get-Process command and we will sort the, according to memory and CPU usage. Get-Process | Sort-Object WorkingSet | Select -First 10 Handles NPM(K) PM(K) WS(K) CPU(s)...
[ { "code": null, "e": 1280, "s": 1062, "text": "To sort the output in the PowerShell you need to use Sort-Object Pipeline cmdlet. In the below example, we will retrieve the output from the Get-Process command and we will sort the, according to memory and CPU usage." }, { "code": null, "e"...
Design a video slide animation effect using HTML CSS JavaScript - GeeksforGeeks
09 Nov, 2021 Nowadays, Video Slide animations are very popular. In this article, we will see how to make Video Slide Animation using HTML, CSS, and JavaScript on any webpage. Below are the two steps on how to do it. It will help the beginner to build some awesome Video Slide animations using HTML, CSS, and JS by referr...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n09 Nov, 2021" }, { "code": null, "e": 25705, "s": 25376, "text": "Nowadays, Video Slide animations are very popular. In this article, we will see how to make Video Slide Animation using HTML, CSS, and JavaScript on any webpage. B...
OrientDB - Create Database
The SQL Reference of the OrientDB database provides several commands to create, alter, and drop databases. The following statement is a basic syntax of Create Database command. CREATE DATABASE <database-url> [<user> <password> <storage-type> [<db-type>]] Following are the details about the options in the above syntax. ...
[ { "code": null, "e": 3401, "s": 3294, "text": "The SQL Reference of the OrientDB database provides several commands to create, alter, and drop databases." }, { "code": null, "e": 3471, "s": 3401, "text": "The following statement is a basic syntax of Create Database command." },...
How to read data in from a file to String using java?
In Java you can read the contents of a file in several ways one way is to read it to a string using the java.util.Scanner class, to do so, Instantiate the Scanner class, with the path of the file to be read, as a parameter to its constructor. Instantiate the Scanner class, with the path of the file to be read, as a par...
[ { "code": null, "e": 1201, "s": 1062, "text": "In Java you can read the contents of a file in several ways one way is to read it to a string using the java.util.Scanner class, to do so," }, { "code": null, "e": 1305, "s": 1201, "text": "Instantiate the Scanner class, with the pat...
Reverse Delete Algorithm for Minimum Spanning Tree | Practice | GeeksforGeeks
Reverse Delete algorithm is closely related to Kruskal’s algorithm. In Reverse Delete algorithm, we sort all edges in decreasing order of their weights. After sorting, we one by one pick edges in decreasing order. We include current picked edge if excluding current edge causes disconnection in current graph. The main i...
[ { "code": null, "e": 715, "s": 238, "text": "Reverse Delete algorithm is closely related to Kruskal’s algorithm. In Reverse Delete algorithm, we sort all edges in decreasing order of their weights. After sorting, we one by one pick edges in decreasing order. We include current picked edge if excludi...
Multidimensional Collections in Java
Multidimensional collections are also known as Nested collections. It is a group of objects wherein every group has any number of objects that can be created dynamically. They can be stored in any position as well. In case of arrays, the user would be bound to a specific number of rows and columns, hence multidimension...
[ { "code": null, "e": 1438, "s": 1062, "text": "Multidimensional collections are also known as Nested collections. It is a group of objects wherein every group has any number of objects that can be created dynamically. They can be stored in any position as well. In case of arrays, the user would be b...
Bubble sort using two Stacks - GeeksforGeeks
29 Jun, 2021 Prerequisite : Bubble Sort Write a function that sort an array of integers using stacks and also uses bubble sort paradigm. Algorithm: 1. Push all elements of array in 1st stack 2. Run a loop for 'n' times(n is size of array) having the following : 2.a. Keep on pushing elements in the 2nd ...
[ { "code": null, "e": 23685, "s": 23657, "text": "\n29 Jun, 2021" }, { "code": null, "e": 23809, "s": 23685, "text": "Prerequisite : Bubble Sort Write a function that sort an array of integers using stacks and also uses bubble sort paradigm." }, { "code": null, "e": 23...
Check if given Parentheses expression is balanced or not - GeeksforGeeks
08 Apr, 2022 Given a string str of length N, consisting of ‘(‘ and ‘)‘ only, the task is to check whether it is balanced or not.Examples: Input: str = “((()))()()” Output: BalancedInput: str = “())((())” Output: Not Balanced Approach: Declare a Flag variable which denotes expression is balanced or not. Initialise ...
[ { "code": null, "e": 25052, "s": 25024, "text": "\n08 Apr, 2022" }, { "code": null, "e": 25178, "s": 25052, "text": "Given a string str of length N, consisting of ‘(‘ and ‘)‘ only, the task is to check whether it is balanced or not.Examples: " }, { "code": null, "e": ...
Understanding Aircraft Accidents Trends with PyMC3 | by Anirudh Chandra | Towards Data Science
Visually exploring historic airline accidents, applying frequentist interpretations and validating changing trends with PyMC3. On the 7th of August this year, an Air India Express flight on a repatriation mission from Dubai (United Arab Emirates) to Kozhikode (Kerala, India) skidded off the runway under heavy rainfall ...
[ { "code": null, "e": 174, "s": 47, "text": "Visually exploring historic airline accidents, applying frequentist interpretations and validating changing trends with PyMC3." }, { "code": null, "e": 395, "s": 174, "text": "On the 7th of August this year, an Air India Express flight ...
What does .shape[] do in “for i in range(Y.shape[0])” using Matplotlib?
The shape property is usually used to get the current shape of an array, but it may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. Get an array Y using np.array method. Get an array Y using np.array method. Y.shape would return a tuple (4, ). Y.shape would return a tuple (4, ...
[ { "code": null, "e": 1237, "s": 1062, "text": "The shape property is usually used to get the current shape of an array, but it may also be used to reshape the array in-place by assigning a tuple of array dimensions to it." }, { "code": null, "e": 1275, "s": 1237, "text": "Get an ...
Detailed Guide to Multiple Linear Regression Model, Assessment, and Inference in R | by Rashida Nasrin Sucky | Towards Data Science
Linear regression is one of those old-school statistical modeling approaches that are still popular. With the development of new languages and libraries, it is now in a much-improved version and much easier to work on. Multiple linear regression is an extension of simple linear regression. In simple linear regression, ...
[ { "code": null, "e": 391, "s": 172, "text": "Linear regression is one of those old-school statistical modeling approaches that are still popular. With the development of new languages and libraries, it is now in a much-improved version and much easier to work on." }, { "code": null, "e":...
Frequency of an integer in the given array using Divide and Conquer - GeeksforGeeks
03 Jun, 2021 Given an unsorted array arr[] and an integer K, the task is to count the occurrences of K in the given array using the Divide and Conquer method. Examples: Input: arr[] = {1, 1, 2, 2, 2, 2, 3}, K = 1 Output: 2 Input: arr[] = {1, 1, 2, 2, 2, 2, 3}, K = 4 Output: 0 Approach: The idea is to divide the array ...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n03 Jun, 2021" }, { "code": null, "e": 24968, "s": 24822, "text": "Given an unsorted array arr[] and an integer K, the task is to count the occurrences of K in the given array using the Divide and Conquer method." }, { "co...