title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
BigData/Streaming: Amazon S3 Data Lake | Storing & Analyzing the Streaming Data on the go (in near real-time) | A Serverless Approach | by Burhanuddin Bhopalwala | Towards Data Science | What is streaming data and its main challenges (3V’s)?What is the serverless approach and Why should we use a serverless approach?Prerequisites — AWS + AWS Kinesis Firehose Delivery Stream+ AWS Kinesis Producer/Consumer + AWS Lambda + AWS S3 Storage + AWS Athena — Bird’s-eye viewAWS Kinesis Delivery Stream Setup — Step... | [
{
"code": null,
"e": 517,
"s": 171,
"text": "What is streaming data and its main challenges (3V’s)?What is the serverless approach and Why should we use a serverless approach?Prerequisites — AWS + AWS Kinesis Firehose Delivery Stream+ AWS Kinesis Producer/Consumer + AWS Lambda + AWS S3 Storage + AWS... |
Random Effects in Linear Models. An end-to-end analysis example in R... | by Yufeng | Towards Data Science | The simple linear model has an important assumption, the independence of the observations. This assumption holds in most carefully designed experiments but seldom does in real-life datasets.
One of the biggest risks of assuming correlated data as independent is that your linear model will always give you a beautiful p-... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "The simple linear model has an important assumption, the independence of the observations. This assumption holds in most carefully designed experiments but seldom does in real-life datasets."
},
{
"code": null,
"e": 551,
"s": 363,
"tex... |
C/C++ Program for nth Catalan Number? | Catalan numbers are a sequence of numbers. Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involving recursively-defined objects.
Cn is the number of Dyck words of length 2n. A Dyck word is a string consisting of n X's and n Y's such that no initial segment of the strin... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "Catalan numbers are a sequence of numbers. Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involving recursively-defined objects."
},
{
"code": null,
"e": 1465,
"s": 1242,
"text": "Cn... |
file command in Linux with examples - GeeksforGeeks | 19 Feb, 2021
file command is used to determine the type of a file. .file type may be of human-readable(e.g. ‘ASCII text’) or MIME type(e.g. ‘text/plain; charset=us-ascii’). This command tests each argument in an attempt to categorize it.
It has three sets of tests as follows:
filesystem test: This test is based on the ... | [
{
"code": null,
"e": 23664,
"s": 23636,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 23889,
"s": 23664,
"text": "file command is used to determine the type of a file. .file type may be of human-readable(e.g. ‘ASCII text’) or MIME type(e.g. ‘text/plain; charset=us-ascii’). Thi... |
How to center a button element vertically and horizontally with CSS? | To center a button vertically and horizontally with CSS, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.centered {
display: flex;
justify-content: center;
align-items: center;
height... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "To center a button vertically and horizontally with CSS, the code is as follows −"
},
{
"code": null,
"e": 1155,
"s": 1144,
"text": " Live Demo"
},
{
"code": null,
"e": 1707,
"s": 1155,
"text": "<!DOCTYPE html>\n<... |
Program to find sum of the given sequence - GeeksforGeeks | 14 Mar, 2022
Given two numbers and . The task is to find the sum of the sequence given below.
(1*2*3*...*k) + (2*3*...*k*(k+1)) + (3*4*..*(k+1)*(k+2)) +.....+((n-k+1)*(n-k+2)*...*(n-k+k)).
Since the output can be large, print the answer under modulo 10^9+7.Examples:
Input : N = 3, K = 2
Output : 8
Input : N = 4, K ... | [
{
"code": null,
"e": 26865,
"s": 26837,
"text": "\n14 Mar, 2022"
},
{
"code": null,
"e": 26947,
"s": 26865,
"text": "Given two numbers and . The task is to find the sum of the sequence given below. "
},
{
"code": null,
"e": 27042,
"s": 26947,
"text": "(1*2*3*.... |
How to create a combined child selector in SASS ? | 15 Oct, 2020
Introduction: Lets first talk about the various types of Combinators available in CSS.
Combinator: A combinator is something that explains the relationship between the selectors. A CSS selector can contain more than one simple selector. Between the simple selectors, we can include a combinator.
There are f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 115,
"s": 28,
"text": "Introduction: Lets first talk about the various types of Combinators available in CSS."
},
{
"code": null,
"e": 324,
"s": 115,
"text": "Combinator: A combi... |
Java For loop with Examples | 06 Jun, 2022
Loops in Java come into use when we need to repeatedly execute a block of statements. Java for loop provides a concise way of writing the loop structure. The for statement consumes the initialization, condition and increment/decrement in one line thereby providing a shorter, easy to debug structure of loop... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 364,
"s": 52,
"text": "Loops in Java come into use when we need to repeatedly execute a block of statements. Java for loop provides a concise way of writing the loop structure. The for statement co... |
Operator overloading in C++ to print contents of vector, map, pair, .. | 03 Sep, 2018
Operator overloading is one of the features of Object oriented programming which gives an extra ability to an operator to act on a User-defined operand(Objects).We can take advantage of that feature while debugging the code specially in competitive programming. All we need to do is to overload the stream i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Sep, 2018"
},
{
"code": null,
"e": 487,
"s": 52,
"text": "Operator overloading is one of the features of Object oriented programming which gives an extra ability to an operator to act on a User-defined operand(Objects).We can take a... |
Convert ArrayList to HashMap in Java | 28 Dec, 2020
Array List can be converted into HashMap, but the HashMap does not maintain the order of ArrayList. To maintain the order, we can use LinkedHashMap which is the implementation of HashMap.
Basically, there are two different ways to convert ArrayList to Hashmap-
Using ArrayList IterationUsing ArrayList Itera... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "Array List can be converted into HashMap, but the HashMap does not maintain the order of ArrayList. To maintain the order, we can use LinkedHashMap which is the implementation... |
Move all zeroes to end of array | Set-2 (Using single traversal) | 23 Jun, 2022
Given an array of n numbers. The problem is to move all the 0’s to the end of the array while maintaining the order of the other elements. Only single traversal of the array is required.Examples:
Input : arr[] = {1, 2, 0, 0, 0, 3, 6}
Output : 1 2 3 6 0 0 0
Input: arr[] = {0, 1, 9, 8, 4, 0, 0, 2, 7, 0, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 250,
"s": 52,
"text": "Given an array of n numbers. The problem is to move all the 0’s to the end of the array while maintaining the order of the other elements. Only single traversal of the array ... |
CSS | rotateX() Function | 07 Aug, 2019
The rotateX() function is an inbuilt function which is used to rotate an element around the x-axis.
Syntax:
rotateX( angle )
Parameters: This function accepts single parameter angle which represents the angle of rotations. The positive and negative angles rotate the elements in clockwise and counter-clockw... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 128,
"s": 28,
"text": "The rotateX() function is an inbuilt function which is used to rotate an element around the x-axis."
},
{
"code": null,
"e": 136,
"s": 128,
"text": "Syntax... |
Longest Monotonically Increasing Subsequence Size (N log N): Simple implementation | 23 Jun, 2022
Given an array of random numbers, find the longest monotonically increasing subsequence (LIS) in the array. If you want to understand the O(NlogN) approach, it’s explained very clearly here.
In this post, a simple and time-saving implementation of O(NlogN) approach using stl is discussed. Below is the code... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 245,
"s": 54,
"text": "Given an array of random numbers, find the longest monotonically increasing subsequence (LIS) in the array. If you want to understand the O(NlogN) approach, it’s explained ve... |
unordered_map size() in C++ STL | 31 Dec, 2018
The unordered_multimap::size() is a built-in function in C++ Standard Template Library which return’s the number of element int the unordered map.
Syntax:
unordered_multimap_name.size()
Return Value: It returns the number of the element present in the unordered map.
Time complexity:
Constant i.e. O(1).
Pro... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Dec, 2018"
},
{
"code": null,
"e": 201,
"s": 54,
"text": "The unordered_multimap::size() is a built-in function in C++ Standard Template Library which return’s the number of element int the unordered map."
},
{
"code": null,... |
Thread.CurrentThread Property in C# | 13 May, 2019
A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as CurrentThread to check the current running thread. Or in other words, the value of this property indicates the current running thread.
Syntax: public static Thread CurrentThread { g... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 May, 2019"
},
{
"code": null,
"e": 289,
"s": 28,
"text": "A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as CurrentThread to check the current running thread... |
Python Number random() Method | Python number method random() returns a random float r, such that 0 is less than or equal to r and r is less than 1.
Following is the syntax for random() method −
random ( )
Note − This function is not accessible directly, so we need to import random module and then we need to call this function using random static ob... | [
{
"code": null,
"e": 2495,
"s": 2378,
"text": "Python number method random() returns a random float r, such that 0 is less than or equal to r and r is less than 1."
},
{
"code": null,
"e": 2541,
"s": 2495,
"text": "Following is the syntax for random() method −"
},
{
"code... |
JavaScript SyntaxError – Missing = in const declaration | 27 Sep, 2021
This JavaScript exception missing = in const declaration occurs if a const is declared and value is not provided(like const ABC_DEF;). Need to provide the value in same statement (const ABC_DEF = ‘#ee0’).
Message:
SyntaxError: Const must be initialized (Edge)
SyntaxError: missing = in const declaration (Fi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 233,
"s": 28,
"text": "This JavaScript exception missing = in const declaration occurs if a const is declared and value is not provided(like const ABC_DEF;). Need to provide the value in same statem... |
unordered_set == operator in C++ STL | 29 Jun, 2022
The ‘==’ is an operator in C++ STL performs equality comparison operation between two unordered sets and unordered_set::operator== is the corresponding operator function for the same. Syntax:
(unordered_set &uset1 == unordered_set &uset2)
Parameters: This operator function takes reference of two unordere... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 247,
"s": 53,
"text": "The ‘==’ is an operator in C++ STL performs equality comparison operation between two unordered sets and unordered_set::operator== is the corresponding operator function for ... |
How to disable arrows from Number input ? | 16 Feb, 2021
In this article, we will see how to disable arrows from the Number input.
See the Images below, the first image is having the default arrow and the second is without having the arrow.
Default input box (Having arrows)
Input box without having arrows.
To achieve this, we use the following syntax :
Approach ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 102,
"s": 28,
"text": "In this article, we will see how to disable arrows from the Number input."
},
{
"code": null,
"e": 212,
"s": 102,
"text": "See the Images below, the first ... |
Stack pop() Method in Java | 12 Dec, 2021
The Java.util.Stack.pop() method in Java is used to pop an element from the stack. The element is popped from the top of the stack and is removed from the same.Syntax:
STACK.pop()
Parameters: The method does not take any parameters.Return Value: This method returns the element present at the top of the st... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 222,
"s": 53,
"text": "The Java.util.Stack.pop() method in Java is used to pop an element from the stack. The element is popped from the top of the stack and is removed from the same.Syntax: "
},... |
Storage Classes in C | 05 Apr, 2022
Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particular variable during the runtime of a program.C language uses 4 storage classes, namely:
auto: This is the defaul... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Apr, 2022"
},
{
"code": null,
"e": 335,
"s": 54,
"text": "Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the exis... |
Plotting a trend graph in Python | 21 Apr, 2021
Prerequisites: Matplotlib
A trend Graph is a graph that is used to show the trends data over a period of time. It describes a functional representation of two variables (x , y). In which the x is the time-dependent variable whereas y is the collected data. The graph can be in shown any form that can be vi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 54,
"s": 28,
"text": "Prerequisites: Matplotlib"
},
{
"code": null,
"e": 533,
"s": 54,
"text": "A trend Graph is a graph that is used to show the trends data over a period of tim... |
Tailwind CSS - GeeksforGeeks | 24 Mar, 2022
Tailwind CSS is basically a Utility first CSS framework for building rapid custom UI. It is a highly customizable, low-level CSS framework that gives you all of the building blocks that you need. Also, it is a cool way to write inline styling and achieve an awesome interface without writing a single line o... | [
{
"code": null,
"e": 24903,
"s": 24875,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 25226,
"s": 24903,
"text": "Tailwind CSS is basically a Utility first CSS framework for building rapid custom UI. It is a highly customizable, low-level CSS framework that gives you all of th... |
Python program to print checkerboard pattern of nxn using numpy | 06 Apr, 2020
Given n, print the checkboard pattern for a n x n matrix
Checkboard Pattern for n = 8:
It consists of n * n squares of alternating 0 for white and 1 for black.
We can do the same using nested for loops and some if conditions, but using Python’s numpy library, we can import a 2-D matrix and get the checkboa... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Apr, 2020"
},
{
"code": null,
"e": 111,
"s": 54,
"text": "Given n, print the checkboard pattern for a n x n matrix"
},
{
"code": null,
"e": 141,
"s": 111,
"text": "Checkboard Pattern for n = 8:"
},
{
"cod... |
Java.lang.Integer class in Java | 21 Jun, 2022
Integer class is a wrapper class for the primitive type int which contains several methods to effectively deal with an int value like converting it to a string representation, and vice-versa. An object of the Integer class can hold a single int value.
Constructors:
Integer(int b): Creates an Integer obje... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 305,
"s": 52,
"text": "Integer class is a wrapper class for the primitive type int which contains several methods to effectively deal with an int value like converting it to a string representation... |
Python | Ways to shuffle a list | 24 Jun, 2021
Shuffling a sequence of numbers have always been an useful utility and the question that has appeared in many company placement interviews as well. Knowing more than one method to achieve this can always be a plus. Let’s discuss certain ways in which this can be achieved.Method #1 : Fisher–Yates shuffle Al... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 610,
"s": 53,
"text": "Shuffling a sequence of numbers have always been an useful utility and the question that has appeared in many company placement interviews as well. Knowing more than one meth... |
How to compare String equality in Java? | You can check the equality of two Strings in Java using the equals() method. This method compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.
import java.lang.*
public class StringD... | [
{
"code": null,
"e": 1468,
"s": 1187,
"text": "You can check the equality of two Strings in Java using the equals() method. This method compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of... |
How to count the number of lines in a CSV file in Python? | 24 Jan, 2021
CSV (Comma Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or database. A CSV file stores tabular data (numbers and text) in plain text. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. The use of the comma ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 429,
"s": 53,
"text": "CSV (Comma Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or database. A CSV file stores tabular data (numbers and text) in plain... |
Python Program for How to check if a given number is Fibonacci number? | 24 Feb, 2022
Given a number \’n\’, how to check if n is a Fibonacci number. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, .. Examples :
Input : 8
Output : Yes
Input : 34
Output : Yes
Input : 41
Output : No
Following is an interesting property about Fibonacci numbers that can also be u... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 208,
"s": 52,
"text": "Given a number \\’n\\’, how to check if n is a Fibonacci number. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, .. Examples : "
},
{
"c... |
Find smallest string with whose characters all given Strings can be generated | 17 Jan, 2022
Given an array of strings arr[]. The task is to generate the string which contains all the characters of all the strings present in array and smallest in size. There can be many such possible strings and any one is acceptable.
Examples:
Input: arr[] = {“your”, “you”, “or”, “yo”}Output: ruyoExplanation: The... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 281,
"s": 54,
"text": "Given an array of strings arr[]. The task is to generate the string which contains all the characters of all the strings present in array and smallest in size. There can be m... |
MySQL Tryit Editor v1.0 | SELECT LENGTH("SQL Tutorial") AS LengthOfString;
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support WebSQL.
Your are now using a light-vers... | [
{
"code": null,
"e": 49,
"s": 0,
"text": "SELECT LENGTH(\"SQL Tutorial\") AS LengthOfString;"
},
{
"code": null,
"e": 51,
"s": 49,
"text": ""
},
{
"code": null,
"e": 123,
"s": 60,
"text": "Edit the SQL Statement, and click \"Run SQL\" to see the result."
},... |
Longest Continuous Increasing Subsequence in C++ | Suppose we have an array of integers; we have to find the length of longest continuous
increasing subarray.
So, if the input is like [2,4,6,5,8], then the output will be 3. As the longest continuous increasing subsequence is [2,4,6], and its length is 3.
To solve this, we will follow these steps −
if size of nums <= 1,... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "Suppose we have an array of integers; we have to find the length of longest continuous\nincreasing subarray."
},
{
"code": null,
"e": 1317,
"s": 1170,
"text": "So, if the input is like [2,4,6,5,8], then the output will be 3. As the l... |
Practice questions on Strings - GeeksforGeeks | 21 Apr, 2020
String is an important topic from GATE exam point of view. We will discuss key points on strings as well different types of questions based on that.
There are two ways to store strings as character array (char p[20]) or a pointer pointing to a string (char* s = “string”), both of which can be accessed as a... | [
{
"code": null,
"e": 26309,
"s": 26281,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 26458,
"s": 26309,
"text": "String is an important topic from GATE exam point of view. We will discuss key points on strings as well different types of questions based on that."
},
{
... |
How to build an integration between AutoML and MLFlow | by Bogdan Cojocar | Towards Data Science | In this article, we will go over the concept of AutoML, how it can improve your productivity and how to track it’s performance metrics.
We will use the following technologies:
Python 3
H2O AutoML
MLFlow
As the name suggests, it is the process to automate a machine learning pipeline. We can automate various stages of th... | [
{
"code": null,
"e": 307,
"s": 171,
"text": "In this article, we will go over the concept of AutoML, how it can improve your productivity and how to track it’s performance metrics."
},
{
"code": null,
"e": 347,
"s": 307,
"text": "We will use the following technologies:"
},
{
... |
HBase - Enabling a Table | Syntax to enable a table:
enable ‘emp’
Given below is an example to enable a table.
hbase(main):005:0> enable 'emp'
0 row(s) in 0.4580 seconds
After enabling the table, scan it. If you can see the schema, your table is successfully enabled.
hbase(main):006:0> scan 'emp'
ROW COLUMN + CELL
1... | [
{
"code": null,
"e": 2063,
"s": 2037,
"text": "Syntax to enable a table:"
},
{
"code": null,
"e": 2077,
"s": 2063,
"text": "enable ‘emp’\n"
},
{
"code": null,
"e": 2122,
"s": 2077,
"text": "Given below is an example to enable a table."
},
{
"code": nul... |
C# Linq Contains Method | To check for an element in a string, use the Contains() method.
The following is our string array.
string[] arr = { "Java", "C++", "Python"};
Now, use Contains() method to find a specific string in the string array.
arr.AsQueryable().Contains(str);
Let us see the complete example.
Live Demo
using System;
using System.... | [
{
"code": null,
"e": 1126,
"s": 1062,
"text": "To check for an element in a string, use the Contains() method."
},
{
"code": null,
"e": 1161,
"s": 1126,
"text": "The following is our string array."
},
{
"code": null,
"e": 1204,
"s": 1161,
"text": "string[] arr... |
Create a text to speech application using ReactJS - GeeksforGeeks | 09 Nov, 2021
React.js: React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It’s ‘V’ in MVC. ReactJS is an open-source, component-based front-end library responsible only for the view layer of the application. It is maintained by Facebook.
Steps to Create Line Charts using Re... | [
{
"code": null,
"e": 26181,
"s": 26153,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 26452,
"s": 26181,
"text": "React.js: React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It’s ‘V’ in MVC. ReactJS is an open-source, component-ba... |
How to resize SVG icon using Tailwind CSS ? | 17 Jun, 2021
SVG stands for Scalable Vector Graphics and is an XML-based ( can be edited ) vector image format. SVG is commonly used for icons, animations, interactive charts, graphs, and other dynamic graphics in the browser. As it is XML-based, you can easily resize the SVG icon using Tailwind.
Approach: You can simp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 313,
"s": 28,
"text": "SVG stands for Scalable Vector Graphics and is an XML-based ( can be edited ) vector image format. SVG is commonly used for icons, animations, interactive charts, graphs, and ... |
Number of rectangles in N*M grid | 13 Jun, 2022
We are given a N*M grid, print the number of rectangles in it.Examples:
Input : N = 2, M = 2
Output : 9
There are 4 rectangles of size 1 x 1.
There are 2 rectangles of size 1 x 2
There are 2 rectangles of size 2 x 1
There is one rectangle of size 2 x 2.
Input : N = 5, M = 4
Output : 150
Input : N = ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 126,
"s": 52,
"text": "We are given a N*M grid, print the number of rectangles in it.Examples: "
},
{
"code": null,
"e": 379,
"s": 126,
"text": "Input : N = 2, M = 2\nOutput :... |
Python | Ways to convert array of strings to array of floats | 11 Aug, 2021
Sometimes in a competitive coding environment, we get input in some other datatypes and we need to convert them in other forms this problem is same as that we have an input in the form of string and we need to convert it into floats.Let’s discuss a few ways to convert an array of strings to array of floats... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 363,
"s": 28,
"text": "Sometimes in a competitive coding environment, we get input in some other datatypes and we need to convert them in other forms this problem is same as that we have an input in... |
Python | Add keys to nested dictionary | 14 May, 2020
Addition of keys in dictionaries have been discussed many times, but sometimes, we might have a problem in which we require to alter/add keys in the nested dictionary. This type of problem is common in today’s world with advent of NoSQL databases. Let’s discuss certain ways in which this problem can be sol... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 May, 2020"
},
{
"code": null,
"e": 364,
"s": 52,
"text": "Addition of keys in dictionaries have been discussed many times, but sometimes, we might have a problem in which we require to alter/add keys in the nested dictionary. This t... |
Substitution Cipher | 29 Sep, 2021
Hiding some data is known as encryption. When plain text is encrypted it becomes unreadable and is known as ciphertext. In a Substitution cipher, any character of plain text from the given fixed set of characters is substituted by some other character from the same set depending on a key. For example with ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 431,
"s": 54,
"text": "Hiding some data is known as encryption. When plain text is encrypted it becomes unreadable and is known as ciphertext. In a Substitution cipher, any character of plain text ... |
Logistic Regression in R Programming | 05 Jun, 2020
Logistic regression in R Programming is a classification algorithm used to find the probability of event success and event failure. Logistic regression is used when the dependent variable is binary(0/1, True/False, Yes/No) in nature. Logit function is used as a link function in a binomial distribution.
Log... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 332,
"s": 28,
"text": "Logistic regression in R Programming is a classification algorithm used to find the probability of event success and event failure. Logistic regression is used when the depend... |
How to retrieve Python module path? | For a pure python module you can find the location of the source files by looking at the module.__file__. For example,
>>> import mymodule
>>> mymodule.__file__
C:/Users/Ayush/mymodule.py
Many built-in modules, however,are written in C, and therefore module.__file__ points to a .so file (there is no module.__file__ ... | [
{
"code": null,
"e": 1306,
"s": 1187,
"text": "For a pure python module you can find the location of the source files by looking at the module.__file__. For example,"
},
{
"code": null,
"e": 1377,
"s": 1306,
"text": " >>> import mymodule\n>>> mymodule.__file__\nC:/Users/Ayush/mym... |
std::memcmp() in C++ | 11 Apr, 2022
It compares the first count characters of the arrays pointed to by buf1 and buf2.Syntax:
int memcmp(const void *buf1, const void *buf2, size_t count);
Return Value: it returns an integer.
Parameters:
buf1 : Pointer to block of memory.
buf2 : Pointer to block of memory.
count : Maximum numbers of bytes to... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 141,
"s": 52,
"text": "It compares the first count characters of the arrays pointed to by buf1 and buf2.Syntax:"
},
{
"code": null,
"e": 633,
"s": 141,
"text": "int memcmp(const... |
Creating Decorator inside a class in Python | 05 Sep, 2020
We can easily create decorators inside a class and it is easily accessible for its child classes. During Decorator creation, we must take care that the function that we are defining inside the decorator must take current object reference (self) as a parameter, and while we are accessing that decorator from... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 471,
"s": 54,
"text": "We can easily create decorators inside a class and it is easily accessible for its child classes. During Decorator creation, we must take care that the function that we are d... |
Program to find sum of harmonic series | 23 Jun, 2022
Harmonic series is inverse of a arithmetic progression. In general, the terms in a harmonic progression can be denoted as 1/a, 1/(a + d), 1/(a + 2d), 1/(a + 3d) .... 1/(a + nd). As Nth term of AP is given as ( a + (n – 1)d). Hence, Nth term of harmonic progression is reciprocal of Nth term of AP, which is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 441,
"s": 52,
"text": "Harmonic series is inverse of a arithmetic progression. In general, the terms in a harmonic progression can be denoted as 1/a, 1/(a + d), 1/(a + 2d), 1/(a + 3d) .... 1/(a + n... |
Encryption and Decryption of String according to given technique | 31 May, 2021
Given a string S, the task is to encrypt the string and decrypt the string again to the original form. Encryption Technique: If L is the length of the string, then take two values, one the ceil of √L (say b), and the other floor of √L (say a), and make a two-dimensional matrix having rows = a, and columns ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 606,
"s": 54,
"text": "Given a string S, the task is to encrypt the string and decrypt the string again to the original form. Encryption Technique: If L is the length of the string, then take two v... |
Map putAll() Method in Java with Examples | 02 Jan, 2019
This method is used to copy all of the mappings from the specified map to this map.
Syntax:
void putAll(Map m)
Parameters: This method has the only argument map m, which contains key-value mappings to be copied to given map.
Returns: This method returns previous value associated with the key if present, el... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jan, 2019"
},
{
"code": null,
"e": 112,
"s": 28,
"text": "This method is used to copy all of the mappings from the specified map to this map."
},
{
"code": null,
"e": 120,
"s": 112,
"text": "Syntax:"
},
{
... |
How to Find the Slope of a Line on an Excel Graph? | 18 Jul, 2021
In this article, we will look into how to calculate the slope of a line in an Excel graph.
Slope of a line basically determines two parameters :
The direction of a line. The steepness of a line (rise or fall).
The direction of a line.
The steepness of a line (rise or fall).
It is generally denoted by the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 119,
"s": 28,
"text": "In this article, we will look into how to calculate the slope of a line in an Excel graph."
},
{
"code": null,
"e": 173,
"s": 119,
"text": "Slope of a line... |
IsoChronology localDateTime() method in Java with Example | 27 Mar, 2020
The localDateTime() method of java.time.chrono.IsoChronology class is used to retrieve the local date and time according to Iso calendar system from any other object of temporal accessor.
Syntax:
public LocalDateTime localDateTime(
TemporalAccessor temporal)
Parameter: This method takes the objec... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Mar, 2020"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "The localDateTime() method of java.time.chrono.IsoChronology class is used to retrieve the local date and time according to Iso calendar system from any other object of tempor... |
Python | Union Operation in two Strings | 27 Feb, 2020
One of the string operation can be computing the union of two strings. This can be useful application that can be dealt with. This article deals with computing the same through different ways.
Method 1 : Naive MethodThe task of performing string union can be computed by naive method by creating an empty st... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "One of the string operation can be computing the union of two strings. This can be useful application that can be dealt with. This article deals with computing the same throug... |
Floor in a Sorted Array | Practice | GeeksforGeeks | Given a sorted array arr[] of size N without duplicates, and given a value x. Floor of x is defined as the largest element K in arr[] such that K is smaller than or equal to x. Find the index of K(0-based indexing).
Example 1:
Input:
N = 7, x = 0
arr[] = {1,2,8,10,11,12,19}
Output: -1
Explanation: No element less
tha... | [
{
"code": null,
"e": 454,
"s": 238,
"text": "Given a sorted array arr[] of size N without duplicates, and given a value x. Floor of x is defined as the largest element K in arr[] such that K is smaller than or equal to x. Find the index of K(0-based indexing)."
},
{
"code": null,
"e": 46... |
How to deal with missing values in a Timeseries in Python? | 05 Nov, 2021
In this article, we will discuss how to deal with missing values in a time series using the Python programming language.
Time series is a sequence of observations recorded at regular time intervals. Time series analysis can be useful to see how a given asset, security, or economic variable changes over tim... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 175,
"s": 54,
"text": "In this article, we will discuss how to deal with missing values in a time series using the Python programming language."
},
{
"code": null,
"e": 500,
"s": 17... |
Functional Programming in Java 8+ using the Stream API with Example | 09 Dec, 2021
API is an acronym for Application Programming Interface, which is software and the java streams work on a data source. Consider a stream like a flow of water in a small canal. Let’s take a real-life example. Each time a user uses an application that is popular these days like WhatsApp in order to communica... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 445,
"s": 52,
"text": "API is an acronym for Application Programming Interface, which is software and the java streams work on a data source. Consider a stream like a flow of water in a small canal... |
PySpark - MLlib | Apache Spark offers a Machine Learning API called MLlib. PySpark has this machine learning API in Python as well. It supports different kind of algorithms, which are mentioned below −
mllib.classification − The spark.mllib package supports various methods for binary classification, multiclass classification and regress... | [
{
"code": null,
"e": 2123,
"s": 1939,
"text": "Apache Spark offers a Machine Learning API called MLlib. PySpark has this machine learning API in Python as well. It supports different kind of algorithms, which are mentioned below −"
},
{
"code": null,
"e": 2379,
"s": 2123,
"text":... |
TensorFlow – How to add padding to a tensor | 01 Aug, 2020
TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks.
Padding means adding values before and after Tensor values.
Method Used:
tf.pad: This method accepts input tensor and padding tensor with other optional arguments and returns a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 159,
"s": 28,
"text": "TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks."
},
{
"code": null,
"e": 219,
... |
Python program to convert exponential to float | 23 Dec, 2020
Given a number in exponential format, the task is to write a Python program to convert the number from exponential format to float. The exponential number is a way of representing a number.
Examples:
Input: 1.900000e+01
Output: 19.0
Input: 2.002000e+03
Output: 2002.0
Input: 1.101020e+05
Output: 110102.0
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 218,
"s": 28,
"text": "Given a number in exponential format, the task is to write a Python program to convert the number from exponential format to float. The exponential number is a way of represen... |
What is APIPA (Automatic Private IP Addressing)? | 22 May, 2020
APIPA stands for Automatic Private IP Addressing (APIPA). It is a feature or characteristic in operating systems (eg. Windows) which enables computers to self-configure an IP address and subnet mask automatically when their DHCP(Dynamic Host Configuration Protocol) server isn’t reachable. The IP address ra... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 May, 2020"
},
{
"code": null,
"e": 482,
"s": 52,
"text": "APIPA stands for Automatic Private IP Addressing (APIPA). It is a feature or characteristic in operating systems (eg. Windows) which enables computers to self-configure an IP... |
Undecidability and Reducibility in TOC | 28 Jun, 2021
Decidable ProblemsA problem is decidable if we can construct a Turing machine which will halt in finite amount of time for every input and give answer as ‘yes’ or ‘no’. A decidable problem has an algorithm to determine the answer for a given input.
Examples
Equivalence of two regular languages: Given two... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 305,
"s": 56,
"text": "Decidable ProblemsA problem is decidable if we can construct a Turing machine which will halt in finite amount of time for every input and give answer as ‘yes’ or ‘no’. A dec... |
How To Visualize Machine Learning Results Like a Pro | by Edwin Tan | Towards Data Science | Evaluating machine learning models is a essential step in the Machine Learning workflow. In this article, we examine how to easily visualize various common machine learning metrics with Scikit-plot. While it’s name may suggest that it is only compatible with Scikit-learn models, Scikit-plot can be used for any machine ... | [
{
"code": null,
"e": 581,
"s": 172,
"text": "Evaluating machine learning models is a essential step in the Machine Learning workflow. In this article, we examine how to easily visualize various common machine learning metrics with Scikit-plot. While it’s name may suggest that it is only compatible w... |
Assembly - System Calls | System calls are APIs for the interface between the user space and the kernel space. We have already used the system calls. sys_write and sys_exit, for writing into the screen and exiting from the program, respectively.
You can make use of Linux system calls in your assembly programs. You need to take the following ste... | [
{
"code": null,
"e": 2305,
"s": 2085,
"text": "System calls are APIs for the interface between the user space and the kernel space. We have already used the system calls. sys_write and sys_exit, for writing into the screen and exiting from the program, respectively."
},
{
"code": null,
"... |
Creating and Using Serializers - Django REST Framework - GeeksforGeeks | 10 Sep, 2021
In Django REST Framework the very concept of Serializing is to convert DB data to a datatype that can be used by javascript. Serializers allow complex data such as querysets and model instances to be converted to native Python datatypes that can then be easily rendered into JSON, XML or other content types... | [
{
"code": null,
"e": 24330,
"s": 24302,
"text": "\n10 Sep, 2021"
},
{
"code": null,
"e": 24880,
"s": 24330,
"text": "In Django REST Framework the very concept of Serializing is to convert DB data to a datatype that can be used by javascript. Serializers allow complex data such as... |
Binary Search program in JavaScript | Create a function, say binarySearch() that takes in 4 arguments −
a sorted Number / String literal array
starting index of array (0)
ending index of array (length - 1)
number to be searched
If the number exists in the array, then the index of the number should be returned, otherwise -1
should be returned. Here is the f... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Create a function, say binarySearch() that takes in 4 arguments −"
},
{
"code": null,
"e": 1167,
"s": 1128,
"text": "a sorted Number / String literal array"
},
{
"code": null,
"e": 1195,
"s": 1167,
"text": "starti... |
How to Use and Create a Z-Table (Standard Normal Table) | by Michael Galarnyk | Towards Data Science | To be able to utilize a z-table and answer these questions, you have to turn the scores on the different tests into a standard normal distribution N(mean = 0, std = 1). Since these scores on these tests have a normal distribution, we can convert both of them into standard normal distributions by using the following for... | [
{
"code": null,
"e": 498,
"s": 172,
"text": "To be able to utilize a z-table and answer these questions, you have to turn the scores on the different tests into a standard normal distribution N(mean = 0, std = 1). Since these scores on these tests have a normal distribution, we can convert both of t... |
A short tutorial on Fuzzy Time Series — Part III | by Petrônio Silva | Towards Data Science | Hi folks! It was a long time since I published the first and second parts of this tutorial. Meanwhile I had the opportunity to talk with many people that applied FTS methods on several distinct fields, and they helped me to improve pyFTS library by fixing some bugs and expanding its features and usability.
We have been... | [
{
"code": null,
"e": 479,
"s": 171,
"text": "Hi folks! It was a long time since I published the first and second parts of this tutorial. Meanwhile I had the opportunity to talk with many people that applied FTS methods on several distinct fields, and they helped me to improve pyFTS library by fixing... |
How to remove all trailing and leading whitespace in a string in Python? | To remove all trailing and leading whitespace in a string, we can use the method strip() in String class that gets rid of both these whitespaces. You can use it as follows:
>>> ' Hello People '.strip()
'Hello People'
If you only want to remove leading or trailing whitespace use lstrip() or rstrip() respectively.
>>... | [
{
"code": null,
"e": 1235,
"s": 1062,
"text": "To remove all trailing and leading whitespace in a string, we can use the method strip() in String class that gets rid of both these whitespaces. You can use it as follows:"
},
{
"code": null,
"e": 1283,
"s": 1235,
"text": ">>> ' H... |
How to use Git / GitHub with Jupyter Notebook | by Amit Rathi | Towards Data Science | This article is a Git 101 for Jupyter users. Advanced Git users might want to check out integration workflow, real world examples and FAQs for making notebooks play nicely with GitHub.
This is a hands on tutorial for beginners & is meant to be comprehensive. Feel free to skip a section if you’re already familiar with i... | [
{
"code": null,
"e": 357,
"s": 172,
"text": "This article is a Git 101 for Jupyter users. Advanced Git users might want to check out integration workflow, real world examples and FAQs for making notebooks play nicely with GitHub."
},
{
"code": null,
"e": 526,
"s": 357,
"text": "T... |
JavaScript Map keys() Method - GeeksforGeeks | 21 Jan, 2022
Below is the basic example of the Map.keys() method.
Javascript
<script> let mp=new Map() mp.set("a",11); mp.set("b",2); mp.set("c",5); console.log(mp.keys());</script>
Output:
MapIterator {"a", "b", "c"}
The Map.keys() method is used to extract the keys from a given map object and return the iterator... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n21 Jan, 2022"
},
{
"code": null,
"e": 24962,
"s": 24909,
"text": "Below is the basic example of the Map.keys() method."
},
{
"code": null,
"e": 24973,
"s": 24962,
"text": "Javascript"
},
{
"code": "<sc... |
Risk Management for Information Security | Set-2 - GeeksforGeeks | 04 Jul, 2018
Prerequisite – Risk Management | Set-12. Risk Assessment –Risk Management is a recurrent activity, on the other hand Risk assessment is executed at discrete points and until the performance of the next assessment. Risk Assessment is the process of evaluating known and postulated threats and vulnerabilities... | [
{
"code": null,
"e": 23993,
"s": 23965,
"text": "\n04 Jul, 2018"
},
{
"code": null,
"e": 24409,
"s": 23993,
"text": "Prerequisite – Risk Management | Set-12. Risk Assessment –Risk Management is a recurrent activity, on the other hand Risk assessment is executed at discrete points... |
Print an array with numbers having 1, 2 and 3 as a digit in ascending order | Here, the task is to print those number in an array having 1, 2 and 3 as digits in their numbers and if their is no such number than the output must be -1
Input : arr[] = {320,123,124,125,14532,126,340,123400,100032,13,32,3123,1100}
Output : 123 3123 14532 100032 123400
Since the array have values with digits 1, 2 and... | [
{
"code": null,
"e": 1217,
"s": 1062,
"text": "Here, the task is to print those number in an array having 1, 2 and 3 as digits in their numbers and if their is no such number than the output must be -1"
},
{
"code": null,
"e": 1479,
"s": 1217,
"text": "Input : arr[] = {320,123,12... |
Convert an unbalanced bracket sequence to a balanced sequence - GeeksforGeeks | 13 May, 2021
Given an unbalanced bracket sequence of ‘(‘ and ‘)’, convert it into a balanced sequence by adding the minimum number of ‘(‘ at the beginning of the string and ‘)’ at the end of the string.
Examples:
Input: str = “)))()” Output: “((()))()”
Input: str = “())())(())())” Output: “(((())())(())())”
Approach: ... | [
{
"code": null,
"e": 24968,
"s": 24940,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 25158,
"s": 24968,
"text": "Given an unbalanced bracket sequence of ‘(‘ and ‘)’, convert it into a balanced sequence by adding the minimum number of ‘(‘ at the beginning of the string and ‘)’... |
Apache Pig - Split Operator | The SPLIT operator is used to split a relation into two or more relations.
Given below is the syntax of the SPLIT operator.
grunt> SPLIT Relation1_name INTO Relation2_name IF (condition1), Relation2_name (condition2),
Assume that we have a file named student_details.txt in the HDFS directory /pig_data/ as shown below.... | [
{
"code": null,
"e": 2759,
"s": 2684,
"text": "The SPLIT operator is used to split a relation into two or more relations."
},
{
"code": null,
"e": 2808,
"s": 2759,
"text": "Given below is the syntax of the SPLIT operator."
},
{
"code": null,
"e": 2903,
"s": 2808,
... |
How to Remove Characters from a String in Arduino? | The remove function in Arduino helps you remove one or more characters from within a string.
myString.remove(index, count)
Here, index refers to the index from where removal has to start. Note that indexing in Arduino starts with 0. Thus, within string "Hello", 'H' is at index 0, 'e' is at index 1, and so on.
The count... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "The remove function in Arduino helps you remove one or more characters from within a string."
},
{
"code": null,
"e": 1185,
"s": 1155,
"text": "myString.remove(index, count)"
},
{
"code": null,
"e": 1373,
"s": 1185,
... |
CBSE 12th class Paper Solved - 2015-16 session - GeeksforGeeks | 24 Feb, 2022
Sample Question Paper – Set II Computer Science (083) Class- XII (2015-16) Time: 3hrs M.M: 70Instructions: i. All Questions are Compulsory. ii. Programming Language: Section A : C++ iii. Programming Language: Section B: Python iv. Answer either Section A or B, and Section C is compulsory
Q1 a. Define Macr... | [
{
"code": null,
"e": 23707,
"s": 23679,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 23997,
"s": 23707,
"text": "Sample Question Paper – Set II Computer Science (083) Class- XII (2015-16) Time: 3hrs M.M: 70Instructions: i. All Questions are Compulsory. ii. Programming Languag... |
ArrayDeque pop() Method in Java - GeeksforGeeks | 10 Dec, 2018
The Java.util.ArrayDeque.pop() method in Java is used to pop an element from the deque. The element is popped from the top of the deque and is removed from the same.
Syntax:
Array_Deque.pop()
Parameters: The method does not take any parameters.
Return Value: This method returns the element present at the f... | [
{
"code": null,
"e": 23770,
"s": 23742,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 23936,
"s": 23770,
"text": "The Java.util.ArrayDeque.pop() method in Java is used to pop an element from the deque. The element is popped from the top of the deque and is removed from the sam... |
How to Highlight 3D Brain Regions | by Matt.0 | Towards Data Science | Recently, I was reading Howard et. al., (2018) “Genome-wide meta-analysis of depression in 807,553 individuals identifies 102 independent variants with replication in a further 1,507,153 individuals” and saw a really cool 3D visualization of highlighted brain regions associated with depression:
After an exhaustive sear... | [
{
"code": null,
"e": 468,
"s": 172,
"text": "Recently, I was reading Howard et. al., (2018) “Genome-wide meta-analysis of depression in 807,553 individuals identifies 102 independent variants with replication in a further 1,507,153 individuals” and saw a really cool 3D visualization of highlighted b... |
How to find the counts of categories in categorical columns in an R data frame? | If we have two categorical columns in an R data frame then we can find the frequency/count of each category with respect to each category in the other column. This will help us to compare the frequencies for all categories. To find the counts of categories, we can use table function as shown in the below examples.
Liv... | [
{
"code": null,
"e": 1378,
"s": 1062,
"text": "If we have two categorical columns in an R data frame then we can find the frequency/count of each category with respect to each category in the other column. This will help us to compare the frequencies for all categories. To find the counts of categor... |
Clojure - Vectors | A Vector is a collection of values indexed by contiguous integers. A vector is created by using the vector method in Clojure.
Following is an example of creating a vector in Clojure.
(ns clojure.examples.example
(:require [clojure.set :as set])
(:gen-class))
(defn example []
(println (vector 1 2 3)))
(example)... | [
{
"code": null,
"e": 2500,
"s": 2374,
"text": "A Vector is a collection of values indexed by contiguous integers. A vector is created by using the vector method in Clojure."
},
{
"code": null,
"e": 2557,
"s": 2500,
"text": "Following is an example of creating a vector in Clojure.... |
Selenium - Mouse Actions | Listed below are some of the key mouse actions that one would come across in most of the applications -
Click − Performs a Click. We can also perform a click based on coordinates.
Click − Performs a Click. We can also perform a click based on coordinates.
contextClick − Performs a context click/right-click on an elemen... | [
{
"code": null,
"e": 1979,
"s": 1875,
"text": "Listed below are some of the key mouse actions that one would come across in most of the applications -"
},
{
"code": null,
"e": 2055,
"s": 1979,
"text": "Click − Performs a Click. We can also perform a click based on coordinates."
... |
addgroup command in Linux with Examples - GeeksforGeeks | 22 Jun, 2020
addgroup command in Linux is used to add a new group to your current Linux machine. This command allows you to modify the configurations of the group which is to be created. It is similar to the groupadd command in Linux. The addgroup command is much interactive as compared to groupadd command.
To install ... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 24311,
"s": 24015,
"text": "addgroup command in Linux is used to add a new group to your current Linux machine. This command allows you to modify the configurations of the group which is to b... |
What e.preventDefault() method really does in jQuery? | The preventDefault() method stops the default action of a selected element from happening by a user. This method does not accept any parameter and works in two ways:
It prevents a link from following the URL so that the browser can't go another page.
It prevents a submit button from submitting a form.
<html>
<head>
... | [
{
"code": null,
"e": 1228,
"s": 1062,
"text": "The preventDefault() method stops the default action of a selected element from happening by a user. This method does not accept any parameter and works in two ways:"
},
{
"code": null,
"e": 1313,
"s": 1228,
"text": "It prevents a li... |
Simple Diamond Pattern in Python - GeeksforGeeks | 29 May, 2021
Given an integer n, the task is to write a python program to print diamond using loops and mathematical formulations. The minimum value of n should be greater than 4.
Examples :
For size = 5
* * *
* * * * *
* * *
*
For size = 8
* * * * * *
* * * * * * * *
* * * * * *
... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n29 May, 2021"
},
{
"code": null,
"e": 24379,
"s": 24212,
"text": "Given an integer n, the task is to write a python program to print diamond using loops and mathematical formulations. The minimum value of n should be greater than... |
How to implement an interface using an anonymous inner class in Java? | An anonymous inner class is a class which doesn't have a name, we will directly define it at the instantiation line.
In the following program, we are implementing the toString() method of TutorialsPoint interface using Anonymous inner class and, print its return value.
interface TutorialsPoint{
public String toStrin... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "An anonymous inner class is a class which doesn't have a name, we will directly define it at the instantiation line."
},
{
"code": null,
"e": 1332,
"s": 1179,
"text": "In the following program, we are implementing the toString() meth... |
GATE | GATE-CS-2015 (Set 3) | Question 23 - GeeksforGeeks | 10 Sep, 2018
While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
(A) 65(B) 67(C) 69(D) 83Answer: (B)Explanation: Here is The Insertion Algorithm For a Binary Search Tree :
Insert(Root,key)
{
if(Root is NULL)
Creat... | [
{
"code": null,
"e": 24542,
"s": 24514,
"text": "\n10 Sep, 2018"
},
{
"code": null,
"e": 24689,
"s": 24542,
"text": "While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is"
},
{
"c... |
How to Efficiently Fine-Tune your Machine Learning Models | by Khuyen Tran | Towards Data Science | Have you ever wanted to experiment with different parameters for your model but find it really time-consuming to do so? Let’s say you want to use support vector machines (SVM) to train and predict the model.
You debate what could be the best value for C so you keep experimenting with different values of C manually and ... | [
{
"code": null,
"e": 380,
"s": 172,
"text": "Have you ever wanted to experiment with different parameters for your model but find it really time-consuming to do so? Let’s say you want to use support vector machines (SVM) to train and predict the model."
},
{
"code": null,
"e": 565,
"... |
jMeter - Quick Guide | Before going into the details of JMeter, let us first understand a few jargons associated with the testing of any application.
Performance Test − This test sets the best possible performance expectation under a given configuration of infrastructure. It also highlights early in the testing process if any changes need to... | [
{
"code": null,
"e": 2032,
"s": 1905,
"text": "Before going into the details of JMeter, let us first understand a few jargons associated with the testing of any application."
},
{
"code": null,
"e": 2279,
"s": 2032,
"text": "Performance Test − This test sets the best possible per... |
Forecasting the Future Power Consumption using LSTM, Deep Neural Network and Exploratory Data Analysis | Towards Data Science | Human beings live on the time axis and design their daily life accordingly. Mostly they sleep at night and other activities are mostly done at certain times (e.g. breakfast — in the morning). When we consider language, it is known that what is spoken or written maintains and follows certain integrity of meaning. When w... | [
{
"code": null,
"e": 975,
"s": 172,
"text": "Human beings live on the time axis and design their daily life accordingly. Mostly they sleep at night and other activities are mostly done at certain times (e.g. breakfast — in the morning). When we consider language, it is known that what is spoken or w... |
A Step-By-Step Guide To Web Scraping With R | by Dario Radečić | Towards Data Science | A good dataset is difficult to find. That’s expected, but nothing to fear about. Techniques like web scraping enable us to fetch data from anywhere at any time — if you know how. Today we’ll explore just how easy it is to scrape web data with R and do so through R Shiny’s nice GUI interface.
So, what is web scraping? I... | [
{
"code": null,
"e": 465,
"s": 172,
"text": "A good dataset is difficult to find. That’s expected, but nothing to fear about. Techniques like web scraping enable us to fetch data from anywhere at any time — if you know how. Today we’ll explore just how easy it is to scrape web data with R and do so ... |
\bigstar - Tex Command | \bigstar - Used to draw big star symbol.
{ \bigstar }
\bigstar command draws big star symbol.
\bigstar
★
\bigstar
★
\bigstar
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.... | [
{
"code": null,
"e": 8027,
"s": 7986,
"text": "\\bigstar - Used to draw big star symbol."
},
{
"code": null,
"e": 8040,
"s": 8027,
"text": "{ \\bigstar }"
},
{
"code": null,
"e": 8080,
"s": 8040,
"text": "\\bigstar command draws big star symbol."
},
{
... |
Try, catch, throw and throws in Java | 09 Jun, 2022
What is an Exception?
An exception is an “unwanted or unexpected event”, which occurs during the execution of the program i.e, at run-time, that disrupts the normal flow of the program’s instructions. When an exception occurs, the execution of the program gets terminated.
Why does an Exception occur?
An... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 75,
"s": 52,
"text": "What is an Exception? "
},
{
"code": null,
"e": 327,
"s": 75,
"text": "An exception is an “unwanted or unexpected event”, which occurs during the execution... |
Python | Pandas Series.dt.to_pydatetime | 20 Mar, 2019
Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.to_pydatetime() function return the data as an array of native Python datetime objects. Timezone information is retained if present.
Syntax: Series.dt.to_pydatetime()
Parameter : None
Re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 282,
"s": 28,
"text": "Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.to_pydatetime() function return the data as an array o... |
Wavelet Trees | Introduction | 11 Jun, 2021
A wavelet tree is a data structure that recursively partitions a stream into two parts until we’re left with homogeneous data. The name derives from an analogy with the wavelet transform for signals, which recursively decomposes a signal into low-frequency and high-frequency components. Wavelet trees can b... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 673,
"s": 52,
"text": "A wavelet tree is a data structure that recursively partitions a stream into two parts until we’re left with homogeneous data. The name derives from an analogy with the wavel... |
How to scrape all the text from body tag using Beautifulsoup in Python? | 29 Jun, 2021
strings generator is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. One drawback of the string attribute is that it only works for tags with string inside it and retur... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 516,
"s": 54,
"text": "strings generator is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated ... |
How to Print Prime Numbers in MS SQL Server? | 16 Nov, 2021
In this article, we are going to print Prime numbers using MS SQL. Here we will be using 2 while loops statement for printing prime numbers.
Steps 1: First we will DECLARE a variable I with initial value 2.
Query:
DECLARE @I INT=2
Step 2: Then we will DECLARE a variable PRIME with an initial value of 0 (t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 193,
"s": 52,
"text": "In this article, we are going to print Prime numbers using MS SQL. Here we will be using 2 while loops statement for printing prime numbers."
},
{
"code": null,
"... |
turtle.undo() function in Python | 26 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to undo (repeatedly) the last turtle action. The number of available... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2020"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver... |
Perl | Getting the Number of Elements of an Array | 18 Feb, 2019
An array in Perl is a variable used to store an ordered list of scalar values. An array variable is preceded by an “at” (@) sign. The size of an array can be determined using the scalar context on the array which returns the number of elements in the array
Example 1:
#!/usr/bin/perl # Initializing the arr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "An array in Perl is a variable used to store an ordered list of scalar values. An array variable is preceded by an “at” (@) sign. The size of an array can be determined using ... |
Filtering a row in PySpark DataFrame based on matching values from a list | 28 Jul, 2021
In this article, we are going to filter the rows in the dataframe based on matching values in the list by using isin in Pyspark dataframe
isin(): This is used to find the elements contains in a given dataframe, it will take the elements and get the elements to match to the data
Syntax: isin([element1,eleme... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 166,
"s": 28,
"text": "In this article, we are going to filter the rows in the dataframe based on matching values in the list by using isin in Pyspark dataframe"
},
{
"code": null,
"e": ... |
JavaScript Code Execution | 16 Nov, 2021
JavaScript is a synchronous (Moves to the next line only when the execution of the current line is completed) and single-threaded (Executes one command at a time in a specific order one after another serially) language. To know behind the scene of how JavaScript code gets executed internally, we have to kn... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 423,
"s": 28,
"text": "JavaScript is a synchronous (Moves to the next line only when the execution of the current line is completed) and single-threaded (Executes one command at a time in a specific... |
Tryit Editor v3.7 | Tryit: HTML semantics | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.