title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Find day of the week for a given date - GeeksforGeeks
21 Oct, 2021 Write a function that calculates the day of the week for any particular date in the past or future. A typical application is to calculate the day of the week on which someone was born or some other special event occurred. Following is a simple function suggested by Sakamoto, Lachman, Keith and Craver to ...
[ { "code": null, "e": 24690, "s": 24662, "text": "\n21 Oct, 2021" }, { "code": null, "e": 24914, "s": 24690, "text": "Write a function that calculates the day of the week for any particular date in the past or future. A typical application is to calculate the day of the week on wh...
What is the use of a double-click event in AngularJs? - GeeksforGeeks
25 Jul, 2019 The ng-dblclick event in the AngularJS is useful for the HTML elements for getting the double click event, defined. In case a user wishes to get the function fired or other events when the double click of the HTML elements is done, then this event will be going to be needed. All the elements of the HTML wi...
[ { "code": null, "e": 26464, "s": 26436, "text": "\n25 Jul, 2019" }, { "code": null, "e": 26798, "s": 26464, "text": "The ng-dblclick event in the AngularJS is useful for the HTML elements for getting the double click event, defined. In case a user wishes to get the function fired...
How to create a responsive inline form with CSS?
Following is the code to create a responsive inline form with CSS − Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style> body { font-family: Arial, Helvetica, sans-serif; } * { box-sizing: border-box; } form { display: flex; flex-flow: row w...
[ { "code": null, "e": 1130, "s": 1062, "text": "Following is the code to create a responsive inline form with CSS −" }, { "code": null, "e": 1141, "s": 1130, "text": " Live Demo" }, { "code": null, "e": 2284, "s": 1141, "text": "<!DOCTYPE html>\n<html>\n<head>\...
Find smallest number with given number of digits and sum of digits
25 May, 2022 How to find the smallest number with given digit sum s and number of digits d? Examples : Input : s = 9, d = 2 Output : 18 There are many other possible numbers like 45, 54, 90, etc with sum of digits as 9 and number of digits as 2. The smallest of them is 18. Input : s = 20, d = 3 Output : 299 A ...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2022" }, { "code": null, "e": 146, "s": 54, "text": "How to find the smallest number with given digit sum s and number of digits d? Examples : " }, { "code": null, "e": 357, "s": 146, "text": "Input : s = ...
Python | Check if all the values in a list that are greater than a given value
21 Nov, 2018 Given a list, print all the values in a list that are greater than the given valueExamples: Input : list = [10, 20, 30, 40, 50] given value = 20 Output : No Input : list = [10, 20, 30, 40, 50] given value = 5 Output : Yes Method 1: Traversal of list By traversing in the list, we can c...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Nov, 2018" }, { "code": null, "e": 120, "s": 28, "text": "Given a list, print all the values in a list that are greater than the given valueExamples:" }, { "code": null, "e": 272, "s": 120, "text": "Input : list =...
ML | OPTICS Clustering Implementing using Sklearn
14 Jul, 2019 Prerequisites: OPTICS Clustering This article will demonstrate how to implement OPTICS Clustering technique using Sklearn in Python. The dataset used for the demonstration is the Mall Customer Segmentation Data which can be downloaded from Kaggle. Step 1: Importing the required libraries import numpy as np...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jul, 2019" }, { "code": null, "e": 61, "s": 28, "text": "Prerequisites: OPTICS Clustering" }, { "code": null, "e": 276, "s": 61, "text": "This article will demonstrate how to implement OPTICS Clustering technique ...
Python | Pandas Series.argmax()
27 Feb, 2019 Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.argmax() function returns the row la...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Feb, 2019" }, { "code": null, "e": 285, "s": 28, "text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index...
Python – Character coordinates in Matrix
30 Dec, 2020 Sometimes, while working with Python data, we can have a problem in which we need to extract all the coordinates in Matrix, which are characters. This kind of problem can have potential application in domains such as web development and day-day programming. Let’s discuss certain ways in which this task can...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2020" }, { "code": null, "e": 350, "s": 28, "text": "Sometimes, while working with Python data, we can have a problem in which we need to extract all the coordinates in Matrix, which are characters. This kind of problem can have...
Longest Repeating Subsequence | Practice | GeeksforGeeks
Given string str, find the length of the longest repeating subsequence such that it can be found twice in the given string. The two identified subsequences A and B can use the same ith character from string str if and only if that ith character has different indices in A and B. For example, A = "xax" and B = "xax" the...
[ { "code": null, "e": 363, "s": 238, "text": "Given string str, find the length of the longest repeating subsequence such that it can be found twice in the given string. " }, { "code": null, "e": 637, "s": 363, "text": "The two identified subsequences A and B can use the same ith ...
Taking Linux System Snapshots with Timeshift
02 Feb, 2021 Timeshift is a Linux application that is built for providing functionality to restore your system just like when you restore a Windows system. Timeshift makes snapshots of your system in regular intervals which are further used at the time of restoration or undo all changes in the system. Each Snapshot tak...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2021" }, { "code": null, "e": 318, "s": 28, "text": "Timeshift is a Linux application that is built for providing functionality to restore your system just like when you restore a Windows system. Timeshift makes snapshots of you...
Extract dominant colors of an image using Python
17 May, 2022 Let us see how to extract the dominant colors of an image using Python. Clustering is used in much real-world application, one such real-world example of clustering is extracting dominant colors from an image. Any image consists of pixels, each pixel represents a dot in an image. A pixel contains three va...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 May, 2022" }, { "code": null, "e": 265, "s": 54, "text": "Let us see how to extract the dominant colors of an image using Python. Clustering is used in much real-world application, one such real-world example of clustering is extrac...
Matplotlib.figure.Figure.get_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...
Program to print the Ladder Pattern
27 Apr, 2021 Given an integer N, the task is to print the ladder with N steps using ‘*’. The ladder will be with the gap of 3 spaces between two side rails. Input: N = 3 Output: * * * * ***** * * * * ***** * * * * ***** * * * * Input: N = 4 Output: * * * * ***** * * * * ***** * * * * ***...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2021" }, { "code": null, "e": 173, "s": 28, "text": "Given an integer N, the task is to print the ladder with N steps using ‘*’. The ladder will be with the gap of 3 spaces between two side rails. " }, { "code": null, ...
Monte Carlo method applied on a 2D binary alloy using an Ising Model on Python | by Jonathan Leban | Towards Data Science
A material such as a piece of metal or a glass sample has physical properties such as electrical conductivity, magnetic susceptibility, thermal conductivity and many others. For industrial applications, these properties must be known in order to select the best material or alloy that will meet the requirements of the l...
[ { "code": null, "e": 840, "s": 171, "text": "A material such as a piece of metal or a glass sample has physical properties such as electrical conductivity, magnetic susceptibility, thermal conductivity and many others. For industrial applications, these properties must be known in order to select th...
kinit - Unix, Linux Command
The use must be registered as a principal with the Key Distribution Center (KDC) prior to running kinit. <USER_HOME> is obtained from the java.lang.System property user.home. <USER_NAME> is obtained from java.lang.System property user.name. If <USER_HOME> is null, the cache file would be stored in the current directo...
[ { "code": null, "e": 10684, "s": 10577, "text": "\nThe use must be registered as a principal with the Key Distribution Center\n(KDC) prior to running kinit.\n" }, { "code": null, "e": 11184, "s": 10684, "text": "\n<USER_HOME> is obtained from the\njava.lang.System property\nuser....
How to convert an integer to a unicode character in Python?
Python library’s chr() function converts Unicode character associated to any interger which is between 0 an 0x10ffff. >>> chr(36) '$' >>> chr(97) 'a' >>> chr(81) 'Q'
[ { "code": null, "e": 1180, "s": 1062, "text": "Python library’s chr() function converts Unicode character associated to any interger which is between 0 an 0x10ffff." }, { "code": null, "e": 1228, "s": 1180, "text": ">>> chr(36)\n'$'\n>>> chr(97)\n'a'\n>>> chr(81)\n'Q'" } ]
Create scatterplot for two dependent variables and one independent variable in R.
To create scatterplot for two dependent variables and one independent variable, we can use geom_point function and geom_smooth function of ggplot2 package. Both of these functions will be used twice, where we can define the aesthetics of the plot for each dependent variable as shown in the Example below. Following snip...
[ { "code": null, "e": 1368, "s": 1062, "text": "To create scatterplot for two dependent variables and one independent variable, we can use geom_point function and geom_smooth function of ggplot2 package. Both of these functions will be used twice, where we can define the aesthetics of the plot for ea...
Sowing the Seeds of Decision Tree Regression | by Ashwin Raj | Towards Data Science
In this article we will discuss about decision trees, one of the supervised learning algorithm, commonly referred to as CART that can be used for both regression and classification problems. As the name suggests, the primary role of this algorithm is to make a decision using a tree structure. To find solutions a decisi...
[ { "code": null, "e": 362, "s": 171, "text": "In this article we will discuss about decision trees, one of the supervised learning algorithm, commonly referred to as CART that can be used for both regression and classification problems." }, { "code": null, "e": 667, "s": 362, "tex...
C++ Queue Library - empty() Function
The C++ function std::queue::empty() tests whether queue is empty or not. Queue of zero size is considered as empty queue. Following is the declaration for std::queue::empty() function form std::queue header. bool empty() const; None Returns true if queue is empty otherwise false. Constant i.e. O(1) The following exam...
[ { "code": null, "e": 2726, "s": 2603, "text": "The C++ function std::queue::empty() tests whether queue is empty or not. Queue of zero size is considered as empty queue." }, { "code": null, "e": 2812, "s": 2726, "text": "Following is the declaration for std::queue::empty() functi...
Decimal.Round() Method in C# | Set - 1 - GeeksforGeeks
20 Mar, 2019 Decimal.Round Method is used to round a value to the nearest integer or a specified number of decimal places. There are 4 methods in the overload list of this method as follows: Round(Decimal) Method Round(Decimal, Int32) Method Round(Decimal, MidpointRounding) Method Round(Decimal, Int32, MidpointRounding...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n20 Mar, 2019" }, { "code": null, "e": 24480, "s": 24302, "text": "Decimal.Round Method is used to round a value to the nearest integer or a specified number of decimal places. There are 4 methods in the overload list of this meth...
How to build a real-time fraud detection pipeline using Faust and MLFlow | by Bogdan Cojocar | Towards Data Science
In this tutorial we will learn to start a Kafka cluster locally, to write a producer that sends messages, to create a simple machine learning training process for fraud detection, to expose the model via a REST interface and to do prediction in real-time. The main frameworks that we will use are: Faust: stream processi...
[ { "code": null, "e": 428, "s": 172, "text": "In this tutorial we will learn to start a Kafka cluster locally, to write a producer that sends messages, to create a simple machine learning training process for fraud detection, to expose the model via a REST interface and to do prediction in real-time....
Python Regex Metacharacters - GeeksforGeeks
01 Oct, 2020 Metacharacters are considered as the building blocks of regular expressions. Regular expressions are patterns used to match character combinations in the strings. Metacharacter has special meaning in finding patterns and are mostly used to define the search criteria and any text manipulations. Some of the ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n01 Oct, 2020" }, { "code": null, "e": 24587, "s": 24292, "text": "Metacharacters are considered as the building blocks of regular expressions. Regular expressions are patterns used to match character combinations in the strings. ...
ATM Management System using C++ - GeeksforGeeks
07 Jul, 2021 ATMs are Automated Teller Machines that are used to carry day-to-day financial transactions. ATMs can be used to withdraw money or to deposit money or even to know the information of an account like the balance amount, etc. They are convenient and easy to use, it allows consumers to perform quick self-serv...
[ { "code": null, "e": 24122, "s": 24094, "text": "\n07 Jul, 2021" }, { "code": null, "e": 24447, "s": 24122, "text": "ATMs are Automated Teller Machines that are used to carry day-to-day financial transactions. ATMs can be used to withdraw money or to deposit money or even to know...
How To Learn ReactJS: A Complete Guide For Beginners - GeeksforGeeks
25 Aug, 2021 Every front-end developer and web developer knows how frustrating and painful it is to write the same code at multiple places. If they need to add a button on multiple pages they are forced to do a lot of code. Developers using other frameworks face the challenges to rework most codes even when crafting co...
[ { "code": null, "e": 24552, "s": 24524, "text": "\n25 Aug, 2021" }, { "code": null, "e": 25086, "s": 24552, "text": "Every front-end developer and web developer knows how frustrating and painful it is to write the same code at multiple places. If they need to add a button on mult...
MongoDB query to select 10 most recent documents without changing order?
For this, use skip() in MongoDB. Under skip(), set “count() – 10” to get 10 most recent documents. Let us create a collection with documents − > db.demo500.insertOne({value:10});{ "acknowledged" : true, "insertedId" : ObjectId("5e8749c5987b6e0e9d18f55a") } > db.demo500.insertOne({value:1200});{ "acknowledged" ...
[ { "code": null, "e": 1205, "s": 1062, "text": "For this, use skip() in MongoDB. Under skip(), set “count() – 10” to get 10 most recent documents. Let us create a collection with documents −" }, { "code": null, "e": 2648, "s": 1205, "text": "> db.demo500.insertOne({value:10});{\n ...
How to duplicate a div using jQuery?
To duplicate a div in jQuery, use the jQuery clone() method. You can try to run the following code to learn how to duplicate a div using jQuery: Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("b...
[ { "code": null, "e": 1123, "s": 1062, "text": "To duplicate a div in jQuery, use the jQuery clone() method." }, { "code": null, "e": 1207, "s": 1123, "text": "You can try to run the following code to learn how to duplicate a div using jQuery:" }, { "code": null, "e": ...
Maximum sum of values of nodes among all connected components of an undirected graph - GeeksforGeeks
30 Mar, 2022 Given an undirected graph with V vertices and E edges. Every node has been assigned a given value. The task is to find the connected chain with the maximum sum of of values among all the connected components in the graph. Examples: Input: V = 7, E = 4 Values = {10, 25, 5, 15, 5, 20, 0} Output : Max Sum v...
[ { "code": null, "e": 24692, "s": 24664, "text": "\n30 Mar, 2022" }, { "code": null, "e": 24924, "s": 24692, "text": "Given an undirected graph with V vertices and E edges. Every node has been assigned a given value. The task is to find the connected chain with the maximum sum of ...
Find the smallest and second smallest elements in an array - GeeksforGeeks
10 Jan, 2022 Write an efficient C program to find smallest and second smallest element in an array. Example: Input: arr[] = {12, 13, 1, 10, 34, 1} Output: The smallest element is 1 and second Smallest element is 10 A Simple Solution is to sort the array in increasing order. The first two elements in sort...
[ { "code": null, "e": 41275, "s": 41247, "text": "\n10 Jan, 2022" }, { "code": null, "e": 41363, "s": 41275, "text": "Write an efficient C program to find smallest and second smallest element in an array. " }, { "code": null, "e": 41374, "s": 41363, "text": "Ex...
iOS - Image View
Image view is used for displaying a single image or animated sequence of images. image highlightedImage userInteractionEnabled animationImages animationRepeatCount - (id)initWithImage:(UIImage *)image - (id)initWithImage:(UIImage *)image highlightedImage: (UIImage *)highlightedImage - (void)startAnimating - (void)stopA...
[ { "code": null, "e": 2172, "s": 2091, "text": "Image view is used for displaying a single image or animated sequence of images." }, { "code": null, "e": 2178, "s": 2172, "text": "image" }, { "code": null, "e": 2195, "s": 2178, "text": "highlightedImage" }, ...
GraphQL - Type System
GraphQL is a strongly typed language. Type System defines various data types that can be used in a GraphQL application. The type system helps to define the schema, which is a contract between client and server. The commonly used GraphQL data types are as follows − Scalar Stores a single value Object Shows what kind of ...
[ { "code": null, "e": 2216, "s": 1951, "text": "GraphQL is a strongly typed language. Type System defines various data types that can be used in a GraphQL application. The type system helps to define the schema, which is a contract between client and server. The commonly used GraphQL data types are a...
RxJS - Working with Subscription
When the observable is created, to execute the observable we need to subscribe to it. Here, is a simple example of how to subscribe to an observable. import { of } from 'rxjs'; import { count } from 'rxjs/operators'; let all_nums = of(1, 7, 5, 10, 10, 20); let final_val = all_nums.pipe(count()); final_val.subscribe(x ...
[ { "code": null, "e": 1910, "s": 1824, "text": "When the observable is created, to execute the observable we need to subscribe to it." }, { "code": null, "e": 1974, "s": 1910, "text": "Here, is a simple example of how to subscribe to an observable." }, { "code": null, ...
How to update parent state in ReactJS?
In this article, we are going to see how to update the parent state from a child component in a React application. To update the parent state from the children component, either we can use additional dependencies like Redux or we can use this simple method of passing the state of the parent to the children and handling...
[ { "code": null, "e": 1177, "s": 1062, "text": "In this article, we are going to see how to update the parent state from a child component in a React application." }, { "code": null, "e": 1399, "s": 1177, "text": "To update the parent state from the children component, either we c...
Find the number of consecutive zero at the end after multiplying n numbers in Python
Suppose we have an array with n numbers, we have to return the number of consecutive zero’s at the end after multiplying all the n numbers. So, if the input is like [200, 20, 5, 30, 40, 14], then the output will be 6 as 200 * 20 * 5 * 30 * 40 * 14 = 336000000, there are six 0s at the end. To solve this, we will follow ...
[ { "code": null, "e": 1202, "s": 1062, "text": "Suppose we have an array with n numbers, we have to return the number of consecutive zero’s at the end after multiplying all the n numbers." }, { "code": null, "e": 1352, "s": 1202, "text": "So, if the input is like [200, 20, 5, 30, ...
Materialize - Cards
Materialize provides different CSS classes to apply various predefined visual and behavioral enhancements to display various types of cards. Following table mentions the available classes and their effects. card Identifies div element as a Materialize card container. Required on "outer" div. card-content Identifies div...
[ { "code": null, "e": 2394, "s": 2187, "text": "Materialize provides different CSS classes to apply various predefined visual and behavioral enhancements to display various types of cards. Following table mentions the available classes and their effects." }, { "code": null, "e": 2399, ...
Convert string from lowercase to uppercase in R programming - toupper() function - GeeksforGeeks
10 May, 2020 toupper() method in R programming is used to convert the lowercase string to uppercase string. Syntax: toupper(s) Return: Returns the uppercase string. Example 1: # R program to convert string# from lowercase to uppercase # Given Stringgfg <- "Geeks For Geeks" # Using toupper() methodanswer <- toupper(gf...
[ { "code": null, "e": 24545, "s": 24517, "text": "\n10 May, 2020" }, { "code": null, "e": 24640, "s": 24545, "text": "toupper() method in R programming is used to convert the lowercase string to uppercase string." }, { "code": null, "e": 24659, "s": 24640, "tex...
Python unittest - assertNotEqual() function - GeeksforGeeks
29 Aug, 2020 assertNotEqual() in Python is a unittest library function that is used in unit testing to check the inequality of two values. This function will take three parameters as input and return a boolean value depending upon the assert condition. If both input values are unequal assertNotEqual() will return true ...
[ { "code": null, "e": 24890, "s": 24862, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25216, "s": 24890, "text": "assertNotEqual() in Python is a unittest library function that is used in unit testing to check the inequality of two values. This function will take three paramet...
Smallest Positive missing number | Practice | GeeksforGeeks
You are given an array arr[] of N integers including 0. The task is to find the smallest positive number missing from the array. Example 1: Input: N = 5 arr[] = {1,2,3,4,5} Output: 6 Explanation: Smallest positive missing number is 6. Example 2: Input: N = 5 arr[] = {0,-10,1,3,-20} Output: 2 Explanation: Smallest pos...
[ { "code": null, "e": 367, "s": 238, "text": "You are given an array arr[] of N integers including 0. The task is to find the smallest positive number missing from the array." }, { "code": null, "e": 378, "s": 367, "text": "Example 1:" }, { "code": null, "e": 475, ...
Effect of adding whitespace in the scanf() function in C
19 May, 2021 In this article, we will discuss the scenarios regarding adding white space before or after the format specifier in a scanf() function in C Programming Language. Adding a whitespace character in a scanf() function causes it to read elements and ignore all the whitespaces as much as it can and search for a ...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 May, 2021" }, { "code": null, "e": 216, "s": 54, "text": "In this article, we will discuss the scenarios regarding adding white space before or after the format specifier in a scanf() function in C Programming Language." }, { ...
How can I loop through all rows of a table in MySQL?
To loop through all rows of a table, use stored procedure in MySQL. The syntax is as follows − delimiter // CREATE PROCEDURE yourProcedureName() BEGIN DECLARE anyVariableName1 INT DEFAULT 0; DECLARE anyVariableName2 INT DEFAULT 0; SELECT COUNT(*) FROM yourTableName1 INTO anyVariableName1; SET anyVariableName2 =0; WHILE...
[ { "code": null, "e": 1282, "s": 1187, "text": "To loop through all rows of a table, use stored procedure in MySQL. The syntax is as follows −" }, { "code": null, "e": 1739, "s": 1282, "text": "delimiter //\nCREATE PROCEDURE yourProcedureName()\nBEGIN\nDECLARE anyVariableName1 INT...
Scope of Variable in R
22 Apr, 2020 In R, variables are the containers for storing data values. They are reference, or pointers, to an object in memory which means that whenever a variable is assigned to an instance, it gets mapped to that instance. A variable in R can store a vector, a group of vectors or a combination of many R objects. Ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 333, "s": 28, "text": "In R, variables are the containers for storing data values. They are reference, or pointers, to an object in memory which means that whenever a variable is assigned to an inst...
How Can We Calculate Age Without DATEDIF Function?
09 May, 2021 In this article, we’ll explore different ways of finding age in Excel, other than the usual way of finding age using DATEDIF function. For this we can use one of the two ways: Using simple mathematics Using the YEAR function We can easily find age of a person using simple Math. All we need to do is, subtra...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 May, 2021" }, { "code": null, "e": 228, "s": 52, "text": "In this article, we’ll explore different ways of finding age in Excel, other than the usual way of finding age using DATEDIF function. For this we can use one of the two ways...
Drop login in SQL Server
18 Aug, 2020 The DROP LOGIN statement could be used to delete an user or login that used to connect to a SQL Server instance. Syntax – DROP LOGIN loginname; GO Permissions :The user which is deleting the login must have ALTER ANY LOGIN permission on the server. Note –A login which is currently logged into SQL Server c...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Aug, 2020" }, { "code": null, "e": 141, "s": 28, "text": "The DROP LOGIN statement could be used to delete an user or login that used to connect to a SQL Server instance." }, { "code": null, "e": 150, "s": 141, "t...
What is MIPS(Million of Instructions Per Second)?
07 Jul, 2022 It may be a strategy for measuring the raw speed of a computer’s processor. Since the MIPS estimation doesn’t take into consideration other components such as the computer’s I/O speed or processor engineering, it isn’t continuously a reasonable way to degree the execution of a computer. For this case, a co...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2022" }, { "code": null, "e": 460, "s": 28, "text": "It may be a strategy for measuring the raw speed of a computer’s processor. Since the MIPS estimation doesn’t take into consideration other components such as the computer’s I...
Python – Least Frequent Character in String
30 Jun, 2022 This article gives us the methods to find the frequency of minimum occurring character in a python string. This is quite important utility nowadays and knowledge of it is always useful. Let’s discuss certain ways in which this task can be performed. Method 1 : Naive method + min() In this method, we simp...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 303, "s": 52, "text": "This article gives us the methods to find the frequency of minimum occurring character in a python string. This is quite important utility nowadays and knowledge of it is alw...
std::string::insert() in C++
10 Sep, 2018 insert() is used to insert characters in string at specified position. It supports various syntaxes to facilitate same, here we will describe them. Syntax 1: Inserts the characters of str starting from index idx. string& string::insert (size_type idx, const string& str) idx :is the index number str : is th...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Sep, 2018" }, { "code": null, "e": 200, "s": 52, "text": "insert() is used to insert characters in string at specified position. It supports various syntaxes to facilitate same, here we will describe them." }, { "code": null...
Python | Get unique values from a list
08 Jul, 2022 Given a list, print all the unique numbers in any order. Examples: Input : 10 20 10 30 40 40 Output : 10 20 30 40 Input : 1 2 1 1 3 4 3 3 5 Output : 1 2 3 4 5 Method 1 : Traversal of list Using traversal, we can traverse for every element in the list and check if the element is in the unique_list alr...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2022" }, { "code": null, "e": 109, "s": 52, "text": "Given a list, print all the unique numbers in any order." }, { "code": null, "e": 120, "s": 109, "text": "Examples: " }, { "code": null, "e": ...
Count ways to obtain given sum by repeated throws of a dice
23 Jun, 2021 Given an integer N, the task is to find the number of ways to get the sum N by repeatedly throwing a dice. Examples: Input: N = 3Output: 4Explanation:The four possible ways to obtain N are: 1 + 1 + 1 1 + 2 2 + 1 3 Input: N = 2Output: 2Explanation:The two possible ways to obtain N are: 1 + 1 2 Recursive App...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2021" }, { "code": null, "e": 161, "s": 54, "text": "Given an integer N, the task is to find the number of ways to get the sum N by repeatedly throwing a dice." }, { "code": null, "e": 171, "s": 161, "text":...
Compiler Class in Java
09 Feb, 2022 Compiler Class provides support and related services to Java code to Native Code. Native code is a form of code that can be said to run in a virtual machine (for example, [JVM]Java Virtual Machine). Declaration: public final class Compiler extends Object The java.lang.Compiler.command() tests the argument...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Feb, 2022" }, { "code": null, "e": 254, "s": 54, "text": "Compiler Class provides support and related services to Java code to Native Code. Native code is a form of code that can be said to run in a virtual machine (for example, [JV...
Path toString() method in Java with Examples
16 Jul, 2019 The Java Path interface was added to Java NIO in Java 7. toString() method of java.nio.file.Path used to return the string representation of this path. If this path was created by converting a path string using the getPath method then the path string returned by this method may differ from the original Str...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2019" }, { "code": null, "e": 460, "s": 28, "text": "The Java Path interface was added to Java NIO in Java 7. toString() method of java.nio.file.Path used to return the string representation of this path. If this path was create...
ReactJS Form Validation using Formik and Yup
20 Sep, 2021 As covered in the previous article, we can validate forms using controlled components. But it may be time-consuming and the length of the code may increase if we need forms at many places on our website. Here comes Formik and Yup to the rescue! Formik is designed to manage forms with complex validation wit...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Sep, 2021" }, { "code": null, "e": 626, "s": 54, "text": "As covered in the previous article, we can validate forms using controlled components. But it may be time-consuming and the length of the code may increase if we need forms a...
Python Number pow() Method
Python number method pow() returns x to the power of y. If the third argument (z) is given, it returns x to the power of y modulus z, i.e. pow(x, y) % z. Following is the syntax for pow() method − import math math.pow( x, y[, z] ) Note − This function is not accessible directly, so we need to import math module and t...
[ { "code": null, "e": 2533, "s": 2378, "text": "Python number method pow() returns x to the power of y. If the third argument (z) is given, it returns x to the power of y modulus z, i.e. pow(x, y) % z." }, { "code": null, "e": 2576, "s": 2533, "text": "Following is the syntax for...
How to create a character vector from data frame values in R?
To create a character vector in R we can enclose the vector values in double quotation marks but if we want to use a data frame values to create a character vector then as.character function can be used. For example, if we have a data frame df then all the values in the df can form a character vector using as.character...
[ { "code": null, "e": 1515, "s": 1187, "text": "To create a character vector in R we can enclose the vector values in double quotation marks but if we want to use a data frame values to create a character vector then as.character function can be used. For example, if we have a data frame df then all ...
fillellipse() function in C
05 Dec, 2019 The header file graphics.h contains fillellipse() function which draws and fills an ellipse with center at (x, y) and (x_radius, y_radius) as x and y radius of ellipse.Syntax : void fillellipse(int x, int y, int x_radius, int y_radius); where, (x, y) is center of the ellipse....
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Dec, 2019" }, { "code": null, "e": 229, "s": 52, "text": "The header file graphics.h contains fillellipse() function which draws and fills an ellipse with center at (x, y) and (x_radius, y_radius) as x and y radius of ellipse.Syntax...
Program for Worst Fit algorithm in Memory Management
28 Jun, 2022 Prerequisite : Partition allocation methodsWorst Fit allocates a process to the partition which is largest sufficient among the freely available partitions available in the main memory. If a large process comes at a later stage, then memory will not have space to accommodate it. Example: Input : blockSize...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2022" }, { "code": null, "e": 332, "s": 52, "text": "Prerequisite : Partition allocation methodsWorst Fit allocates a process to the partition which is largest sufficient among the freely available partitions available in the m...
Datetime.replace() Function in Python
28 Jul, 2021 Datetime.replace() function is used to replace the contents of the DateTime object with the given parameters. Syntax: Datetime_object.replace(year,month,day,hour,minute,second,microsecond,tzinfo) Parameters: year: New year value in range-[1,9999], month: New month value in range-[1,12], day: New day value ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2021" }, { "code": null, "e": 138, "s": 28, "text": "Datetime.replace() function is used to replace the contents of the DateTime object with the given parameters." }, { "code": null, "e": 224, "s": 138, "text...
Check if a string is palindrome in C using pointers
25 May, 2022 Given a string. The task is to check if the string is a palindrome or not using pointers. You are not allowed to use any built-in string functions. A string is said to be a palindrome if the reverse of the string is same as the original string. For example, “madam” is palindrome because when the string is ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 May, 2022" }, { "code": null, "e": 426, "s": 52, "text": "Given a string. The task is to check if the string is a palindrome or not using pointers. You are not allowed to use any built-in string functions. A string is said to be a p...
Java.util.Objects class in Java
13 Nov, 2017 Java 7 has come up with a new class Objects that have 9 static utility methods for operating on objects. These utilities include null-safe methods for computing the hash code of an object, returning a string for an object, and comparing two objects. Using Objects class methods, one can smartly handle NullP...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Nov, 2017" }, { "code": null, "e": 304, "s": 54, "text": "Java 7 has come up with a new class Objects that have 9 static utility methods for operating on objects. These utilities include null-safe methods for computing the hash code...
SelectionSort - GeeksforGeeks
28 Jun, 2021 The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array ... More on Selection Sort Selection sort makes O(n) swaps which is minimum among a...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n28 Jun, 2021" }, { "code": null, "e": 29828, "s": 29577, "text": "The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginn...
Spring JDBC - JdbcTemplate Class
The org.springframework.jdbc.core.JdbcTemplate class is the central class in the JDBC core package. It simplifies the use of JDBC and helps to avoid common errors. It executes core JDBC workflow, leaving the application code to provide SQL and extract results. This class executes SQL queries or updates, initiating iter...
[ { "code": null, "e": 2889, "s": 2396, "text": "The org.springframework.jdbc.core.JdbcTemplate class is the central class in the JDBC core package. It simplifies the use of JDBC and helps to avoid common errors. It executes core JDBC workflow, leaving the application code to provide SQL and extract r...
How to Merge all CSV Files into a single dataframe – Python Pandas?
To merge all CSV files, use the GLOB module. The os.path.join() method is used inside the concat() to merge the CSV files together. At first, import the required libraries. We have set pd as an alias for the pandas library − import pandas as pd import glob import os Now, let’s say we have the following 3 CSV Files − Sa...
[ { "code": null, "e": 1194, "s": 1062, "text": "To merge all CSV files, use the GLOB module. The os.path.join() method is used inside the concat() to merge the CSV files together." }, { "code": null, "e": 1287, "s": 1194, "text": "At first, import the required libraries. We have s...
How to use protractor to check whether text is present in an element or not ? - GeeksforGeeks
22 Oct, 2021 Protractor is an end-to-end test framework developed for AngularJS applications, however, it also works for non-Angular JS applications. It runs tests against the application interacting with it as a real user would, running in a real browser. In this article, we are going to use Protractor to check how we...
[ { "code": null, "e": 25109, "s": 25081, "text": "\n22 Oct, 2021" }, { "code": null, "e": 25468, "s": 25109, "text": "Protractor is an end-to-end test framework developed for AngularJS applications, however, it also works for non-Angular JS applications. It runs tests against the ...
Difference between sequence and identity in Hibernate
Hibernate or JPA support 4 different types of primary key generator. These generators are used to generate primary key while inserting rows in the database. Below are the primary key generator − GenerationType.AUTO GenerationType. IDENTITY GenerationType.SEQUENCE GenerationType.TABLE GenerationType. IDENTITY − In i...
[ { "code": null, "e": 1260, "s": 1062, "text": "Hibernate or JPA support 4 different types of primary key generator. These generators are used to generate primary key while inserting rows in the database. Below are the primary key generator −" }, { "code": null, "e": 1280, "s": 126...
Perl gethostbyname Function
This function contacts the system's name-resolving service, returning a list of information for the host ADDR of type ADDRTYPE, as follows − ($name, $aliases, $addrtype, $length, @addrs) The @addrs array contains a list of packed binary addresses. In a scalar context, returns the host address. Following is the simple s...
[ { "code": null, "e": 2407, "s": 2220, "text": "This function contacts the system's name-resolving service, returning a list of information for the host ADDR of type ADDRTYPE, as follows − ($name, $aliases, $addrtype, $length, @addrs)" }, { "code": null, "e": 2515, "s": 2407, "tex...
Scikit Learn - Linear Regression
It is one of the best statistical models that studies the relationship between a dependent variable (Y) with a given set of independent variables (X). The relationship can be established with the help of fitting a best line. sklearn.linear_model.LinearRegression is the module used to implement linear regression. Follow...
[ { "code": null, "e": 2446, "s": 2221, "text": "It is one of the best statistical models that studies the relationship between a dependent variable (Y) with a given set of independent variables (X). The relationship can be established with the help of fitting a best line." }, { "code": null, ...
Prefix Sum of Matrix (Or 2D Array) in C++
In this problem, we are given a 2D array of integer values mat[][]. Our task is to print the prefix sum matrix of mat. Prefix sum matrix: every element of the matrix is the sum elements above and left of it. i.e prefixSum[i][j] = mat[i][j] + mat[i-1][j]...mat[0][j] + mat[i][j-1] +... mat[i][0]. Let’s take an example to...
[ { "code": null, "e": 1181, "s": 1062, "text": "In this problem, we are given a 2D array of integer values mat[][]. Our task is to print the prefix sum matrix of mat." }, { "code": null, "e": 1274, "s": 1181, "text": "Prefix sum matrix: every element of the matrix is the sum eleme...
jQuery UI Dialog buttons Option
19 Mar, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Dialog buttons option is used to specify the buttons that should be displayed on the dialog. Syntax: $( ".selector" ).dialog(...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Mar, 2021" }, { "code": null, "e": 303, "s": 28, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQue...
Discrete logarithm (Find an integer k such that a^k is congruent modulo b)
29 Dec, 2021 Given three integers a, b and m. Find an integer k such that where a and m are relatively prime. If it is not possible for any k to satisfy this relation, print -1.Examples: Input: 2 3 5 Output: 3 Explanation: a = 2, b = 3, m = 5 The value which satisfies the above equation is 3, because => 23 = 2 * 2 *...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Dec, 2021" }, { "code": null, "e": 230, "s": 54, "text": "Given three integers a, b and m. Find an integer k such that where a and m are relatively prime. If it is not possible for any k to satisfy this relation, print -1.Examples: ...
Ruby redo and retry Statement
17 Sep, 2019 In Ruby, Redo statement is used to repeat the current iteration of the loop. redo always used inside the loop. The redo statement restarts the loop without evaluating the condition again. # Ruby program of using redo statement #!/usr/bin/rubyrestart = false # Using for loopfor x in 2..20 if x == 15 ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 2019" }, { "code": null, "e": 216, "s": 28, "text": "In Ruby, Redo statement is used to repeat the current iteration of the loop. redo always used inside the loop. The redo statement restarts the loop without evaluating the cond...
How to Replace Values in Column Based on Condition in Pandas?
28 Nov, 2021 In this article, we are going to discuss the various methods to replace the values in the columns of a dataset in pandas with conditions. This can be done by many methods lets see all of those methods in detail. With this method, we can access a group of rows or columns with a condition or a boolean array....
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Nov, 2021" }, { "code": null, "e": 266, "s": 54, "text": "In this article, we are going to discuss the various methods to replace the values in the columns of a dataset in pandas with conditions. This can be done by many methods let...
JavaScript | promise resolve() Method
31 May, 2022 The Promise is an object that represents either completion or failure of a user task. A promise in JavaScript can be in three states pending, fulfilled or rejected. The main advantage of using a Promise in JavaScript is that a user can assign callback functions to the promises in case of a rejection or ful...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2022" }, { "code": null, "e": 742, "s": 28, "text": "The Promise is an object that represents either completion or failure of a user task. A promise in JavaScript can be in three states pending, fulfilled or rejected. The main a...
Python | Exceptional Split in String
22 Apr, 2020 Sometimes, while working with Strings, we may need to perform the split operation. The straight forward split is easy. But sometimes, we may have a problem in which we need to perform split on certain character but have exceptions. This discusses split on comma, with exception that comma should not be encl...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 416, "s": 28, "text": "Sometimes, while working with Strings, we may need to perform the split operation. The straight forward split is easy. But sometimes, we may have a problem in which we need to...
File.OpenRead() Method in C# with Examples
25 Feb, 2021 File.OpenRead(String) is an inbuilt File class method which is used to open an existing file for reading.Syntax: public static System.IO.FileStream OpenRead (string path); Parameter: This function accepts a parameter which is illustrated below: path: This is the specified file which is going to be open...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Feb, 2021" }, { "code": null, "e": 143, "s": 28, "text": "File.OpenRead(String) is an inbuilt File class method which is used to open an existing file for reading.Syntax: " }, { "code": null, "e": 202, "s": 143, ...
TELNET and SSH in Cisco devices
09 Aug, 2019 We can take access to a cisco router or switch either through a console cable or taking remote access through well known protocols Telnet or ssh (Secure Shell). Telnet and ssh are both application layer protocols used to take remote access and manage a device. 1. Telnet:As stated, Telnet is an application ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Aug, 2019" }, { "code": null, "e": 289, "s": 28, "text": "We can take access to a cisco router or switch either through a console cable or taking remote access through well known protocols Telnet or ssh (Secure Shell). Telnet and ssh...
Python | Sort an array according to absolute difference
11 Oct, 2019 Given an array of N distinct elements and a number val, rearrange the array elements according to the absolute difference with val, i. e., element having minimum difference comes first and so on. Also the order of array elements should be maintained in case two or more elements have equal differences. Exam...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Oct, 2019" }, { "code": null, "e": 357, "s": 54, "text": "Given an array of N distinct elements and a number val, rearrange the array elements according to the absolute difference with val, i. e., element having minimum difference c...
Difference between #include<> and #include” ” in C/C++ with Examples
08 Dec, 2021 Pre-requisites: Header files in C/ C++ and its uses The difference between the two types is in the location where the preprocessor searches for the file to be included in the code. #include <filename> // Standard library header #include “filename” // User defined header #include<filename> #include<> is f...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Dec, 2021" }, { "code": null, "e": 106, "s": 54, "text": "Pre-requisites: Header files in C/ C++ and its uses" }, { "code": null, "e": 235, "s": 106, "text": "The difference between the two types is in the locati...
What is Java Parallel Streams?
24 Dec, 2021 Java Parallel Streams is a feature of Java 8 and higher, meant for utilizing multiple cores of the processor. Normally any java code has one stream of processing, where it is executed sequentially. Whereas by using parallel streams, we can divide the code into multiple streams that are executed in parallel...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Dec, 2021" }, { "code": null, "e": 506, "s": 53, "text": "Java Parallel Streams is a feature of Java 8 and higher, meant for utilizing multiple cores of the processor. Normally any java code has one stream of processing, where it is...
What is the difference between visibility:hidden and display:none ?
07 Oct, 2021 Both the visibility & display property is quite useful in CSS. The visibility: “hidden”; property is used to specify whether an element is visible or not in a web document but the hidden elements take up space in the web document. The visibility is a property in CSS that specifies the visibility behavior o...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Oct, 2021" }, { "code": null, "e": 580, "s": 28, "text": "Both the visibility & display property is quite useful in CSS. The visibility: “hidden”; property is used to specify whether an element is visible or not in a web document but...
Lexicographically smallest and largest substring of size k
10 Jun, 2021 Given String str and an integer k, find the lexicographically smallest and largest substring of length kLexicography order, also called as alphabetical order or dictionary order, A < B <... < Y < Z < a < b <.. < y < z Examples: Input : String: hello Size: 2 Distinct Substring: [el, he, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Jun, 2021" }, { "code": null, "e": 234, "s": 54, "text": "Given String str and an integer k, find the lexicographically smallest and largest substring of length kLexicography order, also called as alphabetical order or dictionary or...
Find One’s Complement of an Integer in C++
In this section, we will see how to find the 1’s complete of an integer. We can use the complement operator to do this task very fast, but it will make 32bit complemented value (4-bype integer). Here we want complement of n bit numbers. Suppose we have a number say 22. The binary equivalent is 10110. The complemented v...
[ { "code": null, "e": 1299, "s": 1062, "text": "In this section, we will see how to find the 1’s complete of an integer. We can use the complement operator to do this task very fast, but it will make 32bit complemented value (4-bype integer). Here we want complement of n bit numbers." }, { "c...
Python For Data Science — Advanced Guide to Plotly Dash Interactive Visualizations | by Nicholas Leong | Towards Data Science
Greetings data practitioners,I assume you are aware of the increase in demand for people who know how to communicate data. This is exactly why we should always seek to improve, learn more, and sharpen our skills in the data science industry. Even with all the hype around Machine Learning, Data Visualizations do not los...
[ { "code": null, "e": 413, "s": 171, "text": "Greetings data practitioners,I assume you are aware of the increase in demand for people who know how to communicate data. This is exactly why we should always seek to improve, learn more, and sharpen our skills in the data science industry." }, { ...
How can I install or enable innoDB in MySQL?
In order to enable innoDB in MySQ, you need to work around my.ini file. However, in MySQL version 8, the default storage engine is innoDB. Check the same from my.ini file − You can even set this at the time of table creation − mysql> create table DemoTable ( StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY, S...
[ { "code": null, "e": 1235, "s": 1062, "text": "In order to enable innoDB in MySQ, you need to work around my.ini file. However, in MySQL version 8, the default storage engine is innoDB. Check the same from my.ini file −" }, { "code": null, "e": 1289, "s": 1235, "text": "You can e...
C# | Math.Truncate() Method - GeeksforGeeks
02 Jul, 2021 In C#, Math.Truncate() is a math class method which is used to compute an integral part of a specified decimal number or double-precision floating-point number. This method can be overloaded by passing the different type of parameters to it as follows: Math.Truncate(Decimal) Math.Truncate(Double) This meth...
[ { "code": null, "e": 24013, "s": 23985, "text": "\n02 Jul, 2021" }, { "code": null, "e": 24266, "s": 24013, "text": "In C#, Math.Truncate() is a math class method which is used to compute an integral part of a specified decimal number or double-precision floating-point number. Th...
How to find similar words in vector of strings in R?
Sometimes strings in a vector of strings have spelling errors and we want to extract the similar words to avoid that spelling error because similar words are likely to represent the correct and incorrect form of a word. This can be done by using agrep with lapply function. Live Demo x1<-c("India","United Kingdoms","In...
[ { "code": null, "e": 1336, "s": 1062, "text": "Sometimes strings in a vector of strings have spelling errors and we want to extract the similar words to avoid that spelling error because similar words are likely to represent the correct and incorrect form of a word. This can be done by using agrep w...
How to get index of object inside an array that matches the condition in jQuery ? - GeeksforGeeks
15 Oct, 2020 jQuery is a free and open-source JavaScript library designed to add interactivity to the HTML web pages. jQuery is similar to JavaScript in terms of functionality but what makes it popular is its simplicity and ease of use. jQuery comes bundles with inbuilt methods that help achieve the desired output. In ...
[ { "code": null, "e": 25675, "s": 25647, "text": "\n15 Oct, 2020" }, { "code": null, "e": 26177, "s": 25675, "text": "jQuery is a free and open-source JavaScript library designed to add interactivity to the HTML web pages. jQuery is similar to JavaScript in terms of functionality ...
SAP HANA - Quick Guide
SAP HANA is a combination of HANA Database, Data Modeling, HANA Administration and Data Provisioning in one single suite. In SAP HANA, HANA stands for High-Performance Analytic Appliance. According to former SAP executive, Dr. Vishal Sikka, HANA stands for Hasso’s New Architecture. HANA developed interest by mid-2011 a...
[ { "code": null, "e": 3295, "s": 3107, "text": "SAP HANA is a combination of HANA Database, Data Modeling, HANA Administration and Data Provisioning in one single suite. In SAP HANA, HANA stands for High-Performance Analytic Appliance." }, { "code": null, "e": 3545, "s": 3295, "te...
Probabilistic Linear Regression with Weight Uncertainty | by Ruben Winastwan | Towards Data Science
Linear regression is probably the first statistical approach that you’ll ever encounter when you’re learning data science and machine learning. So, I’d take my chance to guess that this is not the first time you’re dealing with linear regression. Thus in this article, I want to talk about probabilistic linear regressio...
[ { "code": null, "e": 550, "s": 172, "text": "Linear regression is probably the first statistical approach that you’ll ever encounter when you’re learning data science and machine learning. So, I’d take my chance to guess that this is not the first time you’re dealing with linear regression. Thus in ...
HTML - <noframes> Tag
The HTML <noframes> tag is used to handle the browsers which do not support <frame> tag. This tag is used to display alternate text message. <!DOCTYPE html> <html> <head> <title>HTML noframes Tag</title> </head> <frameset cols = "200, *"> <frame src = "/html/menu.htm" name = "menu_page" /> ...
[ { "code": null, "e": 2515, "s": 2374, "text": "The HTML <noframes> tag is used to handle the browsers which do not support <frame> tag. This tag is used to display alternate text message." }, { "code": null, "e": 2898, "s": 2515, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n ...
How to call Private Constructor in Java
The method java.lang.Class.getDeclaredConstructor() can be used to obtain the constructor object for the private constructor of the class. The parameter for this method is a Class object array that contains the formal parameter types of the constructor. A program that demonstrates this is given as follows − Live Demo ...
[ { "code": null, "e": 1316, "s": 1062, "text": "The method java.lang.Class.getDeclaredConstructor() can be used to obtain the constructor object for the private constructor of the class. The parameter for this method is a Class object array that contains the formal parameter types of the constructor....
logb() function in C++ STL - GeeksforGeeks
18 Jul, 2018 The logb() is a builtin function in C++ STL which returns the logarithm of |x|, using FLT_RADIX as base for the logarithm. In general, the value of FLT_RADIX is 2, so logb() is equivalent to log2()(for positive values only). Syntax: logb(val) Parameter: The function accepts a single mandatory parameter val...
[ { "code": null, "e": 23707, "s": 23679, "text": "\n18 Jul, 2018" }, { "code": null, "e": 23932, "s": 23707, "text": "The logb() is a builtin function in C++ STL which returns the logarithm of |x|, using FLT_RADIX as base for the logarithm. In general, the value of FLT_RADIX is 2,...
How to subset an R data frame based on numerical and categorical column?
Subsetting is one of the commonly used technique which serves many different purposes depending on the objective of analysis. To subset a data frame by excluding a column with the help of dplyr package, we can follow the below steps − Creating a data frame. Subsetting the data frame based on numerical as well as catego...
[ { "code": null, "e": 1297, "s": 1062, "text": "Subsetting is one of the commonly used technique which serves many different purposes\ndepending on the objective of analysis. To subset a data frame by excluding a column\nwith the help of dplyr package, we can follow the below steps −" }, { "c...
Boolean Literals in Java
The Boolean literals have two values i.e. True and False. The following is an example to display Boolean Literals. Live Demo public class Demo { public static void main(String[] args) { System.out.println("Boolean Literals"); boolean one = true; System.out.println(one); one = false; Sy...
[ { "code": null, "e": 1120, "s": 1062, "text": "The Boolean literals have two values i.e. True and False." }, { "code": null, "e": 1177, "s": 1120, "text": "The following is an example to display Boolean Literals." }, { "code": null, "e": 1188, "s": 1177, "text...
Sorting Vector of Pairs in C++ | Set 1 (Sort by first and second) - GeeksforGeeks
28 Jun, 2021 What is Vector of Pairs?A pair is a container which stores two values mapped to each other, and a vector containing multiple number of such pairs is called a vector of pairs. // C++ program to demonstrate vector of pairs#include<bits/stdc++.h>using namespace std; int main(){ //declaring vector of pairs...
[ { "code": null, "e": 24533, "s": 24505, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24708, "s": 24533, "text": "What is Vector of Pairs?A pair is a container which stores two values mapped to each other, and a vector containing multiple number of such pairs is called a vecto...
Tryit Editor v3.7
Tryit: HTML color values
[]
Building Box Plots Using JavaScript: Visualizing World Happiness | by Wayde Herman | Towards Data Science
Data visualization is an important and sometimes undervalued tool in a data scientist’s toolkit. It allows us to gain an understanding and intuition about the data, through exploratory data analysis, which influences preprocessing, feature engineering, and the correct machine learning algorithm choice. It also helps to...
[ { "code": null, "e": 603, "s": 171, "text": "Data visualization is an important and sometimes undervalued tool in a data scientist’s toolkit. It allows us to gain an understanding and intuition about the data, through exploratory data analysis, which influences preprocessing, feature engineering, an...
Count of strings that can be formed from another string using each character at-most once - GeeksforGeeks
25 Feb, 2022 Given two strings str1 and str2, the task is to print the number of times str2 can be formed using characters of str1. However, a character at any index of str1 can only be used once in the formation of str2. Examples: Input: str1 = “arajjhupoot”, str2 = “rajput” Output: 1 Explanation:str2 can only be f...
[ { "code": null, "e": 24767, "s": 24739, "text": "\n25 Feb, 2022" }, { "code": null, "e": 24977, "s": 24767, "text": "Given two strings str1 and str2, the task is to print the number of times str2 can be formed using characters of str1. However, a character at any index of str1 ca...
Ionic - Cordova Geolocation
This plugin is used for adding a geolocation plugin to the Ionic app. There is a simple way to use the geolocation plugin. We need to install this plugin from the command prompt window. C:\Users\Username\Desktop\MyApp>cordova plugin add cordova-plugin-geolocation The following controller code is using two methods. The...
[ { "code": null, "e": 2533, "s": 2463, "text": "This plugin is used for adding a geolocation plugin to the Ionic app." }, { "code": null, "e": 2649, "s": 2533, "text": "There is a simple way to use the geolocation plugin. We need to install this plugin from the command prompt wind...
Snowflake and Dask. How to efficiently load data from... | by Hugo Shi | Towards Data Science
Snowflake is the most popular data warehouse among our Saturn users. This article will cover efficient ways to load Snowflake data into Dask so you can do non-sql operations (think machine learning) at scale. Disclaimer: I’m the CTO of Saturn Cloud — we focus on enterprise Dask. First, some basics, the standard way to ...
[ { "code": null, "e": 452, "s": 172, "text": "Snowflake is the most popular data warehouse among our Saturn users. This article will cover efficient ways to load Snowflake data into Dask so you can do non-sql operations (think machine learning) at scale. Disclaimer: I’m the CTO of Saturn Cloud — we f...
Efficiently check whether n is a multiple of 4 or not - GeeksforGeeks
28 Apr, 2021 Given a number n. The problem is to efficiently check whether n is a multiple of 4 or not without using arithmetic operators. Examples: Input : 16 Output : Yes Input : 14 Output : No Approach: A multiple of 4 always has 00 as its last two digits in its binary representation. We have to check whether t...
[ { "code": null, "e": 24961, "s": 24933, "text": "\n28 Apr, 2021" }, { "code": null, "e": 25099, "s": 24961, "text": "Given a number n. The problem is to efficiently check whether n is a multiple of 4 or not without using arithmetic operators. Examples: " }, { "code": nul...
Word Distance between Word Embeddings | by Edward Ma | Towards Data Science
Word Mover’s Distance (WMD) is proposed fro distance measurement between 2 documents (or sentences). It leverages Word Embeddings power to overcome those basic distance measurement limitations. WMD[1] was introduced by Kusner et al. in 2015. Instead of using Euclidean Distance and other bag-of-words based distance meas...
[ { "code": null, "e": 366, "s": 172, "text": "Word Mover’s Distance (WMD) is proposed fro distance measurement between 2 documents (or sentences). It leverages Word Embeddings power to overcome those basic distance measurement limitations." }, { "code": null, "e": 681, "s": 366, "...
Recursive Constructor Invocation in Java - GeeksforGeeks
26 Sep, 2021 The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. In the recursive program, the solution to the base case is provided and the solution of the bigger problem is expressed in terms of smaller problems. Here r...
[ { "code": null, "e": 24812, "s": 24784, "text": "\n26 Sep, 2021" }, { "code": null, "e": 25233, "s": 24812, "text": "The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. In the recur...