title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Create an Impressive GitHub Profile README and Add Your Medium RSS Feed Using GitHub Action | Towards Data Science | 1 Why do we need to create a GitHub profile README?2 What’s the Medium RSS feed? How do we get our Medium RSS site?3 How to create an impressive GitHub profile README?4 How to add Medium RSS feed in GitHub profile README?5 Conclusion6 References
GitHub is actually a platform where anyone who interests in programming ca... | [
{
"code": null,
"e": 417,
"s": 171,
"text": "1 Why do we need to create a GitHub profile README?2 What’s the Medium RSS feed? How do we get our Medium RSS site?3 How to create an impressive GitHub profile README?4 How to add Medium RSS feed in GitHub profile README?5 Conclusion6 References"
},
{... |
spaCy - Token Properties | In this chapter, we will learn about the properties with regards to the Token class in spaCy.
The token properties are listed below along with their respective descriptions.
Token.ancestors
Used for the rightmost token of this token’s syntactic descendants.
Token.conjuncts
Used to return a tuple of coordinated tokens.
... | [
{
"code": null,
"e": 2166,
"s": 2072,
"text": "In this chapter, we will learn about the properties with regards to the Token class in spaCy."
},
{
"code": null,
"e": 2246,
"s": 2166,
"text": "The token properties are listed below along with their respective descriptions."
},
... |
AI Generates Trending Video Ideas | by Andre Ye | Towards Data Science | YouTube is a massive platform — videos that manage to gain the favor of the recommendation algorithm can get hundreds of millions of views. While content creators guess around in an attempt to create the next viral video, AI can generate as many trending video ideas as you’d like!
In this article, I’ll show how anyone ... | [
{
"code": null,
"e": 454,
"s": 172,
"text": "YouTube is a massive platform — videos that manage to gain the favor of the recommendation algorithm can get hundreds of millions of views. While content creators guess around in an attempt to create the next viral video, AI can generate as many trending ... |
12 Tips to Optimize Java Code Performance - GeeksforGeeks | 18 Aug, 2021
While working on any Java application we come across the concept of optimization. It is necessary that the code which we are writing is not only clean, without defects but also optimized i.e. the time taken by the code to execute should be within intended limits. In order to achieve this, we need to refer ... | [
{
"code": null,
"e": 24921,
"s": 24893,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 25321,
"s": 24921,
"text": "While working on any Java application we come across the concept of optimization. It is necessary that the code which we are writing is not only clean, without def... |
List indexOf() Method in Java with Examples - GeeksforGeeks | 02 Jan, 2019
This method returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
Syntax:
public int indexOf(Object o)
Parameters: This function has a single parameter, i.e, the element to be searched in the list.
Returns: This method returns the ... | [
{
"code": null,
"e": 24583,
"s": 24555,
"text": "\n02 Jan, 2019"
},
{
"code": null,
"e": 24725,
"s": 24583,
"text": "This method returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element."
},
{
"code":... |
Definition and Properties of Trees | Tree is a discrete structure that represents hierarchical relationships between individual elements or nodes. A tree in which a parent has no more than two children is called a binary tree.
Definition − A Tree is a connected acyclic undirected graph. There is a unique path between every pair of vertices in G. A tree wi... | [
{
"code": null,
"e": 1252,
"s": 1062,
"text": "Tree is a discrete structure that represents hierarchical relationships between individual elements or nodes. A tree in which a parent has no more than two children is called a binary tree."
},
{
"code": null,
"e": 1612,
"s": 1252,
"... |
Find position of set bit | Practice | GeeksforGeeks | Given a number N having only one ‘1’ and all other ’0’s in its binary representation, find position of the only set bit. If there are 0 or more than 1 set bit the answer should be -1. Position of set bit '1' should be counted starting with 1 from LSB side in binary representation of the number.
Example 1:
Input:
N = 2... | [
{
"code": null,
"e": 535,
"s": 238,
"text": "Given a number N having only one ‘1’ and all other ’0’s in its binary representation, find position of the only set bit. If there are 0 or more than 1 set bit the answer should be -1. Position of set bit '1' should be counted starting with 1 from LSB sid... |
Java Program to convert integer to boolean | To convert integer to boolean, firstly let us initialize an integer.
int val = 100;
Now we will declare a variable with primitive boolean. While declaration, we will initialize it with the val value comparing it with an integer using the == operator. If the value matches, the value “True” is returned, else “False” is r... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "To convert integer to boolean, firstly let us initialize an integer."
},
{
"code": null,
"e": 1146,
"s": 1131,
"text": "int val = 100;"
},
{
"code": null,
"e": 1391,
"s": 1146,
"text": "Now we will declare a varia... |
Prefix match with other strings | Practice | GeeksforGeeks | Given an array of strings arr[] of size n and given s a string str and an integer k. The task is to find the count of strings in arr[] whose prefix of length k matches with the k length prefix of str.
Example 1:
Input:
n = 6
arr[] = {“abba”, “abbb”, “abbc”, “abbd”,
“abaa”, “abca”}
str = “abbg”
k = 3
Output: 4
Explan... | [
{
"code": null,
"e": 439,
"s": 238,
"text": "Given an array of strings arr[] of size n and given s a string str and an integer k. The task is to find the count of strings in arr[] whose prefix of length k matches with the k length prefix of str."
},
{
"code": null,
"e": 451,
"s": 439... |
C++ List Library - erase() Function | The C++ function std::list::erase() removes single element from the the list and decreases it's size by one.
Following is the declaration for std::list::erase() function form std::list header.
iterator erase (iterator position);
iterator erase (const_iterator position);
position − Iterator to the list element.
Return... | [
{
"code": null,
"e": 2712,
"s": 2603,
"text": "The C++ function std::list::erase() removes single element from the the list and decreases it's size by one."
},
{
"code": null,
"e": 2796,
"s": 2712,
"text": "Following is the declaration for std::list::erase() function form std::li... |
Binary Tree | Set 1 (Introduction) - GeeksforGeeks | 22 Nov, 2021
Trees: Unlike Arrays, Linked Lists, Stack and queues, which are linear data structures, trees are hierarchical data structures.Tree Vocabulary: The topmost node is called root of the tree. The elements that are directly under an element are called its children. The element directly above something is calle... | [
{
"code": null,
"e": 37368,
"s": 37340,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 37810,
"s": 37368,
"text": "Trees: Unlike Arrays, Linked Lists, Stack and queues, which are linear data structures, trees are hierarchical data structures.Tree Vocabulary: The topmost node is... |
Automatically Download Email Attachment with Python | by KahEm Chu | Towards Data Science | Have you been in a position where you search over your mailbox to download all the attachments needed? Then maybe you leave and come back forgot where you have stopped? Perhaps you still have to save them to different directories or folder afterwards?
I have been in that position before. That is why I want to automate ... | [
{
"code": null,
"e": 424,
"s": 172,
"text": "Have you been in a position where you search over your mailbox to download all the attachments needed? Then maybe you leave and come back forgot where you have stopped? Perhaps you still have to save them to different directories or folder afterwards?"
... |
Tryit Editor v3.7 | Tryit: HTML short quotations | [] |
Pointers and References in C++ - GeeksforGeeks | 01 Jun, 2021
Pointers in C++: Pointers are a symbolic representation of addresses. They enable programs to simulate call-by-reference as well as to create and manipulate dynamic data structures. Its general declaration in C/C++ has the format: Syntax:
Pointers in C++: Pointers are a symbolic representation of address... | [
{
"code": null,
"e": 23733,
"s": 23705,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 23974,
"s": 23733,
"text": "Pointers in C++: Pointers are a symbolic representation of addresses. They enable programs to simulate call-by-reference as well as to create and manipulate dynami... |
How to exclude extra margin between points and the axes for a plot created by using ggplot2 in R? | In a plot created by using ggplot package there exists an extra area around all the sides of the plot which uses extra space, thus we might want to get rid of that space by removing that extra margin area. It can be done by setting the scale for both the axes to zero with the help of scale_x_continuous and scale_y_cont... | [
{
"code": null,
"e": 1399,
"s": 1062,
"text": "In a plot created by using ggplot package there exists an extra area around all the sides of the plot which uses extra space, thus we might want to get rid of that space by removing that extra margin area. It can be done by setting the scale for both th... |
A hitchhiker guide to python NumPy Arrays | by Deepak K Gupta (DAKSH) | Towards Data Science | If you’re using python for data science, either you have used NumPy or must have heard about it. Most of the statistical analysis which needs data to be stored in memory uses Numpy.
Questions may be asked as why NumPy? Isn’t python lists or other data structures can do the same things?
Well Yes and No, there is nothing... | [
{
"code": null,
"e": 353,
"s": 171,
"text": "If you’re using python for data science, either you have used NumPy or must have heard about it. Most of the statistical analysis which needs data to be stored in memory uses Numpy."
},
{
"code": null,
"e": 458,
"s": 353,
"text": "Ques... |
Everything You Ever Wanted To Know About Computer Vision. | by Ilija Mihajlovic | Towards Data Science | One of the most powerful and compelling types of AI is computer vision which you’ve almost surely experienced in any number of ways without even knowing. Here’s a look at what it is, how it works, and why it’s so awesome (and is only going to get better).
Computer vision is the field of computer science that focuses on... | [
{
"code": null,
"e": 428,
"s": 172,
"text": "One of the most powerful and compelling types of AI is computer vision which you’ve almost surely experienced in any number of ways without even knowing. Here’s a look at what it is, how it works, and why it’s so awesome (and is only going to get better).... |
IEEE-CIS Fraud Detection - Top 5% Solution | by Arun Mohan | Towards Data Science | I know that you or anyone around you have been the victim of some fraud activities. Directly we can’t control people on making easy money through fraud activities. Online transactions are one of the areas where fraud transactions can occur and can lead to loss of money.
In this competition, we will detect online fraudu... | [
{
"code": null,
"e": 442,
"s": 171,
"text": "I know that you or anyone around you have been the victim of some fraud activities. Directly we can’t control people on making easy money through fraud activities. Online transactions are one of the areas where fraud transactions can occur and can lead to... |
TestNG - Basic Annotations - BeforeTest | @BeforeTest annotated method will be run before any test method belonging to the classes inside the <test> tag is run.
The following is a list of attributes supported by the @BeforeTest annotation:
alwaysRun
For before methods (beforeSuite, beforeTest, beforeTestClass and beforeTestMethod, but not beforeGroups): If set... | [
{
"code": null,
"e": 2179,
"s": 2060,
"text": "@BeforeTest annotated method will be run before any test method belonging to the classes inside the <test> tag is run."
},
{
"code": null,
"e": 2258,
"s": 2179,
"text": "The following is a list of attributes supported by the @BeforeT... |
Basic Algorithms — Finding the Closest Pair | by Keita Miyaki | Towards Data Science | Writing cost-efficient algorithms is one of the keys to succeed as a data scientist, and in the previous article we used split-conquer method in counting inversions in an array, which is far less costly than brute force method. This time, we will see how another split-conquer algorithm finds the closest pair of points ... | [
{
"code": null,
"e": 541,
"s": 172,
"text": "Writing cost-efficient algorithms is one of the keys to succeed as a data scientist, and in the previous article we used split-conquer method in counting inversions in an array, which is far less costly than brute force method. This time, we will see how ... |
Design Patterns - Interpreter Pattern | Interpreter pattern provides a way to evaluate language grammar or expression. This type of pattern comes under behavioral pattern. This pattern involves implementing an expression interface which tells to interpret a particular context. This pattern is used in SQL parsing, symbol processing engine etc.
We are going to... | [
{
"code": null,
"e": 3056,
"s": 2751,
"text": "Interpreter pattern provides a way to evaluate language grammar or expression. This type of pattern comes under behavioral pattern. This pattern involves implementing an expression interface which tells to interpret a particular context. This pattern is... |
Working with Array and Vectors using STL in C++ | Array and vectors are very important data structures in competitive programming for solving problems. And the STL (Standard Template Library) in c++ programming provide some functions to perform operations of arrays and vectors.
Let’s see some of these functions in action,
Finding sum, Min and Max of the array/vector −... | [
{
"code": null,
"e": 1291,
"s": 1062,
"text": "Array and vectors are very important data structures in competitive programming for solving problems. And the STL (Standard Template Library) in c++ programming provide some functions to perform operations of arrays and vectors."
},
{
"code": nu... |
Python | Pandas DatetimeIndex.to_series() - GeeksforGeeks | 29 Dec, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas DatetimeIndex.to_series() function create a Series with both index and values equal to... | [
{
"code": null,
"e": 24984,
"s": 24956,
"text": "\n29 Dec, 2018"
},
{
"code": null,
"e": 25198,
"s": 24984,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
Python | sympy.collect() method - GeeksforGeeks | 18 Jun, 2019
With the help of sympy.collect() method, we are able to collect the mathematical expressions having same power.
Syntax : sympy.collect()Return : Return mathematical expression having same powers.
Example #1 :In this example, we can see that by using sympy.collect() method, all the same powers of variables ... | [
{
"code": null,
"e": 25010,
"s": 24982,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 25122,
"s": 25010,
"text": "With the help of sympy.collect() method, we are able to collect the mathematical expressions having same power."
},
{
"code": null,
"e": 25206,
"s"... |
Unique Binary Search Trees II in C++ | Suppose we have an integer n, we have to generate all structurally unique binary search trees that store values from 1 to n. So if the input is 3, then the trees will be −
To solve this, we will follow these steps −
Define one recursive function called generate(), this will take low and high
define one tree node called... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "Suppose we have an integer n, we have to generate all structurally unique binary search trees that store values from 1 to n. So if the input is 3, then the trees will be −"
},
{
"code": null,
"e": 1278,
"s": 1234,
"text": "To solve t... |
Microsoft Expression Web - Quick Guide | Microsoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. You can use Expression Web to create web pages and sites that let you transfer files between your computer and your hosting account.
Expression Web can design and ... | [
{
"code": null,
"e": 2486,
"s": 2196,
"text": "Microsoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. You can use Expression Web to create web pages and sites that let you transfer files between you... |
PHP - Web Concepts | This session demonstrates how PHP can provide dynamic content according to browser type, randomly generated numbers or User Input. It also demonstrated how the client browser can be redirected.
PHP creates some useful environment variables that can be seen in the phpinfo.php page that was used to setup the PHP environm... | [
{
"code": null,
"e": 2951,
"s": 2757,
"text": "This session demonstrates how PHP can provide dynamic content according to browser type, randomly generated numbers or User Input. It also demonstrated how the client browser can be redirected."
},
{
"code": null,
"e": 3082,
"s": 2951,
... |
DataTables pagingType Option - GeeksforGeeks | 13 Jul, 2021
DataTables is a jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to be searched, sorted, and filtered according to the needs of the user. The DataTable also exposes a powerful API that can be further used to m... | [
{
"code": null,
"e": 25755,
"s": 25727,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 26095,
"s": 25755,
"text": "DataTables is a jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table ... |
Maximum of Absolute Value Expression in C++ | Suppose we have two arrays of integers with equal lengths, we have to find the maximum value of: |arr1[i] - arr1[j]| + |arr2[i] - arr2[j]| + |i - j|. Where the maximum value is taken over all 0 <= i, j < arr1.length. So if the given two arrays are [1,2,3,4] and [-1,4,5,6], the output will be 13.
To solve this, we will ... | [
{
"code": null,
"e": 1359,
"s": 1062,
"text": "Suppose we have two arrays of integers with equal lengths, we have to find the maximum value of: |arr1[i] - arr1[j]| + |arr2[i] - arr2[j]| + |i - j|. Where the maximum value is taken over all 0 <= i, j < arr1.length. So if the given two arrays are [1,2,... |
Program to find out the number of special numbers in a given range in Python | Suppose we are given a range of integer numbers and are asked to find out the special numbers in the range. A special number is a number that is a positive integer having only 1 digit in its decimal representation. A number that has more than 1 digit in its decimal representation can also be special if the number is di... | [
{
"code": null,
"e": 1704,
"s": 1187,
"text": "Suppose we are given a range of integer numbers and are asked to find out the special numbers in the range. A special number is a number that is a positive integer having only 1 digit in its decimal representation. A number that has more than 1 digit in... |
HTML | <img> align Attribute | 17 Feb, 2022
The <img> align attribute is used to set the alignment of an image. It is an inline element. It is used to specify the alignment of the image according to surrounding elements. It is not supported by HTML 5. HTML 5 uses CSS property instead of this attribute.
Syntax:
<img align="left|right|middle|top|bott... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 312,
"s": 52,
"text": "The <img> align attribute is used to set the alignment of an image. It is an inline element. It is used to specify the alignment of the image according to surrounding element... |
Exporting a Pandas DataFrame to an Excel file | 02 Sep, 2020
Let us see how to export a Pandas DataFrame to an Excel file.
Algorithm:
Create the DataFrame.Determine the name of the Excel file.Call to_excel() function with the file name to export the DataFrame.
Create the DataFrame.
Determine the name of the Excel file.
Call to_excel() function with the file name to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 91,
"s": 28,
"text": "Let us see how to export a Pandas DataFrame to an Excel file. "
},
{
"code": null,
"e": 102,
"s": 91,
"text": "Algorithm:"
},
{
"code": null,
"e... |
Minimize number of boxes by putting small box inside bigger one | 25 Apr, 2022
Given an array size[] of box sizes, our task is to find the number of boxes left at the end, after putting the smaller-sized box into a bigger one. Note: Only one small box can fit inside one box.Examples:
Input: size[] = {1, 2, 3} Output: 1 Explanation: Here, box of size 1 can fit inside box of size 2 an... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 261,
"s": 54,
"text": "Given an array size[] of box sizes, our task is to find the number of boxes left at the end, after putting the smaller-sized box into a bigger one. Note: Only one small box c... |
Image Filtering Using Convolution in OpenCV | 16 Oct, 2021
Prerequisites: Basics of OpenCV, Basics of Convolution
In this article, filtering of images using convolution in OpenCV (Open Source Computer Vision) is discussed. In order to use the OpenCV library in Python, the following libraries should be installed as a prerequisite:
Numpy library
Matplotlib library
O... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Oct, 2021"
},
{
"code": null,
"e": 83,
"s": 28,
"text": "Prerequisites: Basics of OpenCV, Basics of Convolution"
},
{
"code": null,
"e": 301,
"s": 83,
"text": "In this article, filtering of images using convolutio... |
How to see cache statistics in Linux? | 31 Jan, 2019
Cache is a very important part of the computer hardware to give superfast response time.
Cache PerformanceWhen the processor needs to read or write a location in main memory, it first checks for a corresponding entry in the cache.
If the processor finds that the memory location is in the cache, a cache hit... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 117,
"s": 28,
"text": "Cache is a very important part of the computer hardware to give superfast response time."
},
{
"code": null,
"e": 259,
"s": 117,
"text": "Cache Performance... |
jQuery | filter() with Examples | 13 Feb, 2019
The jQuery is a very powerful tool which helps us to incorporate a variety of DOM traversal methods to select elements in a document randomly or in sequential order. Most of the DOM traversal methods do not modify the elements whereas they filter them out upon the given conditions.The filter() method is us... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 452,
"s": 28,
"text": "The jQuery is a very powerful tool which helps us to incorporate a variety of DOM traversal methods to select elements in a document randomly or in sequential order. Most of t... |
PHP | mysqli_fetch_array() Function | 23 Apr, 2020
The mysqli_fetch_array() function is used to fetch rows from the database and store them as an array. The array can be fetched as an associative array, as a numeric array or both.
Associative arrays are the arrays where the indexes are the names of the individual columns of the table. On the other hand, nu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Apr, 2020"
},
{
"code": null,
"e": 208,
"s": 28,
"text": "The mysqli_fetch_array() function is used to fetch rows from the database and store them as an array. The array can be fetched as an associative array, as a numeric array or b... |
CSS | Transitions | 09 Aug, 2019
Transitions in CSS allows us to control the way in which transition takes place between the two states of the element. For example, when on hovering your mouse over a button, you can change the background color of the element with help of CSS selector and pseudo-class. We can change any other or combinatio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 686,
"s": 28,
"text": "Transitions in CSS allows us to control the way in which transition takes place between the two states of the element. For example, when on hovering your mouse over a button, ... |
Scala Iterator map() method with example - GeeksforGeeks | 13 Aug, 2019
The map() method belongs to the concrete value member of the class Abstract Iterator. It is utilized to build a new iterator by applying a function to each of the elements of the stated iterator.
Method Definition:
def map[B](f: (A) => B): Iterator[B]
where, B is the element type of the returned iterator ... | [
{
"code": null,
"e": 24006,
"s": 23978,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 24202,
"s": 24006,
"text": "The map() method belongs to the concrete value member of the class Abstract Iterator. It is utilized to build a new iterator by applying a function to each of the ... |
How to create boxplot for a list object in base R? | A list object can contain multiple elements of data, also the size of the data may vary. If a list object has numerical vectors then the boxplot for each of the elements can be created simply by using boxplot function. For example, if we have a list object called LIST that contains five numerical vectors then the boxpl... | [
{
"code": null,
"e": 1459,
"s": 1062,
"text": "A list object can contain multiple elements of data, also the size of the data may vary. If a list object has numerical vectors then the boxplot for each of the elements can be created simply by using boxplot function. For example, if we have a list obj... |
Binary Search | Practice | GeeksforGeeks | Given a sorted array of size N and an integer K, find the position at which K is present in the array using binary search.
Example 1:
Input:
N = 5
arr[] = {1 2 3 4 5}
K = 4
Output: 3
Explanation: 4 appears at index 3.
Example 2:
Input:
N = 5
arr[] = {11 22 33 44 55}
K = 445
Output: -1
Explanation: 445 is not presen... | [
{
"code": null,
"e": 361,
"s": 238,
"text": "Given a sorted array of size N and an integer K, find the position at which K is present in the array using binary search."
},
{
"code": null,
"e": 373,
"s": 361,
"text": "\nExample 1:"
},
{
"code": null,
"e": 458,
"s":... |
Bank Customer Churn with Tidymodels — Part 2 Decision Threshold Analysis | by Murray Gillin | Towards Data Science | Welcome back for Part 2 of our exploration of the Bank Customer Churn problem now examining decision threshold analysis.
In Part 1 we developed a candidate workflow that achieved strong results across a variety of classification metrics, and discussed the impacts of different up- and downsampling techniques to manage t... | [
{
"code": null,
"e": 286,
"s": 165,
"text": "Welcome back for Part 2 of our exploration of the Bank Customer Churn problem now examining decision threshold analysis."
},
{
"code": null,
"e": 642,
"s": 286,
"text": "In Part 1 we developed a candidate workflow that achieved strong ... |
Arduino - Strings | Strings are used to store text. They can be used to display text on an LCD or in the Arduino IDE Serial Monitor window. Strings are also useful for storing the user input. For example, the characters that a user types on a keypad connected to the Arduino.
There are two types of strings in Arduino programming −
Arrays o... | [
{
"code": null,
"e": 3126,
"s": 2870,
"text": "Strings are used to store text. They can be used to display text on an LCD or in the Arduino IDE Serial Monitor window. Strings are also useful for storing the user input. For example, the characters that a user types on a keypad connected to the Arduin... |
Detecting communities in a language co-occurrence network | by Harry Bitten | Towards Data Science | In this post, we are going to undertake community detection in the python package Igraph, to attempt to detect communities within a language co-occurrence network. This will be implemented using two popular community detection algorithms: Walktrap, and Label Propagation
Global language co-occurrence networks (GLCNs) li... | [
{
"code": null,
"e": 442,
"s": 171,
"text": "In this post, we are going to undertake community detection in the python package Igraph, to attempt to detect communities within a language co-occurrence network. This will be implemented using two popular community detection algorithms: Walktrap, and La... |
JavaFX - 2D Shapes Line | In general, a line is a geometrical structure which joins two points on an XY plane.
In JavaFX, a line is represented by a class named Line. This class belongs to the package javafx.scene.shape.
By instantiating this class, you can create a line node in JavaFX.
This class has 4 properties of the double datatype namely ... | [
{
"code": null,
"e": 1985,
"s": 1900,
"text": "In general, a line is a geometrical structure which joins two points on an XY plane."
},
{
"code": null,
"e": 2095,
"s": 1985,
"text": "In JavaFX, a line is represented by a class named Line. This class belongs to the package javafx.... |
Dice, Polls & Dirichlet Multinomials | by Claus Herther @ calogica.com | Towards Data Science | As part of a longer term project to learn Bayesian Statistics, I’m currently reading Bayesian Data Analysis, 3rd Edition by Andrew Gelman, John Carlin, Hal Stern, David Dunson, Aki Vehtari, and Donald Rubin, commonly known as BDA3. Although I’ve been using Bayesian statistics and probabilistic programming languages, li... | [
{
"code": null,
"e": 658,
"s": 171,
"text": "As part of a longer term project to learn Bayesian Statistics, I’m currently reading Bayesian Data Analysis, 3rd Edition by Andrew Gelman, John Carlin, Hal Stern, David Dunson, Aki Vehtari, and Donald Rubin, commonly known as BDA3. Although I’ve been usin... |
map insert() in C++ STL - GeeksforGeeks | 11 May, 2022
The map::insert() is a built-in function in C++ STL which is used to insert elements with a particular key in the map container.
Syntax:
iterator map_name.insert({key, element})
Parameters: The function accepts a pair that consists of a key and element which is to be inserted into the map container. ... | [
{
"code": null,
"e": 26380,
"s": 26352,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 26510,
"s": 26380,
"text": "The map::insert() is a built-in function in C++ STL which is used to insert elements with a particular key in the map container. "
},
{
"code": null,
"... |
time.Time.Second() Function in Golang with Examples - GeeksforGeeks | 19 Apr, 2020
In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Second() function in Go language is used to find the second offset within the minute as provided by “t” and the range is [0, 59]. Moreover, this function is defined under the time package. Here, you need ... | [
{
"code": null,
"e": 25813,
"s": 25785,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 26182,
"s": 25813,
"text": "In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Second() function in Go language is used to find the second ... |
MySQLi - Select Query | The SQL SELECT command is used to fetch data from the MySQL database. You can use this command at mysql> prompt as well as in any script like PHP.
Here is generic SQL syntax of SELECT command to fetch data from the MySQL table −
SELECT field1, field2,...fieldN
FROM table_name1, table_name2...
[WHERE Clause]
[OFFSET M ... | [
{
"code": null,
"e": 2544,
"s": 2397,
"text": "The SQL SELECT command is used to fetch data from the MySQL database. You can use this command at mysql> prompt as well as in any script like PHP."
},
{
"code": null,
"e": 2626,
"s": 2544,
"text": "Here is generic SQL syntax of SELEC... |
Python – Obtain title, views and likes of YouTube video using BeautifulSoup | 29 Dec, 2020
In this article, we will learn how can we obtain data (like title, views, likes, dislikes etc) from any YouTube video using a Python script. For this task, we are going to use very famous library for web scraping BeautifulSoup and Requests.
Modules required and Installation :
Requests :Requests allows you ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 295,
"s": 54,
"text": "In this article, we will learn how can we obtain data (like title, views, likes, dislikes etc) from any YouTube video using a Python script. For this task, we are going to us... |
Missing number in array | Practice | GeeksforGeeks | Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element.
Example 1:
Input:
N = 5
A[] = {1,2,3,5}
Output: 4
Example 2:
Input:
N = 10
A[] = {6,1,2,8,3,4,7,10,5}
Output: 9
Your Task :
You don't need to read input or print anything. Complete the function Mi... | [
{
"code": null,
"e": 360,
"s": 238,
"text": "Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element."
},
{
"code": null,
"e": 371,
"s": 360,
"text": "Example 1:"
},
{
"code": null,
"e": 411,
"s": 37... |
Power BI – Drilling Down and Up in Hierarchies | 18 Sep, 2020
Prerequisite: Tools and Functionalities
This article shows how to drill up and down so as to visualize the data through different levels in Power BI. Using drill-down and drill up on your data points, you can explore in-depth details about your data. When a visual has a hierarchy, you can drill down to rev... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 68,
"s": 28,
"text": "Prerequisite: Tools and Functionalities"
},
{
"code": null,
"e": 359,
"s": 68,
"text": "This article shows how to drill up and down so as to visualize the d... |
How to create a pop-up div on mouse over and stay when click using jQuery ? | 21 May, 2021
In this article, we will learn how to create a pop-up div on mouseover and stay when click using jQuery.
Approach:
First, we create an HTML div element that we want to pop up when we mouse over on an element and set its display property to none in CSS style.
display:none;
In the script tag, we create a va... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 133,
"s": 28,
"text": "In this article, we will learn how to create a pop-up div on mouseover and stay when click using jQuery."
},
{
"code": null,
"e": 144,
"s": 133,
"text": "A... |
How to get the list of all the commands available in the PowerShell? | To get the list of all the commands installed in the system use the below command line. It
will include all the Alias, Functions and Cmdlets.
Get-Command
To export them into the CSV file,
Get-Command | Export-Csv D:\Temp\PowerShellcommands.csv -
NoTypeInformation
To get only the cmdlets commands,
Get-Command -CommandTy... | [
{
"code": null,
"e": 1329,
"s": 1187,
"text": "To get the list of all the commands installed in the system use the below command line. It\nwill include all the Alias, Functions and Cmdlets."
},
{
"code": null,
"e": 1341,
"s": 1329,
"text": "Get-Command"
},
{
"code": null,... |
Compute the inverse of a matrix using NumPy | 26 Feb, 2021
The inverse of a matrix is just a reciprocal of the matrix as we do in normal arithmetic for a single number which is used to solve the equations to find the value of unknown variables. The inverse of a matrix is that matrix which when multiplied with the original matrix will give as an identity matrix. Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Feb, 2021"
},
{
"code": null,
"e": 536,
"s": 28,
"text": "The inverse of a matrix is just a reciprocal of the matrix as we do in normal arithmetic for a single number which is used to solve the equations to find the value of unknown ... |
which command in Linux with examples | 27 May, 2019
which command in Linux is a command which is used to locate the executable file associated with the given command by searching it in the path environment variable. It has 3 return status as follows:
0 : If all specified commands are found and executable.
1 : If one or more specified commands is nonexistent... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 May, 2019"
},
{
"code": null,
"e": 251,
"s": 52,
"text": "which command in Linux is a command which is used to locate the executable file associated with the given command by searching it in the path environment variable. It has 3 r... |
Python – seaborn.pairplot() method | 15 Jul, 2020
Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. Seaborn helps resolve the two major problems faced by Matplotlib; the problems are ?
Default Matplotlib parameters
Working with data frames
As ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Jul, 2020"
},
{
"code": null,
"e": 303,
"s": 54,
"text": "Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. Seaborn he... |
Remove duplicates from a given string | 06 Jul, 2022
C++
Java
Python3
C#
Javascript
// CPP program to remove duplicate character// from character array and print in sorted// order#include <bits/stdc++.h>using namespace std; char *removeDuplicate(char str[], int n){ // create a set using string characters // excluding '\0' unordered_set<char>s (str, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 56,
"s": 52,
"text": "C++"
},
{
"code": null,
"e": 61,
"s": 56,
"text": "Java"
},
{
"code": null,
"e": 69,
"s": 61,
"text": "Python3"
},
{
"code": nu... |
Elasticsearch | Differences between Queries and Filters | 09 Aug, 2021
Elasticsearch is a full-text search and analytics engine based on Apache Lucene. Elasticsearch makes it easier to perform data aggregation operations on data from multiple sources and to perform unstructured queries such as fuzzy searches on the stored data.
Elasticsearch document would look like:
{
"... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Aug, 2021"
},
{
"code": null,
"e": 288,
"s": 28,
"text": "Elasticsearch is a full-text search and analytics engine based on Apache Lucene. Elasticsearch makes it easier to perform data aggregation operations on data from multiple sou... |
Logger exiting() method in Java with Examples | 28 Mar, 2019
The exiting() method of a Logger class used to Log a method return.
There are two types of exiting() method depending upon the parameters passed.
exiting(String sourceClass, String sourceMethod): This method is used to Log a method return. we need to log what method returns and this is a convenience method... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 96,
"s": 28,
"text": "The exiting() method of a Logger class used to Log a method return."
},
{
"code": null,
"e": 174,
"s": 96,
"text": "There are two types of exiting() method ... |
MySQL | Group_CONCAT() Function | 16 Aug, 2021
The GROUP_CONCAT() function in MySQL is used to concatenate data from multiple rows into one field. This is an aggregate (GROUP BY) function which returns a String value, if the group contains at least one non-NULL value. Otherwise, it returns NULL.
Syntax:
SELECT col1, col2, ..., colN
GROUP_CONCAT ( [DIST... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 302,
"s": 52,
"text": "The GROUP_CONCAT() function in MySQL is used to concatenate data from multiple rows into one field. This is an aggregate (GROUP BY) function which returns a String value, if ... |
numpy.stack() in Python | 06 Jan, 2019
numpy.stack() function is used to join a sequence of same dimension arrays along a new axis.The axis parameter specifies the index of the new axis in the dimensions of the result. For example, if axis=0 it will be the first dimension and if axis=-1 it will be the last dimension.
Syntax : numpy.stack(arrays... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jan, 2019"
},
{
"code": null,
"e": 332,
"s": 52,
"text": "numpy.stack() function is used to join a sequence of same dimension arrays along a new axis.The axis parameter specifies the index of the new axis in the dimensions of the re... |
How to Drop the Index Column in Pandas? | 28 Nov, 2021
In this article, we will discuss how to drop the index column in pandas using Python.
First we have to create the dataframe with student details and set the index by using set_index() function
Syntax:
dataframe.set_index([pandas.Index([index_values.......])])
where
dataframe is the input dataframe
Index_va... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "In this article, we will discuss how to drop the index column in pandas using Python."
},
{
"code": null,
"e": 221,
"s": 114,
"text": "First we have to cre... |
Largest substring with same Characters | 25 May, 2022
Given a string s of size N. The task is to find the largest substring which consists of the same charactersExamples:
Input : s = “abcdddddeff” Output : 5 Substring is “ddddd”Input : s = aabceebeee Output : 3
Approach : Traverse through the string from left to right. Take two variables ans and temp. I... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 173,
"s": 54,
"text": "Given a string s of size N. The task is to find the largest substring which consists of the same charactersExamples: "
},
{
"code": null,
"e": 266,
"s": 173,... |
C# Program to count the number of lines in a file | Firstly, create a file using StreamWriter class and add content to it −
using (StreamWriter sw = new StreamWriter("hello.txt")) {
sw.WriteLine("This is demo line 1");
sw.WriteLine("This is demo line 2");
sw.WriteLine("This is demo line 3");
}
Now use the ReadAllLines() method to read all the lines. With that, ... | [
{
"code": null,
"e": 1259,
"s": 1187,
"text": "Firstly, create a file using StreamWriter class and add content to it −"
},
{
"code": null,
"e": 1439,
"s": 1259,
"text": "using (StreamWriter sw = new StreamWriter(\"hello.txt\")) {\n sw.WriteLine(\"This is demo line 1\");\n sw.... |
Java Program to Demonstrate the Double-Check Locking For Singleton Class | 07 Jan, 2021
One of the key challenges faced by junior developers is the way to keep Singleton class as Singleton i.e. the way to prevent multiple instances of Singleton class. Double checked locking of Singleton is a way to make sure that only one instance of Singleton class is created through an application life cycl... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Jan, 2021"
},
{
"code": null,
"e": 540,
"s": 53,
"text": "One of the key challenges faced by junior developers is the way to keep Singleton class as Singleton i.e. the way to prevent multiple instances of Singleton class. Double che... |
Get clicked item and its position in RecyclerView? | This example demonstrate about how to get clicked item and its position in RecyclerView
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-... | [
{
"code": null,
"e": 1275,
"s": 1187,
"text": "This example demonstrate about how to get clicked item and its position in RecyclerView"
},
{
"code": null,
"e": 1404,
"s": 1275,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require... |
HTML <img> Tag | 27 Aug, 2021
HTML <img> tag is used to add image inside webpage/website. Nowadays website does not directly add images to a web page, as the images are linked to web pages by using the <img> tag which holds space for the image.
Syntax:
<img src="" alt="" width="" height="">
Attributes: The <img> tag has following att... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 269,
"s": 54,
"text": "HTML <img> tag is used to add image inside webpage/website. Nowadays website does not directly add images to a web page, as the images are linked to web pages by using the <i... |
UGC-NET | UGC NET CS 2017 Jan – II | Question 1 | 26 Mar, 2018
Consider a sequence F00 defined as :F00(0) = 1, F00(1) = 1F00(n) = 10 ∗ F00(n – 1) + 100F00(n – 2) for n ≥ 2Then what shall be the set of values of the sequence F00 ?(A) (1, 110, 1200)(B) (1, 110, 600, 1200)(C) (1, 2, 55, 110, 600, 1200)(D) (1, 55, 110, 600, 1200)Answer: (A)Explanation:
F00(0) = 1, F00(1)... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Mar, 2018"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Consider a sequence F00 defined as :F00(0) = 1, F00(1) = 1F00(n) = 10 ∗ F00(n – 1) + 100F00(n – 2) for n ≥ 2Then what shall be the set of values of the sequence F00 ?(A) (1, 1... |
JavaScript | Redirect a URL | 19 Feb, 2019
Prerequisites:
Learn Basic HTML
Learn Basic Javascript
Redirecting a URL in JavaScript is nothing but sending the user from a URL to another URL. In Javascript, window.location function is used to redirect to a URL.
<!DOCTYPE html><html><head> <title>Redirect url in Javascript</title></head><body><scrip... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Feb, 2019"
},
{
"code": null,
"e": 69,
"s": 54,
"text": "Prerequisites:"
},
{
"code": null,
"e": 86,
"s": 69,
"text": "Learn Basic HTML"
},
{
"code": null,
"e": 109,
"s": 86,
"text": "Learn Ba... |
Minimum inversions required so that no two adjacent elements are same | 01 Mar, 2022
Given a binary array arr[] of size N. The task is to find the minimum number of inversions required so that no two adjacent elements are same. After a single inversion, an element could change from 0 to 1 or from 1 to 0.Examples:
Input: arr[] = {1, 1, 1} Output: 1 Change arr[1] from 1 to 0 and the array ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Mar, 2022"
},
{
"code": null,
"e": 286,
"s": 54,
"text": "Given a binary array arr[] of size N. The task is to find the minimum number of inversions required so that no two adjacent elements are same. After a single inversion, an el... |
Time Functions in Python | Set-2 (Date Manipulations) | 11 May, 2017
Some of Time Functions are discussed in Set 1
Date manipulation can also be performed using Python using “datetime” module and using “date” class in it.
Operations on Date :
1. MINYEAR :- It displays the minimum year that can be represented using date class.
2. MAXYEAR :- It displays the maximum year that ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2017"
},
{
"code": null,
"e": 98,
"s": 52,
"text": "Some of Time Functions are discussed in Set 1"
},
{
"code": null,
"e": 205,
"s": 98,
"text": "Date manipulation can also be performed using Python using “d... |
Find the Sum of the series 1 + 1/3 + 1/5 + 1/7 + ... till N terms | 25 Nov, 2021
Given a number N, the task is to find the sum of the below series till N terms.
Examples:
Input: N = 10 Output: 2.133256 Explanation: The sum of series 1 + 1/3 + 1/5 + 1/7 + 1/9 + 1/11 is 2.133256.Input: N = 20 Output: 2.479674 Explanation: The sum of series 1 + 1/3 + 1/5 + 1/7 + ... + 1/41 is 2.479674.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 133,
"s": 52,
"text": "Given a number N, the task is to find the sum of the below series till N terms. "
},
{
"code": null,
"e": 145,
"s": 133,
"text": "Examples: "
},
{
... |
Garbage Collection in JavaScript - GeeksforGeeks | 29 Jun, 2020
This article will explain the concept of garbage collection in JavaScript. In order to understand the need of garbage collection, we must first understand Memory Life Cycle
Memory Life Cycle: The memory life cycle is pretty much the same for any programming language, it has 3 major steps.
Allocate the memo... | [
{
"code": null,
"e": 24544,
"s": 24516,
"text": "\n29 Jun, 2020"
},
{
"code": null,
"e": 24717,
"s": 24544,
"text": "This article will explain the concept of garbage collection in JavaScript. In order to understand the need of garbage collection, we must first understand Memory L... |
JSP - Lifecycle | In this chapter, we will discuss the lifecycle of JSP. The key to understanding the low-level functionality of JSP is to understand the simple life cycle they follow.
A JSP life cycle is defined as the process from its creation till the destruction. This is similar to a servlet life cycle with an additional step which ... | [
{
"code": null,
"e": 2406,
"s": 2239,
"text": "In this chapter, we will discuss the lifecycle of JSP. The key to understanding the low-level functionality of JSP is to understand the simple life cycle they follow."
},
{
"code": null,
"e": 2602,
"s": 2406,
"text": "A JSP life cycl... |
Tryit Editor v3.6 - Show Python | f = open("D:\\myfiles\welcome.txt", "r") | [] |
PHP date_time_set() Function | The date_time_set() function is an alias of the DateTime::setTime() function. Using this, you can (re)set the time of a DateTime object.
date_time_set($object, $hours, $minutes, $seconds, $microseconds)
object(Mandatory)
This is a DateTime object to which you need to set the date.
hours(Mandatory)
This is an integer v... | [
{
"code": null,
"e": 2894,
"s": 2757,
"text": "The date_time_set() function is an alias of the DateTime::setTime() function. Using this, you can (re)set the time of a DateTime object."
},
{
"code": null,
"e": 2961,
"s": 2894,
"text": "date_time_set($object, $hours, $minutes, $sec... |
Let’s build a simple distributed computing system, for modern cloud | by Tharindu Bandara | Towards Data Science | The way of writing software is much different now. Being cloud native is one of the key goals for almost every software system architecture out there.
In this article, we will explore how can we build a simple and extensible distributed computing framework, tailored for the modern cloud. We are going to design, build a... | [
{
"code": null,
"e": 323,
"s": 172,
"text": "The way of writing software is much different now. Being cloud native is one of the key goals for almost every software system architecture out there."
},
{
"code": null,
"e": 574,
"s": 323,
"text": "In this article, we will explore ho... |
CSS Lists - GeeksforGeeks | 29 Oct, 2021
The List in CSS specifies the listing of the contents or items in a particular manner i.e., it can either be organized orderly or unorder way, which helps to make a clean webpage. It can be used to arrange the huge with a variety of content as they are flexible and easy to manage. The default style for the... | [
{
"code": null,
"e": 27655,
"s": 27627,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 28025,
"s": 27655,
"text": "The List in CSS specifies the listing of the contents or items in a particular manner i.e., it can either be organized orderly or unorder way, which helps to make ... |
Training Tensorflow Object Detection API with custom dataset for working in Javascript and Vue.js | by Adrià Gil | Towards Data Science | This article is a re-work of the amazing tutorial from Gilbert Tanner on how to create your own object detector with Tensorflow Object Detection API.I’m following exactly the same steps but with some differences and adding some things I’ve faced during setup and training.
I want to thank the author for the original con... | [
{
"code": null,
"e": 320,
"s": 47,
"text": "This article is a re-work of the amazing tutorial from Gilbert Tanner on how to create your own object detector with Tensorflow Object Detection API.I’m following exactly the same steps but with some differences and adding some things I’ve faced during set... |
Building a web scraper tool to analyze condo prices in Toronto | by Karan Singh | Towards Data Science | Condos have always fascinated me and in the city, I live, they are perhaps the first (or realistic) option that comes to the mind of many first-time home-buyers. Unless you have been living under a rock, you would be aware that house prices in Toronto have jumped manyfold over the last decade, and more so in the last 5... | [
{
"code": null,
"e": 641,
"s": 172,
"text": "Condos have always fascinated me and in the city, I live, they are perhaps the first (or realistic) option that comes to the mind of many first-time home-buyers. Unless you have been living under a rock, you would be aware that house prices in Toronto hav... |
Git Branch Merge | We have the emergency fix ready, and so let's merge the master and emergency-fix branches.
First, we need to change to the master branch:
git checkout master
Switched to branch 'master'
Now we merge the current branch (master) with emergency-fix:
git merge emergency-fix
Updating 09f4acd..dfa79db
Fast-forward
index.htm... | [
{
"code": null,
"e": 91,
"s": 0,
"text": "We have the emergency fix ready, and so let's merge the master and emergency-fix branches."
},
{
"code": null,
"e": 138,
"s": 91,
"text": "First, we need to change to the master branch:"
},
{
"code": null,
"e": 186,
"s": 1... |
Grouping objects based on key property in JavaScript | We have a parentArray that contains many sub arrays each of the same size, each sub array is
an array of objects containing two properties: key and value. Within a subarray it is confirmed
that two objects cannot have the same key but all subarrays have the same pair of n keys
where n is the size of the sub array.
Our ... | [
{
"code": null,
"e": 1378,
"s": 1062,
"text": "We have a parentArray that contains many sub arrays each of the same size, each sub array is\nan array of objects containing two properties: key and value. Within a subarray it is confirmed\nthat two objects cannot have the same key but all subarrays ha... |
Count rows in a matrix that consist of same element in C++ | We are given a matrix consisting of integers. The goal is to find the number of rows in the matrix that have all identical elements in it.
If there is 5X4 matrix as shown −
The answer would be 2, row 1 (having all 1’s) and row 3 (having all 7’s) contain the same element.
Let us understand with examples.
Input
matrix =... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "We are given a matrix consisting of integers. The goal is to find the number of rows in the matrix that have all identical elements in it."
},
{
"code": null,
"e": 1235,
"s": 1201,
"text": "If there is 5X4 matrix as shown −"
},
{... |
IntStream range() method in Java | The range() method in the IntStream class in Java is used to return a sequential ordered IntStream from startInclusive to endExclusive by an incremental step of 1. This includes the startInclusive as well.
The syntax is as follows −
static IntStream range(int startInclusive, int endExclusive)
Here, the parameter startI... | [
{
"code": null,
"e": 1268,
"s": 1062,
"text": "The range() method in the IntStream class in Java is used to return a sequential ordered IntStream from startInclusive to endExclusive by an incremental step of 1. This includes the startInclusive as well."
},
{
"code": null,
"e": 1295,
... |
Anomaly Detection in Manufacturing, Part 1: An Introduction | by Tim von Hahn | Towards Data Science | A critical motor failed. Millions of dollars in lost revenue. Worst of all, it happened on my watch.
In reality, the failure wasn’t attributed to any one person — it was a system failure. But there were missed “signals” along the way, like the temperature probe with “spikes” weeks before. Unfortunately, I was not equip... | [
{
"code": null,
"e": 272,
"s": 171,
"text": "A critical motor failed. Millions of dollars in lost revenue. Worst of all, it happened on my watch."
},
{
"code": null,
"e": 657,
"s": 272,
"text": "In reality, the failure wasn’t attributed to any one person — it was a system failure... |
Python Pandas - Indicate all duplicate index values as True | To indicate all duplicate index values as True, use the index.duplicated(). Use the keep parameter with the value False.
At first, import the required libraries −
import pandas as pd
Creating the index with some duplicates −
index = pd.Index(['Car','Bike','Airplane','Ship','Airplane'])
Display the index −
print("Pandas... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "To indicate all duplicate index values as True, use the index.duplicated(). Use the keep parameter with the value False."
},
{
"code": null,
"e": 1225,
"s": 1183,
"text": "At first, import the required libraries −"
},
{
"code... |
NHibernate - Relationships | In this chapter, we will look at relationships in NHibernate. Let's turn our attention to how we can understand relationships in NHibernate. The easiest way is to think about the relationships from the database perspective.
We will first create a new application in which we will create some relationships among the cust... | [
{
"code": null,
"e": 2557,
"s": 2333,
"text": "In this chapter, we will look at relationships in NHibernate. Let's turn our attention to how we can understand relationships in NHibernate. The easiest way is to think about the relationships from the database perspective."
},
{
"code": null,
... |
Write a program to find the first non-repeating number in an integer array using Java? | To find the first non-repeating number in an array −
Construct count array to store count of each element in the given array with same length and with initial value 0 for all elements.
Compare each element in the array with all other elements, except itself.
If match occurs increment its value in the count array.
Get t... | [
{
"code": null,
"e": 1115,
"s": 1062,
"text": "To find the first non-repeating number in an array −"
},
{
"code": null,
"e": 1247,
"s": 1115,
"text": "Construct count array to store count of each element in the given array with same length and with initial value 0 for all element... |
How to Add a Boolean Datatype Column to an Existing Table in SQL? - GeeksforGeeks | 21 Nov, 2021
In SQL Server, a Boolean Datatype can be created by means of keeping BIT datatype. Though it is a numeric datatype, it can accept either 0 or 1 or NULL values only. Hence easily we can assign FALSE values to 0 and TRUE values to 1. This will provide the boolean nature for a data type.
Regarding the storag... | [
{
"code": null,
"e": 24188,
"s": 24160,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 24475,
"s": 24188,
"text": "In SQL Server, a Boolean Datatype can be created by means of keeping BIT datatype. Though it is a numeric datatype, it can accept either 0 or 1 or NULL values only... |
All You Need to Know to Secure Apps with CloudFront Functions And S3 | by Stefan Nastic | Towards Data Science | Currently Amazon S3 and CloudFront are some of the best cloud services for delivering production-ready SPAs, such as Angular apps, Vue apps or React apps. Unfortunately, by default, S3 and CloudFront don’t have all security features enabled, needed to run such SPA frontend apps in production.
Recently, we have launched... | [
{
"code": null,
"e": 465,
"s": 171,
"text": "Currently Amazon S3 and CloudFront are some of the best cloud services for delivering production-ready SPAs, such as Angular apps, Vue apps or React apps. Unfortunately, by default, S3 and CloudFront don’t have all security features enabled, needed to run... |
Apache Commons Collections - Quick Guide | Commons Collections augments Java Collections Framework. It provides several features to make collection handling easy. It provides many new interfaces, implementations and utilities.
The main features of Commons Collections are as follows −
Bag − Bag interfaces simplifies the collections, which have multiple number of... | [
{
"code": null,
"e": 2384,
"s": 2200,
"text": "Commons Collections augments Java Collections Framework. It provides several features to make collection handling easy. It provides many new interfaces, implementations and utilities."
},
{
"code": null,
"e": 2442,
"s": 2384,
"text":... |
How to add display:none in an HTML element using jQuery? | To workaround with display: none in an element in jQuery, use the hide() method. It will do the same work.
You can try to run the following code to learn how to add display:none in an HTML element −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "To workaround with display: none in an element in jQuery, use the hide() method. It will do the same work."
},
{
"code": null,
"e": 1261,
"s": 1169,
"text": "You can try to run the following code to learn how to add display:none in a... |
How to upsample a matrix by repeating elements using NumPy in Python? | 03 Jan, 2021
Prerequisites: Numpy
Upsampling a matrix simply means expanding it and obviously upsampling can be done by adding more elements to the original matrix. It can be done in various ways like adding new elements and expanding the original matrix or it can be done by the matrix elements of original matrix itsel... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 49,
"s": 28,
"text": "Prerequisites: Numpy"
},
{
"code": null,
"e": 413,
"s": 49,
"text": "Upsampling a matrix simply means expanding it and obviously upsampling can be done by a... |
Python Program to print all Possible Combinations from the three Digits | 29 Aug, 2020
Given 3 digits a, b, and c. The task is to find all the possible combinations from these digits.
Examples:
Input: [1, 2, 3]
Output:
1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1
Input: [0, 9, 5]
Output:
0 9 5
0 5 9
9 0 5
9 5 0
5 0 9
5 9 0
Method 1: Brute force or Naive approach
The naive approach is to run 3 loops... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 151,
"s": 54,
"text": "Given 3 digits a, b, and c. The task is to find all the possible combinations from these digits."
},
{
"code": null,
"e": 161,
"s": 151,
"text": "Examples... |
GATE | GATE-CS-2016 (Set 2) | Question 61 | 28 Jun, 2021
Consider the following database schedule with two transactions, T1 and T2.
S = r2(X); r1(X); r2(Y); w1(X); r1(Y); w2(X); a1; a2;
where ri(Z) denotes a read operation by transaction Ti on a variable Z, wi(Z) denotes a write operation by Ti on a variable Z and ai denotes an abort by transaction Ti .Which one... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 127,
"s": 52,
"text": "Consider the following database schedule with two transactions, T1 and T2."
},
{
"code": null,
"e": 181,
"s": 127,
"text": "S = r2(X); r1(X); r2(Y); w1(X)... |
Sum of LCM(1, n), LCM(2, n), LCM(3, n), ... , LCM(n, n) | 21 Jun, 2022
Given an integer n, the task is to find the sum:
LCM(1, n) + LCM(2, n) + LCM(3, n) + ... + LCM(n, n) where LCM(i, n) is the Least Common Multiple of i and n.
Examples:
Input: 3 Output: 10 LCM(1, 3) + LCM(2, 3) + LCM(3, 3) = 3 + 6 + 3 = 12
Input: 5 Output: 55 LCM(1, 5) + LCM(2, 5) + LCM(3, 5) + LCM(4, 5... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 102,
"s": 52,
"text": "Given an integer n, the task is to find the sum: "
},
{
"code": null,
"e": 212,
"s": 102,
"text": "LCM(1, n) + LCM(2, n) + LCM(3, n) + ... + LCM(n, n) whe... |
proc file system in Linux | 03 Dec, 2021
Proc file system (procfs) is virtual file system created on fly when system boots and is dissolved at time of system shut down.
It contains useful information about the processes that are currently running, it is regarded as control and information center for kernel.
The proc file system also provides comm... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "Proc file system (procfs) is virtual file system created on fly when system boots and is dissolved at time of system shut down."
},
{
"code": null,
"e": 320,
... |
Minimum insertions to form shortest palindrome | 28 Jun, 2022
Given a string S, determine the least number of characters that should be added on to the left side of S so that the complete string becomes a palindrome.
Examples:
Input: S = "LOL"
Output: 0
LOL is already a palindrome
Input: S = "JAVA"
Output: 3
We need to add 3 characters to form AVAJAVA.
The idea is... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 210,
"s": 54,
"text": "Given a string S, determine the least number of characters that should be added on to the left side of S so that the complete string becomes a palindrome. "
},
{
"cod... |
statsmodels.jarque_bera() in Python | 26 Mar, 2020
With the help of statsmodels.jarque_bera() method, we can get the jarque bera test for normality and it’s a test based on skewness, and the kurtosis, and has an asymptotic distribution.
Syntax : statsmodels.jarque_bera(residual, axis)Return : Return the jarque bera test statistics, pvalue, skewness, and th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 214,
"s": 28,
"text": "With the help of statsmodels.jarque_bera() method, we can get the jarque bera test for normality and it’s a test based on skewness, and the kurtosis, and has an asymptotic dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.