title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to Create and Call a Stored Procedure in SQL?
25 Oct, 2021 With this article, we will learn how to Create and Call a Stored Procedure in SQL. For this article, we are going to use MSSQL as our database server. A stored procedure is a pre-written SQL query that can be called multiple times and will run as the same. Like we can create a Stored procedure for Insert, ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Oct, 2021" }, { "code": null, "e": 179, "s": 28, "text": "With this article, we will learn how to Create and Call a Stored Procedure in SQL. For this article, we are going to use MSSQL as our database server." }, { "code": nu...
Find last remaining Array element by multiplying boundary elements based on given rules
28 Jun, 2022 Given an array arr[], the task is to find the only remaining element in the array after applying the below operation till there is only one element left in the array. In an operation, multiply the boundary elements of this array and if the size of the array is: Even: Insert the product in the middle of the...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2022" }, { "code": null, "e": 290, "s": 28, "text": "Given an array arr[], the task is to find the only remaining element in the array after applying the below operation till there is only one element left in the array. In an op...
Print all paths from a given source to a destination using BFS
03 Feb, 2022 Given a directed graph, a source vertex ‘src’ and a destination vertex ‘dst’, print all paths from given ‘src’ to ‘dst’. Consider the following directed graph. Let the src be 2 and dst be 3. There are 3 different paths from 2 to 3. We have already discussed Print all paths from a given source to a destina...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Feb, 2022" }, { "code": null, "e": 175, "s": 54, "text": "Given a directed graph, a source vertex ‘src’ and a destination vertex ‘dst’, print all paths from given ‘src’ to ‘dst’." }, { "code": null, "e": 287, "s": 17...
Find the first non-repeating character from a stream of characters
24 Jun, 2022 Given a stream of characters, find the first non-repeating character from the stream. You need to tell the first non-repeating character in O(1) time at any moment. If we follow the first approach discussed here, then we need to store the stream so that we can traverse it one more time to find the first no...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 217, "s": 52, "text": "Given a stream of characters, find the first non-repeating character from the stream. You need to tell the first non-repeating character in O(1) time at any moment." }, {...
Tensorflow.js tf.browser.fromPixels() Function
21 May, 2021 Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.browser.fromPixels() function is used to creates a Tensor of pixels values of an specified image. Syntax: tf.browser.fromPixels (pixe...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 May, 2021" }, { "code": null, "e": 194, "s": 28, "text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment." }, {...
numpy.minimum() in Python
28 Nov, 2018 numpy.minimum() function is used to find the element-wise minimum of array elements. It compare two arrays and returns a new array containing the element-wise minima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. Syntax ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2018" }, { "code": null, "e": 113, "s": 28, "text": "numpy.minimum() function is used to find the element-wise minimum of array elements." }, { "code": null, "e": 328, "s": 113, "text": "It compare two arrays...
Python | Insert a number in string
25 Jun, 2019 Sometimes, while dealing with strings, we may encounter a problem in which we might have a numeric variable whose value keeps changing and we need to print the string including that number. Strings and numbers being different data types have to be solved in different ways. Let’s discuss certain ways in whi...
[ { "code": null, "e": 53, "s": 25, "text": "\n25 Jun, 2019" }, { "code": null, "e": 391, "s": 53, "text": "Sometimes, while dealing with strings, we may encounter a problem in which we might have a numeric variable whose value keeps changing and we need to print the string includi...
Java program to check if string is pangram
A pangram is a string that contains all the letters of the English alphabet. An example of a pangram is "The quick brown fox jumps over the lazy dog". A program that checks if a string is pangram or not is given as follows. Live Demo public class Example { public static void main(String[] args) { String str =...
[ { "code": null, "e": 1338, "s": 1187, "text": "A pangram is a string that contains all the letters of the English alphabet. An example of a pangram is \"The quick brown fox jumps over the lazy dog\"." }, { "code": null, "e": 1411, "s": 1338, "text": "A program that checks if a st...
How to compare two ArrayList for equality in Java?
You can compare two array lists using the equals() method of the ArrayList class, this method accepts a list object as a parameter, compares it with the current object, in case of the match it returns true and if not it returns false. Live Demo import java.util.ArrayList; public class ComparingList { public static...
[ { "code": null, "e": 1297, "s": 1062, "text": "You can compare two array lists using the equals() method of the ArrayList class, this method accepts a list object as a parameter, compares it with the current object, in case of the match it returns true and if not it returns false." }, { "cod...
How can we use MySQL ALTER TABLE command for adding comments on columns?
We can use ‘COMMENT’ keyword with ALTER TABLE command while modifying the column to add comments on columns. For example if we want to add comment in column ‘id’ of table ‘testing’ then following query will do it − mysql> ALTER TABLE testing MODIFY id INT COMMENT 'id of employees'; Query OK, 0 rows affected (0.07 sec) ...
[ { "code": null, "e": 1277, "s": 1062, "text": "We can use ‘COMMENT’ keyword with ALTER TABLE command while modifying the column to add comments on columns. For example if we want to add comment in column ‘id’ of table ‘testing’ then following query will do it −" }, { "code": null, "e": 1...
Java Program to remove all white spaces from a String.
The replaceAll() method of the String class replaces each substring of this string that matches the given regular expression with the given replacement. You can remove white spaces from a string by replacing " " with "". Live Demo public class DuplicateCharacters { public static void main(String[] args){ Stri...
[ { "code": null, "e": 1283, "s": 1062, "text": "The replaceAll() method of the String class replaces each substring of this string that matches the given regular expression with the given replacement. You can remove white spaces from a string by replacing \" \" with \"\"." }, { "code": null, ...
How to put text outside Python plots?
To put text outside a plot, we can change the text position by changing the value of text_pos_x and text_pos_y Create data points for x and y. Initialize the text position of x and y. To plot x and y, use plot() method with color='red'. Use text() method to add text to figure. To display the figure, use show() method. ...
[ { "code": null, "e": 1173, "s": 1062, "text": "To put text outside a plot, we can change the text position by changing the value of text_pos_x and text_pos_y" }, { "code": null, "e": 1205, "s": 1173, "text": "Create data points for x and y." }, { "code": null, "e": 12...
Tau - A Mathematical Constant - GeeksforGeeks
22 Jul, 2021 What is Tau?The constant is numerically equal to 2*pi (2 times pi), and with value approximately 6.28. The ratio equates to 2*C/D. Where C is circumference and D is diameter of circle.Applications of Tau There are many expressions that actually require “2*pi” calculation, having tau being equal to that s...
[ { "code": null, "e": 24707, "s": 24679, "text": "\n22 Jul, 2021" }, { "code": null, "e": 24913, "s": 24707, "text": "What is Tau?The constant is numerically equal to 2*pi (2 times pi), and with value approximately 6.28. The ratio equates to 2*C/D. Where C is circumference and D i...
sciPy stats.tstd() function | Python - GeeksforGeeks
10 Feb, 2019 scipy.stats.tstd(array, limits=None, inclusive=(True, True)) calculates the trimmed standard deviation of the array elements along the specified axis of the array. It’s formula – Parameters :array: Input array or object having the elements to calculate the trimmed standard deviation.axis: Axis along which ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n10 Feb, 2019" }, { "code": null, "e": 25701, "s": 25537, "text": "scipy.stats.tstd(array, limits=None, inclusive=(True, True)) calculates the trimmed standard deviation of the array elements along the specified axis of the array....
AngularJS Forms ngSubmit() Method - GeeksforGeeks
14 Jun, 2021 In this article, we are going to see what is ngSubmit method in Angular 10 and how to use it. The ngSubmit() method is called when the ‘submit’ event is triggered on the ngForm. Syntax: <form (ngSubmit)='method($event)'></form> Parameters: $event: the “submit” event object Approach: Create an Angular ap...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n14 Jun, 2021" }, { "code": null, "e": 26448, "s": 26354, "text": "In this article, we are going to see what is ngSubmit method in Angular 10 and how to use it." }, { "code": null, "e": 26532, "s": 26448, "text...
Split-apply-combine strategy on DataFrames in Julia - GeeksforGeeks
18 Aug, 2021 Julia is a high performance, dynamic programming language that has a high-level syntax. It might also be considered as a new and easier variant of python language. Data frames can be created, manipulated, and visualized in various ways for data science and machine learning purposes with Julia. For some ta...
[ { "code": null, "e": 25601, "s": 25573, "text": "\n18 Aug, 2021" }, { "code": null, "e": 25897, "s": 25601, "text": "Julia is a high performance, dynamic programming language that has a high-level syntax. It might also be considered as a new and easier variant of python language....
Output of C++ Program | Set 5 - GeeksforGeeks
05 Jan, 2022 Difficulty Level: RookiePredict the output of below C++ programs.Question 1 C++ #include<iostream>using namespace std; class Test { int value;public: Test(int v);}; Test::Test(int v) { value = v;} int main() { Test t[100]; return 0;} Output: Compiler error The class Test has one user def...
[ { "code": null, "e": 25339, "s": 25311, "text": "\n05 Jan, 2022" }, { "code": null, "e": 25417, "s": 25339, "text": "Difficulty Level: RookiePredict the output of below C++ programs.Question 1 " }, { "code": null, "e": 25421, "s": 25417, "text": "C++" }, ...
Structure Equality in Golang - GeeksforGeeks
17 Jan, 2022 A structure or struct in Golang is a user-defined type, which allows us to create a group of elements of different types into a single unit. Any real-world entity which has some set of properties or fields can be represented as a struct. This concept is generally compared with the classes in object-oriente...
[ { "code": null, "e": 25667, "s": 25639, "text": "\n17 Jan, 2022" }, { "code": null, "e": 26657, "s": 25667, "text": "A structure or struct in Golang is a user-defined type, which allows us to create a group of elements of different types into a single unit. Any real-world entity ...
Creating nested dataclass objects in Python - GeeksforGeeks
29 Aug, 2020 Dataclasses is an inbuilt Python module which contains decorators and functions for automatically adding special methods like __init__() and __repr__() to user-defined classes. Dataclass Object is an object built into the Dataclasses module. This function is used as a decorator to add special methods direc...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25740, "s": 25563, "text": "Dataclasses is an inbuilt Python module which contains decorators and functions for automatically adding special methods like __init__() and __repr__() to user-def...
Mathematics | Walks, Trails, Paths, Cycles and Circuits in Graph - GeeksforGeeks
31 Aug, 2021 Prerequisite – Graph Theory Basics – Set 1 1. Walk – A walk is a sequence of vertices and edges of a graph i.e. if we traverse a graph then we get a walk. Note: Vertices and Edges can be repeated. Here, 1->2->3->4->2->1->3 is a walk. Walk can be open or closed. Open walk- A walk is said to be an open w...
[ { "code": null, "e": 31278, "s": 31250, "text": "\n31 Aug, 2021" }, { "code": null, "e": 31322, "s": 31278, "text": "Prerequisite – Graph Theory Basics – Set 1 " }, { "code": null, "e": 31477, "s": 31322, "text": "1. Walk – A walk is a sequence of vertices and...
How to Create Bootable USB for Arch Linux? - GeeksforGeeks
11 May, 2021 A bootable USB or live USB is a USB flash drive that contains a bootable operating system. We create these USB flash drives when we wanted to refresh or change our operating system. Let’s discuss how we can create a Bootable USB flash drive for Arch Linux. Download the Arch ISO image from the Arch download...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n11 May, 2021" }, { "code": null, "e": 26004, "s": 25651, "text": "A bootable USB or live USB is a USB flash drive that contains a bootable operating system. We create these USB flash drives when we wanted to refresh or change our...
Trapezoidal Rule for Approximate Value of Definite Integral - GeeksforGeeks
17 Jun, 2021 In the field of numerical analysis, Trapezoidal rule is used to find the approximation of a definite integral. The basic idea in Trapezoidal rule is to assume the region under the graph of the given function to be a trapezoid and calculate its area. It follows that:For more accurate results the domain of t...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n17 Jun, 2021" }, { "code": null, "e": 26592, "s": 26217, "text": "In the field of numerical analysis, Trapezoidal rule is used to find the approximation of a definite integral. The basic idea in Trapezoidal rule is to assume the ...
Minimum Points To Reach Destination | Practice | GeeksforGeeks
Given a grid of size M*N with each cell consisting of an integer which represents points. We can move across a cell only if we have positive points. Whenever we pass through a cell, points in that cell are added to our overall points, the task is to find minimum initial points to reach cell (m-1, n-1) from (0, 0) by fo...
[ { "code": null, "e": 807, "s": 238, "text": "Given a grid of size M*N with each cell consisting of an integer which represents points. We can move across a cell only if we have positive points. Whenever we pass through a cell, points in that cell are added to our overall points, the task is to find ...
Analog Clock in Flutter - GeeksforGeeks
15 Feb, 2021 In Flutter, everything is a widget. Plugins, commonly called dependencies are tools that are quite commonly used in Flutter, which helps in making the code work easier and faster. There are plenty of plugins used in Flutter, out of which for creating an analog clock, the “analog_clock” plugin can be used. ...
[ { "code": null, "e": 26407, "s": 26379, "text": "\n15 Feb, 2021" }, { "code": null, "e": 26714, "s": 26407, "text": "In Flutter, everything is a widget. Plugins, commonly called dependencies are tools that are quite commonly used in Flutter, which helps in making the code work ea...
Different Ways to Add Image to Toast in Android - GeeksforGeeks
07 Mar, 2021 A Toast is a feedback message. It takes very little space for displaying while the overall activity is interactive and visible to the user. It disappears after a few seconds. It disappears automatically. If the user wants a permanently visible message, a Notification can be used. Another type of Toast is c...
[ { "code": null, "e": 24749, "s": 24721, "text": "\n07 Mar, 2021" }, { "code": null, "e": 25301, "s": 24749, "text": "A Toast is a feedback message. It takes very little space for displaying while the overall activity is interactive and visible to the user. It disappears after a f...
Changing color randomly in JavaScript
We are required to write a JavaScript function, let’s say randomColor that returns a randomly generated hex color every time it is called. Following is the code − const randomColor = () => { let color = '#'; for (let i = 0; i < 6; i++){ const random = Math.random(); const bit = (random * 16) | 0; ...
[ { "code": null, "e": 1201, "s": 1062, "text": "We are required to write a JavaScript function, let’s say randomColor that returns a randomly generated hex color every time it is called." }, { "code": null, "e": 1225, "s": 1201, "text": "Following is the code −" }, { "code...
Merge two strings | Practice | GeeksforGeeks
Given two strings S1 and S2 as input, the task is to merge them alternatively i.e. the first character of S1 then the first character of S2 and so on till the strings end. NOTE: Add the whole string if other string is empty. Example 1: Input: S1 = "Hello" S2 = "Bye" Output: HBeylelo Explanation: The characters of both ...
[ { "code": null, "e": 451, "s": 226, "text": "Given two strings S1 and S2 as input, the task is to merge them alternatively i.e. the first character of S1 then the first character of S2 and so on till the strings end.\nNOTE: Add the whole string if other string is empty." }, { "code": null, ...
How do we reset all the input fields in HTML forms?
Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc. The <input> tag helps you to take user input using the type attribute. To clear all the input in an HTML f...
[ { "code": null, "e": 1276, "s": 1062, "text": "Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc." }, { "code": null, "e": 14...
Apache Airflow 2.0 on Steroids — EKS Kubernetes & MWAA | by Gagandeep Singh | Towards Data Science
Last month, May 2021, AWS released its update on AWS Managed Workflows for Apache Airflow (MWAA) which included Airflow 2.0 and that got me thinking why would someone manage Airflow on its own now (typical cloud dilemmas) when AWS is giving a managed service with the latest stable release with not that expensive pricin...
[ { "code": null, "e": 963, "s": 172, "text": "Last month, May 2021, AWS released its update on AWS Managed Workflows for Apache Airflow (MWAA) which included Airflow 2.0 and that got me thinking why would someone manage Airflow on its own now (typical cloud dilemmas) when AWS is giving a managed serv...
AJAX - Quick Guide
AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script. Ajax uses XHTML for content, CSS for presentation, along with Document Object Model and JavaScript for dynamic content display. Aj...
[ { "code": null, "e": 1926, "s": 1736, "text": "AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script." }, { "code": null, "e": 2054, "s": 1926, "...
How to create multi-column layout in HTML5 using tables?
Design your webpage to put your web content on multiple pages. You can keep your content in the middle column, you can use left column to use menu, and right column can be used to put an advertisement or some other stuff. <!DOCTYPE html> <html> <head> <title>Three Column HTML Layout</title> </head> <body...
[ { "code": null, "e": 1284, "s": 1062, "text": "Design your webpage to put your web content on multiple pages. You can keep your content in the middle column, you can use left column to use menu, and right column can be used to put an advertisement or some other stuff." }, { "code": null, ...
How to include Social Media Icons in HTML ? - GeeksforGeeks
24 Jun, 2021 In this article, we will see how to add social media icons to any website using HTML and CSS Approach: If you want to attach an icons then you need a font-awesome CDN link. Social media could be very helpful in promoting and advertising your website. If your brand has social media accounts, it would be wis...
[ { "code": null, "e": 25009, "s": 24981, "text": "\n24 Jun, 2021" }, { "code": null, "e": 25102, "s": 25009, "text": "In this article, we will see how to add social media icons to any website using HTML and CSS" }, { "code": null, "e": 25112, "s": 25102, "text"...
Machine Learning - Automatic Workflows
In order to execute and produce results successfully, a machine learning model must automate some standard workflows. The process of automate these standard workflows can be done with the help of Scikit-learn Pipelines. From a data scientist’s perspective, pipeline is a generalized, but very important concept. It basic...
[ { "code": null, "e": 2774, "s": 2304, "text": "In order to execute and produce results successfully, a machine learning model must automate some standard workflows. The process of automate these standard workflows can be done with the help of Scikit-learn Pipelines. From a data scientist’s perspecti...
Print all odd numbers and their sum from 1 to n in PL/SQL
In this problem, we are given a number n and we have to print all odd numbers from 1 to n and also print the sum of numbers from 1 to n in PL/SQL. PL/SQL is a procedural language extension to SQL. The code is a sequence of instructions that are ground in a block with all related declarations and instructions. Let’s see...
[ { "code": null, "e": 1209, "s": 1062, "text": "In this problem, we are given a number n and we have to print all odd numbers from 1 to n and also print the sum of numbers from 1 to n in PL/SQL." }, { "code": null, "e": 1373, "s": 1209, "text": "PL/SQL is a procedural language ext...
Animate CSS flex-grow property
To implement animation on flex-grow property with CSS, you can try to run the following code Live Demo <!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; background-color: red; align-content: space-between; } .mycontainer > div { ...
[ { "code": null, "e": 1155, "s": 1062, "text": "To implement animation on flex-grow property with CSS, you can try to run the following code" }, { "code": null, "e": 1165, "s": 1155, "text": "Live Demo" }, { "code": null, "e": 2103, "s": 1165, "text": "<!DOCTYP...
Game with String | Practice | GeeksforGeeks
Given a string s of lowercase alphabets and a number k, the task is to print the minimum value of the string after removal of ‘k’ characters. The value of a string is defined as the sum of squares of the count of each distinct character. Example 1: Input: s = abccc, k = 1 Output: 6 Explaination: We remove c to get th...
[ { "code": null, "e": 478, "s": 238, "text": "Given a string s of lowercase alphabets and a number k, the task is to print the minimum value of the string after removal of ‘k’ characters. The value of a string is defined as the sum of squares of the count of each distinct character.\n " }, { ...
How to convert a string to a list of words in python?
To convert a string in a list of words, you just need to split it on whitespace. You can use split() from the string class. The default delimiter for this method is whitespace, i.e., when called on a string, it'll split that string at whitespace characters. >>> "Please split this string".split() ['Please', 'split', 'th...
[ { "code": null, "e": 1320, "s": 1062, "text": "To convert a string in a list of words, you just need to split it on whitespace. You can use split() from the string class. The default delimiter for this method is whitespace, i.e., when called on a string, it'll split that string at whitespace charact...
VBScript Number Formatting Functions
variablename = Format_function_Name(Expression[,NumberDigAfterDec[,LeadingDig[,UseParForNegNum[,GroupDigits]]]]) The Required parameter Format_function_Name corresponds to any of the below listed number formatting functions. The Required parameter Format_function_Name corresponds to any of the below listed number for...
[ { "code": null, "e": 2195, "s": 2080, "text": "variablename = Format_function_Name(Expression[,NumberDigAfterDec[,LeadingDig[,UseParForNegNum[,GroupDigits]]]]) \n" }, { "code": null, "e": 2307, "s": 2195, "text": "The Required parameter Format_function_Name corresponds to any of ...
Tryit Editor v3.7
Tryit: HTML input elements
[]
How to Create an Interactive Dropdown in Jupyter | by Shinichi Okada | Towards Data Science
Table of ContentsIntroduction1. Libraries2. Data Setup for the Dropdown3. Multiple Plot Function4. Interactive Dropdown Menu5. All the Code6. Using for Other DatasetsConclusion In the last article, I wrote about how to create a bubble map using Plotly.express and Mapbox. The bubble map can show all the data with differ...
[ { "code": null, "e": 349, "s": 172, "text": "Table of ContentsIntroduction1. Libraries2. Data Setup for the Dropdown3. Multiple Plot Function4. Interactive Dropdown Menu5. All the Code6. Using for Other DatasetsConclusion" }, { "code": null, "e": 512, "s": 349, "text": "In the la...
Design a Student Grade Calculator using JavaScript - GeeksforGeeks
26 Aug, 2021 Student Grade Calculator (SGC) can be used to calculate a percentage based on the marks of students. (SGC) is a fairly reliable indicator of student results. Formula: percentage = ( totalgrades / 400 ) * 100 ; Approach: SGC is a percentage calculator from a student’s marks. To find out SGC we will take ...
[ { "code": null, "e": 25057, "s": 25026, "text": " \n26 Aug, 2021\n" }, { "code": null, "e": 25215, "s": 25057, "text": "Student Grade Calculator (SGC) can be used to calculate a percentage based on the marks of students. (SGC) is a fairly reliable indicator of student results." ...
Building recommender systems with Surprise. | Towards Data Science
If you’ve ever worked on a data science project, you probably have a default library that you use for standard tasks. Most people will probably use Pandas for data manipulation, Scikit-learn for general-purpose machine learning applications, and TensorFlow or PyTorch for deep learning. But what would you use to build a...
[ { "code": null, "e": 553, "s": 172, "text": "If you’ve ever worked on a data science project, you probably have a default library that you use for standard tasks. Most people will probably use Pandas for data manipulation, Scikit-learn for general-purpose machine learning applications, and TensorFlo...
JSF - h:inputSecret
The h:inputSecret tag renders an HTML input element of the type "password". <h:inputSecret value = "password" /> <input type = "password" name = "j_idt12:j_idt16" value = "password" /> id Identifier for a component binding Reference to the component that can be used in a backing bean rendered A boolean; false suppres...
[ { "code": null, "e": 2028, "s": 1952, "text": "The h:inputSecret tag renders an HTML input element of the type \"password\"." }, { "code": null, "e": 2066, "s": 2028, "text": "<h:inputSecret value = \"password\" />\n" }, { "code": null, "e": 2139, "s": 2066, "...
How do I use Selenium with Ruby?
We can use Selenium with Ruby. First of all we have to install Ruby in the system. For installation in Windows, we have to take the help of the RubyInstaller package by navigating to the link − https://rubyinstaller.org/ Click on Download. The various versions of Ruby Installers links get displayed. Select the latest v...
[ { "code": null, "e": 1256, "s": 1062, "text": "We can use Selenium with Ruby. First of all we have to install Ruby in the system. For installation in Windows, we have to take the help of the RubyInstaller package by navigating to the link −" }, { "code": null, "e": 1283, "s": 1256, ...
Node.js slice() function
14 Oct, 2021 The slice() function is a string function of Node.js which is used to extract sub-string from a string. Syntax: string.slice( start, end ) Parameters: This function uses thress parameters as mentioned above and described below: string: It holds the string content. The substring is extracted from this...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Oct, 2021" }, { "code": null, "e": 132, "s": 28, "text": "The slice() function is a string function of Node.js which is used to extract sub-string from a string." }, { "code": null, "e": 140, "s": 132, "text": "Sy...
Pass by reference vs value in Python
23 Jun, 2022 Developers jumping into Python programming from other languages like C++ and Java are often confused by the process of passing arguments in Python. The object-centric data model and its treatment of assignment is the cause behind the confusion at the fundamental level. In the article, we will be discussing...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 470, "s": 54, "text": "Developers jumping into Python programming from other languages like C++ and Java are often confused by the process of passing arguments in Python. The object-centric data mo...
How to Implement Press Back Again to Exit in Android?
01 Sep, 2020 The ‘Back‘ button has many different uses in many different android apps. While some app developers use it to close their apps, some use it to traverse back to the app’s previous activity. Many apps require the user to press the ‘Back’ button two times within an interval to successfully close the applicati...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Sep, 2020" }, { "code": null, "e": 378, "s": 28, "text": "The ‘Back‘ button has many different uses in many different android apps. While some app developers use it to close their apps, some use it to traverse back to the app’s previ...
Python Bitwise Operators Example
There are following Bitwise operators supported by Python language. #!/usr/bin/python a = 60 # 60 = 0011 1100 b = 13 # 13 = 0000 1101 c = 0 c = a & b; # 12 = 0000 1100 print "Line 1 - Value of c is ", c c = a | b; # 61 = 0011 1101 print "Line 2 - Value of c is ", c c = a ^ b; ...
[ { "code": null, "e": 2446, "s": 2378, "text": "There are following Bitwise operators supported by Python language." }, { "code": null, "e": 2972, "s": 2446, "text": "#!/usr/bin/python\n\na = 60 # 60 = 0011 1100 \nb = 13 # 13 = 0000 1101 \nc = 0\n\nc = a & b;...
Merge Sort with O(1) extra space merge and O(n lg n) time [Unsigned Integers Only]
06 Jul, 2021 We have discussed Merge sort. How to modify the algorithm so that merge works in O(1) extra space and algorithm still works in O(n Log n) time. We may assume that the input values are integers only. Examples: Input : 5 4 3 2 1 Output : 1 2 3 4 5 Input : 999 612 589 856 56 945 243 Output : 56 243 589 612 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2021" }, { "code": null, "e": 251, "s": 52, "text": "We have discussed Merge sort. How to modify the algorithm so that merge works in O(1) extra space and algorithm still works in O(n Log n) time. We may assume that the input v...
How Does Back-Propagation in Artificial Neural Networks Work? | by Anas Al-Masri | Towards Data Science
Ever since the world of Machine Learning was introduced to non-linear functions that work recursively (i.e. Artificial Neural Networks), the applications of which boomed noticeably. In this context, proper training of a Neural Network is the most important aspect of making a reliable model. This training is usually ass...
[ { "code": null, "e": 688, "s": 172, "text": "Ever since the world of Machine Learning was introduced to non-linear functions that work recursively (i.e. Artificial Neural Networks), the applications of which boomed noticeably. In this context, proper training of a Neural Network is the most importan...
How to add NOT NULL constraint to an already created MySQL column?
Achieve this using ALTER TABLE. Let us first create a table − mysql> create table DemoTable -> ( -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> StudentName varchar(100) -> ); Query OK, 0 rows affected (0.86 sec) Let us check the description of the table − mysql> desc DemoTable; This will produce t...
[ { "code": null, "e": 1124, "s": 1062, "text": "Achieve this using ALTER TABLE. Let us first create a table −" }, { "code": null, "e": 1296, "s": 1124, "text": "mysql> create table DemoTable\n -> (\n -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> StudentName varc...
CSS Variables - GeeksforGeeks
21 Oct, 2021 The variables in CSS are just like simple variables of any other programming language. These variables are used to store values and have a scope in which the variables can be used. A variable is defined by using two dashes(–) at the beginning and then the name which is case-sensitive. The benefit of variab...
[ { "code": null, "e": 28046, "s": 28018, "text": "\n21 Oct, 2021" }, { "code": null, "e": 28641, "s": 28046, "text": "The variables in CSS are just like simple variables of any other programming language. These variables are used to store values and have a scope in which the varia...
Download City Scapes Dataset with script | by Cem Sazara | Towards Data Science
City Scapes dataset is a very popular dataset that consists of labeled street images (from video sequence). There are 5000 high-quality labeled frames and 20000 weakly annotated frames. The website for this dataset is www.cityscapes-dataset.com When I was working with this dataset, I quickly realized the dataset can on...
[ { "code": null, "e": 417, "s": 172, "text": "City Scapes dataset is a very popular dataset that consists of labeled street images (from video sequence). There are 5000 high-quality labeled frames and 20000 weakly annotated frames. The website for this dataset is www.cityscapes-dataset.com" }, { ...
Stop Using CSVs for Storage — Here Are the Top 5 Alternatives | by Dario Radečić | Towards Data Science
Everyone and their grandmother know what a CSV file is. But is it the optimal way to store data? Heck no. It’s probably the worst storage format if you don’t plan to view or edit data on the fly. If you’re storing large volumes of data, opting for CSVs will cost you both time and money. Today you’ll learn about five CS...
[ { "code": null, "e": 243, "s": 47, "text": "Everyone and their grandmother know what a CSV file is. But is it the optimal way to store data? Heck no. It’s probably the worst storage format if you don’t plan to view or edit data on the fly." }, { "code": null, "e": 335, "s": 243, ...
How to create and release a save point in JDBC?
When you set a save point you define a logical rollback point within a transaction. If an error occurs past a save point, you can use the rollback method to undo either all the changes or only the changes made after the save point. Savepoint interface gives you the additional transactional control. Most modern DBMS, su...
[ { "code": null, "e": 1294, "s": 1062, "text": "When you set a save point you define a logical rollback point within a transaction. If an error occurs past a save point, you can use the rollback method to undo either all the changes or only the changes made after the save point." }, { "code":...
Get Interactive plots directly with pandas. | by Parul Pandey | Towards Data Science
Data exploration is by far one of the most important aspects of any data analysis task. The initial probing and preliminary checks that we perform, using the vast catalog of visualization tools, give us actionable insights into the nature of data. However, the choice of visualization tool at times is more complicated t...
[ { "code": null, "e": 831, "s": 172, "text": "Data exploration is by far one of the most important aspects of any data analysis task. The initial probing and preliminary checks that we perform, using the vast catalog of visualization tools, give us actionable insights into the nature of data. However...
Solve the Crossword Puzzle - GeeksforGeeks
26 May, 2018 A 10 x 10 Crossword grid is provided, along with a set of words (or names of places) which need to be filled into the grid. The cells in the grid are initially, either + signs or – signs. Cells marked with a ‘+’ have to be left as they are. Cells marked with a ‘-‘ need to be filled up with an appropriate c...
[ { "code": null, "e": 24920, "s": 24892, "text": "\n26 May, 2018" }, { "code": null, "e": 25315, "s": 24920, "text": "A 10 x 10 Crossword grid is provided, along with a set of words (or names of places) which need to be filled into the grid. The cells in the grid are initially, ei...
Ubuntu - Installing MySQL and Python
MySQL and Python are famous database and development software respectively. These are normally installed on Linux-based systems. Let’s see how we can get them installed on Ubuntu server environments. The first thing to do is to find out what is the version of Python installed on the system. We can find this issuing the...
[ { "code": null, "e": 2333, "s": 2133, "text": "MySQL and Python are famous database and development software respectively. These are normally installed on Linux-based systems. Let’s see how we can get them installed on Ubuntu server environments." }, { "code": null, "e": 2473, "s": 2...
LESS - Parametric Mixins
Parametric mixins use one or more parameters that extend functionality of LESS by taking arguments and its properties to customize the mixin output when mixed into another block. For instance, consider a simple LESS code snippet − .border(@width; @style; @color) { border: @width @style @color; } .myheader { .bor...
[ { "code": null, "e": 2729, "s": 2550, "text": "Parametric mixins use one or more parameters that extend functionality of LESS by taking arguments and its properties to customize the mixin output when mixed into another block." }, { "code": null, "e": 2781, "s": 2729, "text": "For...
Windows 10 Development - XAML Controls
XAML Stands for Extensible Application Markup Language. It is a User Interface framework and it offers an extensive library of controls that support UI development for Windows. Some of them have a visual representation such as a Button, Textbox and TextBlock etc; while other controls are used as the containers for othe...
[ { "code": null, "e": 2723, "s": 2284, "text": "XAML Stands for Extensible Application Markup Language. It is a User Interface framework and it offers an extensive library of controls that support UI development for Windows. Some of them have a visual representation such as a Button, Textbox and Text...
C library function - setbuf()
The C library function void setbuf(FILE *stream, char *buffer) defines how a stream should be buffered. This function should be called once the file associated with the stream has already been opened, but before any input or output operation has taken place. Following is the declaration for setbuf() function. void setb...
[ { "code": null, "e": 2266, "s": 2007, "text": "The C library function void setbuf(FILE *stream, char *buffer) defines how a stream should be buffered. This function should be called once the file associated with the stream has already been opened, but before any input or output operation has taken p...
Java Generics - Type Inference
Type inference represents the Java compiler's ability to look at a method invocation and its corresponding declaration to check and determine the type argument(s). The inference algorithm checks the types of the arguments and, if available, assigned type is returned. Inference algorithms tries to find a specific type w...
[ { "code": null, "e": 2999, "s": 2640, "text": "Type inference represents the Java compiler's ability to look at a method invocation and its corresponding declaration to check and determine the type argument(s). The inference algorithm checks the types of the arguments and, if available, assigned typ...
A simple News app with Tkinter and Newsapi - GeeksforGeeks
06 Jul, 2021 Prerequisites: Tkinter Tkinter is a very famous python library for building a desktop app for windows and UNIX based OS. The idea here is to generate a python code to build a news app with Tkinter. You can very easily get yourself an API key from newsapi.org . Import modules Create a screen with a title Ad...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n06 Jul, 2021" }, { "code": null, "e": 25578, "s": 25555, "text": "Prerequisites: Tkinter" }, { "code": null, "e": 25816, "s": 25578, "text": "Tkinter is a very famous python library for building a desktop app ...
C program that does not suspend when Ctrl+Z is pressed - GeeksforGeeks
26 Sep, 2017 Write a C program that doesn’t terminate when Ctrl+Z is pressed. It prints a message “Cannot be suspended using Ctrl+Z” and continues execution. We can use Unix signal for this. When Ctrl+Z is pressed, SIGTSTP signal is generated. SIGTSTP signal is sent to a process by its controlling terminal to request i...
[ { "code": null, "e": 25477, "s": 25449, "text": "\n26 Sep, 2017" }, { "code": null, "e": 25622, "s": 25477, "text": "Write a C program that doesn’t terminate when Ctrl+Z is pressed. It prints a message “Cannot be suspended using Ctrl+Z” and continues execution." }, { "cod...
PHP - DOM Parser Example
A HTML Dom parser written in PHP5.X versions. Dom Parser is very good at dealing with XML as well as HTML. Dom parser travels based on tree based and before access the data, it will load the data into dom object and it will update the data to the web browser. Below Example shows how to get access to the HTML data in we...
[ { "code": null, "e": 3088, "s": 2757, "text": "A HTML Dom parser written in PHP5.X versions. Dom Parser is very good at dealing with XML as well as HTML. Dom parser travels based on tree based and before access the data, it will load the data into dom object and it will update the data to the web br...
bokeh.plotting.figure.arc() function in Python - GeeksforGeeks
17 Jun, 2020 Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with defaul...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n17 Jun, 2020" }, { "code": null, "e": 25981, "s": 25647, "text": "Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like ...
How to increase the spacing between subplots in Matplotlib with subplot2grid?
To increase the spacing between subplots with subplot2grid, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Add a grid layout to place subplots within a figure. Add a grid layout to ...
[ { "code": null, "e": 1156, "s": 1062, "text": "To increase the spacing between subplots with subplot2grid, we can take the following steps −" }, { "code": null, "e": 1232, "s": 1156, "text": "Set the figure size and adjust the padding between and around the subplots." }, { ...
H2 Database - Quick Guide
H2 is an open-source lightweight Java database. It can be embedded in Java applications or run in the client-server mode. Mainly, H2 database can be configured to run as inmemory database, which means that data will not persist on the disk. Because of embedded database it is not used for production development, but mos...
[ { "code": null, "e": 2465, "s": 2107, "text": "H2 is an open-source lightweight Java database. It can be embedded in Java applications or run in the client-server mode. Mainly, H2 database can be configured to run as inmemory database, which means that data will not persist on the disk. Because of e...
How to Solve Quadratic Equation using Python?
You can use the cmath module in order to solve Quadratic Equation using Python. This is because roots of quadratic equations might be complex in nature. If you have a quadratic equation of the form ax^2 + bx + c = 0, then, import cmath a = 12 b = 8 c = 1 # Discriminent d = (b**2) - (4*a*c) root1 = (-b - cmath.sqrt(d)) ...
[ { "code": null, "e": 1285, "s": 1062, "text": "You can use the cmath module in order to solve Quadratic Equation using Python. This is because roots of quadratic equations might be complex in nature. If you have a quadratic equation of the form ax^2 + bx + c = 0, then," }, { "code": null, ...
JqueryUI - Slider
A slider is used whenever a numeric value within a certain range is to be obtained. The advantage of a slider over text input is that it becomes impossible for the user to enter a bad value. Any value that they can pick with the slider is valid. jQueryUI provides us a slider control through slider widget. jQueryUI prov...
[ { "code": null, "e": 2510, "s": 2264, "text": "A slider is used whenever a numeric value within a certain range is to be obtained. The advantage of a slider over text input is that it becomes impossible for the user to enter a bad value. Any value that they can pick with the slider is valid." }, ...
Beautiful Soup - Trouble Shooting
There are two main kinds of errors that need to be handled in BeautifulSoup. These two errors are not from your script but from the structure of the snippet because the BeautifulSoup API throws an error. The two main errors are as follows − It is caused when the dot notation doesn’t find a sibling tag to the current HT...
[ { "code": null, "e": 2189, "s": 1985, "text": "There are two main kinds of errors that need to be handled in BeautifulSoup. These two errors are not from your script but from the structure of the snippet because the BeautifulSoup API throws an error." }, { "code": null, "e": 2226, "s...
Calendar Functions in Python -(monthrange(), prcal(), weekday()?)
We are going to explore different methods of calendar module in this tutorial. Let's see one by one. The method calendar.monthrange(year, month) returns starting weekday number and number of days of the given month. It returns two values in a tuple. Let's see one example. Live Demo # importing the calendar module impo...
[ { "code": null, "e": 1163, "s": 1062, "text": "We are going to explore different methods of calendar module in this tutorial. Let's see one by one." }, { "code": null, "e": 1335, "s": 1163, "text": "The method calendar.monthrange(year, month) returns starting weekday number and n...
GATE | GATE-CS-2016 (Set 2) | Question 14 - GeeksforGeeks
06 Oct, 2021 Consider the systems, each consisting of m linear equations in n variables. I. If m < n, then all such systems have a solution II. If m > n, then none of these systems has a solution III. If m = n, then there exists a system which has a solution Which one of the following is CORRECT?(A) I, II and III are t...
[ { "code": null, "e": 24508, "s": 24480, "text": "\n06 Oct, 2021" }, { "code": null, "e": 24584, "s": 24508, "text": "Consider the systems, each consisting of m linear equations in n variables." }, { "code": null, "e": 24754, "s": 24584, "text": "I. If m < n, t...
Google Sheets to Jupyter | Towards Data Science
Jupyter Notebook is a powerful tool for data scientists. You could perform many complex algorithms with few lines and perform an analysis on a huge amount of data. Jupyter notebook itself capable to be connected with a database system where the data sleep. Although, if we talk about the database, as a data scientist th...
[ { "code": null, "e": 542, "s": 171, "text": "Jupyter Notebook is a powerful tool for data scientists. You could perform many complex algorithms with few lines and perform an analysis on a huge amount of data. Jupyter notebook itself capable to be connected with a database system where the data sleep...
Interface in Dart - GeeksforGeeks
20 Jul, 2020 The interface in the dart provides the user with the blueprint of the class, that any class should follow if it interfaces that class i.e. if a class inherits another it should redefine each function present inside an interfaced class in its way. They are nothing but a set of methods defined for an object....
[ { "code": null, "e": 23930, "s": 23902, "text": "\n20 Jul, 2020" }, { "code": null, "e": 24350, "s": 23930, "text": "The interface in the dart provides the user with the blueprint of the class, that any class should follow if it interfaces that class i.e. if a class inherits anot...
String transformation using XOR and OR - GeeksforGeeks
29 Apr, 2021 Given two binary strings. The task is to check if string s1 can be converted to string s2 by performing the given operations any number of times. Choose any two adjacent characters in a string s1 and replace one of them by a^b and the other by a b (a OR b). Examples: Input: S1 = “11”, S2 = “10” Output: Y...
[ { "code": null, "e": 26115, "s": 26087, "text": "\n29 Apr, 2021" }, { "code": null, "e": 26263, "s": 26115, "text": "Given two binary strings. The task is to check if string s1 can be converted to string s2 by performing the given operations any number of times. " }, { "...
Java log1p() with example - GeeksforGeeks
31 Mar, 2018 The java.lang.Math.log1p() is one of the Java Math Library method which is used to return the natural logarithm of the sum of the arguments and 1.For the small values, the result of log1p(a) is much closer to the true result of ln(1 + a) than the floating-point evaluation of log(1.0 + a).There are various ...
[ { "code": null, "e": 25347, "s": 25319, "text": "\n31 Mar, 2018" }, { "code": null, "e": 25662, "s": 25347, "text": "The java.lang.Math.log1p() is one of the Java Math Library method which is used to return the natural logarithm of the sum of the arguments and 1.For the small val...
What is the append method in Java?
The append(char c) method of the java.lang.StringBuffer appends the string representation of the char argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by 1. Live Demo import java.lang.*; public class StringBufferDemo { public static void mai...
[ { "code": null, "e": 1294, "s": 1062, "text": "The append(char c) method of the java.lang.StringBuffer appends the string representation of the char argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by 1." }, { "code":...
Calendar compareTo() Method in Java with Examples - GeeksforGeeks
13 Feb, 2019 The add(Calendar Calendar2) method of Calendar class is used to compare the time values or the millisecond offsets of this Calendar object with the passed Calendar object. Syntax: public int compareTo(Calendar Calendar2) Parameters: The method takes one parameter Calendar2 of Calendar object type and refer...
[ { "code": null, "e": 25749, "s": 25721, "text": "\n13 Feb, 2019" }, { "code": null, "e": 25921, "s": 25749, "text": "The add(Calendar Calendar2) method of Calendar class is used to compare the time values or the millisecond offsets of this Calendar object with the passed Calendar...
Program to remove consonants from a String - GeeksforGeeks
09 Jun, 2021 Given a string , the task is to remove all the consonants from the string and then print the string. Examples: Input: str= “Welcome to geeksforgeeks” Output: eoe o eeoee Input: str= “What is your name?” Output: a i ou ae? Approach: Traverse all the characters of the string, if the character is a consona...
[ { "code": null, "e": 26242, "s": 26214, "text": "\n09 Jun, 2021" }, { "code": null, "e": 26343, "s": 26242, "text": "Given a string , the task is to remove all the consonants from the string and then print the string." }, { "code": null, "e": 26355, "s": 26343, ...
Check if there is a root to leaf path with given sequence - GeeksforGeeks
30 Apr, 2020 Given a binary tree and an array, the task is to find if the given array sequence is present as a root to leaf path in given tree.Examples : Input : arr[] = {5, 2, 4, 8} for above tree Output: "Path Exist" Input : arr[] = {5, 3, 4, 9} for above tree Output: "Path does not Exist" A simple solution for th...
[ { "code": null, "e": 37091, "s": 37063, "text": "\n30 Apr, 2020" }, { "code": null, "e": 37232, "s": 37091, "text": "Given a binary tree and an array, the task is to find if the given array sequence is present as a root to leaf path in given tree.Examples :" }, { "code": ...
C program to find the length of a string - GeeksforGeeks
24 Dec, 2021 Given a string str. The task is to find the length of the string. Examples: Input: str = "Geeks" Output: Length of Str is : 5 Input: str = "GeeksforGeeks" Output: Length of Str is : 13 In the below program, to find the length of the string str, first the string is taken as input from the user using s...
[ { "code": null, "e": 25786, "s": 25758, "text": "\n24 Dec, 2021" }, { "code": null, "e": 25853, "s": 25786, "text": "Given a string str. The task is to find the length of the string. " }, { "code": null, "e": 25865, "s": 25853, "text": "Examples: " }, { ...
How to Implement MultiSelect DropDown in Android? - GeeksforGeeks
30 Jan, 2022 In this article, we are going to see how we can make a MultiSelect DropDown in android studio and will select multiple items from a dropdown list. Advantages of MultiSelect DropDown. It is a good replacement for list boxes as it uses less space does the same work as a list box and gives a good look to UI. ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n30 Jan, 2022" }, { "code": null, "e": 26564, "s": 26381, "text": "In this article, we are going to see how we can make a MultiSelect DropDown in android studio and will select multiple items from a dropdown list. Advantages of Mu...
DMin and DMax Functions MS Access - GeeksforGeeks
15 Sep, 2020 1.DMin() Function : DMin() Function in MS Access is used to determine the minimum values in a specified set of records (a domain). The DMin functions return the minimum values that satisfy the criteria. If expression identifies numeric data, the DMin functions return numeric values. If expression identifie...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n15 Sep, 2020" }, { "code": null, "e": 25533, "s": 25513, "text": "1.DMin() Function :" }, { "code": null, "e": 26104, "s": 25533, "text": "DMin() Function in MS Access is used to determine the minimum values i...
sciPy stats.cumfreq() function | Python - GeeksforGeeks
15 Jan, 2022 scipy.stats.cumfreq(a, numbins, defaultreallimits, weights) works using the histogram function and calculates the cumulative frequency histogram. It includes cumulative frequency binned values, width of each bin, lower real limit, extra points. Parameters : arr : [array_like] input array. numbins : [int] ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n15 Jan, 2022" }, { "code": null, "e": 25783, "s": 25537, "text": "scipy.stats.cumfreq(a, numbins, defaultreallimits, weights) works using the histogram function and calculates the cumulative frequency histogram. It includes cumul...
Seaborn | Style And Color - GeeksforGeeks
29 Jan, 2021 Seaborn is a statistical plotting library in python. It has beautiful default styles. This article deals with the ways of styling the different kinds of plots in seaborn. This affects things like the color of the axes, whether a grid is enabled by default, and other aesthetic elements. The ways of styling...
[ { "code": null, "e": 27981, "s": 27953, "text": "\n29 Jan, 2021" }, { "code": null, "e": 28153, "s": 27981, "text": "Seaborn is a statistical plotting library in python. It has beautiful default styles. This article deals with the ways of styling the different kinds of plots in s...
Pointer Arithmetics in C with Examples - GeeksforGeeks
27 Jul, 2021 Pointers variables are also known as address data types because they are used to store the address of another variable. The address is the memory location that is assigned to the variable. It doesn’t store any value. Hence, there are only a few operations that are allowed to perform on Pointers in C langu...
[ { "code": null, "e": 25671, "s": 25643, "text": "\n27 Jul, 2021" }, { "code": null, "e": 25889, "s": 25671, "text": "Pointers variables are also known as address data types because they are used to store the address of another variable. The address is the memory location that is ...
Computing the Mean and Std of a Dataset in Pytorch - GeeksforGeeks
04 Jul, 2021 PyTorch provides various inbuilt mathematical utilities to monitor the descriptive statistics of a dataset at hand one of them being mean and standard deviation. Mean, denoted by, is one of the Measures of central tendencies which is calculated by finding the average of the given dataset. Standard Deviatio...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n04 Jul, 2021" }, { "code": null, "e": 26020, "s": 25537, "text": "PyTorch provides various inbuilt mathematical utilities to monitor the descriptive statistics of a dataset at hand one of them being mean and standard deviation. M...
Nested Loops in C++ with Examples - GeeksforGeeks
03 Dec, 2019 Nested loop means a loop statement inside another loop statement. That is why nested loops are also called as “loop inside loop“. Syntax for Nested For loop: for ( initialization; condition; increment ) { for ( initialization; condition; increment ) { // statement of inside loop } /...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n03 Dec, 2019" }, { "code": null, "e": 25497, "s": 25367, "text": "Nested loop means a loop statement inside another loop statement. That is why nested loops are also called as “loop inside loop“." }, { "code": null, "...
Print Kth character in sorted concatenated substrings of a string - GeeksforGeeks
29 Dec, 2021 Given a string of lower alphabetic characters, find K-th character in a string formed by substrings (of given string) when concatenated in sorted form. Examples: Input : str = “banana” K = 10 Output : n All substring in sorted form are, "a", "an", "ana", "anan", "anana", "b", "ba", "ban", "ba...
[ { "code": null, "e": 26715, "s": 26687, "text": "\n29 Dec, 2021" }, { "code": null, "e": 26868, "s": 26715, "text": "Given a string of lower alphabetic characters, find K-th character in a string formed by substrings (of given string) when concatenated in sorted form. " }, { ...
Python MariaDB - Update Query using PyMySQL - GeeksforGeeks
14 Oct, 2020 MariaDB is an open-source Database Management System and its predecessor to MySQL. The pymysql client can be used to interact with MariaDB similar to that of MySQL using Python. In this article, we will look into the process of using the UPDATE query on a table of the database using pymysql. The update is...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n14 Oct, 2020" }, { "code": null, "e": 25715, "s": 25537, "text": "MariaDB is an open-source Database Management System and its predecessor to MySQL. The pymysql client can be used to interact with MariaDB similar to that of MySQL...
How to Calculate Percentiles For Monitoring Data-Intensive Systems? - GeeksforGeeks
08 Dec, 2021 Monitoring often involves the use of percentiles. Unlike average values, which are heavily influenced by outliers, percentiles help understand how the system works most of the time. If 9 out of 10 requests are executed in 1 second and the last one takes 10 seconds, the average will be 1.9 seconds while the...
[ { "code": null, "e": 25729, "s": 25701, "text": "\n08 Dec, 2021" }, { "code": null, "e": 26457, "s": 25729, "text": "Monitoring often involves the use of percentiles. Unlike average values, which are heavily influenced by outliers, percentiles help understand how the system works...
HashSet In Scala - GeeksforGeeks
04 Jul, 2019 HashSet is sealed class. It extends immutable Set and AbstractSet trait. Hash code is used to store elements. It neither sorts the elements nor maintains insertion order . The Set interface implemented by the HashSet class, backed by a hash table . In Scala, A concrete implementation of Set semantics is kn...
[ { "code": null, "e": 26063, "s": 26035, "text": "\n04 Jul, 2019" }, { "code": null, "e": 26390, "s": 26063, "text": "HashSet is sealed class. It extends immutable Set and AbstractSet trait. Hash code is used to store elements. It neither sorts the elements nor maintains insertion...
Golang | Checking the byte of slice for specified regular expression - GeeksforGeeks
05 Sep, 2019 A regular expression is a sequence of characters which define a search pattern. Go language support regular expressions. A regular expression is used for parsing, filtering, validating, and extracting meaningful information from large text, like logs, the output generated from other programs, etc.In Go reg...
[ { "code": null, "e": 25659, "s": 25631, "text": "\n05 Sep, 2019" }, { "code": null, "e": 26258, "s": 25659, "text": "A regular expression is a sequence of characters which define a search pattern. Go language support regular expressions. A regular expression is used for parsing, ...
Find all palindromic sub-strings of a given string | Set 2 - GeeksforGeeks
04 Aug, 2021 Given a string, the task is to find all the palindromic sub-strings from the given string.In Set – 1, another approach has been already discussed and that consider only distinct sub-strings but in this equal sub-strings i.e. ll and ll are considered as two sub-strings, not one. Examples: Input : hellolle ...
[ { "code": null, "e": 26015, "s": 25987, "text": "\n04 Aug, 2021" }, { "code": null, "e": 26294, "s": 26015, "text": "Given a string, the task is to find all the palindromic sub-strings from the given string.In Set – 1, another approach has been already discussed and that consider...
Custom Legends with Matplotlib - GeeksforGeeks
28 Nov, 2021 In this article, you learn to customize the legend in matplotlib. matplotlib is a popular data visualization library. It is a plotting library in python and has its numerical extension NumPy. Legend is an area of the graph describing each part of the graph. A graph can be simple as it is. But adding the ti...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25729, "s": 25537, "text": "In this article, you learn to customize the legend in matplotlib. matplotlib is a popular data visualization library. It is a plotting library in python and has it...
PHP | JsonSerializable jsonSerialize() Function - GeeksforGeeks
27 Sep, 2019 The JsonSerializable::jsonSerialize() function is an inbuilt function in PHP which is used to serialize the JSON object to a value that can be serialized natively by using json_encode() function. Syntax: mixed JsonSerializable::jsonSerialize( void ) Parameters: This function does not accept any parameters....
[ { "code": null, "e": 25925, "s": 25897, "text": "\n27 Sep, 2019" }, { "code": null, "e": 26121, "s": 25925, "text": "The JsonSerializable::jsonSerialize() function is an inbuilt function in PHP which is used to serialize the JSON object to a value that can be serialized natively ...
Generate boolean (yes/no) questions from any content using T5 text-to-text transformer model | by Ramsri Goutham | Towards Data Science
The input to our program will be any general content/paragraph - Months earlier, Coca-Cola had begun “Project Kansas.” It sounds like a nuclear experiment but it was just a testing project for the new flavor. In individual surveys, they’d found that more than 75% of respondents loved the taste, 15% were indifferent, an...
[ { "code": null, "e": 237, "s": 172, "text": "The input to our program will be any general content/paragraph -" }, { "code": null, "e": 568, "s": 237, "text": "Months earlier, Coca-Cola had begun “Project Kansas.” It sounds like a nuclear experiment but it was just a testing proje...
Multi-Label Classification using BERT, RoBERTa, XLNet, XLM, and DistilBERT with Simple Transformers | by Thilina Rajapakse | Towards Data Science
The Simple Transformers library is built on top of the excellent Transformers library by Hugging Face. You guys are incredible! Simple Transformers now supports: Binary Classification Multiclass Classification Named Entity Recognition (and similar token level tasks) Multilabel Classification There’s plenty more in the ...
[ { "code": null, "e": 299, "s": 171, "text": "The Simple Transformers library is built on top of the excellent Transformers library by Hugging Face. You guys are incredible!" }, { "code": null, "e": 333, "s": 299, "text": "Simple Transformers now supports:" }, { "code": nu...
Queue peek() method in Java - GeeksforGeeks
26 Sep, 2018 The peek() method of Queue Interface returns the element at the front the container. It does not deletes the element in the container. This method returns the head of the queue. The method does not throws an exception when the Queue is empty, it returns null instead. Syntax: E peek() Returns: This method r...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n26 Sep, 2018" }, { "code": null, "e": 23825, "s": 23557, "text": "The peek() method of Queue Interface returns the element at the front the container. It does not deletes the element in the container. This method returns the head...