title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to upload a file in Selenium with no text box?
We can upload a file in Selenium with no text box. This is achieved with the help of the sendKeys method. It is applied on the web element which performs the task of selecting the path of the file to be uploaded. As we make an attempt to upload, we shall click on the Browse button. If we investigate the HTML code for t...
[ { "code": null, "e": 1275, "s": 1062, "text": "We can upload a file in Selenium with no text box. This is achieved with the help of the sendKeys method. It is applied on the web element which performs the task of selecting the path of the file to be uploaded." }, { "code": null, "e": 151...
Check if a triangle of positive area is possible with the given angles - GeeksforGeeks
25 Mar, 2021 Given three angles. The task is to check if it is possible to have a triangle of positive area with these angles. If it is possible print “YES” else print “NO”.Examples: Input : ang1 = 50, ang2 = 60, ang3 = 70 Output : YES Input : ang1 = 50, ang2 = 65, ang3 = 80 Output : NO Approach: We can form a va...
[ { "code": null, "e": 24880, "s": 24852, "text": "\n25 Mar, 2021" }, { "code": null, "e": 25052, "s": 24880, "text": "Given three angles. The task is to check if it is possible to have a triangle of positive area with these angles. If it is possible print “YES” else print “NO”.Exa...
How to Automatically Close Alerts using Twitter Bootstrap ? - GeeksforGeeks
01 Jun, 2020 All modern web application uses alerts to show messages to the user. These alerts have a close button to close them or can be closed automatically using Twitter Bootstrap. In this post, we will create automatically closing of alerts using twitter Bootstrap. Basic idea is to use jQuery setTimeout() method t...
[ { "code": null, "e": 26459, "s": 26431, "text": "\n01 Jun, 2020" }, { "code": null, "e": 26717, "s": 26459, "text": "All modern web application uses alerts to show messages to the user. These alerts have a close button to close them or can be closed automatically using Twitter Bo...
Java String substring() Method example.
The substring(int beginIndex, int endIndex) method of the String class. It returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex. Live Demo import java.lang.*; ...
[ { "code": null, "e": 1352, "s": 1062, "text": "The substring(int beginIndex, int endIndex) method of the String class. It returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of t...
Tryit Editor v3.7
Tryit: Using justify-content: flex-end
[]
Apache Pig - Execution
In the previous chapter, we explained how to install Apache Pig. In this chapter, we will discuss how to execute Apache Pig. You can run Apache Pig in two modes, namely, Local Mode and HDFS mode. In this mode, all the files are installed and run from your local host and local file system. There is no need of Hadoop or ...
[ { "code": null, "e": 2809, "s": 2684, "text": "In the previous chapter, we explained how to install Apache Pig. In this chapter, we will discuss how to execute Apache Pig." }, { "code": null, "e": 2880, "s": 2809, "text": "You can run Apache Pig in two modes, namely, Local Mode a...
DB2 - Roles
A role is a database object that groups multiple privileges that can be assigned to users, groups, PUBLIC or other roles by using GRANT statement. A role cannot own database objects. Permissions and roles granted to groups are not considered when you create the following database objects. Package Containing static SQL...
[ { "code": null, "e": 2075, "s": 1928, "text": "A role is a database object that groups multiple privileges that can be assigned to users, groups, PUBLIC or other roles by using GRANT statement." }, { "code": null, "e": 2111, "s": 2075, "text": "A role cannot own database objects....
Python | sympy.factorint() method - GeeksforGeeks
05 Sep, 2019 With the help of sympy.factorint() method, we can find the factors and their corresponding multiplicities of a given integer. For input less than 2, factorint() behaves as follows: – returns the empty factorization {}. – returns . – adds to the factors and then factors . Syntax:factorint(n) Parameter:n...
[ { "code": null, "e": 25719, "s": 25691, "text": "\n05 Sep, 2019" }, { "code": null, "e": 25900, "s": 25719, "text": "With the help of sympy.factorint() method, we can find the factors and their corresponding multiplicities of a given integer. For input less than 2, factorint() be...
Kotlin Map : mapOf()
19 Nov, 2021 Kotlin map is a collection which contains pairs of objects. Map holds the data in the form of pairs which consists of a key and a value. Map keys are unique and the map holds only one value for each key. Kotlin distinguishes between immutable and mutable maps. Immutable maps created with mapOf() means thes...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Nov, 2021" }, { "code": null, "e": 476, "s": 53, "text": "Kotlin map is a collection which contains pairs of objects. Map holds the data in the form of pairs which consists of a key and a value. Map keys are unique and the map holds...
How to get the address for an element in Python array?
23 Aug, 2021 In this article we are going to discuss about getting the address of an particular element in the Python array. In python we can create the array using numpy. Numpy stands for numeric python used to create and process arrays. We have to import numpy module import numpy as np Syntax to create array: np.ndar...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 285, "s": 28, "text": "In this article we are going to discuss about getting the address of an particular element in the Python array. In python we can create the array using numpy. Numpy stands for...
Find the number of occurrences of a character upto preceding position
11 Jun, 2021 Given a string S of length N and an integer P(1≤P≤N) denoting the position of a character in the string. The task is to find the number of occurrences of the character present at the position P upto P-1 index. Examples: Input : S = “ababababab”, P = 9 Output : 4 Character at P is ‘a’. Number of occurrence...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jun, 2021" }, { "code": null, "e": 238, "s": 28, "text": "Given a string S of length N and an integer P(1≤P≤N) denoting the position of a character in the string. The task is to find the number of occurrences of the character present...
Design a Student Grade Calculator using JavaScript
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 i...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Aug, 2021" }, { "code": null, "e": 186, "s": 28, "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." }, { "co...
Python | Combinations of elements till size N in list
27 Aug, 2019 The problem of finding the combinations of list elements of specific size has been discussed. But sometimes, we require more and we wish to have all the combinations of elements of all sizes till N. Let’s discuss certain ways in which this function can be performed. Method #1 : Using list comprehension + c...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Aug, 2019" }, { "code": null, "e": 295, "s": 28, "text": "The problem of finding the combinations of list elements of specific size has been discussed. But sometimes, we require more and we wish to have all the combinations of elemen...
Difference between forEach() and map() loop in JavaScript
01 Jun, 2022 When we work with an array, it is an essential step to iterate on the array to access elements and performing some kind of functionality on those elements to accomplish any task.For example, If you have an array of marks obtained by 20 students and you want to calculate their GPA, if you have an array of i...
[ { "code": null, "e": 53, "s": 25, "text": "\n01 Jun, 2022" }, { "code": null, "e": 538, "s": 53, "text": "When we work with an array, it is an essential step to iterate on the array to access elements and performing some kind of functionality on those elements to accomplish any t...
Find all possible coordinates of parallelogram
22 Jun, 2022 Find the all the possible coordinate from the given three coordinates to make a parallelogram of a non-zero area.Let’s call A,B,C are the three given points. We can have only the three possible situations: (1) AB and AC are sides, and BC a diagonal (2) AB and BC are sides, and AC a diagonal (3) BC and AC...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2022" }, { "code": null, "e": 259, "s": 52, "text": "Find the all the possible coordinate from the given three coordinates to make a parallelogram of a non-zero area.Let’s call A,B,C are the three given points. We can have only...
TimeSpan.FromHours() Method in C#
30 Sep, 2019 This method is used to get a TimeSpan that represents a specified number of hours, accurate to the nearest millisecond. Syntax: public static TimeSpan FromHours (double value); Parameter:value: This parameter specifies the number of hours, accurate to the nearest millisecond. Return Value: It returns a new...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2019" }, { "code": null, "e": 148, "s": 28, "text": "This method is used to get a TimeSpan that represents a specified number of hours, accurate to the nearest millisecond." }, { "code": null, "e": 205, "s": 148,...
JavaFX | ComboBox with examples
20 Aug, 2021 ComboBox is a part of the JavaFX library. JavaFX ComboBox is an implementation of simple ComboBox which shows a list of items out of which user can select at most one item, it inherits the class ComboBoxBase. Constructors of ComboBox: ComboBox(): creates a default empty combo boxComboBox(ObservableList i)...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Aug, 2021" }, { "code": null, "e": 237, "s": 28, "text": "ComboBox is a part of the JavaFX library. JavaFX ComboBox is an implementation of simple ComboBox which shows a list of items out of which user can select at most one item, it...
HTML - <td> Tag
The HTML <td> tag is used for specifying a cell or table data within a table. <!DOCTYPE html> <html> <head> <title>HTML td Tag</title> </head> <body> <table border = "1"> <tr> <th>Subject</th> <th>Topic</th> </tr> <tr> <td>J...
[ { "code": null, "e": 2452, "s": 2374, "text": "The HTML <td> tag is used for specifying a cell or table data within a table." }, { "code": null, "e": 2987, "s": 2452, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML td Tag</title>\n </head>\n\n <body>\n <...
Linear Regression with example | by Sandeep Khurana | Towards Data Science
Machine Learning — Fictional story. Once there was a doctor. He would look at person and predict if s/he has lack of Haemoglobin (red blood cells) or not. And almost all the time his prediction will come true upon testing the blood of the patient. How would he predict? Lets assume pale color of face, tiredness in body ...
[ { "code": null, "e": 420, "s": 172, "text": "Machine Learning — Fictional story. Once there was a doctor. He would look at person and predict if s/he has lack of Haemoglobin (red blood cells) or not. And almost all the time his prediction will come true upon testing the blood of the patient." }, ...
Dictionary.Keys Property in C#
The Dictionary.Keys property in C# is used to fetch all the keys in the Dictionary. Following is the syntax − public System.Collections.Generic.Dictionary<TKey, TValue>.KeyCollection Keys { get; } Let us now see an example to implement the Dictionary.Keys property − using System; using System.Collections.Generic; publi...
[ { "code": null, "e": 1146, "s": 1062, "text": "The Dictionary.Keys property in C# is used to fetch all the keys in the Dictionary." }, { "code": null, "e": 1172, "s": 1146, "text": "Following is the syntax −" }, { "code": null, "e": 1259, "s": 1172, "text": "p...
Build an Algorithmic Trading System | by Posey | Towards Data Science
After dozens of emails and DMs, it seemed appropriate to write a proper introduction to getting started with Algorithmic Trading. This guide should serve as a walkthrough for building your first Proof of Concept algorithmic trading system. Disclaimer: Luke is a Co-Founder of Spawner, a company whose tech is directly me...
[ { "code": null, "e": 411, "s": 171, "text": "After dozens of emails and DMs, it seemed appropriate to write a proper introduction to getting started with Algorithmic Trading. This guide should serve as a walkthrough for building your first Proof of Concept algorithmic trading system." }, { "...
Printing TreeMap Having Custom Class Objects as Keys or Values in Java
04 Jan, 2021 TreeMap is a map implementation that keeps its entry sorted according to the natural ordering of its keys. So, for an integer, this would mean ascending order, and for string, it would be alphabetical order. TreeMap can also be sorted according to the user by using a comparator at construction time. Here w...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jan, 2021" }, { "code": null, "e": 329, "s": 28, "text": "TreeMap is a map implementation that keeps its entry sorted according to the natural ordering of its keys. So, for an integer, this would mean ascending order, and for string,...
Number and its Types in Julia
01 Aug, 2020 Julia is a high-level, dynamic, general-purpose programming language that can be used to write software applications, and is well-suited for data analysis and computational science. Numbers are important in any programming language. Numbers in Julia is classified into two types: Integer and Floating-Point ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 840, "s": 28, "text": "Julia is a high-level, dynamic, general-purpose programming language that can be used to write software applications, and is well-suited for data analysis and computational sc...
Java Program for Breadth First Search or BFS for a Graph
20 Dec, 2021 Breadth First Traversal (or Search) for a graph is similar to Breadth First Traversal of a tree (See method 2 of this post). The only catch here is, unlike trees, graphs may contain cycles, so we may come to the same node again. To avoid processing a node more than once, we use a boolean visited array. For...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Dec, 2021" }, { "code": null, "e": 768, "s": 28, "text": "Breadth First Traversal (or Search) for a graph is similar to Breadth First Traversal of a tree (See method 2 of this post). The only catch here is, unlike trees, graphs may c...
Program to Parse a comma separated string in C++
24 Oct, 2020 Given a comma-separated string, the task is to parse this string and separate the words in C++.Examples: Input: "1,2,3,4,5" Output: 1 2 3 4 5 Input: "Geeks,for,Geeks" Output: Geeks for Geeks Approach: Get the string in stream – stringstream Create a string vector to store the parsed words Now ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Oct, 2020" }, { "code": null, "e": 135, "s": 28, "text": "Given a comma-separated string, the task is to parse this string and separate the words in C++.Examples: " }, { "code": null, "e": 229, "s": 135, "text": ...
Matplotlib.axes.Axes.quiver() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
How to create a Currency converter app in ReactJS ?
20 Aug, 2021 In this article, we will be building a very simple currency converter app with the help of an API. Our app contains three sections, one for taking the user input and store it inside a state variable, a menu where users can change the units of conversion, and finally a display section where we display the f...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Aug, 2021" }, { "code": null, "e": 153, "s": 54, "text": "In this article, we will be building a very simple currency converter app with the help of an API." }, { "code": null, "e": 609, "s": 153, "text": "Our ap...
Basics of File Handling in C#
09 Sep, 2019 Generally, the file is used to store the data. The term File Handling refers to the various operations like creating the file, reading from the file, writing to the file, appending the file, etc. There are two basic operation which is mostly used in file handling is reading and writing of the file. The fil...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Sep, 2019" }, { "code": null, "e": 777, "s": 54, "text": "Generally, the file is used to store the data. The term File Handling refers to the various operations like creating the file, reading from the file, writing to the file, app...
File listFiles() method in Java with Examples
30 Jan, 2019 The listFiles() method is a part of File class.The function returns an array of Files denoting the files in a given abstract pathname if the path name is a directory else returns null. The function is an overloaded function. One of the function does not have any parameter, the second function takes Filenam...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2019" }, { "code": null, "e": 420, "s": 28, "text": "The listFiles() method is a part of File class.The function returns an array of Files denoting the files in a given abstract pathname if the path name is a directory else retu...
How to Plot a Logistic Regression Curve in R?
27 Jan, 2022 In this article, we will learn how to plot a Logistic Regression Curve in the R programming Language. Logistic regression is basically a supervised classification algorithm. That helps us in creating a differentiating curve that separates two classes of variables. To Plot the Logistic Regression curve in t...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2022" }, { "code": null, "e": 130, "s": 28, "text": "In this article, we will learn how to plot a Logistic Regression Curve in the R programming Language." }, { "code": null, "e": 380, "s": 130, "text": "Logi...
numpy.allclose() in Python
28 Dec, 2018 numpy.allclose() function is used to find if two arrays are element-wise equal within a tolerance. The tolerance values are positive, typically very small numbers. The relative difference (rtol * abs(arr2)) and the absolute difference atol are added together to compare against the absolute difference betwe...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Dec, 2018" }, { "code": null, "e": 508, "s": 28, "text": "numpy.allclose() function is used to find if two arrays are element-wise equal within a tolerance. The tolerance values are positive, typically very small numbers. The relativ...
Python-Tkinter Scrollbar
26 Mar, 2020 Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easiest way to create GUI applications. C...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Mar, 2020" }, { "code": null, "e": 406, "s": 54, "text": "Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python ...
Merge two Pandas dataframes by matched ID number
05 Apr, 2021 In this article, we will see how two data frames can be merged based on matched ID numbers. Approach Create a first data frame Create a second data frame Select Column to be matched Merge using the merge function Syntax : DataFrame.merge(parameters) Display result Given below are implementations to produce...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Apr, 2021" }, { "code": null, "e": 120, "s": 28, "text": "In this article, we will see how two data frames can be merged based on matched ID numbers." }, { "code": null, "e": 129, "s": 120, "text": "Approach" },...
ML | Common Loss Functions
21 Jun, 2022 The loss function estimates how well a particular algorithm models the provided data. Loss functions are classified into two classes based on the type of learning task Regression Models: predict continuous values. Classification Models: predict the output from a set of finite categorical values. REGRESSION...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2022" }, { "code": null, "e": 196, "s": 28, "text": "The loss function estimates how well a particular algorithm models the provided data. Loss functions are classified into two classes based on the type of learning task" }, ...
PHP | MySQL WHERE Clause
03 Mar, 2018 The WHERE Clause is used to filter only those records that are fulfilled by a specific condition given by the user. in other words, the SQL WHERE clause is used to restrict the number of rows affected by a SELECT, UPDATE or DELETE query. Syntax :The basic syntax of the where clause is –SELECT Column1 , Col...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Mar, 2018" }, { "code": null, "e": 266, "s": 28, "text": "The WHERE Clause is used to filter only those records that are fulfilled by a specific condition given by the user. in other words, the SQL WHERE clause is used to restrict th...
Python program to print current hour, minute, second and microsecond
09 Dec, 2021 In this article, we are going to discuss how to print current hour, minute, second, and microsecond using Python. In order to print hour, minute and microseconds we need to use DateTime module in Python. datetime.now().hour(): This method returns the current hour value of the datetime object. datetime.now(...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Dec, 2021" }, { "code": null, "e": 232, "s": 28, "text": "In this article, we are going to discuss how to print current hour, minute, second, and microsecond using Python. In order to print hour, minute and microseconds we need to us...
Set the focus to HTML form element using JavaScript
20 May, 2019 To set focus to an HTML form element, the focus() method of JavaScript can be used. To do so, call this method on an object of the element that is to be focused, as shown in the example. Example 1: The focus() method is set to the input tag when user clicks on Focus button. <!DOCTYPE html><html> <head> ...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 May, 2019" }, { "code": null, "e": 215, "s": 28, "text": "To set focus to an HTML form element, the focus() method of JavaScript can be used. To do so, call this method on an object of the element that is to be focused, as shown in t...
Python program to check the validity of a Password
23 Jun, 2022 In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and checking whether the password is valid or not with the help of a few conditions. Primary conditions for password validation: Minimum 8 characters.The alphabet must be between [a-z]At...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 260, "s": 54, "text": "In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and checking whether the password is valid or not wit...
Java Program to Use Methods of Column to Get Column Name in JDBC
15 Jul, 2021 Java Database Connectivity or JDBC is a Java API (application programming interface) used to perform database operations through Java application. It allows the execution of SQL commands for the creation of tables and data manipulation through Java application. Java supports java.sql package which contains...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2021" }, { "code": null, "e": 608, "s": 28, "text": "Java Database Connectivity or JDBC is a Java API (application programming interface) used to perform database operations through Java application. It allows the execution of S...
Generic Constructors and Interfaces in Java
28 Jan, 2021 Generics make a class, interface and, method, consider all (reference) types that are given dynamically as parameters. This ensures type safety. Generic class parameters are specified in angle brackets “<>” after the class name as of the instance variable. Generic constructors are the same as generic metho...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jan, 2021" }, { "code": null, "e": 311, "s": 54, "text": "Generics make a class, interface and, method, consider all (reference) types that are given dynamically as parameters. This ensures type safety. Generic class parameters are ...
Synopsys Recruitment Process - GeeksforGeeks
28 Jun, 2021 About Company Recruitment Process Questions Asked in Synopsys Interview Experiences Where to Apply ? Synopsys, Inc., an American company, is the leading company by sales in the Electronic Design Automation industry. Synopsys’ first and best-known product is Design Compiler, a logic-synthesis tool. Synopsys...
[ { "code": null, "e": 29498, "s": 29470, "text": "\n28 Jun, 2021" }, { "code": null, "e": 29512, "s": 29498, "text": "About Company" }, { "code": null, "e": 29532, "s": 29512, "text": "Recruitment Process" }, { "code": null, "e": 29560, "s": 295...
Python | Pandas Series.str.extract()
27 Mar, 2019 Series.str can be used to access the values of the series as strings and apply several methods to it. Pandas Series.str.extract() function is used to extract capture groups in the regex pat as columns in a DataFrame. For each subject string in the Series, extract groups from the first match of regular expr...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Mar, 2019" }, { "code": null, "e": 347, "s": 28, "text": "Series.str can be used to access the values of the series as strings and apply several methods to it. Pandas Series.str.extract() function is used to extract capture groups in...
Objects in Javascript
10 Jun, 2022 Objects, in JavaScript, is the most important data-type and forms the building blocks for modern JavaScript. These objects are quite different from JavaScript’s primitive data-types(Number, String, Boolean, null, undefined and symbol) in the sense that while these primitive data-types all store a single va...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jun, 2022" }, { "code": null, "e": 396, "s": 52, "text": "Objects, in JavaScript, is the most important data-type and forms the building blocks for modern JavaScript. These objects are quite different from JavaScript’s primitive dat...
Python string | digits
16 Oct, 2018 In Python3, string.digits is a pre-initialized string used as string constant. In Python, string.digits will give the lowercase letters ‘0123456789’. Syntax : string.digits Parameters : Doesn’t take any parameter, since it’s not a function. Returns : Return all digit letters. Note : Make sure to import str...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Oct, 2018" }, { "code": null, "e": 203, "s": 53, "text": "In Python3, string.digits is a pre-initialized string used as string constant. In Python, string.digits will give the lowercase letters ‘0123456789’." }, { "code": nu...
Can we return this keyword from a method in java?
The "this" keyword in Java is used as a reference to the current object, within an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables, and methods. Yes, you can return this in Java i.e. The following statement is valid. return this; When you return "this" f...
[ { "code": null, "e": 1273, "s": 1062, "text": "The \"this\" keyword in Java is used as a reference to the current object, within an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables, and methods." }, { "code": null, "e": 134...
How does underscore "_" work in Python files?
The underscore (_) is special in Python. There are 5 cases for using the underscore in Python. 1. For storing the value of last expression in interpreter. The python interpreter stores the last expression value to the special variable called ‘_’. >>> 12 + 10 22 >>> _ 22 2. For ignoring the specific values. The undersco...
[ { "code": null, "e": 1157, "s": 1062, "text": "The underscore (_) is special in Python. There are 5 cases for using the underscore in Python." }, { "code": null, "e": 1217, "s": 1157, "text": "1. For storing the value of last expression in interpreter." }, { "code": null,...
How to adjust the alignments of the text in JavaFX?
You can set a fixed width for the text in user space by setting the value to the wrappingWidth property. Once you do so, given width is considered as the boundary of the text in user coordinates and, the text is arranged width in the given width. If you haven’t given any value for this property, by default, the length ...
[ { "code": null, "e": 1309, "s": 1062, "text": "You can set a fixed width for the text in user space by setting the value to the wrappingWidth property. Once you do so, given width is considered as the boundary of the text in user coordinates and, the text is arranged width in the given width." }, ...
JavaScript subtraction of two float values?
To correctly subtract two float values, use parseFloat() along with toFixed(). Following is the code − var firstValue=4.3; var secondValue=3.8; console.log("The first Value="+parseFloat(firstValue).toFixed(1)+" The second Value="+parseFloat(secondValue).toFixed(1)) var result = parseFloat(firstValue).toFixed(1) - parse...
[ { "code": null, "e": 1141, "s": 1062, "text": "To correctly subtract two float values, use parseFloat() along with toFixed()." }, { "code": null, "e": 1165, "s": 1141, "text": "Following is the code −" }, { "code": null, "e": 1447, "s": 1165, "text": "var firs...
Longest Common Subsequence of two arrays out of which one array consists of distinct elements only - GeeksforGeeks
15 Jun, 2021 Given two arrays firstArr[], consisting of distinct elements only, and secondArr[], the task is to find the length of LCS between these 2 arrays. Examples: Input: firstArr[] = {3, 5, 1, 8}, secondArr[] = {3, 3, 5, 3, 8}Output: 3.Explanation: LCS between these two arrays is {3, 5, 8}. Input : firstArr[] = {...
[ { "code": null, "e": 25197, "s": 25169, "text": "\n15 Jun, 2021" }, { "code": null, "e": 25343, "s": 25197, "text": "Given two arrays firstArr[], consisting of distinct elements only, and secondArr[], the task is to find the length of LCS between these 2 arrays." }, { "co...
How to add Analog Clock in ReactJS ? - GeeksforGeeks
14 Dec, 2021 In this article, we are going to learn how we can add Analog Clock in ReactJs. React is a free and open-source front-end JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. Approach: To add our Analog clock w...
[ { "code": null, "e": 24708, "s": 24680, "text": "\n14 Dec, 2021" }, { "code": null, "e": 24980, "s": 24708, "text": "In this article, we are going to learn how we can add Analog Clock in ReactJs. React is a free and open-source front-end JavaScript library for building user inter...
HTML - <isindex> tag
The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. It is a deprecated tag and should not be used. <!Doctype html> <html> <head> <title>HTML isindex Tag</title> <isindex prompt = "Search" /> </head> </html> This tag su...
[ { "code": null, "e": 2555, "s": 2374, "text": "The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. It is a deprecated tag and should not be used." }, { "code": null, "e": 2683, "s": 2555, "text": "<...
How to generate ObjectID in MongoDB?
To generate ObjectID, use the below syntax in the MonogDB shell − new ObjectId() Let us implement the above syntax to generate ObjectID in MongoDB − > new ObjectId() ObjectId("5cd7bf2f6d78f205348bc646") > new ObjectId() ObjectId("5cd7bf316d78f205348bc647") > new ObjectId() ObjectId("5cd7bf336d78f205348bc648") > new ...
[ { "code": null, "e": 1128, "s": 1062, "text": "To generate ObjectID, use the below syntax in the MonogDB shell −" }, { "code": null, "e": 1143, "s": 1128, "text": "new ObjectId()" }, { "code": null, "e": 1211, "s": 1143, "text": "Let us implement the above syn...
Express.js res.end() Function - GeeksforGeeks
05 May, 2021 The res.end() function is used to end the response process. This method actually comes from the Node core, specifically the response.end() method of HTTP.ServerResponse. Use to quickly end the response without any data.Syntax: res.end([data] [, encoding]) Parameters: The default encoding is ‘utf8’ and th...
[ { "code": null, "e": 29199, "s": 29171, "text": "\n05 May, 2021" }, { "code": null, "e": 29428, "s": 29199, "text": "The res.end() function is used to end the response process. This method actually comes from the Node core, specifically the response.end() method of HTTP.ServerRes...
Factorial of a large number - GeeksforGeeks
19 Jan, 2022 Factorial of a non-negative integer, is the multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720. We have discussed simple program for factorial. How to compute factorial of 100 using a C/C++ program? Factorial of 100 has 158 digits. It is not po...
[ { "code": null, "e": 24447, "s": 24419, "text": "\n19 Jan, 2022" }, { "code": null, "e": 24606, "s": 24447, "text": "Factorial of a non-negative integer, is the multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720." }...
Bugzilla - Installation
The Bugzilla GIT website is the best way to get Bugzilla. Download and install GIT from the website − https://git-scm.com/download and Run it. git clone --branch release-X.X-stable https://github.com/bugzilla/bugzilla C:\bugzilla Where, "X.X" is the 2-digit version number of the stable release of Bugzilla (e.g. 5.0)...
[ { "code": null, "e": 2388, "s": 2245, "text": "The Bugzilla GIT website is the best way to get Bugzilla. Download and install GIT from the website − https://git-scm.com/download and Run it." }, { "code": null, "e": 2478, "s": 2388, "text": "git clone --branch release-X.X-stable h...
Deep Dive into Catboost Functionalities for Model Interpretation | by Alvira Swalin | Towards Data Science
In my previous blog, we saw a comparative study of XGBoost, LightGBM & Catboost. With that analysis, we were able to conclude that catboost outperformed the other two in terms of both speed and accuracy. In this part, we will dig further into the catboost, exploring the new features that catboost provides for efficient...
[ { "code": null, "e": 541, "s": 172, "text": "In my previous blog, we saw a comparative study of XGBoost, LightGBM & Catboost. With that analysis, we were able to conclude that catboost outperformed the other two in terms of both speed and accuracy. In this part, we will dig further into the catboost...
How to display Absolute value of a number in C#?
To find the absolute value of a number in C#, use the Math.Abs method. Set numbers first − int val1 = 77; int val2 = -88; Now take two new variables and get the Absolute value of the above two numbers − int abs1 = Math.Abs(val1); int abs2 = Math.Abs(val2); Let us see the complete code to display Absolute value of a num...
[ { "code": null, "e": 1133, "s": 1062, "text": "To find the absolute value of a number in C#, use the Math.Abs method." }, { "code": null, "e": 1153, "s": 1133, "text": "Set numbers first −" }, { "code": null, "e": 1184, "s": 1153, "text": "int val1 = 77;\nint ...
Descriptive Statistics in Julia - GeeksforGeeks
12 Oct, 2020 Julia is an appropriate programming language to perform data analysis. It has various built-in statistical functions and packages to support descriptive statistics. Descriptive Statistics helps in understanding the characteristics of the given data and to obtain a quick summary of it. Packages required for...
[ { "code": null, "e": 23843, "s": 23815, "text": "\n12 Oct, 2020" }, { "code": null, "e": 24129, "s": 23843, "text": "Julia is an appropriate programming language to perform data analysis. It has various built-in statistical functions and packages to support descriptive statistics...
PDF Redaction using Python - GeeksforGeeks
22 Jun, 2021 So, let’s just start with what exactly does Redaction mean. So, Redaction is a form of editing in which multiple sources of texts are combined and altered slightly to make a single document. In simple words, whenever you see any part in any document which is blackened out to hide some information, it is kn...
[ { "code": null, "e": 24824, "s": 24796, "text": "\n22 Jun, 2021" }, { "code": null, "e": 25210, "s": 24824, "text": "So, let’s just start with what exactly does Redaction mean. So, Redaction is a form of editing in which multiple sources of texts are combined and altered slightly...
In JavaScript Why do we use "use strict"?
Strict Mode is a feature introduced in ES5 that allows you to place a program, or a function, in a “strict” mode. This strict context prevents certain actions from being taken and throws more exceptions (generally providing the user with more information). Some specific features of strict mode − Variables not declared ...
[ { "code": null, "e": 1176, "s": 1062, "text": "Strict Mode is a feature introduced in ES5 that allows you to place a program, or a function, in a “strict” mode." }, { "code": null, "e": 1359, "s": 1176, "text": "This strict context prevents certain actions from being taken and th...
Data analysis using Python Pandas
In this tutorial, we are going to see the data analysis using Python pandas library. The library pandas are written in C. So, we don't get any problem with speed. It is famous for data analysis. We have two types of data storage structures in pandas. They are Series and DataFrame. Let's see one by one. Series is a 1D a...
[ { "code": null, "e": 1366, "s": 1062, "text": "In this tutorial, we are going to see the data analysis using Python pandas library. The library pandas are written in C. So, we don't get any problem with speed. It is famous for data analysis. We have two types of data storage structures in pandas. Th...
Machine Learning Perceptron Implementation | by Tarun Gupta | Towards Data Science
In this post, we are going to have a look at a program written in Python3 using numpy. We will discuss the basics of what a perceptron is, what is the delta rule and how to use it to converge the learning of the perceptron. The perceptron is an algorithm for supervised learning of binary classifiers (let’s assumer {1, ...
[ { "code": null, "e": 396, "s": 172, "text": "In this post, we are going to have a look at a program written in Python3 using numpy. We will discuss the basics of what a perceptron is, what is the delta rule and how to use it to converge the learning of the perceptron." }, { "code": null, ...
Converting numbers to Indian currency using JavaScript
Suppose we have any number and are required to write a JavaScript function that takes in a number and returns its Indian currency equivalent. toCurrency(1000) --> ₹4,000.00 toCurrency(129943) --> ₹1,49,419.00 toCurrency(76768798) --> ₹9,23,41,894.00 The code for this will be − const num1 = 1000; const num2 = 129943; co...
[ { "code": null, "e": 1204, "s": 1062, "text": "Suppose we have any number and are required to write a JavaScript function that takes in a number and returns its Indian currency equivalent." }, { "code": null, "e": 1312, "s": 1204, "text": "toCurrency(1000) --> ₹4,000.00\ntoCurren...
Variable Scope in C++
A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a block which is called local variables, Inside a function or a block which is called local variables, In the definition of function parameters which is called formal parameters. In the...
[ { "code": null, "e": 2432, "s": 2318, "text": "A scope is a region of the program and broadly speaking there are three places, where variables can be declared −" }, { "code": null, "e": 2494, "s": 2432, "text": "Inside a function or a block which is called local variables," }, ...
Citi Bike 2017 Analysis. The goal of this analysis is to create... | by Vinit Shah | Towards Data Science
The goal of this analysis is to create an operating report of Citi Bike for the year of 2017. The following work was completed in less than five working days. Under each visual, I’ve added my thoughts on what I would consider if there was no time constraint. The Citi Bike analysis is based on the mock case shown below:...
[ { "code": null, "e": 493, "s": 172, "text": "The goal of this analysis is to create an operating report of Citi Bike for the year of 2017. The following work was completed in less than five working days. Under each visual, I’ve added my thoughts on what I would consider if there was no time constrai...
Cascading Behavior in Social Networks - GeeksforGeeks
01 Oct, 2020 Prerequisite: Introduction to Social Networks, Python Basics When people are connected in networks to each other then they can influence each other’s behavior and decisions. This is called Cascading Behavior in Networks. Let’s consider an example, assume all the people in a society have adopted a trend X....
[ { "code": null, "e": 24292, "s": 24264, "text": "\n01 Oct, 2020" }, { "code": null, "e": 24354, "s": 24292, "text": "Prerequisite: Introduction to Social Networks, Python Basics " }, { "code": null, "e": 24514, "s": 24354, "text": "When people are connected in...
How to Update Data in Realm Database in Android? - GeeksforGeeks
19 Aug, 2021 In previous articles, we have seen adding and reading data from our realm database in Android. In that article, we were adding course details in our database and reading the data in the form of a list. In this article, we will take a look at updating this data in our android app. We will be working on the...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n19 Aug, 2021" }, { "code": null, "e": 25007, "s": 24725, "text": "In previous articles, we have seen adding and reading data from our realm database in Android. In that article, we were adding course details in our database and r...
How to extract online data using Python | by Euge Inzaugarat | Towards Data Science
“I would be nice to have all the documents of the website” — One of her colleagues said “Yeah, that could give us a lot of information” — Said another colleague “Can you do the scraper?” — They both turn to look at her “Ehhhh... I could....” — She started mumbling “Perfect” — They both said “....try” —She finished sayi...
[ { "code": null, "e": 259, "s": 171, "text": "“I would be nice to have all the documents of the website” — One of her colleagues said" }, { "code": null, "e": 332, "s": 259, "text": "“Yeah, that could give us a lot of information” — Said another colleague" }, { "code": nul...
XML - Schemas
XML Schema is commonly known as XML Schema Definition (XSD). It is used to describe and validate the structure and the content of XML data. XML schema defines the elements, attributes and data types. Schema element supports Namespaces. It is similar to a database schema that describes the data in a database. You need t...
[ { "code": null, "e": 2271, "s": 1961, "text": "XML Schema is commonly known as XML Schema Definition (XSD). It is used to describe and validate the structure and the content of XML data. XML schema defines the elements, attributes and data types. Schema element supports Namespaces. It is similar to ...
Chic look in Power BI with Chiclet Slicer | by Nikola Ilic | Towards Data Science
Using custom visuals in Power BI report creation gives you a perfect opportunity to extend built-in visual capabilities above and beyond. There are literally hundreds of custom visuals in Appstore and I advise you to check them when you want to enrich your reports with non-standard visuals. That’s one of the main stren...
[ { "code": null, "e": 464, "s": 172, "text": "Using custom visuals in Power BI report creation gives you a perfect opportunity to extend built-in visual capabilities above and beyond. There are literally hundreds of custom visuals in Appstore and I advise you to check them when you want to enrich you...
PyTorch Levels Up Its Serving Game with TorchServe | by Anthony Agnone | Towards Data Science
In recent years, PyTorch has largely overtaken Tensorflow as the machine learning model training framework that is preferred for research-leaning data scientists. There are a few reasons for this, but mainly that Pytorch is built for Python as its first-class language of use, whereas Tensorflow’s architecture stays muc...
[ { "code": null, "e": 797, "s": 172, "text": "In recent years, PyTorch has largely overtaken Tensorflow as the machine learning model training framework that is preferred for research-leaning data scientists. There are a few reasons for this, but mainly that Pytorch is built for Python as its first-c...
Foundations of Probability. Sigma Algebra, Measure Theory, and... | by Sadrach Pierre, Ph.D. | Towards Data Science
Sigma algebra is considered part of the axiomatic foundations of probability theory. The topic is briefly covered in Casella & Berger’s Statistical Inference. The need for sigma algebras arises out of the technical difficulties associated with defining probabilities. So what exactly are sigma algebras? Simply put, sigm...
[ { "code": null, "e": 475, "s": 171, "text": "Sigma algebra is considered part of the axiomatic foundations of probability theory. The topic is briefly covered in Casella & Berger’s Statistical Inference. The need for sigma algebras arises out of the technical difficulties associated with defining pr...
Banking Transaction System using Java - GeeksforGeeks
29 Apr, 2022 In order to understand one must have a strong grasp over Java OOPs, Java Multithreading & Java Interrupted-Exception. If not go through them as the title in itself is a sheer implementation of multithreading. Approaches: Rookie approachMultithreading approachSynchronization invoking in multithreading appr...
[ { "code": null, "e": 25084, "s": 25056, "text": "\n29 Apr, 2022" }, { "code": null, "e": 25294, "s": 25084, "text": "In order to understand one must have a strong grasp over Java OOPs, Java Multithreading & Java Interrupted-Exception. If not go through them as the title in itsel...
Check if a number can be represented as sum of two positive perfect cubes - GeeksforGeeks
21 Sep, 2021 Given an integer N, the task is to check if N can be represented as the sum of two positive perfect cubes or not. Examples: Input: N = 28Output: YesExplanation: Since, 28 = 27 + 1 = 33 + 13.Therefore, the required answer is Yes. Input: N = 34Output: No Approach: The idea is to store the perfect cubes of al...
[ { "code": null, "e": 24765, "s": 24737, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24879, "s": 24765, "text": "Given an integer N, the task is to check if N can be represented as the sum of two positive perfect cubes or not." }, { "code": null, "e": 24889, "...
How to change the thickness of hr tag using CSS ? - GeeksforGeeks
21 Oct, 2021 The HTML <hr> tag is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections.The thickness of the hr tag can be set using the height property in CSS. The minimum height can be 1px since the smallest unit available is 1 pixel. Images can be added to make ...
[ { "code": null, "e": 24286, "s": 24258, "text": "\n21 Oct, 2021" }, { "code": null, "e": 24690, "s": 24286, "text": "The HTML <hr> tag is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections.The thickness of the hr tag can b...
Convert a String to a List of Characters in Java
Let’s say the following is our string − String str = "Website!"; Now, convert the above string to a list of characters − List<Character>list = str.chars().mapToObj(n -> (char)n).collect(Collectors.toList()); Following is the program to convert a string to a list of characters in Java − Live Demo import java.util.*; im...
[ { "code": null, "e": 1102, "s": 1062, "text": "Let’s say the following is our string −" }, { "code": null, "e": 1127, "s": 1102, "text": "String str = \"Website!\";" }, { "code": null, "e": 1183, "s": 1127, "text": "Now, convert the above string to a list of c...
How to remove the HTML tags from a given string in Java?
A String is a final class in Java and it is immutable, it means that we cannot change the object itself, but we can change the reference to the object. The HTML tags can be removed from a given string by using replaceAll() method of String class. We can remove the HTML tags from a given string by using a regular expres...
[ { "code": null, "e": 1472, "s": 1062, "text": "A String is a final class in Java and it is immutable, it means that we cannot change the object itself, but we can change the reference to the object. The HTML tags can be removed from a given string by using replaceAll() method of String class. We can...
The Pattern Matcher | Practice | GeeksforGeeks
All right! Let's implement some pattern-matching using CPP strings. You are given a string s of x and y. You need to verify whether the string follows the pattern xnyn. That is the string is valid only if equal number of ys follow equal number of xs.As an example: xxyyxxyy is valid. xy is valid. xxyyx is invalid. xxxyy...
[ { "code": null, "e": 294, "s": 226, "text": "All right! Let's implement some pattern-matching using CPP strings." }, { "code": null, "e": 564, "s": 294, "text": "You are given a string s of x and y. You need to verify whether the string follows the pattern xnyn. That is the strin...
Angular Material - Tooltips
Angular Material provides various special methods to show unobtrusive tooltips to the users. It provides ways to assign directions for them and the md-tooltip directive is used to show tooltips. A tooltip activates whenever the user focuses, hovers over, or touches the parent component. md-visible This is Boolean bound...
[ { "code": null, "e": 2478, "s": 2190, "text": "Angular Material provides various special methods to show unobtrusive tooltips to the users. It provides ways to assign directions for them and the md-tooltip directive is used to show tooltips. A tooltip activates whenever the user focuses, hovers over...
How to disable “Establishing SSL connection without server's identity verification is not recommended” warning when connecting to MySQL database in Java?
To disable the warning while connecting to a database in Java, use the below concept − autoReconnect=true&useSSL=false The complete syntax is as follows − yourJdbcURL="jdbc:mysql://localhost:yourPortNumber/yourDatabaseName?autoReconnect=true&useSSL=false"; Here is the warning message if you do not include “useSSL=false...
[ { "code": null, "e": 1149, "s": 1062, "text": "To disable the warning while connecting to a database in Java, use the below concept −" }, { "code": null, "e": 1181, "s": 1149, "text": "autoReconnect=true&useSSL=false" }, { "code": null, "e": 1217, "s": 1181, "...
Basic Ensemble Learning (Random Forest, AdaBoost, Gradient Boosting)- Step by Step Explained | by Lilly Chen | Towards Data Science
We all do that. Before we make any big decisions, we ask people’s opinions, like our friends, our family members, even our dogs/cats, to prevent us from being biased😕 or irrational😍. The model does that too. it is very common that the individual model suffers from bias or variances and that’s why we need the ensemble...
[ { "code": null, "e": 354, "s": 171, "text": "We all do that. Before we make any big decisions, we ask people’s opinions, like our friends, our family members, even our dogs/cats, to prevent us from being biased😕 or irrational😍." }, { "code": null, "e": 500, "s": 354, "text": "T...
CSS content Property - GeeksforGeeks
21 Oct, 2021 The content property in CSS is used to generate the content dynamically (during run time) ie., it replaces the element with generated content value. It is used to generate content ::before & ::after pseudo-element. Syntax: content: normal|none|counter|attr|string|open-quote|close-quote| no-open-quote|no-cl...
[ { "code": null, "e": 23645, "s": 23617, "text": "\n21 Oct, 2021" }, { "code": null, "e": 23860, "s": 23645, "text": "The content property in CSS is used to generate the content dynamically (during run time) ie., it replaces the element with generated content value. It is used to ...
Python String ljust() Method
Python string method ljust() returns the string left justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s). Following is the syntax for ljust() method − str.ljust(width[, fillchar]) width − This is string ...
[ { "code": null, "e": 2466, "s": 2244, "text": "Python string method ljust() returns the string left justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s)." }, { "code": null, ...
JavaScript String - charAt() Method
charAt() is a method that returns the character from the specified index. Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character in a string, called stringName, is stringName.length – 1. Use the following syntax to find the character at a partic...
[ { "code": null, "e": 2540, "s": 2466, "text": "charAt() is a method that returns the character from the specified index." }, { "code": null, "e": 2728, "s": 2540, "text": "Characters in a string are indexed from left to right. The index of the first character is 0, and the index ...
C++ goto statement
A goto statement provides an unconditional jump from the goto to a labeled statement in the same function. NOTE − Use of goto statement is highly discouraged because it makes difficult to trace the control flow of a program, making the program hard to understand and hard to modify. Any program that uses a goto can be r...
[ { "code": null, "e": 2425, "s": 2318, "text": "A goto statement provides an unconditional jump from the goto to a labeled statement in the same function." }, { "code": null, "e": 2681, "s": 2425, "text": "NOTE − Use of goto statement is highly discouraged because it makes difficu...
Insert into a Binary Search Tree in C++
Suppose we have a binary search tree. we have to write only one method, that performs the insertion operation with a node given as a parameter. We have to keep in mind that after the operation, the tree will remain BST also. So if the tree is like − if we insert 5, then the tree will be − To solve this, we will follow ...
[ { "code": null, "e": 1312, "s": 1062, "text": "Suppose we have a binary search tree. we have to write only one method, that performs the insertion operation with a node given as a parameter. We have to keep in mind that after the operation, the tree will remain BST also. So if the tree is like −" ...
How to perform arithmetic operations on a date in Python?
It is very easy to do date and time maths in Python using timedelta objects. Whenever you want to add or subtract to a date/time, use a datetime.datetime(), then add or subtract datetime.timedelta() instances. A timedelta object represents a duration, the difference between two dates or times. The timedelta constructor...
[ { "code": null, "e": 1422, "s": 1062, "text": "It is very easy to do date and time maths in Python using timedelta objects. Whenever you want to add or subtract to a date/time, use a datetime.datetime(), then add or subtract datetime.timedelta() instances. A timedelta object represents a duration, t...
CSS Layout - The display Property
The display property is the most important CSS property for controlling layout. The display property specifies if/how an element is displayed. Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline. Click to show panel Thi...
[ { "code": null, "e": 80, "s": 0, "text": "The display property is the most important CSS property for controlling layout." }, { "code": null, "e": 143, "s": 80, "text": "The display property specifies if/how an element is displayed." }, { "code": null, "e": 297, "...
AnalyzeTheChat — Python-based WhatsApp chat analyzer | by Aqeel Anwar | Towards Data Science
Analyze your WhatsApp chat in the form of interesting graphs A couple of weeks ago my wife and I started looking at our Whatsapp chat over the last year. There were too many messages and we simply couldn’t go over all of them. I have been using Python for over 3 years now and thought of creating a very simple analyzer ...
[ { "code": null, "e": 233, "s": 172, "text": "Analyze your WhatsApp chat in the form of interesting graphs" }, { "code": null, "e": 602, "s": 233, "text": "A couple of weeks ago my wife and I started looking at our Whatsapp chat over the last year. There were too many messages and...
How to implement immutable Data structures in Python?
You need to implement immutable data structures in Python. Immutable data structures are very handy when you want to prevent multiple people modifying a piece of data in parallel programming at same time. Mutable data structures( e.g. Array) can be changed at any time while immutable data structures cannot be. Let me s...
[ { "code": null, "e": 1121, "s": 1062, "text": "You need to implement immutable data structures in Python." }, { "code": null, "e": 1374, "s": 1121, "text": "Immutable data structures are very handy when you want to prevent multiple people modifying a piece of data in parallel pro...
IDE | GeeksforGeeks | A computer science portal for geeks
Please enter your email address or userHandle.
[]
Angular 2 - CRUD Operations Using HTTP
The basic CRUD operation we will look into this chapter is the reading of data from a web service using Angular 2. In this example, we are going to define a data source which is a simple json file of products. Next, we are going to define a service which will be used to read the data from the json file. And then next, ...
[ { "code": null, "e": 2412, "s": 2297, "text": "The basic CRUD operation we will look into this chapter is the reading of data from a web service using Angular 2." }, { "code": null, "e": 2677, "s": 2412, "text": "In this example, we are going to define a data source which is a si...
How to Invoke Keyboard Programmatically in Android? - GeeksforGeeks
23 Feb, 2021 Android System by defaults shows an on-screen keyboard when any UI element such as an Input Text element receives focus. For a better experience, a developer can explicitly specify the desired characteristics or any methods to invoke. Desired characteristics could be characters such as allowing only numera...
[ { "code": null, "e": 26491, "s": 26463, "text": "\n23 Feb, 2021" }, { "code": null, "e": 27503, "s": 26491, "text": "Android System by defaults shows an on-screen keyboard when any UI element such as an Input Text element receives focus. For a better experience, a developer can e...
Node.js response.write() Method - GeeksforGeeks
23 Sep, 2020 The response.write() (Added in v0.1.29) method is an inbuilt Application program Interface of the ‘http’ module which sends a chunk of the response body that is omitted when the request is a HEAD request. If this method is called and response.writeHead() has not been called, it will switch to implicit head...
[ { "code": null, "e": 24626, "s": 24598, "text": "\n23 Sep, 2020" }, { "code": null, "e": 24973, "s": 24626, "text": "The response.write() (Added in v0.1.29) method is an inbuilt Application program Interface of the ‘http’ module which sends a chunk of the response body that is om...
The dice problem
05 Aug, 2021 You are given a cubic dice with 6 faces. All the individual faces have a number printed on them. The numbers are in the range of 1 to 6, like any ordinary dice. You will be provided with a face of this cube, your task is to guess the number on the opposite face of the cube. Examples: Input: N = 2Output: 5E...
[ { "code": null, "e": 53, "s": 25, "text": "\n05 Aug, 2021" }, { "code": null, "e": 328, "s": 53, "text": "You are given a cubic dice with 6 faces. All the individual faces have a number printed on them. The numbers are in the range of 1 to 6, like any ordinary dice. You will be p...
Python List reverse()
03 Aug, 2021 Python List reverse() is an inbuilt method in the Python programming language that reverses objects of the List in place. Syntax: list_name.reverse() Parameters: There are no parameters. Returns: The reverse() method does not return any value but reverses the given object from the list. Error: When anyt...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Aug, 2021" }, { "code": null, "e": 174, "s": 52, "text": "Python List reverse() is an inbuilt method in the Python programming language that reverses objects of the List in place." }, { "code": null, "e": 183, "s": 1...
p5.js | color() Function
25 Jul, 2019 The color() function is used to create color and store it into variables. The parameters of color function are RGB or HSB value depending on the current colorMode() function. The default mode of color() function is RGB value from 0 to 255. Therefore, the function color(255, 204, 0) will return a bright yel...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jul, 2019" }, { "code": null, "e": 346, "s": 28, "text": "The color() function is used to create color and store it into variables. The parameters of color function are RGB or HSB value depending on the current colorMode() function. ...
Short Circuiting Techniques in Python
15 May, 2022 By short-circuiting, we mean the stoppage of execution of boolean operation if the truth value of expression has been determined already. The evaluation of expression takes place from left to right. In python, short-circuiting is supported by various boolean operators and functions. The chart given below ...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 May, 2022" }, { "code": null, "e": 339, "s": 54, "text": "By short-circuiting, we mean the stoppage of execution of boolean operation if the truth value of expression has been determined already. The evaluation of expression takes p...
IntConsumer Interface in Java with Examples
09 Oct, 2018 The IntConsumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a function which takes in one int-valued argument but does not return any value. The lambda expression assigned to an object of IntConsume...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Oct, 2018" }, { "code": null, "e": 278, "s": 28, "text": "The IntConsumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a func...
How to Control Laptop Screen Brightness using Python?
17 Aug, 2021 To control the brightness of the screen we are using the screen-brightness-control library. The screen-brightness-control library has only one class and few functions. The most useful functions are mentioned below: get_brightness()set_brightness()fade_brightness()list_monitors() get_brightness() set_bright...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Aug, 2021" }, { "code": null, "e": 269, "s": 54, "text": "To control the brightness of the screen we are using the screen-brightness-control library. The screen-brightness-control library has only one class and few functions. The mo...