title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Spatial Interpolation With Kernels | by Arun Jagota | Towards Data Science | California has been on fire recently. Well, actually fires. Fire breeds smoke. That there’s been plenty of.
A heat map revealing the air quality in various regions is clearly useful. What are the modeling issues in building such a heat map? Seriously, entrepreneurs are pondering this question [1].
Well, we do have air ... | [
{
"code": null,
"e": 279,
"s": 171,
"text": "California has been on fire recently. Well, actually fires. Fire breeds smoke. That there’s been plenty of."
},
{
"code": null,
"e": 470,
"s": 279,
"text": "A heat map revealing the air quality in various regions is clearly useful. Wha... |
PyCaret is an open-source, low-code machine learning library and end-to-end model management tool built in Python for automating ML workflows | Towards Data Science | Time series data is data collected on the same subject at different points in time, such as GDP of a country by year, a stock price of a particular company over a period of time, or your own heartbeat recorded at each second, as a matter of fact, anything that you can capture continuously at different time-intervals is... | [
{
"code": null,
"e": 513,
"s": 172,
"text": "Time series data is data collected on the same subject at different points in time, such as GDP of a country by year, a stock price of a particular company over a period of time, or your own heartbeat recorded at each second, as a matter of fact, anything... |
How to use Twitter’s API. Why use an API? API stands for... | by Robert Miller | Towards Data Science | Why use an API? API stands for Application Programming Interfaces (APIs) and they allow you to access resources only available on the server. Lets learn how to use twitters API.
Firstly you will need a twitter account with your phone number attached for verification purposes. You will then need to go to apps.twitter.co... | [
{
"code": null,
"e": 349,
"s": 171,
"text": "Why use an API? API stands for Application Programming Interfaces (APIs) and they allow you to access resources only available on the server. Lets learn how to use twitters API."
},
{
"code": null,
"e": 676,
"s": 349,
"text": "Firstly ... |
CSS Rain and lightning effect - GeeksforGeeks | 07 Sep, 2020
To generate the rain and lightning effect, we will make use of CSS animations that allow animation of HTML elements.
We will use @keyframes that allow the animation to gradually change from the current style to the new style at certain times then we will use the filter:hue-rotate() to give the lightning ef... | [
{
"code": null,
"e": 25402,
"s": 25374,
"text": "\n07 Sep, 2020"
},
{
"code": null,
"e": 25519,
"s": 25402,
"text": "To generate the rain and lightning effect, we will make use of CSS animations that allow animation of HTML elements."
},
{
"code": null,
"e": 25715,
... |
C# | Explicit Interface Implementation - GeeksforGeeks | 24 Sep, 2021
An Interface is a collection of loosely bound items that have a common functionality or attributes. Interfaces contain method signatures, properties, events etc. Interfaces are used so that one class or struct can implement multiple behaviors. C# doesn’t support the concept of Multiple Inheritance because ... | [
{
"code": null,
"e": 23920,
"s": 23892,
"text": "\n24 Sep, 2021"
},
{
"code": null,
"e": 24394,
"s": 23920,
"text": "An Interface is a collection of loosely bound items that have a common functionality or attributes. Interfaces contain method signatures, properties, events etc. I... |
Program to find parity | 08 Jul, 2022
Parity: Parity of a number refers to whether it contains an odd or even number of 1-bits. The number has “odd parity” if it contains an odd number of 1-bits and is “even parity” if it contains an even number of 1-bits. The main idea of the below solution is – Loop while n is not 0 and in loop unset one of ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 393,
"s": 54,
"text": "Parity: Parity of a number refers to whether it contains an odd or even number of 1-bits. The number has “odd parity” if it contains an odd number of 1-bits and is “even pari... |
Quantum Teleportation in Python | 23 Sep, 2021
In this article, we are going to see Quantum teleportation using Python.
How many times have the Rick and Morty episodes have their storylines started through Rick and Morty walking through their portal to some crazy alternate dimension? If it weren’t for the portal, we might not have had everyone’s favori... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 127,
"s": 54,
"text": "In this article, we are going to see Quantum teleportation using Python."
},
{
"code": null,
"e": 512,
"s": 127,
"text": "How many times have the Rick and... |
JavaScript | Hoisting | 25 May, 2022
In JavaScript, Hoisting is the default behavior of moving all the declarations at the top of the scope before code execution. Basically, it gives us an advantage that no matter where functions and variables are declared, they are moved to the top of their scope regardless of whether their scope is global o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 369,
"s": 52,
"text": "In JavaScript, Hoisting is the default behavior of moving all the declarations at the top of the scope before code execution. Basically, it gives us an advantage that no matt... |
Python | os.getpid() method | 06 Nov, 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
os.getpid() method in Python is used to get the process ID of the current process.
Synta... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Nov, 2019"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin... |
How to Pass Additional Context into a Class Based View (Django)? | 02 Nov, 2021
Passing context into your templates from class-based views is easy once you know what to look out for. There are two ways to do it – one involves get_context_data, the other is by modifying the extra_context variable. Let see how to use both the methods one by one.
Explanation:
Illustration of How to use g... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 294,
"s": 28,
"text": "Passing context into your templates from class-based views is easy once you know what to look out for. There are two ways to do it – one involves get_context_data, the other i... |
Configuring Clusters in Cassandra | 25 Jul, 2020
Prerequisite – Monitoring cluster in CassandraIn this article, we will discuss how we can configure clusters setting in cassandra.yaml file. Also, we will cover some basic parts of cassandra.yaml file in which we can change the by default setting as per our requirements.
Cluster :In Cassandra, a cluster is... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jul, 2020"
},
{
"code": null,
"e": 300,
"s": 28,
"text": "Prerequisite – Monitoring cluster in CassandraIn this article, we will discuss how we can configure clusters setting in cassandra.yaml file. Also, we will cover some basic par... |
Switch Statement in Go | 22 Jul, 2019
A switch statement is a multiway branch statement. It provides an efficient way to transfer the execution to different parts of a code based on the value(also called case) of the expression. Go language supports two types of switch statements:
Expression SwitchType Switch
Expression Switch
Type Switch
Expr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Jul, 2019"
},
{
"code": null,
"e": 297,
"s": 53,
"text": "A switch statement is a multiway branch statement. It provides an efficient way to transfer the execution to different parts of a code based on the value(also called case) of... |
Dirty read in SQL | 29 Apr, 2020
Prerequisite – Types of Schedules, Transaction Isolation Levels in DBMSThere are mainly four types of common concurrency problems: dirty read, lost read, non-repeatable read and phantom reads.
Dirty Reads –When a transaction is allowed to read a row that has been modified by an another transaction which is... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Apr, 2020"
},
{
"code": null,
"e": 245,
"s": 52,
"text": "Prerequisite – Types of Schedules, Transaction Isolation Levels in DBMSThere are mainly four types of common concurrency problems: dirty read, lost read, non-repeatable read ... |
Node.js fs.openSync() Method | 11 Oct, 2021
The fs.openSync() method is an inbuilt application programming interface of fs module which is used to return an integer value that represents the file descriptor.
Syntax:
fs.openSync( path, flags, mode )
Parameters: This method accepts three parameters as mentioned above and described below:
path: It hold... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 192,
"s": 28,
"text": "The fs.openSync() method is an inbuilt application programming interface of fs module which is used to return an integer value that represents the file descriptor."
},
{
... |
C++ Program to Count pairs with given sum | 30 Dec, 2021
Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’.
Examples:
Input : arr[] = {1, 5, 7, -1},
sum = 6
Output : 2
Pairs with sum 6 are (1, 5) and (7, -1)
Input : arr[] = {1, 5, 7, -1, 5},
sum = 6
Output :... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Dec, 2021"
},
{
"code": null,
"e": 155,
"s": 28,
"text": "Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’."
},
{
"code": null,
"e": 167,
"s... |
Python String rfind() Method | 19 Aug, 2021
Python String rfind() method returns the highest index of the substring if found in the given string. If not found then it returns -1.
Syntax:
str.rfind(sub, start, end)
Parameters:
sub: It’s the substring that needs to be searched in the given string.
start: Starting position where the sub needs to be ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Aug, 2021"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "Python String rfind() method returns the highest index of the substring if found in the given string. If not found then it returns -1."
},
{
"code": null,
"e": 172... |
JavaScript | Output | 28 Mar, 2019
JavaScript Output defines the ways to display the output of a given code. The output can be display by using four different ways which are listed below:
innerHTML: It is used to access an element. It defines the HTML content.Syntax:document.getElementById(id)Example: This example uses innerHTML to display ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 206,
"s": 53,
"text": "JavaScript Output defines the ways to display the output of a given code. The output can be display by using four different ways which are listed below:"
},
{
"code":... |
Sparse Matrix Multiplication in C++ | Suppose we have two matrices A and B, we have to find the result of AB. We may assume that A's column number is equal to B's row number.
So, if the input is like [[1,0,0],[-1,0,3]] [[7,0,0],[0,0,0],[0,0,1]],
then the output will be [[7,0,0],[-7,0,3]]
To solve this, we will follow these steps −
r1 := size of A, r2 := si... | [
{
"code": null,
"e": 1324,
"s": 1187,
"text": "Suppose we have two matrices A and B, we have to find the result of AB. We may assume that A's column number is equal to B's row number."
},
{
"code": null,
"e": 1395,
"s": 1324,
"text": "So, if the input is like [[1,0,0],[-1,0,3]] [... |
How to find the difference between two dataframes in R ? | 21 Apr, 2021
In this article, we will discuss how to find the difference between two data frames or compare two dataframes or data sets in R Programming Language.
Intersect function in R helps to get the common elements in the two datasets.
Syntax:
intersect(names(data_short), names(data_long))
Example:
R
first <- ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 179,
"s": 28,
"text": "In this article, we will discuss how to find the difference between two data frames or compare two dataframes or data sets in R Programming Language. "
},
{
"code": nu... |
PostgreSQL – ILIKE operator | 28 Aug, 2020
The PostgreSQL ILIKE operator is used query data using pattern matching techniques. Its result include strings that are case-insensitive and follow the mentioned pattern.It is important to know that PostgreSQL provides with 2 special wildcard characters for the purpose of patterns matching as below:
Percen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "The PostgreSQL ILIKE operator is used query data using pattern matching techniques. Its result include strings that are case-insensitive and follow the mentioned pattern.It is... |
Python | Find Maximum difference pair - GeeksforGeeks | 29 Apr, 2019
Sometimes, we need to find the specific problem of getting the pair which yields the maximum difference, this can be solved by sorting and getting the first and last elements of the list. But in some case, we don’t with to change the ordering of list and perform some operation in a similar list without usi... | [
{
"code": null,
"e": 24731,
"s": 24703,
"text": "\n29 Apr, 2019"
},
{
"code": null,
"e": 25113,
"s": 24731,
"text": "Sometimes, we need to find the specific problem of getting the pair which yields the maximum difference, this can be solved by sorting and getting the first and la... |
XML - Declaration | This chapter covers XML declaration in detail. XML declaration contains details that prepare an XML processor to parse the XML document. It is optional, but when used, it must appear in the first line of the XML document.
Following syntax shows XML declaration −
<?xml
version = "version_number"
encoding = "encodi... | [
{
"code": null,
"e": 2183,
"s": 1961,
"text": "This chapter covers XML declaration in detail. XML declaration contains details that prepare an XML processor to parse the XML document. It is optional, but when used, it must appear in the first line of the XML document."
},
{
"code": null,
... |
A Better mAP for Object Detection | by Ivan Ralašić | Towards Data Science | TL;DR: Your object detection model sucks and you want to improve it by leveraging better evaluation metrics... skip the introduction, and find out how or go directly to the Google Colab notebook for the code or here for the ClearML experiment log!
Object detection is easy. All you need to do is get a training dataset, ... | [
{
"code": null,
"e": 420,
"s": 172,
"text": "TL;DR: Your object detection model sucks and you want to improve it by leveraging better evaluation metrics... skip the introduction, and find out how or go directly to the Google Colab notebook for the code or here for the ClearML experiment log!"
},
... |
How do we copy objects in java? | In Java you can copy an object in several ways, among them, copy constructor and the clone method are the mostly used.
Generally, the copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. Java does support for copy constructors ... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "In Java you can copy an object in several ways, among them, copy constructor and the clone method are the mostly used."
},
{
"code": null,
"e": 1420,
"s": 1181,
"text": "Generally, the copy constructor is a constructor which creates ... |
How to raise an exception in Python? | We can force raise an exception using the raise keyword. Here is the syntax for calling the “raise” method.
raise [Exception [, args [, traceback]]]
where, the Exception is the name of the exception; the optional “args” represents the value of the exception argument.
The also optional argument, traceback, is the traceb... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "We can force raise an exception using the raise keyword. Here is the syntax for calling the “raise” method."
},
{
"code": null,
"e": 1211,
"s": 1170,
"text": "raise [Exception [, args [, traceback]]]"
},
{
"code": null,
"... |
Count duplicates in a given linked list - GeeksforGeeks | 21 Jun, 2021
Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples:
Input: 5 -> 7 -> 5 -> 1 -> 7 -> NULL Output: 2Input: 5 -> 7 -> 8 -> 7 -> 1 -> NULL Output: 1
Simple Approach: We traverse the whole linked list. For each node we check in the remaining list whether t... | [
{
"code": null,
"e": 24789,
"s": 24761,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 24893,
"s": 24789,
"text": "Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples: "
},
{
"code": null,
"e": 24988,
"s": 24893,... |
Selenium - Quick Guide | Selenium is an open-source and a portable automated software testing tool for testing web applications. It has capabilities to operate across different browsers and operating systems. Selenium is not just a single tool but a set of tools that helps testers to automate web-based applications more efficiently.
Let us now... | [
{
"code": null,
"e": 2185,
"s": 1875,
"text": "Selenium is an open-source and a portable automated software testing tool for testing web applications. It has capabilities to operate across different browsers and operating systems. Selenium is not just a single tool but a set of tools that helps test... |
SQLite - Arithmetic Operators | Following are some simple examples showing the usage of SQLite Arithmetic Operators −
sqlite> .mode line
sqlite> select 10 + 20;
10 + 20 = 30
sqlite> select 10 - 20;
10 - 20 = -10
sqlite> select 10 * 20;
10 * 20 = 200
sqlite> select 10 / 5;
10 / 5 = 2
sqlite> select 12 % 5;
12 % 5 = 2
25 Lectures
4.5 h... | [
{
"code": null,
"e": 2724,
"s": 2638,
"text": "Following are some simple examples showing the usage of SQLite Arithmetic Operators −"
},
{
"code": null,
"e": 2930,
"s": 2724,
"text": "sqlite> .mode line\nsqlite> select 10 + 20;\n10 + 20 = 30\n\nsqlite> select 10 - 20;\n10 - 20 = ... |
Count number of binary strings without consecutive 1's - GeeksforGeeks | 17 Nov, 2021
Given a positive integer N, count all possible distinct binary strings of length N such that there are no consecutive 1’s.
Examples:
Input: N = 2
Output: 3
// The 3 strings are 00, 01, 10
Input: N = 3
Output: 5
// The 5 strings are 000, 001, 010, 100, 101
This problem can be solved using Dynamic Program... | [
{
"code": null,
"e": 24749,
"s": 24721,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 24872,
"s": 24749,
"text": "Given a positive integer N, count all possible distinct binary strings of length N such that there are no consecutive 1’s."
},
{
"code": null,
"e": 248... |
Uplift Modeling. Maximizing the incremental return of... | by Barış Karaman | Towards Data Science | This series of articles was designed to explain how to use Python in a simplistic way to fuel your company’s growth by applying the predictive approach to all your actions. It will be a combination of programming, data analysis, and machine learning.
I will cover all the topics in the following nine articles:
1- Know Y... | [
{
"code": null,
"e": 423,
"s": 172,
"text": "This series of articles was designed to explain how to use Python in a simplistic way to fuel your company’s growth by applying the predictive approach to all your actions. It will be a combination of programming, data analysis, and machine learning."
}... |
smtp - Unix, Linux Command | smtp [generic Postfix daemon options]
The SMTP+LMTP client updates the queue file and marks recipients
as finished, or it informs the queue manager that delivery should
be tried again at a later time. Delivery status reports are sent
to the bounce(8), defer(8) or trace(8) daemon as
appropriate.
The SMTP+LMTP client... | [
{
"code": null,
"e": 10616,
"s": 10577,
"text": "smtp [generic Postfix daemon options]\n"
},
{
"code": null,
"e": 10876,
"s": 10616,
"text": "\nThe SMTP+LMTP client updates the queue file and marks recipients\nas finished, or it informs the queue manager that delivery should\nbe ... |
Modular Approach in Programming | 07 Sep, 2018
Modular programming is the process of subdividing a computer program into separate sub-programs. A module is a separate software component. It can often be used in a variety of applications and functions with other components of the system.
Some programs might have thousands or millions of lines and to man... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Sep, 2018"
},
{
"code": null,
"e": 294,
"s": 53,
"text": "Modular programming is the process of subdividing a computer program into separate sub-programs. A module is a separate software component. It can often be used in a variety ... |
RichTextField – Django Models | 16 Jun, 2021
RichTextField is generally used for storing paragraphs that can store any type of data. Rich text is the text that is formatted with common formatting options, such as bold, italics, images, URLs that are unavailable with plain text.
Syntax:
field_name=RichTextField()
Django Model RichTextField Explanati... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2021"
},
{
"code": null,
"e": 288,
"s": 52,
"text": "RichTextField is generally used for storing paragraphs that can store any type of data. Rich text is the text that is formatted with common formatting options, such as bold, ... |
Python | Pandas Timestamp.weekday_name | 08 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Timestamp.weekday_name attribute return the name of the day of the week for the given ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jan, 2019"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Javascript Program For Reversing A Linked List In Groups Of Given Size- Set 2 | 19 Jan, 2022
Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Examples:
Input: 1->2->3->4->5->6->7->8->NULL and k = 3
Output: 3->2->1->6->5->4->8->7->NULL.
Input: 1->2->3->4->5->6->7->8->NULL and k = 5
Output: 5->4->3->2->1->8->7->6->NULL.
We have already discusse... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jan, 2022"
},
{
"code": null,
"e": 140,
"s": 28,
"text": "Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Examples:"
},
{
"code": null,
"e": 311,
"s": 140,
"te... |
numpy.outer() function – Python | 05 May, 2020
numpy.outer() function compute the outer product of two vectors.
Syntax : numpy.outer(a, b, out = None)
Parameters :a : [array_like] First input vector. Input is flattened if not already 1-dimensional.b : [array_like] Second input vector. Input is flattened if not already 1-dimensional.out : [ndarray, opti... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 93,
"s": 28,
"text": "numpy.outer() function compute the outer product of two vectors."
},
{
"code": null,
"e": 132,
"s": 93,
"text": "Syntax : numpy.outer(a, b, out = None)"
}... |
Minimum steps to convert an Array into permutation of numbers from 1 to N | 28 Jun, 2022
Given an array arr of length N, the task is to count the minimum number of operations to convert given sequence into a permutation of first N natural numbers (1, 2, ...., N). In each operation, increment or decrement an element by one.Examples:
Input: arr[] = {4, 1, 3, 6, 5} Output: 4 Apply decrement ope... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 275,
"s": 28,
"text": "Given an array arr of length N, the task is to count the minimum number of operations to convert given sequence into a permutation of first N natural numbers (1, 2, ...., N). ... |
Multi Page Applications in Flutter | 13 Jun, 2022
Apps are widely used by humans in this techie world. The number of apps in the app store is increasing day by day. Due to this competition, app developers have started to add a number of features to their apps. To reduce this complexity, the content of the app is mostly divided into various pages so that t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 413,
"s": 54,
"text": "Apps are widely used by humans in this techie world. The number of apps in the app store is increasing day by day. Due to this competition, app developers have started to add... |
Kotlin Android Extensions | 30 May, 2022
If you’ve been developing Android Apps for some time, you’re probably already tired of working with findViewById in your day-to-day life to recover views. Or maybe you gave up and started using the famous Butterknife library. If that’s your case, then you’ll love Kotlin Android Extensions. Kotlin has a bui... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 689,
"s": 28,
"text": "If you’ve been developing Android Apps for some time, you’re probably already tired of working with findViewById in your day-to-day life to recover views. Or maybe you gave up... |
NLP Gensim Tutorial – Complete Guide For Beginners | 16 Aug, 2021
This tutorial is going to provide you with a walk-through of the Gensim library.Gensim : It is an open source library in python written by Radim Rehurek which is used in unsupervised topic modelling and natural language processing. It is designed to extract semantic topics from documents. It can handle lar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 720,
"s": 28,
"text": "This tutorial is going to provide you with a walk-through of the Gensim library.Gensim : It is an open source library in python written by Radim Rehurek which is used in unsup... |
Comparison of static keyword in C++ and Java | 22 Nov, 2021
Static keyword is used for almost the same purpose in both C++ and Java. There are some differences though. This post covers similarities and differences of static keyword in C++ and Java.
Similarities between C++ and Java for Static Keyword:
Static data members can be defined in both languages.
Static me... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 244,
"s": 54,
"text": "Static keyword is used for almost the same purpose in both C++ and Java. There are some differences though. This post covers similarities and differences of static keyword in... |
Break and Next statements in R | 04 May, 2020
In R programming, we require a control structure to run a block of code multiple times. Loops come in the class of the most fundamental and strong programming concepts. A loop is a control statement that allows multiple executions of a statement or a set of statements. The word ‘looping’ means cycling or i... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 370,
"s": 53,
"text": "In R programming, we require a control structure to run a block of code multiple times. Loops come in the class of the most fundamental and strong programming concepts. A loo... |
Program to find Nth odd Fibonacci Number | 13 Mar, 2022
Given an integer N. The task is to find the Nth odd Fibonacci number.The odd number fibonacci series is as:
1, 1, 3, 5, 13, 21, 55, 89, 233, 377, 987, 1597.............and so on.Note: In the above series we have omitted even terms from the general fibonacci sequence.
Examples:
Input: N = 3
Output: 3
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Mar, 2022"
},
{
"code": null,
"e": 164,
"s": 54,
"text": "Given an integer N. The task is to find the Nth odd Fibonacci number.The odd number fibonacci series is as: "
},
{
"code": null,
"e": 326,
"s": 164,
"tex... |
Travelling Salesman Problem implementation using BackTracking | 06 Jun, 2022
Travelling Salesman Problem (TSP): Given a set of cities and distance between every pair of cities, the problem is to find the shortest possible route that visits every city exactly once and returns back to the starting point.Note the difference between Hamiltonian Cycle and TSP. The Hamiltonian cycle prob... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 860,
"s": 52,
"text": "Travelling Salesman Problem (TSP): Given a set of cities and distance between every pair of cities, the problem is to find the shortest possible route that visits every city ... |
A single neuron neural network in Python | 06 Oct, 2021
Neural networks are the core of deep learning, a field that has practical applications in many different areas. Today neural networks are used for image classification, speech recognition, object detection, etc. Now, Let’s try to understand the basic unit behind all these states of art techniques.A single ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 577,
"s": 52,
"text": "Neural networks are the core of deep learning, a field that has practical applications in many different areas. Today neural networks are used for image classification, speec... |
How to declare a module in TypeScript ? | 04 Oct, 2021
A module is a piece of code that can be called or used in another code. There is nothing new about modules in Typescript. The concept of the module was introduced by JavaScript with ECMAScript 2015 release. Typescript is just re-using this feature.
Will the code not work without Modules?
Of course, it will... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 277,
"s": 28,
"text": "A module is a piece of code that can be called or used in another code. There is nothing new about modules in Typescript. The concept of the module was introduced by JavaScrip... |
Erlang - Macros | Macros are generally used for inline code replacements. In Erlang, macros are defined via the following statements.
-define(Constant, Replacement).
-define(Func(Var1, Var2,.., Var), Replacement).
Following is an example of macros using the first syntax −
-module(helloworld).
-export([start/0]).
-define(a,1).
start(... | [
{
"code": null,
"e": 2417,
"s": 2301,
"text": "Macros are generally used for inline code replacements. In Erlang, macros are defined via the following statements."
},
{
"code": null,
"e": 2449,
"s": 2417,
"text": "-define(Constant, Replacement)."
},
{
"code": null,
"e... |
Largest element in the array that is repeated exactly k times | 11 May, 2021
Given an array of integers and an integer ‘k’, the task is to find the largest element from the array that is repeated exactly ‘k’ times.Examples:
Input: arr = {1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 6}, k = 2
Output: 5
The elements that exactly occur 2 times are 1, 3 and 5
And, the largest element among them is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 201,
"s": 52,
"text": "Given an array of integers and an integer ‘k’, the task is to find the largest element from the array that is repeated exactly ‘k’ times.Examples: "
},
{
"code": nul... |
Spot the difference between two images using Python | 24 Feb, 2021
In this article, we will discuss how to spot differences between two given images using python. In order to perform this task, we will be using the ImageChops.difference() method in Pillow module.
Syntax: ImageChops.difference(image1, image2)
Parameters:
image1 first image
image2 second image
Return Value:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 225,
"s": 28,
"text": "In this article, we will discuss how to spot differences between two given images using python. In order to perform this task, we will be using the ImageChops.difference() met... |
Split the array into equal sum parts according to given conditions | 03 Aug, 2021
Given an integer array arr[], the task is to check if the input array can be split in two sub-arrays such that:
Sum of both the sub-arrays is equal.
All the elements which are divisible by 5 should be in the same group.
All the elements which are divisible by 3 (but not divisible by 5) should be in the o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 168,
"s": 54,
"text": "Given an integer array arr[], the task is to check if the input array can be split in two sub-arrays such that: "
},
{
"code": null,
"e": 205,
"s": 168,
... |
React.js (Introduction and Working) | 14 Jun, 2022
Introduction to ReactJS: Let us understand this with a practical example.
Let’s say one of your friends posted a photograph on Facebook. Now you go and like the image and then you started checking out the comments too. Now while you are browsing over comments you see that the likes count has increased by 1... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 127,
"s": 53,
"text": "Introduction to ReactJS: Let us understand this with a practical example."
},
{
"code": null,
"e": 1490,
"s": 127,
"text": "Let’s say one of your friends ... |
How to Create a Toggle Switch in React as a Reusable Component ? | 14 Jul, 2021
In this article, we’re going to create a Toggle Switch in React as a reusable component. The Toggle Switch Component will be a small reusable component that will be able to reuse in future projects. We’ll develop a simple demo toggle-switch-react app that uses this custom toggle switch component. We’ll use... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Jul, 2021"
},
{
"code": null,
"e": 486,
"s": 54,
"text": "In this article, we’re going to create a Toggle Switch in React as a reusable component. The Toggle Switch Component will be a small reusable component that will be able to r... |
Kth smallest element in a row-wise and column-wise sorted 2D array | Set 1 | 05 Jul, 2022
Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D array.Example,
Input:k = 3 and array =
10, 20, 30, 40
15, 25, 35, 45
24, 29, 37, 48
32, 33, 39, 50
Output: 20
Explanation: The 3rd smallest el... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 199,
"s": 52,
"text": "Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D array.Example, "
},
{
"code": null,... |
Sum of all parts of a square Matrix divided by its diagonals | 22 Jun, 2021
Given a 2D matrix arr[][] of N*N dimensions, the task is to find the sum of elements of all four parts of the matrix divided by the diagonals without including the diagonal elements in any of the four parts.Example:
Input: arr[][] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} } Output: 2 4 6 8 Explanation: (1, 5, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 246,
"s": 28,
"text": "Given a 2D matrix arr[][] of N*N dimensions, the task is to find the sum of elements of all four parts of the matrix divided by the diagonals without including the diagonal el... |
Python Selenium – Find Button by text | 03 Mar, 2021
In this article, let’s discuss how to find a button by text using selenium. See the below example to get an idea about the meaning of the finding button by text.
Example:
URL: https://html.com/tags/button/
We need to find the “CLICK ME!” button using the text “Click me!”.
Selenium: The selenium package is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 214,
"s": 52,
"text": "In this article, let’s discuss how to find a button by text using selenium. See the below example to get an idea about the meaning of the finding button by text."
},
{
... |
SAP Web Dynpro - Quick Guide | Web Dynpro is a standard SAP UI technology that allows you to develop web applications using graphical tools and development environment integrated with ABAP workbench. Using graphical tools reduces the implementation effort and you can better reuse and maintain components in ABAP workbench.
To access Web Dynpro runtim... | [
{
"code": null,
"e": 2606,
"s": 2313,
"text": "Web Dynpro is a standard SAP UI technology that allows you to develop web applications using graphical tools and development environment integrated with ABAP workbench. Using graphical tools reduces the implementation effort and you can better reuse and... |
Ruby | Random uuid() function | 17 Dec, 2019
Random#uuid() : uuid() is a Random class method which checks returns a random v4 UUID (Universally Unique IDentifier).
Syntax: Random.uuid()
Parameter: Random values
Return: a random v4 UUID (Universally Unique IDentifier).
Example #1 :
# Ruby code for Random.uuid() method # loading libraryrequire 'secure... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2019"
},
{
"code": null,
"e": 147,
"s": 28,
"text": "Random#uuid() : uuid() is a Random class method which checks returns a random v4 UUID (Universally Unique IDentifier)."
},
{
"code": null,
"e": 169,
"s": 147,
... |
How to add a pressed effect on button click in CSS? | 30 Jul, 2021
In this tutorial, we are going to learn how to add a pressed effect on a button using CSS. This effect is a part of modern UI design and is used on many websites. This effect allows the user to experience an interaction with the button element as compared to the normal behavior.
We’ll take advantage of the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 332,
"s": 52,
"text": "In this tutorial, we are going to learn how to add a pressed effect on a button using CSS. This effect is a part of modern UI design and is used on many websites. This effect... |
pstree - Unix, Linux Command | pstree visually merges identical branches by putting them in square
brackets and prefixing them with the repetition count, e.g.
init-+-getty
|-getty
|-getty
‘-getty
init-+-getty
|-getty
|-getty
‘-getty
init---4*[getty]
init---4*[getty]
... | [
{
"code": null,
"e": 10841,
"s": 10711,
"text": "\npstree visually merges identical branches by putting them in square\nbrackets and prefixing them with the repetition count, e.g.\n"
},
{
"code": null,
"e": 10912,
"s": 10841,
"text": "\n init-+-getty\n |-getty\n ... |
How to launch a program using C++ program? | Here we will see how to start some third-party application like notepad or anything using C++ program. This program is very simple, we can use command prompt command to do this task.
We will pass the application name inside the system() function. This will open it accordingly.
#include <iostream>
using namespace std;
i... | [
{
"code": null,
"e": 1370,
"s": 1187,
"text": "Here we will see how to start some third-party application like notepad or anything using C++ program. This program is very simple, we can use command prompt command to do this task."
},
{
"code": null,
"e": 1465,
"s": 1370,
"text": ... |
Difference between tilde ( ~ ) and caret ( ^ ) in package.json | 25 Mar, 2022
When we open our package.json file and search for dependency property and in there we find the packages that are listed as a nested object of the dependency property package-name:package-version. Now look at the package version, we find some numbers separated by three dots (e.g. 2.6.2).
NPM versions are w... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n25 Mar, 2022"
},
{
"code": null,
"e": 342,
"s": 53,
"text": "When we open our package.json file and search for dependency property and in there we find the packages that are listed as a nested object of the dependency property package-... |
C++ Program to Find the GCD and LCM of n Numbers | This is the code to find out the GCD and LCM of n numbers. The GCD or Greatest Common Divisor of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. GCD is also known as Greatest Common Factor.
The least common multiple (LCM) of two numbers is the smallest nu... | [
{
"code": null,
"e": 1317,
"s": 1062,
"text": "This is the code to find out the GCD and LCM of n numbers. The GCD or Greatest Common Divisor of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. GCD is also known as Greatest Common Factor... |
Fastai - Disaster Prediction using ULMFiT | by Sachin Chaturvedi | Towards Data Science | Last month, I started the fastai MOOC(2019) - Deep Learning for Coders. It covers various topics like Computer Vision, Natural Language Processing, Collaborative Filtering, etc. The most fascinating part I found was the application of Transfer Learning in the field of Natural Language Processing. The approached used by... | [
{
"code": null,
"e": 644,
"s": 172,
"text": "Last month, I started the fastai MOOC(2019) - Deep Learning for Coders. It covers various topics like Computer Vision, Natural Language Processing, Collaborative Filtering, etc. The most fascinating part I found was the application of Transfer Learning in... |
Metasploit - Exploit | After vulnerability scanning and vulnerability validation, we have to run and test some scripts (called exploits) in order to gain access to a machine and do what we are planning to do.
We have several methods to use exploits. The first and foremost method is to use Armitage GUI which will connect with Metasploit to pe... | [
{
"code": null,
"e": 2357,
"s": 2171,
"text": "After vulnerability scanning and vulnerability validation, we have to run and test some scripts (called exploits) in order to gain access to a machine and do what we are planning to do."
},
{
"code": null,
"e": 2565,
"s": 2357,
"text... |
Contact Tracing Using Less Than 30 Lines of Python Code | by Sara A. Metwalli | Towards Data Science | Contact tracing is the name of the process used to identify those who come into contact with people who have tested positive for contagious diseases — such as measles, HIV, and COVID-19. During a pandemic, performing contact tracing correctly can help reduce the number of people to get infected or speed up the process ... | [
{
"code": null,
"e": 556,
"s": 172,
"text": "Contact tracing is the name of the process used to identify those who come into contact with people who have tested positive for contagious diseases — such as measles, HIV, and COVID-19. During a pandemic, performing contact tracing correctly can help red... |
Sort an array according to the order defined by another array in C++ | In this section we will see another sorting problem. Suppose we have two arrays A1 and A2. We have to sort A1 in such a way that the relative order among the elements will be same as those are in A2. If some elements are not present in A2, then they will be appended after the sorted elements. Suppose A1 and A2 are the ... | [
{
"code": null,
"e": 1394,
"s": 1062,
"text": "In this section we will see another sorting problem. Suppose we have two arrays A1 and A2. We have to sort A1 in such a way that the relative order among the elements will be same as those are in A2. If some elements are not present in A2, then they wil... |
How can Matplotlib be used to create 3 dimensional contour plot using Python? | Matplotlib is a popular Python package that is used for data visualization. Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations. It helps in communicating the quantitative insights to the audience effective... | [
{
"code": null,
"e": 1386,
"s": 1062,
"text": "Matplotlib is a popular Python package that is used for data visualization. Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations. It helps i... |
What is HMAC(Hash based Message Authentication Code)? - GeeksforGeeks | 31 Aug, 2021
HMAC (Hash-based Message Authentication Code) is a type of a message authentication code (MAC) that is acquired by executing a cryptographic hash function on the data (that is) to be authenticated and a secret shared key. Like any of the MAC, it is used for both data integrity and authentication. Checking ... | [
{
"code": null,
"e": 24514,
"s": 24486,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 25242,
"s": 24514,
"text": "HMAC (Hash-based Message Authentication Code) is a type of a message authentication code (MAC) that is acquired by executing a cryptographic hash function on the d... |
semctl() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
File lastModified() method in Java with Examples - GeeksforGeeks | 28 Jan, 2019
The lastModified() function is a part of File class in Java . This function returns the time denoted by the this abstract pathname was last modified.The function returns long value measured in milliseconds, representing the time the file was last modified else returns 0L if the file does not exists or if a... | [
{
"code": null,
"e": 24904,
"s": 24876,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 25231,
"s": 24904,
"text": "The lastModified() function is a part of File class in Java . This function returns the time denoted by the this abstract pathname was last modified.The function r... |
Number of Simple Graph with N Vertices and M Edges - GeeksforGeeks | 25 May, 2021
Given two integers N and M, the task is to count the number of simple undirected graphs that can be drawn with N vertices and M edges. A simple graph is a graph that does not contain multiple edges and self-loops.
Examples:
Input: N = 3, M = 1 Output: 3 The 3 graphs are {1-2, 3}, {2-3, 1}, {1-3, 2}.
Input... | [
{
"code": null,
"e": 25218,
"s": 25190,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 25432,
"s": 25218,
"text": "Given two integers N and M, the task is to count the number of simple undirected graphs that can be drawn with N vertices and M edges. A simple graph is a graph th... |
Longest subsequence-1 | Practice | GeeksforGeeks | Given an array A[] of size N, find the longest subsequence such that difference between adjacent elements is one.
Example 1:
Input: N = 7
A[] = {10, 9, 4, 5, 4, 8, 6}
Output: 3
Explaination: The three possible subsequences
{10, 9, 8} , {4, 5, 4} and {4, 5, 6}.
Example 2:
Input: N = 5
A[] = {1, 2, 3, 4, 5}
Output: 5
... | [
{
"code": null,
"e": 352,
"s": 238,
"text": "Given an array A[] of size N, find the longest subsequence such that difference between adjacent elements is one."
},
{
"code": null,
"e": 364,
"s": 352,
"text": "\nExample 1:"
},
{
"code": null,
"e": 501,
"s": 364,
... |
Scikit Learn - Randomized Decision Trees | This chapter will help you in understanding randomized decision trees in Sklearn.
As we know that a DT is usually trained by recursively splitting the data, but being prone to overfit, they have been transformed to random forests by training many trees over various subsamples of the data. The sklearn.ensemble module is... | [
{
"code": null,
"e": 2303,
"s": 2221,
"text": "This chapter will help you in understanding randomized decision trees in Sklearn."
},
{
"code": null,
"e": 2611,
"s": 2303,
"text": "As we know that a DT is usually trained by recursively splitting the data, but being prone to overfi... |
Entity Framework - Inheritance | Inheritance makes it possible to create complex models that better reflect how developers think and also reduce the work required to interact with those models. Inheritance used with entities serves the same purpose as inheritance used with classes, so developers already know the basics of how this feature works.
Let’s... | [
{
"code": null,
"e": 3347,
"s": 3032,
"text": "Inheritance makes it possible to create complex models that better reflect how developers think and also reduce the work required to interact with those models. Inheritance used with entities serves the same purpose as inheritance used with classes, so ... |
How to find the less than probability using normal distribution in R? | The less than probability using normal distribution is the cumulative probability which can be found by using cumulative distribution function of the normal distribution. In R, we have pnorm function that directly calculates the less than probability for a normally distributed random variable that takes Z score, mean a... | [
{
"code": null,
"e": 1405,
"s": 1062,
"text": "The less than probability using normal distribution is the cumulative probability which can be found by using cumulative distribution function of the normal distribution. In R, we have pnorm function that directly calculates the less than probability fo... |
The 5 Feature Selection Algorithms every Data Scientist should know | by Rahul Agarwal | Towards Data Science | Data Science is the study of algorithms.
I grapple through with many algorithms on a day to day basis, so I thought of listing some of the most common and most used algorithms one will end up using in this new DS Algorithm series.
How many times it has happened when you create a lot of features and then you need to com... | [
{
"code": null,
"e": 213,
"s": 172,
"text": "Data Science is the study of algorithms."
},
{
"code": null,
"e": 403,
"s": 213,
"text": "I grapple through with many algorithms on a day to day basis, so I thought of listing some of the most common and most used algorithms one will e... |
Sibling of a list element in JavaScript? | To find the sibling of a list element javascript has provided a method called node.nextSibling. If we know any member of a list we can find its sibling. Let's discuss it in a nutshell.
node.nextSibling;
In the following example, there are 3 list elements. Using the nextSibling property the sibling of the first element ... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "To find the sibling of a list element javascript has provided a method called node.nextSibling. If we know any member of a list we can find its sibling. Let's discuss it in a nutshell."
},
{
"code": null,
"e": 1265,
"s": 1247,
"text"... |
K'th Smallest/Largest Element in Unsorted Array | Set 1 - GeeksforGeeks | 12 May, 2022
Given an array and a number k where k is smaller than the size of the array, we need to find the k’th smallest element in the given array. It is given that all array elements are distinct.
Examples:
Input: arr[] = {7, 10, 4, 3, 20, 15} k = 3 Output: 7
Input: arr[] = {7, 10, 4, 3, 20, 15} k = 4 Output: 10... | [
{
"code": null,
"e": 26105,
"s": 26077,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 26294,
"s": 26105,
"text": "Given an array and a number k where k is smaller than the size of the array, we need to find the k’th smallest element in the given array. It is given that all arr... |
Angular PrimeNG Fieldset Component - GeeksforGeeks | 07 Oct, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Fieldset component in Angular PrimeNG. We will also learn abou... | [
{
"code": null,
"e": 26464,
"s": 26436,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 26863,
"s": 26464,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
Extract First and last N rows from PySpark DataFrame - GeeksforGeeks | 06 Jun, 2021
In this article, we are going to get the extract first N rows and Last N rows from the dataframe using PySpark in Python. To do our task first we will create a sample dataframe.
We have to create a spark object with the help of the spark session and give the app name by using getorcreate() method.
spark = ... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 25843,
"s": 25665,
"text": "In this article, we are going to get the extract first N rows and Last N rows from the dataframe using PySpark in Python. To do our task first we will create a sam... |
Android Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to Android. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.... | [
{
"code": null,
"e": 3928,
"s": 3607,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to Android. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You ... |
Fix: ERROR 1396 (HY000): Operation CREATE USER failed in MySQL? | To fix the error, let us see how to create a user correctly. Let us create a user −
mysql> create user 'Emma'@'localhost' IDENTIFIED BY 'emma_654';
Query OK, 0 rows affected (0.00 sec)
Let us display all users along with host −
mysql> select user,host from MySQL.user;
This will produce the following output. The new use... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "To fix the error, let us see how to create a user correctly. Let us create a user −"
},
{
"code": null,
"e": 1247,
"s": 1146,
"text": "mysql> create user 'Emma'@'localhost' IDENTIFIED BY 'emma_654';\nQuery OK, 0 rows affected (0.00 s... |
Multi Label Text Classification with Scikit-Learn | by Susan Li | Towards Data Science | Multi-class classification means a classification task with more than two classes; each label are mutually exclusive. The classification makes the assumption that each sample is assigned to one and only one label.
On the other hand, Multi-label classification assigns to each sample a set of target labels. This can be t... | [
{
"code": null,
"e": 386,
"s": 172,
"text": "Multi-class classification means a classification task with more than two classes; each label are mutually exclusive. The classification makes the assumption that each sample is assigned to one and only one label."
},
{
"code": null,
"e": 800,... |
CSS | border-bottom-style Property - GeeksforGeeks | 06 Jul, 2020
The border-bottom-style property in CSS is used to set the style of the bottom border of an element.
Syntax:
border-bottom-style:none|hidden|dotted|dashed|solid|double|groove|
ridge|inset|outset|initial|inherit;
Property Values:
none: It is the default value and it makes the width of bottom border to zero.... | [
{
"code": null,
"e": 23538,
"s": 23510,
"text": "\n06 Jul, 2020"
},
{
"code": null,
"e": 23639,
"s": 23538,
"text": "The border-bottom-style property in CSS is used to set the style of the bottom border of an element."
},
{
"code": null,
"e": 23647,
"s": 23639,
... |
How to Convert LinkedHashMap to List in Java? - GeeksforGeeks | 17 Dec, 2020
LinkedHashMap is predefined class in Java which is similar to HashMap, contains key and its respective value unlike HashMap, in LinkedHashMap insertion order is preserved.
We to convert LinkedHashMap to ArrayList. A Map store data in pair of Key and Value while converting a LinkedHashMAp to ArrayList we ... | [
{
"code": null,
"e": 25715,
"s": 25684,
"text": " \n17 Dec, 2020\n"
},
{
"code": null,
"e": 25887,
"s": 25715,
"text": "LinkedHashMap is predefined class in Java which is similar to HashMap, contains key and its respective value unlike HashMap, in LinkedHashMap insertion order is... |
Python VLC MediaPlayer - Getting Play Rate - GeeksforGeeks | 11 Apr, 2022
In this article we will see how we can get media play rate of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc... | [
{
"code": null,
"e": 26213,
"s": 26185,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 26860,
"s": 26213,
"text": "In this article we will see how we can get media play rate of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable ... |
SQL Tutorial | SQL is a standard language for storing, manipulating and retrieving data
in databases.
Our SQL tutorial will teach you how to use SQL in:
MySQL, SQL Server, MS Access, Oracle, Sybase, Informix, Postgres, and other database systems.
With our online SQL editor, you can edit the SQL statements, and click on a button to v... | [
{
"code": null,
"e": 88,
"s": 0,
"text": "SQL is a standard language for storing, manipulating and retrieving data \nin databases."
},
{
"code": null,
"e": 233,
"s": 88,
"text": "Our SQL tutorial will teach you how to use SQL in:\nMySQL, SQL Server, MS Access, Oracle, Sybase, Inf... |
How to visualize a data frame that contains missing values in R? | If a data frame contains missing value then visualising it in base R is not easily possible but we can make use of visdat package for this purpose. The vis_dat function of visdat package helps to visualize any data frame even if it contains missing values. For example, if a data frame df contains missing value then it ... | [
{
"code": null,
"e": 1416,
"s": 1062,
"text": "If a data frame contains missing value then visualising it in base R is not easily possible but we can make use of visdat package for this purpose. The vis_dat function of visdat package helps to visualize any data frame even if it contains missing valu... |
Clojure - Java Interface | As we already know, Clojure code runs on the Java virtual environment at the end. Thus it only makes sense that Clojure is able to utilize all of the functionalities from Java. In this chapter, let’s discuss the correlation between Clojure and Java.
Java methods can be called by using the dot notation. An example is st... | [
{
"code": null,
"e": 2624,
"s": 2374,
"text": "As we already know, Clojure code runs on the Java virtual environment at the end. Thus it only makes sense that Clojure is able to utilize all of the functionalities from Java. In this chapter, let’s discuss the correlation between Clojure and Java."
... |
Data Mining - Rule Based Classification | Rule-based classifier makes use of a set of IF-THEN rules for classification. We can express a rule in the following from −
Let us consider a rule R1,
R1: IF age = youth AND student = yes
THEN buy_computer = yes
Points to remember −
The IF part of the rule is called rule antecedent or precondition.
The IF part of t... | [
{
"code": null,
"e": 2234,
"s": 2110,
"text": "Rule-based classifier makes use of a set of IF-THEN rules for classification. We can express a rule in the following from −"
},
{
"code": null,
"e": 2261,
"s": 2234,
"text": "Let us consider a rule R1,"
},
{
"code": null,
... |
How to use Scikit-Learn Datasets for Machine Learning | by Wafiq Syed | Towards Data Science | Scikit-Learn provides clean datasets for you to use when building ML models. And when I say clean, I mean the type of clean that’s ready to be used to train a ML model. The best part? The datasets come with the Scikit-Learn package itself. You don’t need to download anything. Within just a few lines of code, you’ll be ... | [
{
"code": null,
"e": 515,
"s": 172,
"text": "Scikit-Learn provides clean datasets for you to use when building ML models. And when I say clean, I mean the type of clean that’s ready to be used to train a ML model. The best part? The datasets come with the Scikit-Learn package itself. You don’t need ... |
Linear Regression in 6 lines of Python | by Adarsh Menon | Towards Data Science | In this quick post, I wanted to share a method with which you can perform linear as well as multiple linear regression, in literally 6 lines of Python code.
In statistics, linear regression is a linear approach to modelling the relationship between a dependent variable and one or more independent variables. I you would... | [
{
"code": null,
"e": 329,
"s": 172,
"text": "In this quick post, I wanted to share a method with which you can perform linear as well as multiple linear regression, in literally 6 lines of Python code."
},
{
"code": null,
"e": 633,
"s": 329,
"text": "In statistics, linear regress... |
LinkedList descendingIterator() method in Java with Examples - GeeksforGeeks | 10 Dec, 2018
The descendingIterator() method of java.util.LinkedList class is used to return an iterator over the elements in this LinkedList in reverse sequential order. The elements will be returned in order from last (tail) to first (head).
Syntax:
public Iterator descendingIterator()
Return Value: This method retur... | [
{
"code": null,
"e": 24107,
"s": 24079,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 24338,
"s": 24107,
"text": "The descendingIterator() method of java.util.LinkedList class is used to return an iterator over the elements in this LinkedList in reverse sequential order. The e... |
Reading UTF8 data from a file using Java | In general, data is stored in a computer in the form of bits (1 or, 0). There are various coding schemes available specifying the set of bytes represented by each character.
Unicode (UTF) − Stands for Unicode Translation Format. It is developed by The Unicode Consortium. if you want to create documents that use charact... | [
{
"code": null,
"e": 1361,
"s": 1187,
"text": "In general, data is stored in a computer in the form of bits (1 or, 0). There are various coding schemes available specifying the set of bytes represented by each character."
},
{
"code": null,
"e": 1647,
"s": 1361,
"text": "Unicode ... |
Lua - for Loop | A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.
The syntax of a for loop in Lua programming language is as follows −
for init,max/min value, increment
do
statement(s)
end
Here is the flow of control in a for loop −
The init s... | [
{
"code": null,
"e": 2376,
"s": 2237,
"text": "A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times."
},
{
"code": null,
"e": 2445,
"s": 2376,
"text": "The syntax of a for loop in Lua programming... |
C++ Program For Union And Intersection Of Two Linked Lists | 28 Feb, 2022
Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. The order of elements in output lists doesn’t matter.Example:
Input:
List1: 10->15->4->20
List2: 8->4->2->10
Output:
Intersection List: 4->10
Union List: 2->8->20->4-... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 230,
"s": 28,
"text": "Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. The order of elements in output lis... |
GATE | GATE-CS-2015 (Set 3) | Question 65 | 28 Jun, 2021
Consider the following array of elements. 〈89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100〉. The minimum number of interchanges needed to convert it into a max-heap is(A) 4(B) 5(C) 2(D) 3Answer: (D)Explanation: 〈89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100〉
89
/ \
19 ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 313,
"s": 54,
"text": "Consider the following array of elements. 〈89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100〉. The minimum number of interchanges needed to convert it into a max-heap is(A) 4(B)... |
Java program to merge two files into a third file | 30 May, 2018
Prerequisite : PrintWriter , BufferedReader
Let the given two files be file1.txt and file2.txt. Our Task is to merge both files into third file say file3.txt. The following are steps to merge.
Create PrintWriter object for file3.txtOpen BufferedReader for file1.txtRun a loop to copy each line of file1.txt ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 May, 2018"
},
{
"code": null,
"e": 96,
"s": 52,
"text": "Prerequisite : PrintWriter , BufferedReader"
},
{
"code": null,
"e": 245,
"s": 96,
"text": "Let the given two files be file1.txt and file2.txt. Our Task is... |
How to Create and Add Data to Firebase Firestore in Android? | 17 Jan, 2021
Firebase is a famous product of Google which is used by so many developers to add backend functionality for their website as well as apps. The Firebase will make your job really easier for backend database and handling the database. In this article, we will take a look at the implementation of Firebase Fir... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jan, 2021"
},
{
"code": null,
"e": 603,
"s": 54,
"text": "Firebase is a famous product of Google which is used by so many developers to add backend functionality for their website as well as apps. The Firebase will make your job rea... |
Create 2D Pixel Plot in Python | 08 May, 2021
Pixel plots are the representation of a 2-dimension data set. In these plots, each pixel refers to a different value in a data set. In this article, we will discuss how to generate 2D pixel plots from data. A pixel plot of raw data can be generated by using the cmap and interpolation parameters of the imsh... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2021"
},
{
"code": null,
"e": 373,
"s": 28,
"text": "Pixel plots are the representation of a 2-dimension data set. In these plots, each pixel refers to a different value in a data set. In this article, we will discuss how to gen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.