title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Inter Process Communication - Signals | A signal is a notification to a process indicating the occurrence of an event. Signal is also called software interrupt and is not predictable to know its occurrence, hence it is also called an asynchronous event.
Signal can be specified with a number or a name, usually signal names start with SIG. The available signal... | [
{
"code": null,
"e": 2085,
"s": 1871,
"text": "A signal is a notification to a process indicating the occurrence of an event. Signal is also called software interrupt and is not predictable to know its occurrence, hence it is also called an asynchronous event."
},
{
"code": null,
"e": 22... |
Spring MVC with JSP View - GeeksforGeeks | 28 Mar, 2019
Spring MVC architecture uses the “FrontController” design pattern which is fundamental to any MVC design implementation. The DispatcherServlet is at the heart of this design whereby HTTP requests are delegated to the controller, views are resolved to the underlying view technology, in addition to providing... | [
{
"code": null,
"e": 24287,
"s": 24259,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 24725,
"s": 24287,
"text": "Spring MVC architecture uses the “FrontController” design pattern which is fundamental to any MVC design implementation. The DispatcherServlet is at the heart of t... |
base64.urlsafe_b64decode(s) in Python - GeeksforGeeks | 26 Mar, 2020
With the help of base64.urlsafe_b64decode() method, we can decode the binary string using url and file system safe alphabets into normal form of strings.
Syntax : base64.urlsafe_b64decode(b_string)
Return : Return the decoded string.
Example #1 :In this example we can see that by using base64.urlsafe_b64de... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24055,
"s": 23901,
"text": "With the help of base64.urlsafe_b64decode() method, we can decode the binary string using url and file system safe alphabets into normal form of strings."
},
{... |
How to plot Likert scales with a weighted survey in a dplyr friendly way | by Francisco Suárez Salas | Towards Data Science | If you have worked with Likert scale visualizations in R, probably you know the Likert package by Jason Bryer. Although this is a wonderful package, its capabilities when working with weighted surveys are limited. When looking for a workaround, I found this great post that explained the process but using a lot of base ... | [
{
"code": null,
"e": 760,
"s": 171,
"text": "If you have worked with Likert scale visualizations in R, probably you know the Likert package by Jason Bryer. Although this is a wonderful package, its capabilities when working with weighted surveys are limited. When looking for a workaround, I found th... |
X-Macros in C - GeeksforGeeks | 16 Apr, 2019
X-Macros are based on the property of nested macros and the ability to define macros inside other macros. X-Macros are very powerful pre-processor technique in the sense that it can create a self-maintaining and inter-dependent piece of code. When the change of one part of a program leads to a change in an... | [
{
"code": null,
"e": 25605,
"s": 25577,
"text": "\n16 Apr, 2019"
},
{
"code": null,
"e": 25969,
"s": 25605,
"text": "X-Macros are based on the property of nested macros and the ability to define macros inside other macros. X-Macros are very powerful pre-processor technique in the... |
HTML | DOM after() Method - GeeksforGeeks | 05 Jun, 2020
The after() method is used to insert a set of Node objects or HTML DOMString objects in the children list of the ChildNode’s parent. The element is inserted after the ChildNode that we mentioned.
Syntax:
ChildNode.after(Node or DOMString)
Parameter: This method accepts single parameter as mentioned above a... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 26335,
"s": 26139,
"text": "The after() method is used to insert a set of Node objects or HTML DOMString objects in the children list of the ChildNode’s parent. The element is inserted after ... |
SVG <animate> Element - GeeksforGeeks | 31 Mar, 2022
SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas.
The <animate> SVG element is used to animate an attribute or property of an element over time. It’s normally inserted inside the element which we want to animate.
Syntax:
<animate attributeName="" va... | [
{
"code": null,
"e": 29899,
"s": 29871,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 30007,
"s": 29899,
"text": "SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas."
},
{
"code": null,
"e": 30170,
"s": 30... |
HTML Interview Questions Set - 1 - GeeksforGeeks | 10 May, 2022
This article will cover the most frequently asked interview questions in HTML. Before we proceed to know the questions, we will first know about the HTML. HTML stands for HyperText Markup Language which is used to design web pages using the markup language. HTML is the combination of Hypertext and Markup l... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n10 May, 2022"
},
{
"code": null,
"e": 26825,
"s": 26139,
"text": "This article will cover the most frequently asked interview questions in HTML. Before we proceed to know the questions, we will first know about the HTML. HTML sta... |
How to find all elements that are disabled in jQuery ? - GeeksforGeeks | 13 Apr, 2021
In this article, we will learn how to find all elements on the page that are disabled using jQuery.
Approach: The :disabled selector can be used to get all elements on the page that are currently disabled. These elements are iterated over using the each() method. The elements can then be individually acces... | [
{
"code": null,
"e": 26202,
"s": 26174,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 26302,
"s": 26202,
"text": "In this article, we will learn how to find all elements on the page that are disabled using jQuery."
},
{
"code": null,
"e": 26580,
"s": 26302,
... |
Python SQLite - JOIN Clause - GeeksforGeeks | 23 May, 2021
In this article, we discuss the JOIN clause in SQLite using the sqlite3 module in Python. But at first let’s see a brief about join in SQLite.
A JOIN clause combines the records from two tables on the basis of common attributes. The different types of joins are as follows:
INNER JOIN (OR JOIN) – Gives the... | [
{
"code": null,
"e": 25573,
"s": 25545,
"text": "\n23 May, 2021"
},
{
"code": null,
"e": 25716,
"s": 25573,
"text": "In this article, we discuss the JOIN clause in SQLite using the sqlite3 module in Python. But at first let’s see a brief about join in SQLite."
},
{
"code"... |
Python: Check if a directory is empty - GeeksforGeeks | 29 Dec, 2020
Python is a widely used general-purpose, high-level programming language. It provides many functionalities and one among them is checking whether a directory is empty or not. This can be achieved by using os module. The OS module in Python provides functions for interacting with the operating system. OS co... | [
{
"code": null,
"e": 25499,
"s": 25471,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 26022,
"s": 25499,
"text": "Python is a widely used general-purpose, high-level programming language. It provides many functionalities and one among them is checking whether a directory is em... |
Automate WhatsApp Messages With Python using Pywhatkit module - GeeksforGeeks | 26 Oct, 2021
We can automate a Python script to send WhatsApp messages. In this article, we will learn the easiest ways using pywhatkit module that the website web.whatsapp.com uses to automate the sending of messages to any WhatsApp number.
pywhatkit is a python module for sending Whatsapp messages at a certain time. ... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n26 Oct, 2021"
},
{
"code": null,
"e": 25792,
"s": 25563,
"text": "We can automate a Python script to send WhatsApp messages. In this article, we will learn the easiest ways using pywhatkit module that the website web.whatsapp.com... |
Using class to implement Vector Quantities in C++ - GeeksforGeeks | 20 Jun, 2018
A Vector Quantity is a Quantity which possesses both magnitude as well as direction. Here, magnitude is simply the amount or size of the quantity and direction is where the quantity is headed. For example, consider the statement “Go 20 miles north”. In the above statement 20 is the magnitude and North is t... | [
{
"code": null,
"e": 25367,
"s": 25339,
"text": "\n20 Jun, 2018"
},
{
"code": null,
"e": 25688,
"s": 25367,
"text": "A Vector Quantity is a Quantity which possesses both magnitude as well as direction. Here, magnitude is simply the amount or size of the quantity and direction is ... |
set emplace_hint() function in C++ STL - GeeksforGeeks | 10 Jul, 2018
The set::emplace_hint() is a built-in function in C++ STL which inserts a new element in the set. A position is passed in the parameter of the function which acts as a hint from where the searching operation starts before inserting the element at its current position. The position only helps the process to... | [
{
"code": null,
"e": 25369,
"s": 25341,
"text": "\n10 Jul, 2018"
},
{
"code": null,
"e": 25827,
"s": 25369,
"text": "The set::emplace_hint() is a built-in function in C++ STL which inserts a new element in the set. A position is passed in the parameter of the function which acts ... |
Python | Pandas DataFrame.to_xarray - GeeksforGeeks | 21 Feb, 2019
Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). Arithmetic operations align on both row and column labels. It can be thought of as a dict-like container for Series objects. This is the primary data structure of the P... | [
{
"code": null,
"e": 26127,
"s": 26099,
"text": "\n21 Feb, 2019"
},
{
"code": null,
"e": 26441,
"s": 26127,
"text": "Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). Arithmetic operations al... |
Recursive Program to find Factorial of a large number - GeeksforGeeks | 22 Dec, 2021
Given a large number N, task is to find the factorial of N using recursion.
Factorial of a non-negative integer is the multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720.
Examples:
Input : N = 100Output : 933262154439441526816992388562667004-90... | [
{
"code": null,
"e": 25937,
"s": 25909,
"text": "\n22 Dec, 2021"
},
{
"code": null,
"e": 26013,
"s": 25937,
"text": "Given a large number N, task is to find the factorial of N using recursion."
},
{
"code": null,
"e": 26171,
"s": 26013,
"text": "Factorial of a... |
How to Install XGBoost and LightGBM on MacOS? - GeeksforGeeks | 18 Oct, 2021
In this article, we will learn how to install XGBoost and LightGBM in Python on macOS. XGBoost is an open-source software library that provides a regularizing gradient boosting framework for C++, Java, Python, R, Julia, Perl, and Scala.
LightGBM, short for Light Gradient Boosting Machine, is a free and ope... | [
{
"code": null,
"e": 26197,
"s": 26169,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 26434,
"s": 26197,
"text": "In this article, we will learn how to install XGBoost and LightGBM in Python on macOS. XGBoost is an open-source software library that provides a regularizing grad... |
CSS | grid-gap Property - GeeksforGeeks | 12 Apr, 2021
The grid-gap property sets the size of the gap between the rows and columns in a grid layout. It is a shorthand property for the following properties:
grid-column-gap propertygrid-row-gap property
grid-column-gap property
grid-row-gap property
Syntax:
grid-gap: grid-row-gap grid-column-gap;
Property Va... | [
{
"code": null,
"e": 24895,
"s": 24867,
"text": "\n12 Apr, 2021"
},
{
"code": null,
"e": 25048,
"s": 24895,
"text": "The grid-gap property sets the size of the gap between the rows and columns in a grid layout. It is a shorthand property for the following properties: "
},
{
... |
List remove() function in C++ STL | In this article we will be discussing the working, syntax and examples of remove() function in C++.
List is a data structure that allows constant time insertion and deletion anywhere in sequence. Lists are implemented as doubly linked lists. Lists allow non-contiguous memory allocation. List perform better insertion ex... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "In this article we will be discussing the working, syntax and examples of remove() function in C++."
},
{
"code": null,
"e": 1647,
"s": 1162,
"text": "List is a data structure that allows constant time insertion and deletion anywhere... |
Copy-and-Swap Idiom in C++ - GeeksforGeeks | 30 May, 2018
Before going into deep let us first have a look on the normal ‘overloaded assignment operator’ that we use.
// Simple C++ program to demonstrate overloading of// assignment operator.#include <iostream>#include <cstring>using namespace std; class anyArrayClass{ int size; int *ptr;public: // Init... | [
{
"code": null,
"e": 25369,
"s": 25341,
"text": "\n30 May, 2018"
},
{
"code": null,
"e": 25477,
"s": 25369,
"text": "Before going into deep let us first have a look on the normal ‘overloaded assignment operator’ that we use."
},
{
"code": "// Simple C++ program to demonst... |
DBSCAN Python Example: The Optimal Value For Epsilon (EPS) | by Cory Maklin | Towards Data Science | DBSCAN, or Density-Based Spatial Clustering of Applications with Noise, is an unsupervised machine learning algorithm. Unsupervised machine learning algorithms are used to classify unlabeled data. In other words, the samples used to train our model do not come with predefined categories. In comparison to other clusteri... | [
{
"code": null,
"e": 570,
"s": 172,
"text": "DBSCAN, or Density-Based Spatial Clustering of Applications with Noise, is an unsupervised machine learning algorithm. Unsupervised machine learning algorithms are used to classify unlabeled data. In other words, the samples used to train our model do not... |
ZoneOffset ofTotalSeconds(int) method in Java with Examples - GeeksforGeeks | 11 Dec, 2018
The ofTotalSeconds(int) method of ZoneOffset Class in java.time package is used to obtain an instance of ZoneOffset using the offset in totalSeconds passed as the parameter. This method takes the totalSeconds as parameter in the form of int and converts it into the ZoneOffset.
Syntax:
public static ZoneOff... | [
{
"code": null,
"e": 25347,
"s": 25319,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 25625,
"s": 25347,
"text": "The ofTotalSeconds(int) method of ZoneOffset Class in java.time package is used to obtain an instance of ZoneOffset using the offset in totalSeconds passed as the ... |
The length of a string using pointers - GeeksforGeeks | 11 Jan, 2018
Write a program to find the length of a string using pointers .
Examples:
Input : given_string = "geeksforgeeks"
Output : length of the string = 13
Input : given_string = "coding"
Output : length of the string = 6
Prerequisite : Pointer in C
Approach Used : In this program we make use of * operator. The ... | [
{
"code": null,
"e": 24330,
"s": 24302,
"text": "\n11 Jan, 2018"
},
{
"code": null,
"e": 24394,
"s": 24330,
"text": "Write a program to find the length of a string using pointers ."
},
{
"code": null,
"e": 24404,
"s": 24394,
"text": "Examples:"
},
{
"c... |
Largest divisible pairs subset - GeeksforGeeks | 21 Apr, 2021
Given an array of n distinct elements, find length of the largest subset such that every pair in the subset is such that the larger element of the pair is divisible by smaller element.
Examples:
Input : arr[] = {10, 5, 3, 15, 20}
Output : 3
Explanation: The largest subset is 10, 5, 20.
10 is divisible ... | [
{
"code": null,
"e": 26235,
"s": 26207,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 26421,
"s": 26235,
"text": "Given an array of n distinct elements, find length of the largest subset such that every pair in the subset is such that the larger element of the pair is divisibl... |
Functions in PL/SQL - GeeksforGeeks | 05 Apr, 2018
A function can be used as a part of SQL expression i.e. we can use them with select/update/merge commands. One most important characteristic of a function is that unlike procedures, it must return a value.
Syntax to create a function:
CREATE [OR REPLACE] FUNCTION function_name
[(parameter_name type [, ..... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n05 Apr, 2018"
},
{
"code": null,
"e": 25743,
"s": 25537,
"text": "A function can be used as a part of SQL expression i.e. we can use them with select/update/merge commands. One most important characteristic of a function is that ... |
How to use express in typescript ? - GeeksforGeeks | 27 Jan, 2022
In this article, we will see how to use Express in TypeScript. The TypeScript is a superset of JavaScript that provides type notation with the JavaScript, so we can handle our server, and very scalable for the future. Express is web framework helps to create server-side handling with the help of Nodejs
Pre... | [
{
"code": null,
"e": 26941,
"s": 26913,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 27245,
"s": 26941,
"text": "In this article, we will see how to use Express in TypeScript. The TypeScript is a superset of JavaScript that provides type notation with the JavaScript, so we ca... |
Generate all binary strings of length n with sub-string "01" appearing exactly twice - GeeksforGeeks | 09 Jun, 2021
Given an integer N, the task is to generate all possible binary strings of length N which contain “01” as the sub-string exactly twice.
Examples:
Input: N = 4 Output: 0101 “0101” is the only binary string of length 4 that contains “01” exactly twice as the sub-string.
Input: N = 5 Output: 00101 01001 0101... | [
{
"code": null,
"e": 26455,
"s": 26427,
"text": "\n09 Jun, 2021"
},
{
"code": null,
"e": 26591,
"s": 26455,
"text": "Given an integer N, the task is to generate all possible binary strings of length N which contain “01” as the sub-string exactly twice."
},
{
"code": null,... |
Python Pandas - DataFrame | A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns.
Potentially columns are of different types
Size – Mutable
Labeled axes (rows and columns)
Can Perform Arithmetic operations on rows and columns
Let us assume that we are creating a data frame with student’s... | [
{
"code": null,
"e": 2557,
"s": 2443,
"text": "A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns."
},
{
"code": null,
"e": 2600,
"s": 2557,
"text": "Potentially columns are of different types"
},
{
"code": nul... |
Diamond operator for Anonymous Inner Class with Examples in Java - GeeksforGeeks | 16 Jan, 2020
Prerequisite: Anonymous Inner Class
Diamond Operator: Diamond operator was introduced in Java 7 as a new feature.The main purpose of the diamond operator is to simplify the use of generics when creating an object. It avoids unchecked warnings in a program and makes the program more readable. The diamond op... | [
{
"code": null,
"e": 24666,
"s": 24638,
"text": "\n16 Jan, 2020"
},
{
"code": null,
"e": 24702,
"s": 24666,
"text": "Prerequisite: Anonymous Inner Class"
},
{
"code": null,
"e": 25235,
"s": 24702,
"text": "Diamond Operator: Diamond operator was introduced in J... |
Angular 7 | Angular Data Services using Observable - GeeksforGeeks | 06 Oct, 2020
Observables
Observable manage async data and a few other useful patterns. Observables are similar to Promises but with a few key differences. Unlike Promises, Observables emit multiple values over time. In real scenarios, web socket or real-time based data or event handlers can emit multiple values over a... | [
{
"code": null,
"e": 24485,
"s": 24457,
"text": "\n06 Oct, 2020"
},
{
"code": null,
"e": 24498,
"s": 24485,
"text": "Observables "
},
{
"code": null,
"e": 25442,
"s": 24498,
"text": "Observable manage async data and a few other useful patterns. Observables are... |
Python - Filter the List of String whose index in second List contains the given Substring - GeeksforGeeks | 17 Dec, 2021
Given two lists, extract all elements from the first list, whose corresponding index in the second list contains the required substring.
Examples:
Input : test_list1 = [“Gfg”, “is”, “not”, “best”, “and”, “not”, “CS”], test_list2 = [“Its ok”, “all ok”, “wrong”, “looks ok”, “ok”, “wrong”, “thats ok”], sub_st... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 24429,
"s": 24292,
"text": "Given two lists, extract all elements from the first list, whose corresponding index in the second list contains the required substring."
},
{
"code": null... |
C# | Insert into OrderedDictionary with key and value at specified index - GeeksforGeeks | 01 Feb, 2019
OrderedDictionary.Insert(Int32, Object, Object) method is used to insert a new entry into the OrderedDictionary collection with the specified key and value at the specified index.
Syntax:
public void Insert (int index, object key, object value);
Parameters:
index : It is the zero-based index at which the ... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24482,
"s": 24302,
"text": "OrderedDictionary.Insert(Int32, Object, Object) method is used to insert a new entry into the OrderedDictionary collection with the specified key and value at the ... |
Binary Search Trees in Data Structures | The binary search trees are binary tree which has some properties. These properties are like below −
Every Binary Search Tree is a binary tree
Every left child will hold lesser value than root
Every right child will hold greater value than root
Ideal binary search tree will not hold same value twice.
Suppose we have on... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "The binary search trees are binary tree which has some properties. These properties are like below −"
},
{
"code": null,
"e": 1205,
"s": 1163,
"text": "Every Binary Search Tree is a binary tree"
},
{
"code": null,
"e": 12... |
How to set default text for a Tkinter Entry widget? | Tkinter Entry widget is used to print and display a single line of text taken from the user Input. It is used for many applications such as creating login forms, signup forms, and other user interaction forms.
We can set the default text for the Entry Widget using insert() function by passing the default text as the ar... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "Tkinter Entry widget is used to print and display a single line of text taken from the user Input. It is used for many applications such as creating login forms, signup forms, and other user interaction forms."
},
{
"code": null,
"e": 1390,
... |
Multiply values of two columns and display it a new column in MySQL? | Let us first create a table −
mysql> create table DemoTable
-> (
-> NumberOfItems int,
-> Amount int
-> );
Query OK, 0 rows affected (0.57 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(4,902);
Query OK, 1 row affected (0.45 sec)
mysql> insert into DemoTabl... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1218,
"s": 1092,
"text": "mysql> create table DemoTable\n -> (\n -> NumberOfItems int,\n -> Amount int\n -> );\nQuery OK, 0 rows affected (0.57 sec)"
},
{
"code":... |
Using Multiple Table Updates | In the previous chapter, we have discussed about how to use multiple tables. So we proceed a step further and learn multiple table updates in this chapter.
Using SQLAlchemy’s table object, more than one table can be specified in WHERE clause of update() method. The PostgreSQL and Microsoft SQL Server support UPDATE sta... | [
{
"code": null,
"e": 2496,
"s": 2340,
"text": "In the previous chapter, we have discussed about how to use multiple tables. So we proceed a step further and learn multiple table updates in this chapter."
},
{
"code": null,
"e": 2962,
"s": 2496,
"text": "Using SQLAlchemy’s table o... |
Convert string to integer/ float in Arduino | In order to convert a string to an integer or a float, the .toInt() and .toFloat() functions can be used. Of course, the string should actually correspond to the integer or floating-point value. For instance, "1.87" can be converted to float. But it doesn't make sense to convert "Hello" to float. The below example code... | [
{
"code": null,
"e": 1413,
"s": 1062,
"text": "In order to convert a string to an integer or a float, the .toInt() and .toFloat() functions can be used. Of course, the string should actually correspond to the integer or floating-point value. For instance, \"1.87\" can be converted to float. But it d... |
ASP.NET - Personalization | Web sites are designed for repeated visits from the users. Personalization allows a site to remember the user identity and other information details, and it presents an individualistic environment to each user.
ASP.NET provides services for personalizing a web site to suit a particular client's taste and preference.
AS... | [
{
"code": null,
"e": 2558,
"s": 2347,
"text": "Web sites are designed for repeated visits from the users. Personalization allows a site to remember the user identity and other information details, and it presents an individualistic environment to each user."
},
{
"code": null,
"e": 2665,... |
Finding Attribute Closure and Candidate Keys using Functional Dependencies | 06 Sep, 2021
A functional dependency X->Y in a relation holds if two tuples having same value for X also have same value for Y i.e X uniquely determines Y.
In EMPLOYEE relation given in Table 1,
FD E-ID->E-NAME holds because for each E-ID, there is a unique value of E-NAME.
FD E-ID->E-CITY and E-CITY->E-STATE also hol... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 196,
"s": 52,
"text": "A functional dependency X->Y in a relation holds if two tuples having same value for X also have same value for Y i.e X uniquely determines Y."
},
{
"code": null,
... |
Print all longest common sub-sequences in lexicographical order | 22 Jun, 2022
You are given two strings. Now you have to print all longest common sub-sequences in lexicographical order?Examples:
Input : str1 = "abcabcaa", str2 = "acbacba"
Output: ababa
abaca
abcba
acaba
acaca
acbaa
acbca
This problem is an extension of longest comm... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 171,
"s": 52,
"text": "You are given two strings. Now you have to print all longest common sub-sequences in lexicographical order?Examples: "
},
{
"code": null,
"e": 313,
"s": 171,... |
Loop or Iterate over all or certain columns of a dataframe in Python-Pandas | 30 Jun, 2021
In this article, we will discuss how to loop or Iterate overall or certain columns of a DataFrame? There are various methods to achieve this task.Let’s first create a Dataframe and see that : Code :
Python3
# import pandas packageimport pandas as pd # List of Tuplesstudents = [('Ankit', 22, 'A'), ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 253,
"s": 52,
"text": "In this article, we will discuss how to loop or Iterate overall or certain columns of a DataFrame? There are various methods to achieve this task.Let’s first create a Datafra... |
Metrics for the Design Model of the Product | 06 Jul, 2020
Metrics simply measures quantitative assessment that focuses on countable values most commonly used for comparing and tracking performance of system. Metrics are used in different scenarios like analyzing model, design model, source code, testing, and maintenance. Metrics for design modeling allows develop... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2020"
},
{
"code": null,
"e": 489,
"s": 52,
"text": "Metrics simply measures quantitative assessment that focuses on countable values most commonly used for comparing and tracking performance of system. Metrics are used in diff... |
Instance Initialization Block (IIB) in Java | 19 Feb, 2021
In a Java program, operations can be performed on methods, constructors and initialization blocks. Instance Initialization Blocks or IIB are used to initialize instance variables . So firstly, constructor is invoked and the java compiler copies the instance initializer block in the constructor after the fi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 440,
"s": 52,
"text": "In a Java program, operations can be performed on methods, constructors and initialization blocks. Instance Initialization Blocks or IIB are used to initialize instance varia... |
Second Best Minimum Spanning Tree | 23 Jul, 2021
Prerequisites – Graph, Spanning tree, Disjoint Set (Union – Find).
A minimum spanning tree (MST) T, for a given graph G, spans over all vertices of a given graph and has minimum weight sum of all edges, out of all the possible spanning trees.
Second best MST, T’, is a spanning tree with the second minimum... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 119,
"s": 52,
"text": "Prerequisites – Graph, Spanning tree, Disjoint Set (Union – Find)."
},
{
"code": null,
"e": 296,
"s": 119,
"text": "A minimum spanning tree (MST) T, for a... |
Stable QuickSort | 15 Jun, 2022
A sorting algorithm is said to be stable if it maintains the relative order of records in the case of equality of keys.
Input : (1, 5), (3, 2) (1, 2) (5, 4) (6, 4) We need to sort key-value pairs in the increasing order of keys of first digit There are two possible solution for the two pairs where the key... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 173,
"s": 52,
"text": "A sorting algorithm is said to be stable if it maintains the relative order of records in the case of equality of keys. "
},
{
"code": null,
"e": 868,
"s": 17... |
Static Block and main() method in Java | 20 Dec, 2018
In Java static block is used to initialize the static data members. Important point to note is that static block is executed before the main method at the time of class loading.
This is illustrated well in the following example:
// Java program to demonstrate that static // block is executed before main() ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Dec, 2018"
},
{
"code": null,
"e": 230,
"s": 52,
"text": "In Java static block is used to initialize the static data members. Important point to note is that static block is executed before the main method at the time of class loadi... |
Handling forms in React.js | Unlike other libraries like angular , forms in react need to handle by ourselves. There are two types of forms input in react
Controlled inputs
Uncontrolled inputs
Controlled components or elements are those which are handled by react functions. Example is updating the field on onChange function call. Most of the compo... | [
{
"code": null,
"e": 1313,
"s": 1187,
"text": "Unlike other libraries like angular , forms in react need to handle by ourselves. There are two types of forms input in react"
},
{
"code": null,
"e": 1331,
"s": 1313,
"text": "Controlled inputs"
},
{
"code": null,
"e": 1... |
MakeFile in C++ and its applications | In this tutorial, we will be discussing a program to understand MakeFile in C++ and its applications.
The task is to break the entire program with MakeFile. It is usually done by making .cpp files and .h files with all the classes/functionalities and link them together.
main.cpp
#include <bits/stdc++.h>
#include "funct... | [
{
"code": null,
"e": 1289,
"s": 1187,
"text": "In this tutorial, we will be discussing a program to understand MakeFile in C++ and its applications."
},
{
"code": null,
"e": 1458,
"s": 1289,
"text": "The task is to break the entire program with MakeFile. It is usually done by mak... |
How to Maintain Insertion Order While Getting Unique Values from ArrayList in Java? | 19 Jan, 2021
ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be slower than standard arrays but can be helpful in programs where lots of manipulation in the array is needed. This class is found in java.util package.
If we want t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 323,
"s": 28,
"text": "ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be slower than standard arrays but ... |
How to get the Azure VM available sizes using PowerShell? | To get the Azure VM sizes using PowerShell, we can use the Get-AzVmSize command.
To get all the supported Azure VM sizes as per location, use the below command.
PS C:\> Get-AzVMSize -Location Eastus
To get available and supported size for the existing virtual machine, use the below command.
Get-AzVMSize -ResourceGroupN... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To get the Azure VM sizes using PowerShell, we can use the Get-AzVmSize command."
},
{
"code": null,
"e": 1223,
"s": 1143,
"text": "To get all the supported Azure VM sizes as per location, use the below command."
},
{
"code":... |
Minimum changes to a string to make all substrings distinct - GeeksforGeeks | 27 May, 2021
Given a string, find minimum number of changes to it so that all substrings of the string become distinct.Examples :
Input : str = "aab"
Output : 1
If we change one instance of 'a'
to any character from 'c' to 'z',
we get all distinct substrings.
Input : str = "aa"
Output : 1
To make all substrings d... | [
{
"code": null,
"e": 24996,
"s": 24968,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 25115,
"s": 24996,
"text": "Given a string, find minimum number of changes to it so that all substrings of the string become distinct.Examples : "
},
{
"code": null,
"e": 25277,
... |
Compiler Design - Syntax Analysis | Syntax analysis or parsing is the second phase of a compiler. In this chapter, we shall learn the basic concepts used in the construction of a parser.
We have seen that a lexical analyzer can identify tokens with the help of regular expressions and pattern rules. But a lexical analyzer cannot check the syntax of a give... | [
{
"code": null,
"e": 2344,
"s": 2193,
"text": "Syntax analysis or parsing is the second phase of a compiler. In this chapter, we shall learn the basic concepts used in the construction of a parser."
},
{
"code": null,
"e": 2745,
"s": 2344,
"text": "We have seen that a lexical ana... |
How to convert primitive data into wrapper class using Java? | Java provides certain classes called wrapper classes in the java.lang package. The objects of these classes wrap primitive datatypes within them.
Using wrapper classes, you can also add primitive datatypes to various Collection objects such as ArrayList, HashMap etc. You can also pass primitive values over network usin... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "Java provides certain classes called wrapper classes in the java.lang package. The objects of these classes wrap primitive datatypes within them."
},
{
"code": null,
"e": 1401,
"s": 1208,
"text": "Using wrapper classes, you can also ... |
Deploy Neural Network with Flask, Docker and AWS Beanstalk | by Daniel Moraite | Towards Data Science | Part I: build the NN model, the Flask application and include Html, CSS, js for the voice recorder.
Part II: how to choose the right configuration for your Docker image.
Part III: deploy on AWS Elastic Beanstalk and how to adjust the voice recorder.
All the above contains common troubleshoots as well. Some of them you’... | [
{
"code": null,
"e": 272,
"s": 172,
"text": "Part I: build the NN model, the Flask application and include Html, CSS, js for the voice recorder."
},
{
"code": null,
"e": 342,
"s": 272,
"text": "Part II: how to choose the right configuration for your Docker image."
},
{
"c... |
Create “Weather-Proof” Validations for your Time Series Forecasting Model | by Rahulraj Singh | Towards Data Science | TIME TRAVEL!!— It is time to take our explorations to the next level and work on predicting outcomes that are dependent on time. Time Series is a sequence of data that is present in intervals of time. These intervals can be hourly, daily, weekly, or any quantifiable repetitive duration of time. A sequence of these obse... | [
{
"code": null,
"e": 557,
"s": 172,
"text": "TIME TRAVEL!!— It is time to take our explorations to the next level and work on predicting outcomes that are dependent on time. Time Series is a sequence of data that is present in intervals of time. These intervals can be hourly, daily, weekly, or any q... |
Add a character in the end to column values with MySQL SELECT? | For this, you need to perform concatenation using CONCAT().
Let us first create a table −
mysql> create table DemoTable766 (Name varchar(100));
Query OK, 0 rows affected (0.65 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable766 values('John');
Query OK, 1 row affected (0.12 sec)... | [
{
"code": null,
"e": 1122,
"s": 1062,
"text": "For this, you need to perform concatenation using CONCAT()."
},
{
"code": null,
"e": 1152,
"s": 1122,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1243,
"s": 1152,
"text": "mysql> create table D... |
How do we return multiple values in Python? | It is possible to return multiple values from a function in the form of tuple, list, dictionary or an object of a user defined class
Return as tuple
>>> def function():
a=10; b=10
return a,b
>>> x=function()
>>> type(x)
<class 'tuple'>
>>> x
(10, 10)
>>> x,y=function()
>>> x,y
(10, 10)
Return as list
>>> d... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "It is possible to return multiple values from a function in the form of tuple, list, dictionary or an object of a user defined class"
},
{
"code": null,
"e": 1211,
"s": 1195,
"text": "Return as tuple"
},
{
"code": null,
"... |
How to select month and year from dates in MySQL? | To select month and year in MySQL, you can use MONTH() and YEAR() method. Let us first create a table −
mysql> create table DemoTable
-> (
-> DueDate datetime
-> );
Query OK, 0 rows affected (0.90 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values('2019-01-21');
Qu... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "To select month and year in MySQL, you can use MONTH() and YEAR() method. Let us first create a table −"
},
{
"code": null,
"e": 1273,
"s": 1166,
"text": "mysql> create table DemoTable\n -> (\n -> DueDate datetime\n -> );\nQuer... |
Tryit Editor v3.7 | CSS Style Images
Tryit: Flip an image | [
{
"code": null,
"e": 26,
"s": 9,
"text": "CSS Style Images"
}
] |
How to validate an email id using regular expression in Python? | The following code validates any given email id using regex in Python
import re
s = 'manogna.neelam@tutorialspoint.com'
match = re.search(r'\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b', s, re.I)
print match.group()
This gives the output
manogna.neelam@tutorialspoint.com | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "The following code validates any given email id using regex in Python"
},
{
"code": null,
"e": 1275,
"s": 1132,
"text": "import re\ns = 'manogna.neelam@tutorialspoint.com'\nmatch = re.search(r'\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,... |
Arduino - doâ¦while loop | The do...while loop is similar to the while loop. In the while loop, the loop-continuation condition is tested at the beginning of the loop before performed the body of the loop. The do...while statement tests the loop-continuation condition after performed the loop body. Therefore, the loop body will be executed at le... | [
{
"code": null,
"e": 3200,
"s": 2870,
"text": "The do...while loop is similar to the while loop. In the while loop, the loop-continuation condition is tested at the beginning of the loop before performed the body of the loop. The do...while statement tests the loop-continuation condition after perfo... |
Julia break Keyword | Exiting from a loop in Julia - GeeksforGeeks | 26 Mar, 2020
Keywords in Julia are predefined words that have a definite meaning to the compiler. These keywords can’t be used to name variables.
'break' keyword in Julia is used to exit from a loop immediately. Whenever the break keyword is executed, the compiler immediately stops iterating over further values and sen... | [
{
"code": null,
"e": 25843,
"s": 25815,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 25976,
"s": 25843,
"text": "Keywords in Julia are predefined words that have a definite meaning to the compiler. These keywords can’t be used to name variables."
},
{
"code": null,
... |
Check if the door is open or closed - GeeksforGeeks | 23 Mar, 2021
Given n doors and n persons. The doors are numbered 1 to n and persons are given id’s numbered 1 to n. Each door can have only 2 status open and closed. Initially all the doors have status closed. Find the final status of all the doors if a person changes the current status of all the doors, i.e. if status... | [
{
"code": null,
"e": 24814,
"s": 24786,
"text": "\n23 Mar, 2021"
},
{
"code": null,
"e": 25594,
"s": 24814,
"text": "Given n doors and n persons. The doors are numbered 1 to n and persons are given id’s numbered 1 to n. Each door can have only 2 status open and closed. Initially ... |
ServiceNow - Development | ServiceNow provides a lot of inbuilt features and applications, which we can easily use to implement ITSM in any organisation. At the same time, there are business requirements to set up different processes and features. ServiceNow is highly customisable and developers can easily create applications and modules based o... | [
{
"code": null,
"e": 2156,
"s": 1778,
"text": "ServiceNow provides a lot of inbuilt features and applications, which we can easily use to implement ITSM in any organisation. At the same time, there are business requirements to set up different processes and features. ServiceNow is highly customisabl... |
Types of Communications in IOT | 05 May, 2021
Prerequisite – Introduction to Internet of Things (IoT)
IOT Communication :IoT is connection of devices over internet, where these smart devices communicate with each other , exchange data , perform some tasks without any human involvement. These devices are embedded with electronics, software, network and... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 84,
"s": 28,
"text": "Prerequisite – Introduction to Internet of Things (IoT)"
},
{
"code": null,
"e": 545,
"s": 84,
"text": "IOT Communication :IoT is connection of devices over... |
Last Minute Notes – Engineering Mathematics | 27 Dec, 2021
See Last Minute Notes on all subjects here.
A matrix represents a collection of numbers arranged in an order of rows and columns. It is necessary to enclose the elements of a matrix in parentheses or brackets. A matrix with 9 elements is shown below.
This Matrix [M] has 3 rows and 3 columns. Each element... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 99,
"s": 54,
"text": "See Last Minute Notes on all subjects here. "
},
{
"code": null,
"e": 307,
"s": 99,
"text": "A matrix represents a collection of numbers arranged in an ord... |
Lexicographical smallest alternate Array | 13 Jun, 2022
Given an array arr[] of distinct elements, the task is to rearrange the array such that it is lexicographically smallest and of the form arr[0] > arr[1] < arr[2] > arr[3] < ...Examples:
Input: arr[] = {3, 2, 1, 4, 5} Output: 2 1 4 3 5Input: arr[] = {10, 22} Output: 22 10
Approach: In order to get the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "Given an array arr[] of distinct elements, the task is to rearrange the array such that it is lexicographically smallest and of the form arr[0] > arr[1] < arr[2] > arr[3] < ..... |
Map keySet() Method in Java with Examples | 08 Sep, 2020
This method is used to return a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.
Syntax:
Set keySet()
Parameters: This method has no argument.
Returns: This method returns a set containing keys of the specified map.
Be... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Sep, 2020"
},
{
"code": null,
"e": 198,
"s": 28,
"text": "This method is used to return a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa."
},... |
How to Integrate Paytm Test API in Node.js ? | 26 May, 2021
Paytm stands for Pay through mobile is used for online transactions. We can integrate it with our node.js application using Paytm developer API.
This API can be used for testing as well as for development purposes. There are two methods for doing so: Test API and Production API. Production API will only w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 173,
"s": 28,
"text": "Paytm stands for Pay through mobile is used for online transactions. We can integrate it with our node.js application using Paytm developer API."
},
{
"code": null,
... |
Maximum XOR of Two Numbers in an Array | Set 2 | 20 Jun, 2022
Given an array arr[] consisting of N integers, the task is to find the maximum Bitwise XOR from all the possible pairs in the given array.
Examples:
Input: arr[] = {25, 10, 2, 8, 5, 3}Output: 28Explanation:The maximum result is 5^25 = 28.
Input: arr[] = {1, 2, 3, 4, 5, 6, 7}Output: 7Explanation:The maximum... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 191,
"s": 52,
"text": "Given an array arr[] consisting of N integers, the task is to find the maximum Bitwise XOR from all the possible pairs in the given array."
},
{
"code": null,
"e"... |
unordered_set erase() function in C++ STL | 18 Nov, 2021
The unordered_set::erase() function is a built-in function in C++ STL which is used to remove either a single element or a group of elements ranging from start(inclusive) to end(exclusive). This decreases the size of a container by the number of elements removed.Note: Buckets in unordered_set are numbered ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Nov, 2021"
},
{
"code": null,
"e": 456,
"s": 52,
"text": "The unordered_set::erase() function is a built-in function in C++ STL which is used to remove either a single element or a group of elements ranging from start(inclusive) to ... |
numpy.nansum() in Python | 28 Nov, 2018
numpy.nansum()function is used when we want to compute the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero.
Syntax : numpy.nansum(arr, axis=None, dtype=None, out=None, keepdims=’no value’)
Parameters :arr : [array_like] Array containing numbers whose sum is desired. If arr is ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 166,
"s": 28,
"text": "numpy.nansum()function is used when we want to compute the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero."
},
{
"code": null,
"e": ... |
How Linkers Resolve Global Symbols Defined at Multiple Places? | 16 Jun, 2022
At compile time, the compiler exports each global symbol to the assembler as either strong or weak, and the assembler encodes this information implicitly in the symbol table of the relocatable object file. Functions and initialized global variables get strong symbols. Uninitialized global variables get wea... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 480,
"s": 54,
"text": "At compile time, the compiler exports each global symbol to the assembler as either strong or weak, and the assembler encodes this information implicitly in the symbol table ... |
Redis - Hash Hgetall Command | Redis HGETALL command is used to get all the fields and values of the hash stored at the key. In the returned value, every field name is followed by its value, so the length of the reply is twice the size of the hash.
Array reply, list of fields and their values stored in the hash, or an empty list when the key does no... | [
{
"code": null,
"e": 2397,
"s": 2179,
"text": "Redis HGETALL command is used to get all the fields and values of the hash stored at the key. In the returned value, every field name is followed by its value, so the length of the reply is twice the size of the hash."
},
{
"code": null,
"e"... |
How to disable a button in jQuery dialog from a function ? | 27 Sep, 2021
The basic dialog window is an overlay positioned within the viewport and is protected from page content which is jQuery’s User Interface. To disable the button in a jQuery dialog from a function carried using jQuery based on the following approaches.
Approach 1:
In UI Dialog box, button as default class... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 280,
"s": 28,
"text": "The basic dialog window is an overlay positioned within the viewport and is protected from page content which is jQuery’s User Interface. To disable the button in a jQuery dia... |
How to Use Singleton Pattern for Room Database in Android? | 15 Oct, 2021
Prerequisite:
Room database in Android
Singleton pattern
Room is one of the Jetpack Architecture Components in Android. This provides an abstract layer over the SQLite Database to save and perform the operations on persistent data locally. This is recommended by Google over SQLite Database although the SQL... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n15 Oct, 2021"
},
{
"code": null,
"e": 67,
"s": 53,
"text": "Prerequisite:"
},
{
"code": null,
"e": 92,
"s": 67,
"text": "Room database in Android"
},
{
"code": null,
"e": 110,
"s": 92,
"text": "S... |
Why use Question mark in TypeScript variable ? | 30 Jan, 2020
Question marks on TypeScript variable are used to mark that variable as an optional variable. If we put the question mark when declaring a variable that variable becomes optional. The optional parameters will have value as undefined when unused.
syntax:
function A(x?: number) {
// Function_body
}
Belo... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jan, 2020"
},
{
"code": null,
"e": 298,
"s": 52,
"text": "Question marks on TypeScript variable are used to mark that variable as an optional variable. If we put the question mark when declaring a variable that variable becomes opti... |
Python | Conversion to N*N tuple matrix | 30 Dec, 2020
Sometimes, while working with data, we can have a problem in which we have data in form of tuple Matrix with uneven length rows. In this case there’s a requirement to complete the N*N matrix with a default value. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using loop + * ope... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 305,
"s": 28,
"text": "Sometimes, while working with data, we can have a problem in which we have data in form of tuple Matrix with uneven length rows. In this case there’s a requirement to complete... |
Matplotlib.figure.Figure.add_axes() in Python | 30 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Apr, 2020"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a... |
Bash shell script to find sum of digits | 18 Aug, 2021
Given a number Num, find the sum of digits of the number.Examples:
Input :
444
Output :
sum of digits of 444 is : 12
Input :
34
Output :
sum of digits of 34 is : 7
Approach:
1. Divide the number into single digits
2. Find the sum of digits .
Bash
# !/bin/bash # Program to find sum# of digits # Static i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 121,
"s": 52,
"text": "Given a number Num, find the sum of digits of the number.Examples: "
},
{
"code": null,
"e": 220,
"s": 121,
"text": "Input : \n444\nOutput :\nsum of digi... |
TCP and UDP server using select | 05 Nov, 2021
Prerequisites: TCP UDP
In previous articles, we have seen a TCP server and a UDP server. But now we can combine our concurrent TCP echo server and iterative UDP server into a single server that uses select to multiplex TCP and UDP socket.
The Select function is used to select between TCP and UDP sockets. T... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 75,
"s": 52,
"text": "Prerequisites: TCP UDP"
},
{
"code": null,
"e": 291,
"s": 75,
"text": "In previous articles, we have seen a TCP server and a UDP server. But now we can com... |
How to insert current date/ time using now() in a field with MySQL? | In MySQL, now() can be used to insert current date/time. The syntax is as follows −
insert into yourTableName values(now());
To understand the above concept of inserting current date/time in the table, let us first create a table −
mysql> create table CurrentDateTimeDemo
−> (
−> YourTime datetime
−> );
Query O... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "In MySQL, now() can be used to insert current date/time. The syntax is as follows −"
},
{
"code": null,
"e": 1187,
"s": 1146,
"text": "insert into yourTableName values(now());"
},
{
"code": null,
"e": 1294,
"s": 1187,... |
Lodash _.countBy() Method - GeeksforGeeks | 01 Sep, 2020
The _.countBy method creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the number of times the key was returned by iteratee.
Syntax:
_.countBy(collection, [iteratee=_.identity])
Parameters: This method ... | [
{
"code": null,
"e": 37436,
"s": 37408,
"text": "\n01 Sep, 2020"
},
{
"code": null,
"e": 37665,
"s": 37436,
"text": "The _.countBy method creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of ... |
Introduction to Correspondence Analysis Using R and Indonesia Real Dataset | by Audhi Aprilliant | Towards Data Science | 1 Background • Objectives • Benefits • Scopes2 Methodology • Data • The procedure of data analysis3 Result and Discussion • Data pre-processing and integration • Data exploration • Profile table • Chi-square statistics • Correspondence analysis4 Interpretation5 References
According to Pahlevi (2017), the crea... | [
{
"code": null,
"e": 455,
"s": 172,
"text": "1 Background • Objectives • Benefits • Scopes2 Methodology • Data • The procedure of data analysis3 Result and Discussion • Data pre-processing and integration • Data exploration • Profile table • Chi-square statistics • Correspondence analysis4... |
How to animate 3D plot_surface in Matplotlib? | To animate 3D plot_surface in Matplotlib, we can take the following steps−
Initialize variables for number of mesh grids (N), frequency per second (fps) to call a function, and frame numbers (frn).
Create x, y and z array for a curve.
Make a function to make a z-array using lambda function.
To pass a function into anim... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "To animate 3D plot_surface in Matplotlib, we can take the following steps−"
},
{
"code": null,
"e": 1260,
"s": 1137,
"text": "Initialize variables for number of mesh grids (N), frequency per second (fps) to call a function, and frame... |
CSS | Image Gallery - GeeksforGeeks | 18 Jan, 2019
Image Gallery is used to store and display collection of pictures. This example create a responsive Image Gallery using HTML and CSS.
Steps 1: Creating a basic gallery structure
Each gallery contains number of div section.
Each div section contains an image and its description.
<div class="gallery">
<div... | [
{
"code": null,
"e": 28046,
"s": 28018,
"text": "\n18 Jan, 2019"
},
{
"code": null,
"e": 28180,
"s": 28046,
"text": "Image Gallery is used to store and display collection of pictures. This example create a responsive Image Gallery using HTML and CSS."
},
{
"code": null,
... |
Int 64 Struct in C# | The Int 64 struct represents a 64-bit signed integer. It is an immutable value type representing signed integers with values: negative 9,223,372,036,854,775,808 through positive 9,223,372,036,854,775,807.
Following are the fields of Int 64 −
Following are some of the methods −
Let us now see some examples of the method... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "The Int 64 struct represents a 64-bit signed integer. It is an immutable value type representing signed integers with values: negative 9,223,372,036,854,775,808 through positive 9,223,372,036,854,775,807."
},
{
"code": null,
"e": 1304,
"... |
java.time.Month.getDisplayName() Method Example | The java.time.Month.getDisplayName(TextStyle style, Locale locale) method gets the textual representation, such as 'Jan' or 'December'.
Following is the declaration for java.time.Month.getDisplayName(TextStyle style, Locale locale) method.
public String getDisplayName(TextStyle style, Locale locale)
style − the length... | [
{
"code": null,
"e": 2051,
"s": 1915,
"text": "The java.time.Month.getDisplayName(TextStyle style, Locale locale) method gets the textual representation, such as 'Jan' or 'December'."
},
{
"code": null,
"e": 2155,
"s": 2051,
"text": "Following is the declaration for java.time.Mon... |
How Seaborn library used to display a kernel density estimation plot (joinplot) in Python? | Seaborn is a library that helps in visualizing data. It comes with customized themes and a high level interface.
Kernel Density Estimation, also known as KDE is a method in which the probability density function of a continuous random variable can be estimated. This method is used for the analysis of the non-parametric... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "Seaborn is a library that helps in visualizing data. It comes with customized themes and a high level interface."
},
{
"code": null,
"e": 1501,
"s": 1175,
"text": "Kernel Density Estimation, also known as KDE is a method in which the... |
PyQtGraph – Creating Graph Item - GeeksforGeeks | 31 Mar, 2022
In this article we will see how we can create a graph item in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying data (plots,... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 24912,
"s": 24292,
"text": "In this article we will see how we can create a graph item in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that provides functionality ... |
C++ Program to Find the Frequency of a Character in a String | A string is a one-dimensional character array that is terminated by a null character. Frequency of characters in a string is the number of times they occur in a string. For example −
String: Football is a sport
The frequency of alphabet o in the above string is 3
A program to find the frequency of a particular alphabet... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "A string is a one-dimensional character array that is terminated by a null character. Frequency of characters in a string is the number of times they occur in a string. For example −"
},
{
"code": null,
"e": 1326,
"s": 1245,
"text": ... |
SVN - Resolve Conflicts | Tom decides to add a README file for their project. So he creates the README file and adds TODO list into that. After adding this, the file repository is at revision 6.
[tom@CentOS trunk]$ cat README
/* TODO: Add contents in README file */
[tom@CentOS trunk]$ svn status
? README
[tom@CentOS trunk]$ svn add REA... | [
{
"code": null,
"e": 1945,
"s": 1776,
"text": "Tom decides to add a README file for their project. So he creates the README file and adds TODO list into that. After adding this, the file repository is at revision 6."
},
{
"code": null,
"e": 2287,
"s": 1945,
"text": "[tom@CentOS t... |
Datasets library of Hugging Face for your NLP project | Chetna | Towards Data Science | Data science is all about data. There are various sources on the web to get data for your Data Analysis or Machine Learning project. One of the most popular sources is Kaggle, which I am sure each one of us must have used in our data journey.
Recently, I came across a new source to get data for my NLP projects and I wo... | [
{
"code": null,
"e": 414,
"s": 171,
"text": "Data science is all about data. There are various sources on the web to get data for your Data Analysis or Machine Learning project. One of the most popular sources is Kaggle, which I am sure each one of us must have used in our data journey."
},
{
... |
DalFox – Parameter Analysis and XSS Scanning tool | 28 Jul, 2021
Dalfox tool is a fast, parameter analysis and Cross-site Scripting (XSS) scanner tool based on a DOM(Document Object Model) parser. The XSS Dalfox has some additional features that test for SQL injection(SQLi), Server-Side Template Injection(SSTI), and open-redirects. Dalfox is a Golang language-based tool... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 530,
"s": 28,
"text": "Dalfox tool is a fast, parameter analysis and Cross-site Scripting (XSS) scanner tool based on a DOM(Document Object Model) parser. The XSS Dalfox has some additional features... |
Delete middle element of a stack | 20 Jun, 2022
Given a stack with push(), pop(), empty() operations, delete the middle of it without using any additional data structure.
Input : Stack[] = [1, 2, 3, 4, 5]
Output : Stack[] = [1, 2, 4, 5]
Input : Stack[] = [1, 2, 3, 4, 5, 6]
Output : Stack[] = [1, 2, 4, 5, 6]
The idea is to use recursive calls. We firs... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 175,
"s": 52,
"text": "Given a stack with push(), pop(), empty() operations, delete the middle of it without using any additional data structure."
},
{
"code": null,
"e": 316,
"s": ... |
Scope of Variables in C++ | 21 Aug, 2021
In general, the scope is defined as the extent up to which something can be worked with. In programming also the scope of a variable is defined as the extent of the program code within which the variable can be accessed or declared or worked with. There are mainly two types of variable scopes:
Local Varia... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Aug, 2021"
},
{
"code": null,
"e": 348,
"s": 52,
"text": "In general, the scope is defined as the extent up to which something can be worked with. In programming also the scope of a variable is defined as the extent of the program c... |
How to Rename a View in SQL Server? | 23 Sep, 2021
View is a virtual table based on the result-set of an SQL statement. It is like the subset of the table and basically created to optimize the database experience.
Like real table, this also contains rows and column. The data in a view are the data extracted from one or more real tables in the database.
We ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 216,
"s": 53,
"text": "View is a virtual table based on the result-set of an SQL statement. It is like the subset of the table and basically created to optimize the database experience."
},
{
... |
Python MySQL – Where Clause | 23 Jan, 2022
Where clause is used in MySQL database to filter the data as per the condition required. You can fetch, delete or update a particular set of data in MySQL database by using where clause.Syntax
SELECT column1, column2, .... columnN FROM [TABLE NAME] WHERE [CONDITION];
The above syntax is used for display... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jan, 2022"
},
{
"code": null,
"e": 246,
"s": 52,
"text": "Where clause is used in MySQL database to filter the data as per the condition required. You can fetch, delete or update a particular set of data in MySQL database by using w... |
Python | Iterating two lists at once | 27 Aug, 2019
Sometimes, while working with Python list, we can have a problem in which we have to iterate over two list elements. Iterating one after another is an option, but it’s more cumbersome and a one-two liner is always recommended over that. Let’s discuss certain ways in which this task can be performed.
Method... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Aug, 2019"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "Sometimes, while working with Python list, we can have a problem in which we have to iterate over two list elements. Iterating one after another is an option, but it’s more cu... |
Pygame – Drawing Objects and Shapes | 31 Oct, 2021
In this article, we are going to see how to draw an object using Pygame. There can be two versions for drawing any shape, it can be a solid one or just an outline of it.
You can easily draw basic shapes in pygame using the draw method of pygame.
To draw a rectangle in your pygame project you can use draw.... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Oct, 2021"
},
{
"code": null,
"e": 224,
"s": 54,
"text": "In this article, we are going to see how to draw an object using Pygame. There can be two versions for drawing any shape, it can be a solid one or just an outline of it."
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.