title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
A Gentle Introduction to Maximum Likelihood Estimation | by Jonathan Balaban | Towards Data Science | The first time I heard someone use the term maximum likelihood estimation, I went to Google and found out what it meant. Then I went to Wikipedia to find out what it really meant. I got this:
In statistics, maximum likelihood estimation (MLE) is a method of estimating the parameters of a statistical model given observa... | [
{
"code": null,
"e": 364,
"s": 172,
"text": "The first time I heard someone use the term maximum likelihood estimation, I went to Google and found out what it meant. Then I went to Wikipedia to find out what it really meant. I got this:"
},
{
"code": null,
"e": 837,
"s": 364,
"te... |
Learning Rate Schedule in Practice: an example with Keras and TensorFlow 2.0 | by B. Chen | Towards Data Science | One of the painful things about training a neural network is the sheer number of hyperparameters we have to deal with. For example
Learning rate
Momentum or the hyperparameters for Adam optimization algorithm
Number of layers
Number of hidden units
Mini-batch size
Activation function
etc
Among them, the most important ... | [
{
"code": null,
"e": 302,
"s": 171,
"text": "One of the painful things about training a neural network is the sheer number of hyperparameters we have to deal with. For example"
},
{
"code": null,
"e": 316,
"s": 302,
"text": "Learning rate"
},
{
"code": null,
"e": 380,... |
DAX Parent & Child - PATH function | Returns a delimited text string with the identifiers of all the parents of the current identifier, starting with the oldest and continuing until the current identifier.
PATH (<ID_columnName>, <parent_columnName>)
ID_columnName
The name of an existing column containing the unique identifier for rows in the table.
This... | [
{
"code": null,
"e": 2170,
"s": 2001,
"text": "Returns a delimited text string with the identifiers of all the parents of the current identifier, starting with the oldest and continuing until the current identifier."
},
{
"code": null,
"e": 2216,
"s": 2170,
"text": "PATH (<ID_col... |
.NET Core API — Dive into C#. Build a back end web server for the... | by Richard Peterson | Towards Data Science | If you have been following along from the Series outline, and have a working database, an Angular Tour of Heroes App, and a generic .NET API, we have now come to the meat of the Series, writing the C# code for our .NET API.
To follow along, you can download a complete version of the .NET API + Docker MSSQL DB + Angular... | [
{
"code": null,
"e": 396,
"s": 172,
"text": "If you have been following along from the Series outline, and have a working database, an Angular Tour of Heroes App, and a generic .NET API, we have now come to the meat of the Series, writing the C# code for our .NET API."
},
{
"code": null,
... |
How can we combine multiple print statements per line in Python? | You can combine multiple print statements per line using, in Python 2 and use the end argument to print function in Python 3.
Python2.x
print "Hello",
print " world"
Python3.x
print ("Hello", end='')
print (" world")
This will give the output −
Hello world
Another thing you could do is put all the things in an array a... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "You can combine multiple print statements per line using, in Python 2 and use the end argument to print function in Python 3."
},
{
"code": null,
"e": 1280,
"s": 1188,
"text": "Python2.x\nprint \"Hello\",\nprint \" world\"\n\nPython3... |
Difference between std::numeric_limits<T> min, max, and lowest in C++ - GeeksforGeeks | 11 May, 2021
The std::numeric_limits<T> class in the limit header provides min(), max(), and lowest() function for all numeric data types along with the other member functions.
std::numeric_limits<T>::max(): The std::numeric_limits<T>::max() for any type T gives the maximum finite value representable by the numeric typ... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 24262,
"s": 24098,
"text": "The std::numeric_limits<T> class in the limit header provides min(), max(), and lowest() function for all numeric data types along with the other member functions.... |
PyQt5 QListWidget – Setting Uniform Item Sizes Property - GeeksforGeeks | 06 Aug, 2020
In this article we will see how we can set uniform item sizes property of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interface for adding and removing items. QListWidget uses an internal model to manage each QListWidgetItem in the list. This prop... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n06 Aug, 2020"
},
{
"code": null,
"e": 24765,
"s": 24212,
"text": "In this article we will see how we can set uniform item sizes property of the QListWidget. QListWidget is a convenience class that provides a list view with a clas... |
Python os.mkdir() Method | Python method mkdir() create a directory named path with numeric mode mode. The default mode is 0777 (octal). On some systems, mode is ignored. Where it is used, the current umask value is first masked out.
Following is the syntax for mkdir() method −
os.mkdir(path[, mode])
path − This is the path, which needs to be c... | [
{
"code": null,
"e": 2451,
"s": 2244,
"text": "Python method mkdir() create a directory named path with numeric mode mode. The default mode is 0777 (octal). On some systems, mode is ignored. Where it is used, the current umask value is first masked out."
},
{
"code": null,
"e": 2496,
... |
Scala - Arithmetic Operators | Try the following example program to understand all the arithmetic operators available in Scala Programming Language.
object Demo {
def main(args: Array[String]) {
var a = 10;
var b = 20;
var c = 25;
var d = 25;
println("a + b = " + (a + b) );
println("a - b = " + (a - b) )... | [
{
"code": null,
"e": 2116,
"s": 1998,
"text": "Try the following example program to understand all the arithmetic operators available in Scala Programming Language."
},
{
"code": null,
"e": 2479,
"s": 2116,
"text": "object Demo {\n def main(args: Array[String]) {\n var a =... |
SAS | COALESCE Function with Examples - GeeksforGeeks | 30 Jul, 2019
The COALESCE function is employed to pick the first non-missing value in a list of variables. In other words, it returns the first non-blank value of each row.
Let’s produce a sample dataset in SAS to know how COALESCE perform.
Example:
data temp; input roll_no a1-a4; cards;12 . 98 52 . 23 79... | [
{
"code": null,
"e": 24477,
"s": 24449,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 24637,
"s": 24477,
"text": "The COALESCE function is employed to pick the first non-missing value in a list of variables. In other words, it returns the first non-blank value of each row."
... |
How to clear HTML form fields with jQuery? | With jQuery, you can easily clear HTML form fields. For this, jQuery: reset Selector is used. This will clear the HTML form fields.
You can try to run the following code to clear form fields with jQuery −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jq... | [
{
"code": null,
"e": 1194,
"s": 1062,
"text": "With jQuery, you can easily clear HTML form fields. For this, jQuery: reset Selector is used. This will clear the HTML form fields."
},
{
"code": null,
"e": 1267,
"s": 1194,
"text": "You can try to run the following code to clear for... |
self in Python class - GeeksforGeeks | 22 Apr, 2022
self represents the instance of the class. By using the “self” we can access the attributes and methods of the class in python. It binds the attributes with the given arguments.The reason you need to use self. is because Python does not use the @ syntax to refer to instance attributes. Python decided to d... | [
{
"code": null,
"e": 23982,
"s": 23954,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 24489,
"s": 23982,
"text": "self represents the instance of the class. By using the “self” we can access the attributes and methods of the class in python. It binds the attributes with the g... |
Combining Actual Data with Simulated Data in Machine Learning | by Benjamin Obi Tayo Ph.D. | Towards Data Science | With machine learning, you need a lot of data, so sometimes it makes sense to combine actual data with simulated data to find the right patterns in the data or for model building.
Central limit says that the larger the size of the dataset the better, as population mean approximates sample mean when sample size becomes ... | [
{
"code": null,
"e": 352,
"s": 172,
"text": "With machine learning, you need a lot of data, so sometimes it makes sense to combine actual data with simulated data to find the right patterns in the data or for model building."
},
{
"code": null,
"e": 748,
"s": 352,
"text": "Centra... |
How to install python modules and their dependencies easily? | The best and recommended way to install Python modules is to use pip, the Python package manager. It automatically installs dependencies of the module as well.
If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setup tools, but will need to upgrade to the latest vers... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "The best and recommended way to install Python modules is to use pip, the Python package manager. It automatically installs dependencies of the module as well."
},
{
"code": null,
"e": 1387,
"s": 1222,
"text": "If you have Python 2 >... |
Setup version increment and automated release process | by Maksym Balatsko | Towards Data Science | I’m keen on process automation and I strongly believe that time and money investments into process automation in the development phase is a primary need, no matter how long the project is going to last. When you invest in processes automation you vastly decrease further maintenance expenses.
I think one of the topics, ... | [
{
"code": null,
"e": 465,
"s": 172,
"text": "I’m keen on process automation and I strongly believe that time and money investments into process automation in the development phase is a primary need, no matter how long the project is going to last. When you invest in processes automation you vastly d... |
RAII and smart pointers in C++ | RAII (Resource Acquisition Is Initialization) is C++ technique which control the life cycle of resource. It is a class variant and is tied to object life time.
It encapsulates several resources into class where resource allocation is done by constructor during object creation and resource deallocation is done by destru... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "RAII (Resource Acquisition Is Initialization) is C++ technique which control the life cycle of resource. It is a class variant and is tied to object life time."
},
{
"code": null,
"e": 1414,
"s": 1222,
"text": "It encapsulates severa... |
What are different methods of passing parameters in C#? | When a method with parameters is called, you need to pass the parameters to the method using any of the following three methods -
This method copies the reference to the memory location of an argument into the formal parameter. This means that changes made to the parameter affect the argument.
This method copies the ac... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "When a method with parameters is called, you need to pass the parameters to the method using any of the following three methods -"
},
{
"code": null,
"e": 1357,
"s": 1192,
"text": "This method copies the reference to the memory locat... |
How to substitute an environment variable using sed on Linux? | An Environment variable is a dynamic-named value. Generally, these are variables are exported in a single terminal using a command shown below
export $SOMEVARIABLE=value
or they are stored inside the bash files, so that they remain available in all the terminals once the file is sourced. If we want to change an environ... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "An Environment variable is a dynamic-named value. Generally, these are variables are exported in a single terminal using a command shown below"
},
{
"code": null,
"e": 1232,
"s": 1205,
"text": "export $SOMEVARIABLE=value"
},
{
... |
Find the union of two NumPy arrays - GeeksforGeeks | 05 Sep, 2020
To find union of two 1-dimensional arrays we can use function numpy.union1d() of Python Numpy library. It returns unique, sorted array with values that are in either of the two input arrays.
Syntax:
numpy.union1d(array1, array2)
Note The arrays given in input are flattened if they are not 1-dimensional.
L... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 24483,
"s": 24292,
"text": "To find union of two 1-dimensional arrays we can use function numpy.union1d() of Python Numpy library. It returns unique, sorted array with values that are in eith... |
Arrays.fill() in Java with Examples - GeeksforGeeks | 07 Dec, 2018
java.util.Arrays.fill() method is in java.util.Arrays class. This method assigns the specified data type value to each element of the specified range of the specified array.
Syntax:
// Makes all elements of a[] equal to "val"
public static void fill(int[] a, int val)
// Makes elements from from_Index (inc... | [
{
"code": null,
"e": 25028,
"s": 25000,
"text": "\n07 Dec, 2018"
},
{
"code": null,
"e": 25202,
"s": 25028,
"text": "java.util.Arrays.fill() method is in java.util.Arrays class. This method assigns the specified data type value to each element of the specified range of the specif... |
Redis - Keys Del Command | Redis DEL command is used to delete the existing key in Redis.
Number of keys that were removed.
Following is the basic syntax of Redis DEL command.
redis 127.0.0.1:6379> DEL KEY_NAME
First, create a key in Redis and set some value in it.
redis 127.0.0.1:6379> SET tutorialspoint redis
OK
Now, delete the previously ... | [
{
"code": null,
"e": 2108,
"s": 2045,
"text": "Redis DEL command is used to delete the existing key in Redis."
},
{
"code": null,
"e": 2142,
"s": 2108,
"text": "Number of keys that were removed."
},
{
"code": null,
"e": 2194,
"s": 2142,
"text": "Following is t... |
What are the loop control statements in C language? Explain with flow chart and program | Loop control statements are used to repeat set of statements. They are as follows −
for loop
while loop
do-while loop
The syntax is as follows −
for (initialization ; condition ; increment / decrement){
body of the loop
}
The flow chart for loop is as follows −
Initialization is usually an assignment statement that ... | [
{
"code": null,
"e": 1146,
"s": 1062,
"text": "Loop control statements are used to repeat set of statements. They are as follows −"
},
{
"code": null,
"e": 1155,
"s": 1146,
"text": "for loop"
},
{
"code": null,
"e": 1166,
"s": 1155,
"text": "while loop"
},
... |
Erlang - Maps | A map is a compound data type with a variable number of key-value associations. Each key-value association in the map is called an association pair. The key and value parts of the pair are called elements. The number of association pairs is said to be the size of the map.
An example of how the Map data type can be used... | [
{
"code": null,
"e": 2574,
"s": 2301,
"text": "A map is a compound data type with a variable number of key-value associations. Each key-value association in the map is called an association pair. The key and value parts of the pair are called elements. The number of association pairs is said to be t... |
Asynchronisation Usage in PySimpleGUI - GeeksforGeeks | 27 Jul, 2020
We use this design pattern for projects that actually will need to poll or output something on a regular basis. In this case, we’re indicating we want a timeout=10 in our window.readcall. Also, this will cause the call to return a “timeout key” as the event every 10 milliseconds has passed without some GUI... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n27 Jul, 2020"
},
{
"code": null,
"e": 25089,
"s": 24644,
"text": "We use this design pattern for projects that actually will need to poll or output something on a regular basis. In this case, we’re indicating we want a timeout=10... |
Yet Another Iris EDA. An attempt to extract useful insights... | by Aditya Jetely | Towards Data Science | In this notebook, I have done the Exploratory Data Analysis of the famous Iris dataset and tried to gain useful insights from the data.
The features present in the dataset are:
Sepal Width
Sepal Length
Petal Width
Petal Length
import pandas as pdimport numpy as npimport matplotlibimport matplotlib.pyplot as pltimport s... | [
{
"code": null,
"e": 308,
"s": 172,
"text": "In this notebook, I have done the Exploratory Data Analysis of the famous Iris dataset and tried to gain useful insights from the data."
},
{
"code": null,
"e": 349,
"s": 308,
"text": "The features present in the dataset are:"
},
{... |
File Handling in Objective-C | File handling is made available with the help of class NSFileManager. These examples won't work on online compiler.
The list of the methods used for accessing and manipulating files is listed below. Here, we have to replace the FilePath1, FilePath2 and FilePath strings to our required full file paths to get the desire... | [
{
"code": null,
"e": 2676,
"s": 2560,
"text": "File handling is made available with the help of class NSFileManager. These examples won't work on online compiler."
},
{
"code": null,
"e": 2890,
"s": 2676,
"text": " The list of the methods used for accessing and manipulating files... |
Activate Early Stopping in Boosting Algorithms to Mitigate Overfitting | by Rukshan Pramoditha | Towards Data Science | In Part 7, I’ve mentioned that overfitting can easily happen in boosting algorithms. Overfitting is one of the main drawbacks of boosting techniques.
Early stopping is a special technique that can be used to mitigate overfitting in boosting algorithms. It is used during the training phase of the algorithm.
In boosting,... | [
{
"code": null,
"e": 321,
"s": 171,
"text": "In Part 7, I’ve mentioned that overfitting can easily happen in boosting algorithms. Overfitting is one of the main drawbacks of boosting techniques."
},
{
"code": null,
"e": 479,
"s": 321,
"text": "Early stopping is a special techniqu... |
MySQL stored procedure to return a column value? | Let us first create a table −
mysql> create table DemoTable
-> (
-> Id int,
-> Score int
-> );
Query OK, 0 rows affected (0.69 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(1,858858686);
Query OK, 1 row affected (0.11 sec)
mysql> insert into DemoTable valu... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1206,
"s": 1092,
"text": "mysql> create table DemoTable\n -> (\n -> Id int,\n -> Score int\n -> );\nQuery OK, 0 rows affected (0.69 sec)"
},
{
"code": null,
"... |
How to set Bootstrap Timepicker using datetimepicker library ? - GeeksforGeeks | 27 Jan, 2022
In this article, we will see how we can implement DateTimePicker using a Bootstrap Daterpicker plugin to select a date and time using jQuery. By default, today’s date is selected. DateTimePicker has various configurable options which can be used to use DateTimePicker as per the requirements. In this tutori... | [
{
"code": null,
"e": 26975,
"s": 26947,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 27402,
"s": 26975,
"text": "In this article, we will see how we can implement DateTimePicker using a Bootstrap Daterpicker plugin to select a date and time using jQuery. By default, today’s d... |
C library function - fseek() | The C library function int fseek(FILE *stream, long int offset, int whence) sets the file position of the stream to the given offset.
Following is the declaration for fseek() function.
int fseek(FILE *stream, long int offset, int whence)
stream − This is the pointer to a FILE object that identifies the stream.
stream −... | [
{
"code": null,
"e": 2141,
"s": 2007,
"text": "The C library function int fseek(FILE *stream, long int offset, int whence) sets the file position of the stream to the given offset."
},
{
"code": null,
"e": 2192,
"s": 2141,
"text": "Following is the declaration for fseek() functio... |
Integer to Words | Practice | GeeksforGeeks | Write a function to convert a given number into words.
Example 1:
Input:
N = 438237764
Output: forty three crore eighty two lakh
thirty seven thousand seven hundred and
sixty four
Example 2:
Input:
N = 1000
Output: one thousand
Your Task:
You don't need to read input or print anything. Your task is to complete t... | [
{
"code": null,
"e": 293,
"s": 238,
"text": "Write a function to convert a given number into words."
},
{
"code": null,
"e": 304,
"s": 293,
"text": "Example 1:"
},
{
"code": null,
"e": 421,
"s": 304,
"text": "Input:\nN = 438237764\nOutput: forty three crore ei... |
Predicting MLB Pitch Probability Based on the Game Situation | by The Data Detective | Towards Data Science | Baseball is a wonderful sport for a number person. It was one of the first sports that come to mind regarding the use of data to make decisions at just about every level. Managers use data to make in-game decisions and General Managers use data to determine contract payouts.
Baseball is also one of the first sports to ... | [
{
"code": null,
"e": 448,
"s": 172,
"text": "Baseball is a wonderful sport for a number person. It was one of the first sports that come to mind regarding the use of data to make decisions at just about every level. Managers use data to make in-game decisions and General Managers use data to determi... |
Introduction to Big O Notation. Getting started with Big O Notation... | by Andrew Jamieson | Towards Data Science | Big O Notation is a way to measure an algorithm’s efficiency. It measures the time it takes to run your function as the input grows. Or in other words, how well does the function scale.
There are two parts to measuring efficiency — time complexity and space complexity. Time complexity is a measure of how long the funct... | [
{
"code": null,
"e": 358,
"s": 172,
"text": "Big O Notation is a way to measure an algorithm’s efficiency. It measures the time it takes to run your function as the input grows. Or in other words, how well does the function scale."
},
{
"code": null,
"e": 691,
"s": 358,
"text": "... |
How to save a canvas as PNG in Selenium? | We can save a canvas as png in Selenium. We shall first identify the canvas with the help of any locators like xpath, css, and so on. Then obtain the value of src attribute with the getAttribute method.
We shall build an URL in java with the class URL and have a BufferedImage via ImageIOclass. Then utilize the same cla... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "We can save a canvas as png in Selenium. We shall first identify the canvas with the help of any locators like xpath, css, and so on. Then obtain the value of src attribute with the getAttribute method."
},
{
"code": null,
"e": 1442,
"s"... |
How to get random value out of an array in PHP? | 27 May, 2021
There are two functions to get random value out of an array in PHP. The shuffle() and array_rand() function is used to get random value out of an array.
Examples:
Input : $arr = ("a"=>"21", "b"=>"31", "c"=>"7", "d"=>"20")
// Get one random value
Output :7
Input : $arr = ("a"=>"21", "b"=>"31", "c"=>"7", ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 181,
"s": 28,
"text": "There are two functions to get random value out of an array in PHP. The shuffle() and array_rand() function is used to get random value out of an array."
},
{
"code": ... |
Python | Equate two list index elements | 20 Mar, 2019
Sometimes we need to link two list from the point of view of their index elements and this kind of problem comes mostly in places where we need to display in formatted form the linkage of two lists with one another. This a very specific problem, but can be useful whenever we need a possible solution. Let’s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 384,
"s": 28,
"text": "Sometimes we need to link two list from the point of view of their index elements and this kind of problem comes mostly in places where we need to display in formatted form th... |
Find length of longest subsequence of one string which is substring of another string | 07 Jun, 2022
Given two strings X and Y. The task is to find the length of the longest subsequence of string X which is a substring in sequence Y.Examples:
Input : X = "ABCD", Y = "BACDBDCD"
Output : 3
"ACD" is longest subsequence of X which
is substring of Y.
Input : X = "A", Y = "A"
Output : 1
PREREQUISITES: Lo... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 198,
"s": 54,
"text": "Given two strings X and Y. The task is to find the length of the longest subsequence of string X which is a substring in sequence Y.Examples: "
},
{
"code": null,
... |
Python – Check if string starts with any element in list | 29 Dec, 2019
While working with strings, their prefixes and suffix play an important role in making any decision. For data manipulation tasks, we may need to sometimes, check if a string starts with any of the matching strings. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using filter() +... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2019"
},
{
"code": null,
"e": 307,
"s": 28,
"text": "While working with strings, their prefixes and suffix play an important role in making any decision. For data manipulation tasks, we may need to sometimes, check if a string s... |
Python File truncate() Method | 12 Dec, 2019
Prerequisites:
File Objects in Python
Reading and Writing to files in Python
Truncate() method truncate the file’s size. If the optional size argument is present, the file is truncated to (at most) that size. The size defaults to the current position. The current file position is not changed. Note that if ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Dec, 2019"
},
{
"code": null,
"e": 69,
"s": 54,
"text": "Prerequisites:"
},
{
"code": null,
"e": 92,
"s": 69,
"text": "File Objects in Python"
},
{
"code": null,
"e": 131,
"s": 92,
"text": "Re... |
time.Time.Add() Function in Golang with Examples | 19 Apr, 2020
In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Add() function in Go language is used to add the stated time and duration. Moreover, this function is defined under the time package. Here, you need to import the “time” package in order to use these func... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 342,
"s": 28,
"text": "In Go language, time packages supplies functionality for determining as well as viewing time. The Time.Add() function in Go language is used to add the stated time and duratio... |
How to Swap Two Elements in an ArrayList in Java? | 01 Jul, 2021
We can swap two elements of Array List using Collections.swap() method. This method accepts three arguments. The first argument is the ArrayList and the other two arguments are the indices of the elements. This method returns nothing.
Syntax:
public static void swap(List list, int a, int b);
Parameters
li... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 264,
"s": 28,
"text": "We can swap two elements of Array List using Collections.swap() method. This method accepts three arguments. The first argument is the ArrayList and the other two arguments ar... |
Node.js Buffer.write() Method | 13 Oct, 2021
The Buffer.write() method writes the specified string into a buffer, at the specified position. If buffer did not contain enough space to fit the entire string, only part of string will be written. However, partially encoded characters will not be written.
Syntax:
buffer.write( string, offset, length, enco... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "The Buffer.write() method writes the specified string into a buffer, at the specified position. If buffer did not contain enough space to fit the entire string, only part of s... |
Solving Cryptarithmetic Puzzles | In the crypt-arithmetic problem, some letters are used to assign digits to it. Like ten different letters are holding digit values from 0 to 9 to perform arithmetic operations correctly. There are two words are given and another word is given an answer of addition for those two words.
As an example, we can say that two... | [
{
"code": null,
"e": 1473,
"s": 1187,
"text": "In the crypt-arithmetic problem, some letters are used to assign digits to it. Like ten different letters are holding digit values from 0 to 9 to perform arithmetic operations correctly. There are two words are given and another word is given an answer ... |
Installing and Setting Up Hadoop in Pseudo-Distributed Mode in Windows 10 | 17 Jan, 2021
To Perform setting up and installing Hadoop in the pseudo-distributed mode in Windows 10 using the following steps given below as follows. Let’s discuss one by one.
Step 1: Download Binary Package :
Download the latest binary from the following site as follows.
http://hadoop.apache.org/releases.html
For re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jan, 2021"
},
{
"code": null,
"e": 193,
"s": 28,
"text": "To Perform setting up and installing Hadoop in the pseudo-distributed mode in Windows 10 using the following steps given below as follows. Let’s discuss one by one."
},
{
... |
pieslice() function in C | 05 Dec, 2019
pieslice() draws and fills a pie slice with center at (x, y) and given radius r. The slice travels from s_angle to e_angle which are starting and ending angles for the pie slice. The angles for pie-slice are given in degrees and are measured counterclockwise.
Syntax :
void pieslice(int x, int y, int s_angl... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Dec, 2019"
},
{
"code": null,
"e": 312,
"s": 52,
"text": "pieslice() draws and fills a pie slice with center at (x, y) and given radius r. The slice travels from s_angle to e_angle which are starting and ending angles for the pie sl... |
SVG <g> Element | 16 Jun, 2022
The SVG <g> element is a container used to group other SVG elements.
Transformations applied to the <g> element are also performed on its child elements, and its attributes are inherited by its children.
Syntax:
<g attributes="" >
<elements>
</g>
Attributes:
core Attributes: These attributes are core a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 97,
"s": 28,
"text": "The SVG <g> element is a container used to group other SVG elements."
},
{
"code": null,
"e": 232,
"s": 97,
"text": "Transformations applied to the <g> elem... |
Telnet – Python Network programming | 04 Jan, 2022
Telnet is a networking protocol that follows a client-server model. It uses TCP as its underlying communication protocol. It is typically used to start and a remote command-line session, typically on a server.
Uses Transmission Control Protocol for data transmission.
Bi-directional 8-bit protocol
The pro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 240,
"s": 28,
"text": "Telnet is a networking protocol that follows a client-server model. It uses TCP as its underlying communication protocol. It is typically used to start and a remote command-li... |
base64.encodestring(s) in Python | 22 Apr, 2020
With the help of base64.encodestring(s) method, we can encode the string using base64 encoded data into the binary form.
Syntax : base64.encodestring(string)
Return : Return the encoded string.
Example #1 :In this example we can see that by using base64.encodestring(s) method, we are able to get the encode... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 149,
"s": 28,
"text": "With the help of base64.encodestring(s) method, we can encode the string using base64 encoded data into the binary form."
},
{
"code": null,
"e": 186,
"s": 149... |
free Command in Linux with examples | 15 May, 2019
While using LINUX there might come a situation when you are willing to install a new application (big in size) and you wish to know for the amount of free memory available on your system. In LINUX, there exists a command line utility for this and that is free command which displays the total amount of free... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 487,
"s": 54,
"text": "While using LINUX there might come a situation when you are willing to install a new application (big in size) and you wish to know for the amount of free memory available on... |
Inner Class And Anonymous Inner Class that Implements Runnable | Concurrent Programming Approach 3 | 08 Apr, 2019
Prerequisite: Different Approaches to Concurrent Programming in Java
In this approach, the user physically puts the class definition of the class that implements Runnable inside the class definition of the main class.public class OuterClass{
private class InnerClass implements Runnable{
public ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Apr, 2019"
},
{
"code": null,
"e": 97,
"s": 28,
"text": "Prerequisite: Different Approaches to Concurrent Programming in Java"
},
{
"code": null,
"e": 722,
"s": 97,
"text": "In this approach, the user physically p... |
How to Create a Pokedex UI in Android? - GeeksforGeeks | 06 Jun, 2021
Today we will be building the most important gadget that we all wanted in our childhood, The Pokedex. A sample image is given below to get an idea about what we are going to do in this article.
Our Pokedex
Step 1: Create New Android Project with empty activity
You should always use meaningful names for y... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 26576,
"s": 26381,
"text": "Today we will be building the most important gadget that we all wanted in our childhood, The Pokedex. A sample image is given below to get an idea about what we ar... |
Replace values of a Factor in R Programming - recode_factor() Function - GeeksforGeeks | 01 Jun, 2020
Factors in R programming are kind of data structures that stores categorical data i.e., levels and can have any type of data (integer, string, etc). recode_factor() function in R Language is used to replace certain values in a factor. To use recode_factor() function, dplyr package is required.
Syntax:recod... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 26782,
"s": 26487,
"text": "Factors in R programming are kind of data structures that stores categorical data i.e., levels and can have any type of data (integer, string, etc). recode_factor(... |
How to invert the elements of a boolean array in Python? - GeeksforGeeks | 17 Dec, 2020
Given a boolean array the task here is to invert its elements. A boolean array is an array which contains only boolean values like True or False, 1 or 0.
Input : A=[true , true , false]
Output: A= [false , false , true]
Input: A=[0,1,0,1]
Output: A=[1,0,1,0]
Method 1:
You can use simple if else method to... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 25692,
"s": 25537,
"text": "Given a boolean array the task here is to invert its elements. A boolean array is an array which contains only boolean values like True or False, 1 or 0. "
},
... |
Angular PrimeNG DataView Component - GeeksforGeeks | 03 Oct, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the dataView component in Angular PrimeNG. We will also learn abou... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n03 Oct, 2021"
},
{
"code": null,
"e": 26755,
"s": 26354,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
How to Get Cell Value from Pandas DataFrame? - GeeksforGeeks | 30 Nov, 2021
In this article, we will discuss how to get the cell value from the pandas dataframe.
This method is used to get the particular cell data with index function by using the column name
Syntax:
dataframe[‘column_name’].loc[dataframe.index[row_number]]
where,
dataframe is the input dataframe
index is the func... | [
{
"code": null,
"e": 26133,
"s": 26105,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 26219,
"s": 26133,
"text": "In this article, we will discuss how to get the cell value from the pandas dataframe."
},
{
"code": null,
"e": 26317,
"s": 26219,
"text": "This... |
How to Create Array of Objects in Java? - GeeksforGeeks | 02 Sep, 2020
Prerequisite – Different ways to create objects in Java
Java programming language is all about classes and objects as it is an object-oriented programming language. When we require a single object to store in our program we do it with a variable of type Object. But when we deal with numerous objects, then ... | [
{
"code": null,
"e": 26282,
"s": 26254,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 26338,
"s": 26282,
"text": "Prerequisite – Different ways to create objects in Java"
},
{
"code": null,
"e": 26633,
"s": 26338,
"text": "Java programming language is all a... |
Is Binary Tree Heap | Practice | GeeksforGeeks | Given a binary tree. The task is to check whether the given tree follows the max heap property or not.
Note: Properties of a tree to be a max heap - Completeness and Value of node greater than or equal to its child.
Example 1:
Input:
5
/ \
2 3
Output: 1
Explanation: The given tree follows max-heap prop... | [
{
"code": null,
"e": 454,
"s": 238,
"text": "Given a binary tree. The task is to check whether the given tree follows the max heap property or not.\nNote: Properties of a tree to be a max heap - Completeness and Value of node greater than or equal to its child."
},
{
"code": null,
"e": 4... |
Create Interactive Dashboard in Python using Streamlit - GeeksforGeeks | 26 Mar, 2021
An interactive and Informative dashboard is very necessary for better understanding our data sets. This will help a researcher for getting a better understanding of our results and after that, a researcher can make some necessary changes for better understanding. Visual Reports is must better than in Numbe... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 25879,
"s": 25537,
"text": "An interactive and Informative dashboard is very necessary for better understanding our data sets. This will help a researcher for getting a better understanding o... |
AngularJS | angular.forEach() Function - GeeksforGeeks | 22 Apr, 2019
The angular.forEach() Function in AngularJS is used to iterate through each item in an array or object. It works similar to the for loop and this loop contains all properties of an object in key-value pairs of an object.
Syntax:
angular.forEach(object, iterator, [context])
Parameter Values:
object: It refe... | [
{
"code": null,
"e": 29493,
"s": 29465,
"text": "\n22 Apr, 2019"
},
{
"code": null,
"e": 29714,
"s": 29493,
"text": "The angular.forEach() Function in AngularJS is used to iterate through each item in an array or object. It works similar to the for loop and this loop contains all... |
Java Program to Search ArrayList Element Using Binary Search - GeeksforGeeks | 11 Dec, 2020
Linear Search can be implemented for sorting and non-sorting elements of a Data structure particular Data structure but the average case time complexity is O(n). Whereas as Binary Search can be implemented only when the items are in sorted order and average-case time complexity is O(logn) and both Transver... | [
{
"code": null,
"e": 25835,
"s": 25807,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 26297,
"s": 25835,
"text": "Linear Search can be implemented for sorting and non-sorting elements of a Data structure particular Data structure but the average case time complexity is O(n). W... |
How to get selected option from Dropdown in jQuery ? - GeeksforGeeks | 19 Sep, 2021
In this article, we learn how to get the selected option from the dropdown list. This article requires some familiarity with HTML, CSS, JavaScript, and jQuery. We can solve this challenge by using the jQuery val() method.
The val() method in jQuery is used to set or return the value of an attribute for the... | [
{
"code": null,
"e": 26185,
"s": 26157,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 26407,
"s": 26185,
"text": "In this article, we learn how to get the selected option from the dropdown list. This article requires some familiarity with HTML, CSS, JavaScript, and jQuery. We ... |
Area of Incircle of a Right Angled Triangle - GeeksforGeeks | 25 Mar, 2021
Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle. The task is to find the area of the incircle of radius r as shown below:
Examples:
Input: P = 3, B = 4, H = 5 Output: 3.14Input: P = 5, B = 12, H = 13 Output: 12.56
Approach: Formula for calculat... | [
{
"code": null,
"e": 25118,
"s": 25090,
"text": "\n25 Mar, 2021"
},
{
"code": null,
"e": 25297,
"s": 25118,
"text": "Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle. The task is to find the area of the incircle of radius r a... |
Program to sort given set of Cartesian points based on polar angles in Python | Suppose we have a set of Cartesian points in a list called points. We have to sort them based on their polar angles. The polar angles vary in range 0 and 2*PI. If some points have same polar angles, then arrange them based on the distance of that point from the origin.
So, if the input is like points = [(1,1), (1,-2),(... | [
{
"code": null,
"e": 1332,
"s": 1062,
"text": "Suppose we have a set of Cartesian points in a list called points. We have to sort them based on their polar angles. The polar angles vary in range 0 and 2*PI. If some points have same polar angles, then arrange them based on the distance of that point ... |
Validation Curve Explained — Plot the influence of a single hyperparameter | by Rukshan Pramoditha | Towards Data Science | In Machine Learning (ML), model validation is used to measure the effectiveness of an ML model. A good ML model not only fits the training data very well but also is generalizable to new input data.
Model hyperparameters play an important role in determining the effectiveness of an ML model. With a grid search or rando... | [
{
"code": null,
"e": 371,
"s": 172,
"text": "In Machine Learning (ML), model validation is used to measure the effectiveness of an ML model. A good ML model not only fits the training data very well but also is generalizable to new input data."
},
{
"code": null,
"e": 1040,
"s": 371,... |
Bootstrap - Page Header | The page header is a nice little feature to add appropriate spacing around the headings on a page. This is particularly helpful on a web page where you may have several post titles and need a way to add distinction to each of them. To use a page header, wrap your heading in a <div> with a class of .page-header −
<div c... | [
{
"code": null,
"e": 3645,
"s": 3331,
"text": "The page header is a nice little feature to add appropriate spacing around the headings on a page. This is particularly helpful on a web page where you may have several post titles and need a way to add distinction to each of them. To use a page header,... |
Getting every child widget of a Tkinter window | In order to get the information about the widgets, tkinter provides a set of methods that can be used to test the widgets in an application. In order to get the list of all the child widgets, we can use the winfo_children() method.
In this example, we have defined some widgets in a frame and by using the winfo_children... | [
{
"code": null,
"e": 1294,
"s": 1062,
"text": "In order to get the information about the widgets, tkinter provides a set of methods that can be used to test the widgets in an application. In order to get the list of all the child widgets, we can use the winfo_children() method."
},
{
"code":... |
UnitTest Framework - Py.test Module | It was in 2004 that Holger Krekel renamed his std package, whose name was often confused with that of the Standard Library that ships with Python, to the (only slightly less confusing) name 'py.' Though the package contains several sub-packages, it is now known almost entirely for its py.test framework.
The py.test fra... | [
{
"code": null,
"e": 2403,
"s": 2098,
"text": "It was in 2004 that Holger Krekel renamed his std package, whose name was often confused with that of the Standard Library that ships with Python, to the (only slightly less confusing) name 'py.' Though the package contains several sub-packages, it is n... |
Statistics - Trimmed Mean | Trimmed Mean a method of averaging that removes a small percentage of the largest and smallest values before calculating the mean.
The Trimmed Mean can be calculated using the following formula.
Where −
∑Xi = Sum of your Trimmed Set.
∑Xi = Sum of your Trimmed Set.
n = Total Numbers in Trimmed set.
n = Total Numbers in... | [
{
"code": null,
"e": 4454,
"s": 4323,
"text": "Trimmed Mean a method of averaging that removes a small percentage of the largest and smallest values before calculating the mean."
},
{
"code": null,
"e": 4518,
"s": 4454,
"text": "The Trimmed Mean can be calculated using the follow... |
Program to print product of even and odd indexed elements in an Array - GeeksforGeeks | 17 Mar, 2021
Given an array of integers. The task is to write a program to find the product of elements at even and odd index positions separately.Note: 0-based indexing is considered for the array. That is the index of the first element in the array is zero.Examples:
Input : arr = {1, 2, 3, 4, 5, 6}
Output : Even In... | [
{
"code": null,
"e": 26616,
"s": 26588,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 26874,
"s": 26616,
"text": "Given an array of integers. The task is to write a program to find the product of elements at even and odd index positions separately.Note: 0-based indexing is con... |
How to Customize your RStudio Theme (Finally) | by Brad Lindblad | Towards Data Science | When my brain is tapped out after a grueling morning of data sciencing, my browser will invariably point to a smorgasbord of websites that RescueTime will classify as “entertainment.” From the Hot Network Questions page on Stack Overflow (“Question: why do demons heal faster than angels?”) to looking into Hadley’s comm... | [
{
"code": null,
"e": 521,
"s": 172,
"text": "When my brain is tapped out after a grueling morning of data sciencing, my browser will invariably point to a smorgasbord of websites that RescueTime will classify as “entertainment.” From the Hot Network Questions page on Stack Overflow (“Question: why d... |
Bookshop management system using file handling - GeeksforGeeks | 04 Feb, 2021
The task is to build the bookshop management system using file handling in C++ that helps to keep track of all the book records in a file. Below are the features to be implemented:
Add new book and the details of the book are:Book IDName of bookName of AuthorNumber of books
Book ID
Name of book
Name of Aut... | [
{
"code": null,
"e": 24220,
"s": 24192,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 24401,
"s": 24220,
"text": "The task is to build the bookshop management system using file handling in C++ that helps to keep track of all the book records in a file. Below are the features t... |
Count of 'GFG' Subsequences in the given string - GeeksforGeeks | 05 May, 2021
Given a string of length n of capital letters. The task is to find the count of ‘GFG’ subsequence in the given string.Examples:
Input : str[] = "GFGFG"
Output : 4
GFGFG, GFGFG, GFGFG, GFGFG
Input : str[] = "ABCFGFPG"
Output : 1
To find the number of “GFG” subsequences in the given string, observe for ... | [
{
"code": null,
"e": 26533,
"s": 26505,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 26663,
"s": 26533,
"text": "Given a string of length n of capital letters. The task is to find the count of ‘GFG’ subsequence in the given string.Examples: "
},
{
"code": null,
"... |
CharArrayReader read(char[]) method in Java with Examples - GeeksforGeeks | 13 Feb, 2019
The read(char[]) method of CharArrayReader Class in Java is used to read the specified characters into an array. This method blocks the stream till:
It has taken some input from the stream.
Some IOException has occurred
It has reached the end of the stream while reading.
Syntax:
public int read(char[] char... | [
{
"code": null,
"e": 25739,
"s": 25711,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 25888,
"s": 25739,
"text": "The read(char[]) method of CharArrayReader Class in Java is used to read the specified characters into an array. This method blocks the stream till:"
},
{
... |
Matplotlib.axes.Axes.can_zoom() in Python - GeeksforGeeks | 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": 25483,
"s": 25455,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 25783,
"s": 25483,
"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, ... |
Printing all subsets of {1,2,3,...n} without using array or loop - GeeksforGeeks | 14 May, 2021
Given a natural number n, print all the subsets of the set without using any array or loop (only the use of recursion is allowed).Examples:
Input : n = 4
Output : { 1 2 3 4 }
{ 1 2 3 }
{ 1 2 4 }
{ 1 2 }
{ 1 3 4 }
{ 1 3 }
{ 1 4 }
{ 1 }
... | [
{
"code": null,
"e": 26387,
"s": 26359,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 26529,
"s": 26387,
"text": "Given a natural number n, print all the subsets of the set without using any array or loop (only the use of recursion is allowed).Examples: "
},
{
"code":... |
SQL | Query Processing | 14 Aug, 2018
Query Processing includes translations on high level Queries into low level expressions that can be used at physical level of file system, query optimization and actual execution of query to get the actual result.
Block Diagram of Query Processing is as:
Detailed Diagram is drawn as:
It is done in the foll... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Aug, 2018"
},
{
"code": null,
"e": 268,
"s": 54,
"text": "Query Processing includes translations on high level Queries into low level expressions that can be used at physical level of file system, query optimization and actual execu... |
Remove duplicate elements from an array using AngularJS | 01 Oct, 2020
We have given an array and the task is to remove/delete the duplicates from the array using AngularJS.
Approach:
The approach is to use the filter() method and inside the method, the elements which don’t repeat themselves will be returned and the duplicates will be returned only once.
Hence, a unique arra... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 131,
"s": 28,
"text": "We have given an array and the task is to remove/delete the duplicates from the array using AngularJS."
},
{
"code": null,
"e": 142,
"s": 131,
"text": "App... |
fmt.Sprintf() Function in Golang With Examples | 05 May, 2020
In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Sprintf() function in Go language formats according to a format specifier and returns the resulting string. Moreover, this function is defined under the fmt package. Here, you need to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 394,
"s": 28,
"text": "In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Sprintf() function in Go language formats according... |
Python | sympy.limit() method | 11 Aug, 2021
With the help of sympy.limit() method, we can find the limit of any mathematical expression, e.g.,
(1)
Syntax: limit(expression, variable, value)Parameters: expression – The mathematical expression on which limit operation is to be performed, i. e., f(x). variable – It is the variable in the mathemat... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 128,
"s": 28,
"text": "With the help of sympy.limit() method, we can find the limit of any mathematical expression, e.g., "
},
{
"code": null,
"e": 135,
"s": 128,
"text": "(1) ... |
ES6 features and syntax | 19 Feb, 2019
ES6 or as it is officially called: ECMAScript2015 is a new JavaScript implementation and is arguably the hottest topic in the JS developers conventions and meetups. And why it should be not :JavaScript rules the web and is gaining foothold in every other field possible, be it robotics(nodebots), desktop ap... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2019"
},
{
"code": null,
"e": 632,
"s": 28,
"text": "ES6 or as it is officially called: ECMAScript2015 is a new JavaScript implementation and is arguably the hottest topic in the JS developers conventions and meetups. And why it... |
Icon Class in Flutter | 15 Feb, 2021
Icon class in Flutter is used to show specific icons in our app. Instead of creating an image for our icon, we can simply use the Icon class for inserting an icon in our app. For using this class you must ensure that you have set uses-material-design: true in the pubsec.yml file of your object.
Syntax:
Ico... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 324,
"s": 28,
"text": "Icon class in Flutter is used to show specific icons in our app. Instead of creating an image for our icon, we can simply use the Icon class for inserting an icon in our app. ... |
Lodash - sortBy method | _.sortBy(collection, [iteratees=[_.identity]])
Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. This method performs a stable sort, that is, it preserves the original sort order of equal elements. The iteratees are invoked with one argum... | [
{
"code": null,
"e": 2009,
"s": 1961,
"text": "_.sortBy(collection, [iteratees=[_.identity]])\n"
},
{
"code": null,
"e": 2295,
"s": 2009,
"text": "Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. Th... |
Python | Pandas tseries.offsets.BusinessDay | 23 Apr, 2019
Dateoffsets are a standard kind of date increment used for a date range in Pandas. It works exactly like relativedelta in terms of the keyword args we pass in. DateOffets work as follows, each offset specify a set of dates that conform to the DateOffset. For example, Bday defines this set to be the set of ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Apr, 2019"
},
{
"code": null,
"e": 366,
"s": 28,
"text": "Dateoffsets are a standard kind of date increment used for a date range in Pandas. It works exactly like relativedelta in terms of the keyword args we pass in. DateOffets work... |
TypeScript | toFixed() Function | 16 Jun, 2020
The toFixed() function in TypeScript is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of the decimal.
Syntax:
number.toFixed( [digits] );
Parameters: This function accepts a parameter value- digits– The number of digits... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jun, 2020"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "The toFixed() function in TypeScript is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of ... |
JS++ | Subtype Polymorphism | 30 Aug, 2018
Subtyping describes type relationships, and subtype polymorphism enables operations defined for supertypes to be safely substituted with subtypes. Concretely, imagine the relation between a ‘Cat’ class and an ‘Animal’ class. (Remember: classes create data types in JS++.) In this case, within the context of... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Aug, 2018"
},
{
"code": null,
"e": 764,
"s": 28,
"text": "Subtyping describes type relationships, and subtype polymorphism enables operations defined for supertypes to be safely substituted with subtypes. Concretely, imagine the rela... |
Difference between Java and Kotlin in Android with Examples | 27 May, 2020
KOTLIN is a cross platform, statically types, general purpose programming language with type inference. KOTLIN is designed to interoperate fully with java but type inference allows its syntax to be more concise.KOTLIN is sponsored by JetBrains and Google through the Kotlin Foundation.
JAVA is an Object Ori... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2020"
},
{
"code": null,
"e": 314,
"s": 28,
"text": "KOTLIN is a cross platform, statically types, general purpose programming language with type inference. KOTLIN is designed to interoperate fully with java but type inference a... |
Practical Uses of OpenSSL command in Linux | 23 Mar, 2020
OpenSSL is a cryptography software library or toolkit that makes communication over computer networks more secure. The OpenSSL program is a command-line tool for using the various cryptography functions of OpenSSL’s crypto library from the shell. It is generally used for Transport Layer Security(TSL) or Se... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Mar, 2020"
},
{
"code": null,
"e": 542,
"s": 28,
"text": "OpenSSL is a cryptography software library or toolkit that makes communication over computer networks more secure. The OpenSSL program is a command-line tool for using the var... |
GATE | GATE-CS-2016 (Set 2) | Question 29 | 01 Sep, 2021
Match the following:
(P) Lexical analysis (i) Leftmost derivation
(Q) Top down parsing (ii) Type checking
(R) Semantic analysis (iii) Regular expressions
(S) Runtime environments (iv) Activation records
(A) A(B) B(C) C(D) DAnswer: (B)Explanation: Lexical analysis uses Regular expression ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 49,
"s": 28,
"text": "Match the following:"
},
{
"code": null,
"e": 250,
"s": 49,
"text": "(P) Lexical analysis (i) Leftmost derivation\n(Q) Top down parsing (ii) Typ... |
Python | Communicating Between Threads | Set-1 | 12 Jun, 2019
Given multiple threads in the program and one wants to safely communicate or exchange data between them.
Perhaps the safest way to send data from one thread to another is to use a Queue from the queue library. To do this, create a Queue instance that is shared by the threads. Threads then use put() or get(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2019"
},
{
"code": null,
"e": 133,
"s": 28,
"text": "Given multiple threads in the program and one wants to safely communicate or exchange data between them."
},
{
"code": null,
"e": 420,
"s": 133,
"text": "P... |
How to run ExpressJS server from browser ? | 31 Mar, 2021
Express is the node module which is used to create a server, to take get request on our server. We can run the ExpressJS server from the browser using the following 5 simple steps:
Step 1: Install the Express locally into your system by the following command:
npm install express
Step 2: Check the version o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 209,
"s": 28,
"text": "Express is the node module which is used to create a server, to take get request on our server. We can run the ExpressJS server from the browser using the following 5 simple s... |
Lex Program to accept string starting with vowel - GeeksforGeeks | 30 Apr, 2019
Lex is a computer program that generates lexical analyzers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.
The commands for executing the lex program are:
lex abc.l (abc is the file name)
cc lex.yy.c -efl
./a.out
Let’... | [
{
"code": null,
"e": 24539,
"s": 24511,
"text": "\n30 Apr, 2019"
},
{
"code": null,
"e": 24735,
"s": 24539,
"text": "Lex is a computer program that generates lexical analyzers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexe... |
Real-Time Mask Detection with YOLOv3 | Towards Data Science | We are all aware of the disastrous start of 2020, thanks to the Coronavirus pandemic. Life as we know it has come to a halt. Research has consistently shown that basic hygiene, such as hand washing and covering your mouth and nose while sneezing or coughing goes a long way. In such situations, wearing a mask in public ... | [
{
"code": null,
"e": 513,
"s": 172,
"text": "We are all aware of the disastrous start of 2020, thanks to the Coronavirus pandemic. Life as we know it has come to a halt. Research has consistently shown that basic hygiene, such as hand washing and covering your mouth and nose while sneezing or coughi... |
Sum Tree | Practice | GeeksforGeeks | Given a Binary Tree. Return true if, for every node X in the tree other than the leaves, its value is equal to the sum of its left subtree's value and its right subtree's value. Else return false.
An empty tree is also a Sum Tree as the sum of an empty tree can be considered to be 0. A leaf node is also considered a Su... | [
{
"code": null,
"e": 435,
"s": 238,
"text": "Given a Binary Tree. Return true if, for every node X in the tree other than the leaves, its value is equal to the sum of its left subtree's value and its right subtree's value. Else return false."
},
{
"code": null,
"e": 566,
"s": 435,
... |
How to Convert Character to a Timestamp in R? - GeeksforGeeks | 28 Dec, 2021
In this article, we will convert character to timestamp in R Programming Language.
We can convert the character to timestamp by using strptime() method. strptime() function in R Language is used to parse the given representation of date and time with the given template.
Syntax:
strptime(character, format,... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 24934,
"s": 24851,
"text": "In this article, we will convert character to timestamp in R Programming Language."
},
{
"code": null,
"e": 25122,
"s": 24934,
"text": "We can ... |
__builtin_inf() functions of GCC compiler - GeeksforGeeks | 02 Sep, 2021
These functions do not need to include any header file to use them. So it provides faster usage, as these are Built-in functions of GCC compiler which is most used compiler, even in competitive programming.
Note: If the compiler shows warning of overflow, use casting before __builtin_inf() function as
(da... | [
{
"code": null,
"e": 23841,
"s": 23813,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 24048,
"s": 23841,
"text": "These functions do not need to include any header file to use them. So it provides faster usage, as these are Built-in functions of GCC compiler which is most used... |
append() and extend() in Python - GeeksforGeeks | 01 Apr, 2020
Append: Adds its argument as a single element to the end of a list. The length of the list increases by one.
syntax:
# Adds an object (a number, a string or a
# another list) at the end of my_list
my_list.append(object)
my_list = ['geeks', 'for']my_list.append('geeks')print my_list
Output:
['geeks', 'fo... | [
{
"code": null,
"e": 24294,
"s": 24266,
"text": "\n01 Apr, 2020"
},
{
"code": null,
"e": 24403,
"s": 24294,
"text": "Append: Adds its argument as a single element to the end of a list. The length of the list increases by one."
},
{
"code": null,
"e": 24517,
"s": 2... |
How to match a character from given string including case using Java regex? | The java.util.regex package of java provides various classes to find particular patterns in character sequences. The pattern class of this package is a compiled representation of a regular expression.
To match a specific character from the given input string −
Get the input string.
Get the input string.
This compile() ... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "The java.util.regex package of java provides various classes to find particular patterns in character sequences. The pattern class of this package is a compiled representation of a regular expression."
},
{
"code": null,
"e": 1323,
"s": ... |
CSS Colors | CSS supports 140+ color names, HEX values, RGB values, RGBA
values, HSL values, HSLA values, and opacity.
RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity
for a color.
An RGBA color value is specified with: rgba(red, green, blue, alpha). The alpha parameter is... | [
{
"code": null,
"e": 107,
"s": 0,
"text": "CSS supports 140+ color names, HEX values, RGB values, RGBA \nvalues, HSL values, HSLA values, and opacity."
},
{
"code": null,
"e": 228,
"s": 107,
"text": "RGBA color values are an extension of RGB color values with an alpha channel - w... |
How to loop through an associative array and get the key in PHP? - GeeksforGeeks | 30 Apr, 2019
Associative Array: Associative arrays are used to store key-value pairs. For example, to store the marks of the different subject of a student in an array, a numerically indexed array would not be the best choice. Instead, we could use the respective subject’s names as the keys in our associative array, an... | [
{
"code": null,
"e": 24346,
"s": 24318,
"text": "\n30 Apr, 2019"
},
{
"code": null,
"e": 24778,
"s": 24346,
"text": "Associative Array: Associative arrays are used to store key-value pairs. For example, to store the marks of the different subject of a student in an array, a numer... |
C# | BitConverter Class - GeeksforGeeks | 20 Feb, 2019
The use of BitConverter Class is to convert a base data types to an array of bytes and an array of bytes to base data types. This class is defined under System namespace. This class provides different types of methods to perform the conversion. Basically, a byte is defined as an 8-bit unsigned integer. Thi... | [
{
"code": null,
"e": 23202,
"s": 23174,
"text": "\n20 Feb, 2019"
},
{
"code": null,
"e": 23768,
"s": 23202,
"text": "The use of BitConverter Class is to convert a base data types to an array of bytes and an array of bytes to base data types. This class is defined under System nam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.