title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
The 5 Sampling Algorithms every Data Scientist need to know | by Rahul Agarwal | Towards Data Science | Data Science is the study of algorithms.
I grapple through with many algorithms on a day to day basis so I thought of listing some of the most common and most used algorithms one will end up using in this new DS Algorithm series.
This post is about some of the most common sampling techniques one can use while working w... | [
{
"code": null,
"e": 213,
"s": 172,
"text": "Data Science is the study of algorithms."
},
{
"code": null,
"e": 402,
"s": 213,
"text": "I grapple through with many algorithms on a day to day basis so I thought of listing some of the most common and most used algorithms one will en... |
How to add custom view in alert dialog? | This example demonstrate about How to add custom view in alert dialog
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<LinearLayout... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "This example demonstrate about How to add custom view in alert dialog"
},
{
"code": null,
"e": 1261,
"s": 1132,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat... |
TPOT: Automated Machine Learning in Python | by Dario Radečić | Towards Data Science | Everybody and their mother wants to get into machine learning. That’s great, but the field got automated over the years — to a degree. Nowadays, you don’t have to be a machine learning engineer to produce good quality models. How? That’s where libraries like TPOT come into play.
If you’re more of a video person, or jus... | [
{
"code": null,
"e": 451,
"s": 171,
"text": "Everybody and their mother wants to get into machine learning. That’s great, but the field got automated over the years — to a degree. Nowadays, you don’t have to be a machine learning engineer to produce good quality models. How? That’s where libraries l... |
How to create a vertical line with CSS? | To create a vertical line with CSS, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.vLine {
border-left: 6px solid rgb(128, 0, 128);
height: 500px;
margin-left: 5%;
}
</style>
</head>
<body>
<h1>Verti... | [
{
"code": null,
"e": 1123,
"s": 1062,
"text": "To create a vertical line with CSS, the code is as follows −"
},
{
"code": null,
"e": 1134,
"s": 1123,
"text": " Live Demo"
},
{
"code": null,
"e": 1445,
"s": 1134,
"text": "<!DOCTYPE html>\n<html>\n<head>\n<meta ... |
How to Line Breaks to JavaScript Alert? | To add line breaks to JavaScript alert, use “\r\n”. In the following example, we will see how to display text in JavaScript alert.
Live Demo
<html>
<body>
<script>
function DisplayAlert() {
var newLine = "\r\n"
var msg = "Showing how to add line break."
msg += newL... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "To add line breaks to JavaScript alert, use “\\r\\n”. In the following example, we will see how to display text in JavaScript alert."
},
{
"code": null,
"e": 1204,
"s": 1193,
"text": " Live Demo"
},
{
"code": null,
"e": 1... |
How to change MySQL timezone? | To change the timezone in MySQL, we can use the SET command. The following is the syntax.
SET time_zone=’someValue’;
Let us now use the above syntax and apply it in the below query.
mysql > SET time_zone = '+8:00';
Query OK, 0 rows affected (0.00 sec)
Above, the time_zone is changed by a value equivalent to 8. To chan... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "To change the timezone in MySQL, we can use the SET command. The following is the syntax."
},
{
"code": null,
"e": 1180,
"s": 1152,
"text": "SET time_zone=’someValue’;\n"
},
{
"code": null,
"e": 1245,
"s": 1180,
"... |
Introduction to PyMC3: A Python package for probabilistic programming | by Tung T. Nguyen | Towards Data Science | Introduction
We often hear something like this on weather forecast programs: the chance of raining tomorrow is 80%. What does that mean? It is often hard to give meaning to this kind of statement, especially from a frequentist perspective: there is no reasonable way to repeat the raining/not raining experiment an infin... | [
{
"code": null,
"e": 185,
"s": 172,
"text": "Introduction"
},
{
"code": null,
"e": 527,
"s": 185,
"text": "We often hear something like this on weather forecast programs: the chance of raining tomorrow is 80%. What does that mean? It is often hard to give meaning to this kind of ... |
Java | Inheritance | Question 4 | 28 Jun, 2021
Which of the following is true about inheritance in Java?
1) Private methods are final.
2) Protected members are accessible within a package and
inherited classes outside the package.
3) Protected methods are final.
4) We cannot override private methods.
(A) 1, 2 and 4(B) Only 1 and 2(C) 1, 2 and 3(D... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 110,
"s": 52,
"text": "Which of the following is true about inheritance in Java?"
},
{
"code": null,
"e": 313,
"s": 110,
"text": "\n1) Private methods are final.\n2) Protected m... |
How to Install and Configure Nginx from Source on Linux | 21 Jul, 2021
Nginx is written in C language by Igor Sysoev to overcome the C10K problem (i.e. Concurrently handling 10k(ten thousand) connections). The problem was how to optimize the network socket to handle numerous clients at the same time. Nginx is a solution to that problem. It is a free and open-source software f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 629,
"s": 28,
"text": "Nginx is written in C language by Igor Sysoev to overcome the C10K problem (i.e. Concurrently handling 10k(ten thousand) connections). The problem was how to optimize the netw... |
Let’s Play Blackjack (with Python) | by Tony Yiu | Towards Data Science | This post is in NO way an attempt to promote blackjack or the act of gambling. Any time you gamble at a casino, the odds are stacked against you — and over time you WILL lose money. Don’t risk what you cannot afford to lose!
Corrections: I realized (thanks to a friendly tip from @DonBeham) that under certain conditions... | [
{
"code": null,
"e": 397,
"s": 172,
"text": "This post is in NO way an attempt to promote blackjack or the act of gambling. Any time you gamble at a casino, the odds are stacked against you — and over time you WILL lose money. Don’t risk what you cannot afford to lose!"
},
{
"code": null,
... |
How to find and sort files based on modification date and time in linux | While working with computers, we have a habit of saving a lot of information in our computers such as files, folders, etc. Normally desktop looks like a mess but the problem arises when users want to search a modified file on a particular date or time. There are simple commands which are available in Linux to search a ... | [
{
"code": null,
"e": 1495,
"s": 1062,
"text": "While working with computers, we have a habit of saving a lot of information in our computers such as files, folders, etc. Normally desktop looks like a mess but the problem arises when users want to search a modified file on a particular date or time. ... |
JavaFX - 2D Shapes Polygon | A closed shape formed by a number of coplanar line segments connected end to end.
A polygon is described by two parameters, namely, the length of its sides and the measures of its interior angles.
In JavaFX, a polygon is represented by a class named Polygon. This class belongs to the package javafx.scene.shape.
By inst... | [
{
"code": null,
"e": 1982,
"s": 1900,
"text": "A closed shape formed by a number of coplanar line segments connected end to end."
},
{
"code": null,
"e": 2097,
"s": 1982,
"text": "A polygon is described by two parameters, namely, the length of its sides and the measures of its in... |
Taking Seasonality into Consideration for Time Series Analysis | by Zijing Zhu | Towards Data Science | Seasonality, as its name suggested, refers to the seasonal characteristics of the time series data. It is the predictable pattern that repeats at a certain frequency within one year, such as weekly, monthly, quarterly, etc. The most straightforward example to demonstrate seasonality is to look at the temperature data. ... | [
{
"code": null,
"e": 603,
"s": 172,
"text": "Seasonality, as its name suggested, refers to the seasonal characteristics of the time series data. It is the predictable pattern that repeats at a certain frequency within one year, such as weekly, monthly, quarterly, etc. The most straightforward exampl... |
Dynamic Programming | Wildcard Pattern Matching | Linear Time and Constant Space - GeeksforGeeks | 28 Feb, 2022
Given a text and a wildcard pattern, find if wildcard pattern is matched with text. The matching should cover the entire text (not partial text).The wildcard pattern can include the characters ‘?’ and ‘*’:
‘?’ – matches any single character
‘*’ – Matches any sequence of characters (including the empty sequ... | [
{
"code": null,
"e": 26199,
"s": 26171,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 26405,
"s": 26199,
"text": "Given a text and a wildcard pattern, find if wildcard pattern is matched with text. The matching should cover the entire text (not partial text).The wildcard patte... |
Tryit Editor v3.7 | Tryit: HTML section element | [] |
Function overloading and Overriding in PHP - GeeksforGeeks | 18 Feb, 2022
Function overloading and overriding is the OOPs feature in PHP. In function overloading, more than one function can have same method signature but different number of arguments. But in case of function overriding, more than one functions will have same method signature and number of arguments. Function Ove... | [
{
"code": null,
"e": 26231,
"s": 26203,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 27078,
"s": 26231,
"text": "Function overloading and overriding is the OOPs feature in PHP. In function overloading, more than one function can have same method signature but different number... |
Multiple Linear Regression. A complete study — Model Interpretation... | by Sangeet Aggarwal | Towards Data Science | Linear Regression, one of the most popular and discussed models, is certainly the gateway to go deeper into Machine Learning (ML). Such a simplistic, straightforward approach to modeling is worth learning as one of your first steps into ML.
Before moving forward, let us recall that Linear Regression can be broadly clas... | [
{
"code": null,
"e": 413,
"s": 172,
"text": "Linear Regression, one of the most popular and discussed models, is certainly the gateway to go deeper into Machine Learning (ML). Such a simplistic, straightforward approach to modeling is worth learning as one of your first steps into ML."
},
{
... |
Support Vector Machines — Soft Margin Formulation and Kernel Trick | by Rishabh Misra | Towards Data Science | Support Vector Machine (SVM) is one of the most popular classification techniques which aims to minimize the number of misclassification errors directly. There are many accessible resources to understand the basics of how Support Vector Machines (SVMs) work, however, in almost all the real-world applications (where the... | [
{
"code": null,
"e": 557,
"s": 172,
"text": "Support Vector Machine (SVM) is one of the most popular classification techniques which aims to minimize the number of misclassification errors directly. There are many accessible resources to understand the basics of how Support Vector Machines (SVMs) wo... |
How to Perform Basic Linear Algebra on Arduino? | The BasicLinearAlgebra library helps represent matrices and perform matrix math on Arduino. To install it, search for 'BasicLinearAlgebra' in the Library Manager.
Once installed, go to: File → Examples → BasicLinearAlgebra → HowToUse
As the name suggests, this example shows how to use this library. While the comments i... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "The BasicLinearAlgebra library helps represent matrices and perform matrix math on Arduino. To install it, search for 'BasicLinearAlgebra' in the Library Manager."
},
{
"code": null,
"e": 1296,
"s": 1225,
"text": "Once installed, go ... |
SWING - GridBagLayout Class | The class GridBagLayout arranges the components in a horizontal and vertical manner.
Following is the declaration for java.awt.GridBagLayout class −
public class GridBagLayout
extends Object
implements LayoutManager2, Serializable
Following are the fields for java.awt.GridBagLayout class −
static int DEFAULT_... | [
{
"code": null,
"e": 1848,
"s": 1763,
"text": "The class GridBagLayout arranges the components in a horizontal and vertical manner."
},
{
"code": null,
"e": 1912,
"s": 1848,
"text": "Following is the declaration for java.awt.GridBagLayout class −"
},
{
"code": null,
"... |
Orthogonal Array Testing | Orthogonal array testing is a systematic and statistical way of a black box testing technique used when number of inputs to the application under test is small but too complex for an exhaustive testing.
OAT, is a systematic and statistical approach to pairwise interactions.
OAT, is a systematic and statistical approach... | [
{
"code": null,
"e": 5948,
"s": 5745,
"text": "Orthogonal array testing is a systematic and statistical way of a black box testing technique used when number of inputs to the application under test is small but too complex for an exhaustive testing."
},
{
"code": null,
"e": 6020,
"s"... |
Program for n’th node from the end of a Linked List in C program | Given with n nodes the task is to print the nth node from the end of a linked list. The program must not change the order of nodes in a list instead it should only print the nth node from the last of a linked list.
Input -: 10 20 30 40 50 60
N=3
Output -: 40
In the above example, starting from first node the nodes t... | [
{
"code": null,
"e": 1277,
"s": 1062,
"text": "Given with n nodes the task is to print the nth node from the end of a linked list. The program must not change the order of nodes in a list instead it should only print the nth node from the last of a linked list."
},
{
"code": null,
"e": 1... |
How to display MySQL Table Name with columns? | You can use INFORMATION_SCHEMA.COLUMNS table to display MySQL table name with columns. The syntax is as follows −
SELECT DISTINCT TABLE_NAME,Column_Name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'yourDatabaseName';
Here, we have a database with the name ‘sample’ with tables. The query is as follows to displa... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "You can use INFORMATION_SCHEMA.COLUMNS table to display MySQL table name with columns. The syntax is as follows −"
},
{
"code": null,
"e": 1288,
"s": 1176,
"text": "SELECT DISTINCT TABLE_NAME,Column_Name\nFROM INFORMATION_SCHEMA.COLU... |
Bitwise operations on Subarrays of size K - GeeksforGeeks | 15 Jun, 2021
Given an array arr[] of positive integers and a number K, the task is to find the minimum and maximum values of Bitwise operation on elements of subarray of size K.
Examples:
Input: arr[]={2, 5, 3, 6, 11, 13}, k = 3 Output: Maximum AND = 2 Minimum AND = 0 Maximum OR = 15 Minimum OR = 7 Explanation: Maximum... | [
{
"code": null,
"e": 24535,
"s": 24507,
"text": "\n15 Jun, 2021"
},
{
"code": null,
"e": 24700,
"s": 24535,
"text": "Given an array arr[] of positive integers and a number K, the task is to find the minimum and maximum values of Bitwise operation on elements of subarray of size K... |
JFreeChart - Bubble Chart | This chapter demonstrates how you can use JFreeChart to create Bubble Chart from a given set of business data. A bubble chart displays information in three-dimensional way. A bubble is plotted at the place where (x, y) coordinate intersect. The size of the bubble is considered as range or quantity of X and Y axis.
Let ... | [
{
"code": null,
"e": 2257,
"s": 1941,
"text": "This chapter demonstrates how you can use JFreeChart to create Bubble Chart from a given set of business data. A bubble chart displays information in three-dimensional way. A bubble is plotted at the place where (x, y) coordinate intersect. The size of ... |
Coin Change | Practice | GeeksforGeeks | Given a value N, find the number of ways to make change for N cents, if we have infinite supply of each of S = { S1, S2, .. , SM } valued coins.
Example 1:
Input:
n = 4 , m = 3
S[] = {1,2,3}
Output: 4
Explanation: Four Possible ways are:
{1,1,1,1},{1,1,2},{2,2},{1,3}.
Example 2:
Input:
n = 10 , m = 4
S[] ={2,5,3,6}
... | [
{
"code": null,
"e": 384,
"s": 238,
"text": "Given a value N, find the number of ways to make change for N cents, if we have infinite supply of each of S = { S1, S2, .. , SM } valued coins. "
},
{
"code": null,
"e": 396,
"s": 384,
"text": "\nExample 1:"
},
{
"code": null,... |
Last digit of sum of numbers in the given range in the Fibonacci series - GeeksforGeeks | 12 Nov, 2021
Given two non-negative integers M, N which signifies the range [M, N] where M ≤ N, the task is to find the last digit of the sum of FM + FM+1... + FN where FK is the Kth Fibonacci number in the Fibonacci series.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
Examples:
Input: M = 3, N = 9 Output: 6... | [
{
"code": null,
"e": 24327,
"s": 24299,
"text": "\n12 Nov, 2021"
},
{
"code": null,
"e": 24541,
"s": 24327,
"text": "Given two non-negative integers M, N which signifies the range [M, N] where M ≤ N, the task is to find the last digit of the sum of FM + FM+1... + FN where FK is t... |
VueJS - Rendering | In this chapter, we will learn about conditional rendering and list rendering. In conditional rendering, we will discuss about using if, if-else, if-else-if, show, etc. In list rendering, we will discuss how to use for loop.
Let’s get started and work on a example first to explain the details for conditional rendering.... | [
{
"code": null,
"e": 2161,
"s": 1936,
"text": "In this chapter, we will learn about conditional rendering and list rendering. In conditional rendering, we will discuss about using if, if-else, if-else-if, show, etc. In list rendering, we will discuss how to use for loop."
},
{
"code": null,
... |
How to concatenate two strings in C#? | To concatenate two strings, use the String.Concat method.
Let’s say you want to concatenate two strings in C#, str1 and str2, then add it as arguments in the Concat method −
string str3 = string.Concat(str1, str2);
The following is the example −
Live Demo
using System;
class Program {
static void Main() {
s... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "To concatenate two strings, use the String.Concat method."
},
{
"code": null,
"e": 1236,
"s": 1120,
"text": "Let’s say you want to concatenate two strings in C#, str1 and str2, then add it as arguments in the Concat method −"
},
... |
Can interfaces have constructors in Java? | No, interfaces can’t have constructors for the following reasons −
All the members of an interface are abstract, and since a constructor cannot be abstract.
Still, if you try to write a constructor within an interface it will generate a compile time error.
public interface InterfaceTest {
InterfaceTest(){
}
pu... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "No, interfaces can’t have constructors for the following reasons −"
},
{
"code": null,
"e": 1219,
"s": 1129,
"text": "All the members of an interface are abstract, and since a constructor cannot be abstract."
},
{
"code": nul... |
Change grid interval and specify tick labels in Matplotlib | Using plt.figure() method, we can create a figure and thereafter, we can create an axis. Using set_xticks and set_yticks, we can change the ticks format and ax.grid could help to specify the grid interval.
Create a new figure, or activate an existing figure, using fig = plt.figure() method.
Create a new figure, or acti... | [
{
"code": null,
"e": 1268,
"s": 1062,
"text": "Using plt.figure() method, we can create a figure and thereafter, we can create an axis. Using set_xticks and set_yticks, we can change the ticks format and ax.grid could help to specify the grid interval."
},
{
"code": null,
"e": 1354,
... |
How to access nested data in Python | by Jacob Toftgaard Rasmussen | Towards Data Science | In this short guide you will learn how you can access data that is deeply nested in python’s lists and dictionary data structures.
You might have met the following errors while working with JSON data:
KeyError: 0TypeError: list indices must be integers or slices, not str
If that is the case then this guide is for you, ... | [
{
"code": null,
"e": 302,
"s": 171,
"text": "In this short guide you will learn how you can access data that is deeply nested in python’s lists and dictionary data structures."
},
{
"code": null,
"e": 372,
"s": 302,
"text": "You might have met the following errors while working w... |
PHP: Remove object from array | The unset function can be used to remove array object from a specific index in PHP −
Live Demo
$index = 2;
$objectarray = array(
0 => array('label' => 'abc', 'value' => 'n23'),
1 => array('label' => 'def', 'value' => '2n13'),
2 => array('label' => 'abcdef', 'value' => 'n214'),
3 => array('label' => 'defabc... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "The unset function can be used to remove array object from a specific index in PHP −"
},
{
"code": null,
"e": 1158,
"s": 1147,
"text": " Live Demo"
},
{
"code": null,
"e": 1566,
"s": 1158,
"text": "$index = 2;\n$o... |
Metasploit - Import Data | Metasploit is a powerful security framework which allows you to import scan results from other third-party tools. You can import NMAP scan results in XML format that you might have created earlier. Metasploit also allows you to import scan results from Nessus, which is a vulnerability scanner.
Let’s see how it works. A... | [
{
"code": null,
"e": 2466,
"s": 2171,
"text": "Metasploit is a powerful security framework which allows you to import scan results from other third-party tools. You can import NMAP scan results in XML format that you might have created earlier. Metasploit also allows you to import scan results from ... |
How To Clone Tables in SQL. Learn how to create a clone of your... | by Oyetoke Tobi Emmanuel | Towards Data Science | In database operations, there may be a time when you need to clone or duplicate an existing table to a new table due to their similarities in columns and attributes either for performing a test without affecting the original table or other personal reasons.
I bumped in this situation whereby I need to create a new set ... | [
{
"code": null,
"e": 430,
"s": 172,
"text": "In database operations, there may be a time when you need to clone or duplicate an existing table to a new table due to their similarities in columns and attributes either for performing a test without affecting the original table or other personal reason... |
Text Justification in C++ | Suppose we have an array of words and a width maxWidth, we have to format the text such that each line has exactly maxWidth number of characters and is fully justified. We should pack our words in a greedy approach; so that is, pack as many words as we can in each line. We will pad extra spaces ' ' when necessary so th... | [
{
"code": null,
"e": 1428,
"s": 1062,
"text": "Suppose we have an array of words and a width maxWidth, we have to format the text such that each line has exactly maxWidth number of characters and is fully justified. We should pack our words in a greedy approach; so that is, pack as many words as we ... |
How to find the critical value of F for regression anova in R? | To find the critical value of F for regression anova in R, we can follow the below steps −
First of all, create a data frame.
Then, create the regression model.
After that, find the critical value of F statistic using qf function.
Let's create a data frame as shown below −
Live Demo
> x<-rpois(20,2)
> y<-rpois(20,5)
>... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "To find the critical value of F for regression anova in R, we can follow the below steps −"
},
{
"code": null,
"e": 1188,
"s": 1153,
"text": "First of all, create a data frame."
},
{
"code": null,
"e": 1223,
"s": 1188... |
What is a Pytest framework? | Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be
known.
Pytest can be used for creating and executing test cases. It can be used in a wide ... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be\nknown."
},
{
"... |
How to Create GUID / UUID in JavaScript? | We can create GUID or UUID in JavaScript using the following methods −
To create or generate UUID or GUID in javascript use the following code with Math.Random() function
function createUUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0, v = c =... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "We can create GUID or UUID in JavaScript using the following methods −"
},
{
"code": null,
"e": 1233,
"s": 1133,
"text": "To create or generate UUID or GUID in javascript use the following code with Math.Random() function"
},
{
... |
WebDriver click() vs JavaScript click(). | We can click a link with the webdriver click and Javascript click. For the Selenium webdriver click of a link we can use link text and partial link text locator. We can use the methods driver.findElement(By.linkText()) and driver.findElement(By.partialLinkText()) to click.
The links in an html code are enclosed in an a... | [
{
"code": null,
"e": 1336,
"s": 1062,
"text": "We can click a link with the webdriver click and Javascript click. For the Selenium webdriver click of a link we can use link text and partial link text locator. We can use the methods driver.findElement(By.linkText()) and driver.findElement(By.partialL... |
Bayesian Ranking System. Thumbs up/down, stars, ranking with... | by R Andrew Cocks | Towards Data Science | Note: Assumes familiarity with the beta distribution covered earlier.
Beyond calculating lottery probabilities or disease likelihoods there are also other applications for Bayes theorem, for example we could build a ranking system. Let’s take a movie ranking website where users vote up/down on movies. Simple ranking sc... | [
{
"code": null,
"e": 241,
"s": 171,
"text": "Note: Assumes familiarity with the beta distribution covered earlier."
},
{
"code": null,
"e": 570,
"s": 241,
"text": "Beyond calculating lottery probabilities or disease likelihoods there are also other applications for Bayes theorem,... |
Jackson Annotations - @JsonFilter | @JsonFilter is used to apply filter during serialization/de-serialization like which properties are to be used or not.
import java.io.IOException;
import java.text.ParseException;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databi... | [
{
"code": null,
"e": 2594,
"s": 2475,
"text": "@JsonFilter is used to apply filter during serialization/de-serialization like which properties are to be used or not."
},
{
"code": null,
"e": 3751,
"s": 2594,
"text": "import java.io.IOException;\nimport java.text.ParseException;\n... |
Scraping and Exploring The SP500 with R Part 1 | by Bryant Crocker | Towards Data Science | Today I wanted to walk through a quick example combining scraping, calls to the Yahoo finance api, data joining and simple asset analysis using functional programming and tidy iteration concepts.
I would like to identify which SP500 assets had the highest average return over the last 3 months.
The making of this chart,... | [
{
"code": null,
"e": 367,
"s": 171,
"text": "Today I wanted to walk through a quick example combining scraping, calls to the Yahoo finance api, data joining and simple asset analysis using functional programming and tidy iteration concepts."
},
{
"code": null,
"e": 466,
"s": 367,
... |
Python Program for Program to find area of a circle - GeeksforGeeks | 12 Apr, 2022
Area of a circle can simply be evaluated using following formula.
Area = pi * r2
where r is radius of circle
Python3
# Python program to find Area of a circle def findArea(r): PI = 3.142 return PI * (r*r); # Driver methodprint("Area is %.6f" % findArea(5)); # This code is contributed by Chinm... | [
{
"code": null,
"e": 25070,
"s": 25042,
"text": "\n12 Apr, 2022"
},
{
"code": null,
"e": 25136,
"s": 25070,
"text": "Area of a circle can simply be evaluated using following formula."
},
{
"code": null,
"e": 25180,
"s": 25136,
"text": "Area = pi * r2\nwhere r ... |
How to Select Multiple Images from Gallery in Android? - GeeksforGeeks | 07 Mar, 2021
In the previous article, we have seen How to Select an Image from Gallery in Android but most of the time when we are posting a status on whatsapp or posting a post on facebook or instagram we select more than one images. So in this article, it’s been discussed step by step how to select one or more than o... | [
{
"code": null,
"e": 25133,
"s": 25105,
"text": "\n07 Mar, 2021"
},
{
"code": null,
"e": 25689,
"s": 25133,
"text": "In the previous article, we have seen How to Select an Image from Gallery in Android but most of the time when we are posting a status on whatsapp or posting a pos... |
A Novel Solution to Cleaning Extremely Dirty Unstructured text | by Timothy Tan | Towards Data Science | After two whole weeks of trial and error and almost thinking it was impossible...
I did it.
I’d managed to turn this:
“Thsi wass a dificult prbl em to resol ve”
Into this:
“This was a difficult problem to resolve”
I thought I’d seen it all after working with the likes of Singlish or even Tweets.
But never would I have ... | [
{
"code": null,
"e": 254,
"s": 172,
"text": "After two whole weeks of trial and error and almost thinking it was impossible..."
},
{
"code": null,
"e": 264,
"s": 254,
"text": "I did it."
},
{
"code": null,
"e": 290,
"s": 264,
"text": "I’d managed to turn this:... |
HTML - Attributes | We have seen few HTML tags and their usage like heading tags <h1>, <h2>, paragraph tag <p> and other tags. We used them so far in their simplest form, but most of the HTML tags can also have attributes, which are extra bits of information.
An attribute is used to define the characteristics of an HTML element and is pla... | [
{
"code": null,
"e": 2614,
"s": 2374,
"text": "We have seen few HTML tags and their usage like heading tags <h1>, <h2>, paragraph tag <p> and other tags. We used them so far in their simplest form, but most of the HTML tags can also have attributes, which are extra bits of information."
},
{
... |
CSS - list-style-type | The list-style-type property sets the counting (or bullet) style used in the marker for a list item.
Here are the values which can be used for an unordered list −
none
NA
disc (default)
A filled-in circle
circle
An empty circle
square
A filled-in square
Here are the values which can be used for an ordered list −
All th... | [
{
"code": null,
"e": 2727,
"s": 2626,
"text": "The list-style-type property sets the counting (or bullet) style used in the marker for a list item."
},
{
"code": null,
"e": 2789,
"s": 2727,
"text": "Here are the values which can be used for an unordered list −"
},
{
"code... |
SQL Query to Get a Financial Year Using a Given Date | 17 Jun, 2021
Here, we are going to Get a Financial Year Using a Given Date in SQL. In this article, we will be making use of the Microsoft SQL Server as our database.
For example, finding the Financial year for the give dates in the table. Here, we will first create a database named “geeks” then we will create a table... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 183,
"s": 28,
"text": "Here, we are going to Get a Financial Year Using a Given Date in SQL. In this article, we will be making use of the Microsoft SQL Server as our database."
},
{
"code"... |
Scraping weather data using Python to get umbrella reminder on email | 05 Oct, 2021
In this article, we are going to see how to scrape weather data using Python and get reminders on email. If the weather condition is rainy or cloudy this program will send you an “umbrella reminder” to your email reminding you to pack an umbrella before leaving the house. We will scrape the weather inform... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Oct, 2021"
},
{
"code": null,
"e": 424,
"s": 54,
"text": "In this article, we are going to see how to scrape weather data using Python and get reminders on email. If the weather condition is rainy or cloudy this program will send yo... |
Microsoft Azure – Graph Query to Get Properties of Azure VM Resource | 29 Dec, 2021
The following are the Azure Resource Graph Queries where we will be used to fetch the static JSON data using azure KQL Queries. You can run the below queries in Azure Resource Graph Explorer in Azure Portal to fetch the results based on Query.
Example 1:
To get the complete properties of Azure VMs –
resour... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2021"
},
{
"code": null,
"e": 272,
"s": 28,
"text": "The following are the Azure Resource Graph Queries where we will be used to fetch the static JSON data using azure KQL Queries. You can run the below queries in Azure Resource... |
Using predefined class name as Class or Variable name in Java | 31 Jan, 2019
In Java, Using predefined class name as Class or Variable name is allowed. However, According to Java Specification Language(§3.9) the basic rule for naming in Java is that you cannot use a keyword as name of a class, name of a variable nor the name of a folder used for package.Using any predefined class i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Jan, 2019"
},
{
"code": null,
"e": 445,
"s": 54,
"text": "In Java, Using predefined class name as Class or Variable name is allowed. However, According to Java Specification Language(§3.9) the basic rule for naming in Java is that y... |
Path getFileName() method in Java with Examples | 16 Jul, 2019
The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interface is java.nio.file.Path. A Java Path instance represents a path in the file system. A path can use to locate either a file or a directory.path... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jul, 2019"
},
{
"code": null,
"e": 581,
"s": 28,
"text": "The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interface is java.... |
What are the key features of Node.js ? | 31 Oct, 2021
Node.js is a cross-platform runtime environment that allows you to create server-side and networking applications. Node.js apps are written in JavaScript and run on OS X, Microsoft Windows, and Linux utilizing the Node.js runtime.
Node.js also comes with a large library of JavaScript modules, making it muc... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Oct, 2021"
},
{
"code": null,
"e": 259,
"s": 28,
"text": "Node.js is a cross-platform runtime environment that allows you to create server-side and networking applications. Node.js apps are written in JavaScript and run on OS X, Micr... |
PHP | number_format() Function | 03 Jul, 2018
The number_format() function is an inbuilt function in PHP which is used to format a number with grouped thousands. It returns the formatted number on success otherwise it gives E_WARNING on failure.
Syntax:
string number_format ( $number, $decimals, $decimalpoint, $sep )
Parameters: This function accepts ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jul, 2018"
},
{
"code": null,
"e": 228,
"s": 28,
"text": "The number_format() function is an inbuilt function in PHP which is used to format a number with grouped thousands. It returns the formatted number on success otherwise it giv... |
How does await and async works in ES6 ? | 07 Dec, 2021
In this article, we will try to understand how exactly async and await works in ES6. Let us first try to understand what exactly async and await are along with their usage and then further we will see some examples in which we would see how we may use async and await along with the normal functions.
Async ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Dec, 2021"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "In this article, we will try to understand how exactly async and await works in ES6. Let us first try to understand what exactly async and await are along with their usage and... |
Python – Draw Hexagon Using Turtle Graphics | 16 Oct, 2020
In this article, we will learn how to make a Hexagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics.
Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turt... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Oct, 2020"
},
{
"code": null,
"e": 164,
"s": 28,
"text": "In this article, we will learn how to make a Hexagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics."
},
{
"code": null,
"e": 44... |
Removing last element from ArrayList in Java | 26 Jan, 2020
Given an ArrayList collection in Java, the task is to remove the last element from the ArrayList.
Example:
Input: ArrayList[] = [10, 20, 30, 1, 2]
Output: [10, 20, 30, 1]
After removing the last element 2, the ArrayList is:
[10, 20, 30, 1]
Input: ArrayList[] = [1, 1, 2, 2, 3]
Output: [1, 1, 2, 2]
After re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jan, 2020"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "Given an ArrayList collection in Java, the task is to remove the last element from the ArrayList."
},
{
"code": null,
"e": 135,
"s": 126,
"text": "Example:... |
Scala Type Hierarchy | 01 Apr, 2019
There are no primitive types in Scala(unlike java). All data types in Scala are objects that have methods to operate on their data. All of Scala’s types exist as part of a type hierarchy.
Every class that we define in Scala will also belong to this hierarchy automatically.
Any is the superclass of all clas... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2019"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "There are no primitive types in Scala(unlike java). All data types in Scala are objects that have methods to operate on their data. All of Scala’s types exist as part of a typ... |
Flutter - Dialogs - GeeksforGeeks | 15 Feb, 2021
The dialog is a type of widget which comes on the window or the screen which contains any critical information or can ask for any decision. When a dialog box is popped up the all the other functions get disabled until you close the dialog box or provide an answer. We use a dialog box for a different type o... | [
{
"code": null,
"e": 25914,
"s": 25886,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 26407,
"s": 25914,
"text": "The dialog is a type of widget which comes on the window or the screen which contains any critical information or can ask for any decision. When a dialog box is po... |
How to draw a circle in R? | There is no direct function in R to draw a circle but we can make use of plotrix package for this purpose. The plotrix package has a function called draw.cirlce which is can be used to draw a circle but we first need to draw a plot in base R then pass the correct arguments in draw.circle. The first and second arguments... | [
{
"code": null,
"e": 1526,
"s": 1062,
"text": "There is no direct function in R to draw a circle but we can make use of plotrix package for this purpose. The plotrix package has a function called draw.cirlce which is can be used to draw a circle but we first need to draw a plot in base R then pass t... |
Installing OpenCV in PiZero W. Most of us have faced issue in... | by Atul Singh | Towards Data Science | Most of us have faced issue in installing openCV in Pi.In this blog I will tell you step by step installation of opencv in your pi-zero W.
While the Pi Zero isn’t quite fast enough for advanced video processing, it’s still a great tool that you can use to learn the basics of computer vision and OpenCV. I recomend you f... | [
{
"code": null,
"e": 310,
"s": 171,
"text": "Most of us have faced issue in installing openCV in Pi.In this blog I will tell you step by step installation of opencv in your pi-zero W."
},
{
"code": null,
"e": 585,
"s": 310,
"text": "While the Pi Zero isn’t quite fast enough for a... |
Delannoy Number - GeeksforGeeks | 06 May, 2021
In mathematics, a Delannoy number D describes the number of paths from the southwest corner (0, 0) of a rectangular grid to the northeast corner (m, n), using only single steps north, northeast, or east. For Example, D(3, 3) equals 63.Delannoy Number can be calculated by:
Delannoy number can be used to f... | [
{
"code": null,
"e": 24233,
"s": 24205,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 24508,
"s": 24233,
"text": "In mathematics, a Delannoy number D describes the number of paths from the southwest corner (0, 0) of a rectangular grid to the northeast corner (m, n), using only... |
Types of Gradients in CSS | Gradients display the combination of two or more colors.
The following are the types of gradients:
Linear Gradients(down/up/left/right/diagonally)
Radial Gradients
Let us see an example of radial gradients:
Live Demo
<html>
<head>
<style>
#grad1 {
height: 100px;
width: 550px;
... | [
{
"code": null,
"e": 1119,
"s": 1062,
"text": "Gradients display the combination of two or more colors."
},
{
"code": null,
"e": 1161,
"s": 1119,
"text": "The following are the types of gradients:"
},
{
"code": null,
"e": 1209,
"s": 1161,
"text": "Linear Gradi... |
Difference between NumPy.dot() and '*' operation in Python - GeeksforGeeks | 09 Jul, 2021
In Python if we have two numpy arrays which are often referred as a vector. The ‘*’ operator and numpy.dot() work differently on them. It’s important to know especially when you are dealing with data science or competitive programming problem.
‘*’ operation caries out element-wise multiplication on array ... | [
{
"code": null,
"e": 24594,
"s": 24566,
"text": "\n09 Jul, 2021"
},
{
"code": null,
"e": 24839,
"s": 24594,
"text": "In Python if we have two numpy arrays which are often referred as a vector. The ‘*’ operator and numpy.dot() work differently on them. It’s important to know espec... |
VBScript - Regular Expressions | Regular Expressions is a sequence of characters that forms a pattern, which is mainly used for search and replace. The purpose of creating a pattern is to match specific strings, so that the developer can extract characters based on conditions and replace certain characters.
RegExp object helps the developers to match ... | [
{
"code": null,
"e": 2356,
"s": 2080,
"text": "Regular Expressions is a sequence of characters that forms a pattern, which is mainly used for search and replace. The purpose of creating a pattern is to match specific strings, so that the developer can extract characters based on conditions and repla... |
How to use the Text Watcher class in Android? | This example demonstrates how do I use the Text watcher class in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayo... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "This example demonstrates how do I use the Text watcher class in android."
},
{
"code": null,
"e": 1265,
"s": 1136,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c... |
Kernel Regression in Python. How to do Kernel regression by hand in... | by Pawan Nandakishore | Towards Data Science | 1 Kernal Regression by Statsmodels
1.1 Generating Fake Data
1.2 Output of Kernal Regression
2 Kernel regression by Hand in Python
2.0.1 Step 1: Calculate the Kernel for a single input x point
2.0.2 Visualizing the Kernels for all the input x points
2.0.3 Step 2: Calculate the weights for each input x value
2.0.4 Step 3... | [
{
"code": null,
"e": 207,
"s": 172,
"text": "1 Kernal Regression by Statsmodels"
},
{
"code": null,
"e": 232,
"s": 207,
"text": "1.1 Generating Fake Data"
},
{
"code": null,
"e": 264,
"s": 232,
"text": "1.2 Output of Kernal Regression"
},
{
"code": nul... |
apt-get command in Linux with Examples - GeeksforGeeks | 04 Apr, 2019
apt-get is a command-line tool which helps in handling packages in Linux. Its main task is to retrieve the information and packages from the authenticated sources for installation, upgrade and removal of packages along with their dependencies. Here APT stands for the Advanced Packaging Tool.
Syntax:
apt-ge... | [
{
"code": null,
"e": 24566,
"s": 24538,
"text": "\n04 Apr, 2019"
},
{
"code": null,
"e": 24859,
"s": 24566,
"text": "apt-get is a command-line tool which helps in handling packages in Linux. Its main task is to retrieve the information and packages from the authenticated sources ... |
A Complete Pandas Glossary for Data Science | by Terence Shin | Towards Data Science | Like most others, I tried to learn Pandas through boot camps — unfortunately, the problem with boot camps is that you forget everything pretty quickly if you don’t practice what you learn!
At the same time, I found that there was a need for a central Pandas resource that I could refer to when working on personal data s... | [
{
"code": null,
"e": 360,
"s": 171,
"text": "Like most others, I tried to learn Pandas through boot camps — unfortunately, the problem with boot camps is that you forget everything pretty quickly if you don’t practice what you learn!"
},
{
"code": null,
"e": 605,
"s": 360,
"text"... |
GATE | GATE-CS-2015 (Set 1) | Question 64 - GeeksforGeeks | 17 Sep, 2021
The least number of temporary variables required to create a three-address code in static single assignment form for the expression q + r/3 + s – t * 5 + u * v/w is(A) 4(B) 8(C) 7(D) 9Answer: (B)Explanation:
The correct answer is 8. This question was asked as a fill in the blank type question in the exam.
... | [
{
"code": null,
"e": 24346,
"s": 24318,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 24554,
"s": 24346,
"text": "The least number of temporary variables required to create a three-address code in static single assignment form for the expression q + r/3 + s – t * 5 + u * v/w i... |
9 Cool Julia Tricks In 4 Minutes. The Best features of the Julia REPL | by DJ Passey | Towards Data Science | Julia is a new scientific computing language that is as easy to learn as Python, but executes as fast as C. Julia is a compiled language but since it uses a just in time compiler, (like Java), your code can be executed immediately. This feature is put to use in the Julia REPL where you can run lines or blocks of code. ... | [
{
"code": null,
"e": 536,
"s": 172,
"text": "Julia is a new scientific computing language that is as easy to learn as Python, but executes as fast as C. Julia is a compiled language but since it uses a just in time compiler, (like Java), your code can be executed immediately. This feature is put to ... |
Get the list of all declared fields in Java | The list of all declared fields can be obtained using the java.lang.Class.getDeclaredFields() method as it returns an array of field objects. These field objects include the objects with the public, private, protected and default access but not the inherited fields.
Also, the getDeclaredFields() method returns a zero l... | [
{
"code": null,
"e": 1329,
"s": 1062,
"text": "The list of all declared fields can be obtained using the java.lang.Class.getDeclaredFields() method as it returns an array of field objects. These field objects include the objects with the public, private, protected and default access but not the inhe... |
7 Ways to Handle Missing Values in Machine Learning | by Satyam Kumar | Towards Data Science | The real-world data often has a lot of missing values. The cause of missing values can be data corruption or failure to record data. The handling of missing data is very important during the preprocessing of the dataset as many machine learning algorithms do not support missing values.
This article covers 7 ways to han... | [
{
"code": null,
"e": 459,
"s": 172,
"text": "The real-world data often has a lot of missing values. The cause of missing values can be data corruption or failure to record data. The handling of missing data is very important during the preprocessing of the dataset as many machine learning algorithms... |
12 Colab Notebooks that matter. StyleGAN, GPT-2, StyleTransfer... | by Merzmensch | Towards Data Science | It took at least two AI Winters to survive. The story is obvious: theoretically, Artificial Intelligence as a concept was already here. Neuronal Networks (as a concept: 1943 — McCulloch&Pitts /functional: 1965 — Ivakhnenko/Lapa), Machine learning (Samuel, 1959), Backpropagation (Werbos — 1975), just to name some of the... | [
{
"code": null,
"e": 581,
"s": 171,
"text": "It took at least two AI Winters to survive. The story is obvious: theoretically, Artificial Intelligence as a concept was already here. Neuronal Networks (as a concept: 1943 — McCulloch&Pitts /functional: 1965 — Ivakhnenko/Lapa), Machine learning (Samuel,... |
Making http request in React.js | In a typical web application, client makes a http request through browser and server sends html page in the response with data.
But in a single page application (SPA), we have only one page and whenever client makes http request to server it generally responses with a json/xml formatted data.
For making http request we... | [
{
"code": null,
"e": 1190,
"s": 1062,
"text": "In a typical web application, client makes a http request through browser and server sends html page in the response with data."
},
{
"code": null,
"e": 1356,
"s": 1190,
"text": "But in a single page application (SPA), we have only o... |
Print all k-sum paths in a binary tree | 07 Jul, 2022
A binary tree and a number k are given. Print every path in the tree with sum of the nodes in the path as k. A path can start from any node and end at any node and must be downward only, i.e. they need not be root node and leaf node; and negative numbers can also be there in the tree.
Examples:
Input : k ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 338,
"s": 52,
"text": "A binary tree and a number k are given. Print every path in the tree with sum of the nodes in the path as k. A path can start from any node and end at any node and must be do... |
MySQL | Regular expressions (Regexp) | 11 Oct, 2019
MySQL supports another type of pattern matching operation based on the regular expressions and the REGEXP operator.
It provide a powerful and flexible pattern match that can help us implement power search utilities for our database systems.REGEXP is the operator used when performing regular expression patt... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Oct, 2019"
},
{
"code": null,
"e": 170,
"s": 54,
"text": "MySQL supports another type of pattern matching operation based on the regular expressions and the REGEXP operator."
},
{
"code": null,
"e": 653,
"s": 170,
... |
ReactJS Fragments | 04 Feb, 2021
We know that we make use of the render method inside a component whenever we want to render something to the screen. We may render a single element or multiple elements, though rendering multiple elements will require a ‘div’ tag around the content as the render method will only render a single root node i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 381,
"s": 52,
"text": "We know that we make use of the render method inside a component whenever we want to render something to the screen. We may render a single element or multiple elements, thou... |
p5.js | createButton() Function | 11 Jul, 2019
The createButton() function is used to create a button element in the DOM (Document Object Model). The .size() function is used to set the size of button element. The .mousePressed() function is used to specify the behavior of mouse button when pressing it.Note: This function requires the p5.dom library. S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jul, 2019"
},
{
"code": null,
"e": 404,
"s": 28,
"text": "The createButton() function is used to create a button element in the DOM (Document Object Model). The .size() function is used to set the size of button element. The .mousePr... |
Java Program to Get Today’s Date | 06 Jun, 2021
Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount of features. Here we are going to discuss one of the best features of Java, which is how to get today’s or current date using Java.
Methods:
The... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 323,
"s": 28,
"text": "Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount of features.... |
Page Rank Algorithm and Implementation | 06 Nov, 2021
PageRank (PR) is an algorithm used by Google Search to rank websites in their search engine results. PageRank was named after Larry Page, one of the founders of Google. PageRank is a way of measuring the importance of website pages. According to Google:
PageRank works by counting the number and quality of ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Nov, 2021"
},
{
"code": null,
"e": 306,
"s": 52,
"text": "PageRank (PR) is an algorithm used by Google Search to rank websites in their search engine results. PageRank was named after Larry Page, one of the founders of Google. PageR... |
How to read/write data from/to .properties file in Java? | The .properties is an extension in java which is used to store configurable application. It is represented by the Properties class in Java, you can store a properties file and read from it using the methods of this class. This class inherits the HashTable class.
Creating a .properties file −
To create a properties file... | [
{
"code": null,
"e": 1450,
"s": 1187,
"text": "The .properties is an extension in java which is used to store configurable application. It is represented by the Properties class in Java, you can store a properties file and read from it using the methods of this class. This class inherits the HashTab... |
ReactJS – bind() method | In this article, we are going to see how to pass arguments to a function in a React application
React has a predefined bind() method which we can use to pass the arguments to a function in the class based components.
this.func.bind(this,[args...])
It accepts two parameters, this keyword and the arguments. 'this' keywor... | [
{
"code": null,
"e": 1283,
"s": 1187,
"text": "In this article, we are going to see how to pass arguments to a function in a React application"
},
{
"code": null,
"e": 1404,
"s": 1283,
"text": "React has a predefined bind() method which we can use to pass the arguments to a funct... |
open Keyword in Kotlin - GeeksforGeeks | 10 Nov, 2021
Keywords are some predefined or specific reserved words in programming languages each of which has a specific feature associated with it. Almost all of the words which help us use the functionality of the programming languages are included in the list of keywords. So you can imagine that the list of keywor... | [
{
"code": null,
"e": 24544,
"s": 24516,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 25616,
"s": 24544,
"text": "Keywords are some predefined or specific reserved words in programming languages each of which has a specific feature associated with it. Almost all of the words w... |
CSS - Margins | The margin property defines the space around an HTML element. It is possible to use negative values to overlap content.
The values of the margin property are not inherited by the child elements. Remember that the adjacent vertical margins (top and bottom margins) will collapse into each other so that the distance betwe... | [
{
"code": null,
"e": 2746,
"s": 2626,
"text": "The margin property defines the space around an HTML element. It is possible to use negative values to overlap content."
},
{
"code": null,
"e": 3081,
"s": 2746,
"text": "The values of the margin property are not inherited by the chi... |
How to delete a temporary file in Java? | The class named File of the java.io package represents a file or directory (path names) in the system. This class provides various methods to perform various operations on files/directories.
In certain scenarios such as unit testing, or for some application logics you might need to create temporary files.
The File clas... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "The class named File of the java.io package represents a file or directory (path names) in the system. This class provides various methods to perform various operations on files/directories."
},
{
"code": null,
"e": 1369,
"s": 1253,
... |
Matplotlib.ticker.AutoLocator Class in Python - GeeksforGeeks | 07 Oct, 2021
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
The matplotlib.ticker.AutoLocator class is a subclass of matplotlib.ticker.MaxNLocator, and ha... | [
{
"code": null,
"e": 24528,
"s": 24500,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 24741,
"s": 24528,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an... |
How to sort one-dimensional array in ascending order using non-static method? | Set the unsorted array first.
int[] list = {87, 45, 56, 22, 84, 65};
Now use a nested for loop to sort the list, which is passed to a function.
for(int i=0; i< arr.Length; i++) {
for(int j=i+1; j<arr.Length; j++) {
if(arr[i]>=arr[j]) {
temp=arr[j];
arr[j]=arr[i];
arr[i]=temp;
}... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Set the unsorted array first."
},
{
"code": null,
"e": 1131,
"s": 1092,
"text": "int[] list = {87, 45, 56, 22, 84, 65};"
},
{
"code": null,
"e": 1206,
"s": 1131,
"text": "Now use a nested for loop to sort the list... |
How to execute a cube of numbers of a given array in JavaScript? | To find the cubes of elements of given array we need to run a for loop to access each and every element and we need to use "=" operator to replace elements with their cubes.To get the desired values the below steps need to be followed.
1) Declared an array a = [1,2,3,4,5]
2) For loop was introduced to access each and e... | [
{
"code": null,
"e": 1298,
"s": 1062,
"text": "To find the cubes of elements of given array we need to run a for loop to access each and every element and we need to use \"=\" operator to replace elements with their cubes.To get the desired values the below steps need to be followed."
},
{
"... |
clone() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
10 Tricks for Converting Numbers and Strings to Datetime in Pandas | by B. Chen | Towards Data Science | When doing data analysis, it is important to ensure correct data types. Otherwise, you may get unexpected results or errors. Datetime is a common data type in data science projects and the data is often saved as numbers or strings. During data analysis, you will likely need to explicitly convert them to a datetime type... | [
{
"code": null,
"e": 494,
"s": 172,
"text": "When doing data analysis, it is important to ensure correct data types. Otherwise, you may get unexpected results or errors. Datetime is a common data type in data science projects and the data is often saved as numbers or strings. During data analysis, y... |
Algorithm to get the combinations of all items in array JavaScript | We are required to write a JavaScript function that takes in an array of string literals. The function should generate and return all possible combinations of the strings in the array.
For example −
If the input array is −
const arr = ['a', 'b', 'c', 'd'];
Then the output should be −
const output = ["a", "ab", "abc", "... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of string literals. The function should generate and return all possible combinations of the strings in the array."
},
{
"code": null,
"e": 1261,
"s": 1247,
"text"... |
Array Copy in C# | Use the array. copy method in C# to copy a section of one array to another.
Our original array has 10 elements −
int [] n = new int[10]; /* n is an array of 10 integers */
Our new array that would copy a section of array 1 has 5 elements −
int [] m = new int[5]; /* m is an array of 5 integers */
The array.copy() method... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "Use the array. copy method in C# to copy a section of one array to another."
},
{
"code": null,
"e": 1175,
"s": 1138,
"text": "Our original array has 10 elements −"
},
{
"code": null,
"e": 1234,
"s": 1175,
"text":... |
How to Build a Roman Numeral Convertor in Android Studio? - GeeksforGeeks | 08 Feb, 2022
Roman Numeral converter is an app through which we can convert a decimal number to its corresponding roman number or a roman number to its corresponding decimal number in the range of 1 to 3999. The user will enter a decimal number and on clicking the convert to roman numeral button, the entered number wil... | [
{
"code": null,
"e": 25116,
"s": 25088,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 25705,
"s": 25116,
"text": "Roman Numeral converter is an app through which we can convert a decimal number to its corresponding roman number or a roman number to its corresponding decimal nu... |
Adding labels to points plotted on world map in R - GeeksforGeeks | 17 Jun, 2021
In this article, we are going to see how to add labels to points plotted on the world map in R Programming Language.
Maps: The “maps” package in R is used to draw and display geographical maps. It contains various databases for denoting countries, continents and seas. The package can be installed and load... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 24969,
"s": 24851,
"text": "In this article, we are going to see how to add labels to points plotted on the world map in R Programming Language. "
},
{
"code": null,
"e": 25215,
... |
Power BI Functions — (List.MaxN, R-slice_max, TOPN) | by Peter Hui | Towards Data Science | Top N by groups. I personally think it’s a very underrated way of exploring data. It’s like a saw, you just want to saw off the first few rows of a data set for analysis. I’m sure you have had to group summaries before, but you can also do some cool EDA with it using Power BI.
If you are able to group the data you have... | [
{
"code": null,
"e": 325,
"s": 47,
"text": "Top N by groups. I personally think it’s a very underrated way of exploring data. It’s like a saw, you just want to saw off the first few rows of a data set for analysis. I’m sure you have had to group summaries before, but you can also do some cool EDA wi... |
TestNG - Exception Test | TestNG provides an option of tracing the exception handling of code. You can test whether a code throws a desired exception or not. Here the expectedExceptions parameter is used along with the @Test annotation. Now, let's see @Test(expectedExceptions) in action.
Create a java class to be tested, say, MessageUtil.java i... | [
{
"code": null,
"e": 2323,
"s": 2060,
"text": "TestNG provides an option of tracing the exception handling of code. You can test whether a code throws a desired exception or not. Here the expectedExceptions parameter is used along with the @Test annotation. Now, let's see @Test(expectedExceptions) i... |
Ruby on Rails - Installation | To develop a web application using Ruby on Rails Framework, you need to install the following software −
Ruby
The Rails Framework
A Web Server
A Database System
We assume that you already have installed a Web Server and a Database System on your computer. You can use the WEBrick Web Server, which comes with Ruby. Most ... | [
{
"code": null,
"e": 2208,
"s": 2103,
"text": "To develop a web application using Ruby on Rails Framework, you need to install the following software −"
},
{
"code": null,
"e": 2213,
"s": 2208,
"text": "Ruby"
},
{
"code": null,
"e": 2233,
"s": 2213,
"text": "T... |
How to use Unicode and Special Characters in Tkinter? | Sometimes we need to add unicode and special charset in our Tkinter application. We can add unicode characters in our labels or widgets concatenating the signature as, u ‘/<Unicode of Character>’. You can find the list of all unicode characters from here
In this example, we will add a unicode character in the button wi... | [
{
"code": null,
"e": 1317,
"s": 1062,
"text": "Sometimes we need to add unicode and special charset in our Tkinter application. We can add unicode characters in our labels or widgets concatenating the signature as, u ‘/<Unicode of Character>’. You can find the list of all unicode characters from her... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.