title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
VBA - Join Function | A Function, which returns a string that contains a specified number of substrings in an array. This is an exact opposite function of Split Method.
Join(List[,delimiter])
List − A required parameter. An array that contains the substrings that are to be joined.
List − A required parameter. An array that contains the su... | [
{
"code": null,
"e": 2082,
"s": 1935,
"text": "A Function, which returns a string that contains a specified number of substrings in an array. This is an exact opposite function of Split Method."
},
{
"code": null,
"e": 2107,
"s": 2082,
"text": "Join(List[,delimiter]) \n"
},
{... |
AWT TextField Class | The textField component allows the user to edit single line of text.When the user types a key in the text field the event is sent to the TextField. The key event may be key pressed, Key released or key typed. The key event is passed to the registered KeyListener. It is also possible to for an ActionEvent if the Action... | [
{
"code": null,
"e": 2159,
"s": 1747,
"text": "The textField component allows the user to edit single line of text.When the user types a key in the text field the event is sent to the TextField. The key event may be key pressed, Key released or key typed. The key event is passed to the registered K... |
Java break Keyword | ❮ Java Keywords
End the loop when i is equal to 4:
for (int i = 0; i < 10; i++) {
if (i == 4) {
break;
}
System.out.println(i);
}
Try it Yourself »
The break keyword is used to break out a
for loop, a while
loop or a switch block.
Break out of a while loop:
int i = 0;while (i < 10) {
System.out.println... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 53,
"s": 18,
"text": "End the loop when i is equal to 4:"
},
{
"code": null,
"e": 143,
"s": 53,
"text": "for (int i = 0; i < 10; i++) {\n if (i == 4) {\n break;\n }\n ... |
How to create histogram with relative frequency in R? | The relative frequency histogram can be created for the column of an R data frame or a vector that contains discrete data. For this purpose, we can use PlotRelativeFrequency function of HistogramTools package along with hist function to generate histogram. For example, if we have a vector x for which we want to create ... | [
{
"code": null,
"e": 1475,
"s": 1062,
"text": "The relative frequency histogram can be created for the column of an R data frame or a vector that contains discrete data. For this purpose, we can use PlotRelativeFrequency function of HistogramTools package along with hist function to generate histogr... |
Second most repeated word in a sequence - GeeksforGeeks | 04 Apr, 2022
Given a sequence of strings, the task is to find out the second most repeated (or frequent) string in the given sequence.(Considering no two words are the second most repeated, there will be always a single word).
Examples:
Input : {"aaa", "bbb", "ccc", "bbb",
"aaa", "aaa"}
Output : bbb
Input :... | [
{
"code": null,
"e": 24765,
"s": 24737,
"text": "\n04 Apr, 2022"
},
{
"code": null,
"e": 24979,
"s": 24765,
"text": "Given a sequence of strings, the task is to find out the second most repeated (or frequent) string in the given sequence.(Considering no two words are the second m... |
How to change the local user account password using PowerShell? | To change the local user account password using PowerShell, we can use the Set-LocalUser command with the Password parameter. This password parameter should be in the secure string. So we need to ask the user to input the password as a secure string or need to explicitly convert the plain text password to the secure st... | [
{
"code": null,
"e": 1401,
"s": 1062,
"text": "To change the local user account password using PowerShell, we can use the Set-LocalUser command with the Password parameter. This password parameter should be in the secure string. So we need to ask the user to input the password as a secure string or ... |
sort_heap function in C++ - GeeksforGeeks | 14 Aug, 2018
The sort_heap( ) is an STL algorithm which sorts a heap within the range specified by start and end. Sorts the elements in the heap range [start, end) into ascending order.
The second form allows you to specify a comparison function that determines when one element is less than another.Defined in header
It... | [
{
"code": null,
"e": 24124,
"s": 24096,
"text": "\n14 Aug, 2018"
},
{
"code": null,
"e": 24297,
"s": 24124,
"text": "The sort_heap( ) is an STL algorithm which sorts a heap within the range specified by start and end. Sorts the elements in the heap range [start, end) into ascendi... |
Program to find sum of digits until it is one digit number in Python | Suppose we have a positive number n, we will add all of its digits to get a new number. Now
repeat this operation until it is less than 10.
So, if the input is like 9625, then the output will be 4.
To solve this, we will follow these steps −
Define a method solve(), this will take n
if n < 10, thenreturn n
return n
s :... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "Suppose we have a positive number n, we will add all of its digits to get a new number. Now\nrepeat this operation until it is less than 10."
},
{
"code": null,
"e": 1260,
"s": 1202,
"text": "So, if the input is like 9625, then the o... |
Draw an ellipse on an image using OpenCV | In this program, we will draw an ellipse on an image in using the OpenCV library. We will use the OpenCV function ellipse() for the same.
Step 1: Import cv2.
Step 2: Read the image using imread().
Step 3: Set the center coordinates.
Step 4: Set the axes length.
Step 5: Set the angle.
Step 6: Set start and end angle.
St... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "In this program, we will draw an ellipse on an image in using the OpenCV library. We will use the OpenCV function ellipse() for the same."
},
{
"code": null,
"e": 1580,
"s": 1200,
"text": "Step 1: Import cv2.\nStep 2: Read the image ... |
Online Code Practice - Tutorials Point | Support Class File
Util Class File
Extra Class File | [
{
"code": null,
"e": 29,
"s": 10,
"text": "Support Class File"
},
{
"code": null,
"e": 45,
"s": 29,
"text": "Util Class File"
}
] |
Dimensionality Reduction in Data Mining | by Uditha Maduranga | Towards Data Science | Big data is the large scale of data sets that have multi-level variables and that grow really fast. Volume is the most important aspect of big data. With the recent technological advancements happened in data processing and computer science field, the recent explosion of big data, in both number of records and attribut... | [
{
"code": null,
"e": 1152,
"s": 172,
"text": "Big data is the large scale of data sets that have multi-level variables and that grow really fast. Volume is the most important aspect of big data. With the recent technological advancements happened in data processing and computer science field, the re... |
Listing out directories and files in Python - GeeksforGeeks | 22 Oct, 2017
The following is a list of some of the important methods/functions in Python with descriptions that you should know to understand this article.
len() – It is used to count number of elements(items/characters) of iterables like list, tuple, string, dictionary etc.str() – It is used to transform data value(i... | [
{
"code": null,
"e": 23975,
"s": 23947,
"text": "\n22 Oct, 2017"
},
{
"code": null,
"e": 24119,
"s": 23975,
"text": "The following is a list of some of the important methods/functions in Python with descriptions that you should know to understand this article."
},
{
"code... |
C library function - signal() | The C library function void (*signal(int sig, void (*func)(int)))(int) sets a function to handle signal i.e. a signal handler with signal number sig.
Following is the declaration for signal() function.
void (*signal(int sig, void (*func)(int)))(int)
sig − This is the signal number to which a handling function is set. T... | [
{
"code": null,
"e": 2157,
"s": 2007,
"text": "The C library function void (*signal(int sig, void (*func)(int)))(int) sets a function to handle signal i.e. a signal handler with signal number sig."
},
{
"code": null,
"e": 2209,
"s": 2157,
"text": "Following is the declaration for... |
Merge and remove duplicates in JavaScript Array | Suppose, we have two arrays of literals like these −
const arr1 = [2, 4, 5, 3, 7, 8, 9];
const arr2 = [1, 4, 5, 2, 3, 7, 6];
We are required to write a JavaScript function that takes in two such arrays and returns a new
array with all the duplicates removed (should appear only once).
The code for this will be −
const a... | [
{
"code": null,
"e": 1115,
"s": 1062,
"text": "Suppose, we have two arrays of literals like these −"
},
{
"code": null,
"e": 1187,
"s": 1115,
"text": "const arr1 = [2, 4, 5, 3, 7, 8, 9];\nconst arr2 = [1, 4, 5, 2, 3, 7, 6];"
},
{
"code": null,
"e": 1347,
"s": 1187... |
Human Activity Recognition (HAR) Tutorial with Keras and Core ML (Part 1) | by Nils | Towards Data Science | Keras and Apple’s Core ML are a very powerful toolset if you want to quickly deploy a neural network on any iOS device. Most other tutorials focus on the popular MNIST data set for image recognition. We will go beyond this widely covered machine learning example. Instead, you will learn how to process time-sliced, mult... | [
{
"code": null,
"e": 518,
"s": 171,
"text": "Keras and Apple’s Core ML are a very powerful toolset if you want to quickly deploy a neural network on any iOS device. Most other tutorials focus on the popular MNIST data set for image recognition. We will go beyond this widely covered machine learning ... |
Bokeh, Bokehjs, and Observablehq. A venture out of Jupyter’s orbit | by Jeremy Teitelbaum | Towards Data Science | The Bokeh visualization library has become one of my favorite tools for displaying data while working with python in the jupyter notebook. Bokeh is powerful, easy to use, has accessible interactive features, and produces beautiful graphs. As I’ve worked with Bokeh over the past months, however, and learned a bit more a... | [
{
"code": null,
"e": 1162,
"s": 172,
"text": "The Bokeh visualization library has become one of my favorite tools for displaying data while working with python in the jupyter notebook. Bokeh is powerful, easy to use, has accessible interactive features, and produces beautiful graphs. As I’ve worked ... |
Primality Test | Set 1 (Introduction and School Method) - GeeksforGeeks | 17 Mar, 2021
Given a positive integer, check if the number is prime or not. A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples of first few prime numbers are {2, 3, 5, Examples :
Input: n = 11
Output: true
Input: n = 15
Output: false
Input: n = 1
Output: fa... | [
{
"code": null,
"e": 24770,
"s": 24742,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 24994,
"s": 24770,
"text": "Given a positive integer, check if the number is prime or not. A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself. Ex... |
Node.js path.format() Method - GeeksforGeeks | 08 Oct, 2021
The path.format() method is used to return a path string from the given path object. The method has some rules where one path property gets more priority over another:
The “root” parameter of the path object is ignored if the “dir” parameter is provided.
The “ext” and “name” parameter of the path object ar... | [
{
"code": null,
"e": 37256,
"s": 37228,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 37424,
"s": 37256,
"text": "The path.format() method is used to return a path string from the given path object. The method has some rules where one path property gets more priority over anot... |
Jupyter Best Practices That Will Save You A Lot of Headaches | by Brunna Torino | Towards Data Science | Having been working with Jupyter almost daily for the past three years, I have experienced serious undesired situations that took me back days, or even weeks in my project completion time. These are simple things that I have learned to do to prevent serious data loss, time loss, and project phase confusion.
If you have... | [
{
"code": null,
"e": 481,
"s": 172,
"text": "Having been working with Jupyter almost daily for the past three years, I have experienced serious undesired situations that took me back days, or even weeks in my project completion time. These are simple things that I have learned to do to prevent serio... |
Baconian Cipher - GeeksforGeeks | 21 May, 2018
Bacon’s cipher or the Baconian cipher is a method of steganography (a method of hiding a secret message as opposed to just a cipher) devised by Francis Bacon in 1605. A message is concealed in the presentation of text, rather than its content.The Baconian cipher is a substitution cipher in which each lette... | [
{
"code": null,
"e": 24640,
"s": 24612,
"text": "\n21 May, 2018"
},
{
"code": null,
"e": 25334,
"s": 24640,
"text": "Bacon’s cipher or the Baconian cipher is a method of steganography (a method of hiding a secret message as opposed to just a cipher) devised by Francis Bacon in 16... |
AWT List Class | The List represents a list of text items. The list can be configured that user can choose either one item or multiple items.
Following is the declaration for java.awt.List class:
public class List
extends Component
implements ItemSelectable, Accessible
List()
Creates a new scrolling list.
List(int rows)
Crea... | [
{
"code": null,
"e": 1872,
"s": 1747,
"text": "The List represents a list of text items. The list can be configured that user can choose either one item or multiple items."
},
{
"code": null,
"e": 1926,
"s": 1872,
"text": "Following is the declaration for java.awt.List class:"
... |
Inplace (Fixed space) M x N size matrix transpose | Updated - GeeksforGeeks | 15 Nov, 2021
About four months of gap (missing GFG), a new post. Given an M x N matrix, transpose the matrix without auxiliary memory.It is easy to transpose matrix using an auxiliary array. If the matrix is symmetric in size, we can transpose the matrix inplace by mirroring the 2D array across it’s diagonal (try yours... | [
{
"code": null,
"e": 24625,
"s": 24597,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 25017,
"s": 24625,
"text": "About four months of gap (missing GFG), a new post. Given an M x N matrix, transpose the matrix without auxiliary memory.It is easy to transpose matrix using an au... |
Tryit Editor v3.7 | Tryit: Border color with RGB values | [] |
Python and AWS SSM Parameter Store | by billydharmawan | Towards Data Science | In any application, it is very common to have some secrets, which our application needs to be able to provide its intended functionalities. It is forbidden to put those secrets in our project folder and commit them to the Github repo. It is a big NO, NO. 🙅♂
There are a few alternatives to store the secrets securely, ... | [
{
"code": null,
"e": 431,
"s": 172,
"text": "In any application, it is very common to have some secrets, which our application needs to be able to provide its intended functionalities. It is forbidden to put those secrets in our project folder and commit them to the Github repo. It is a big NO, NO. ... |
Python MySQL - GeeksforGeeks | 01 Feb, 2022
Python MySQL Connector is a Python driver that helps to integrate Python and MySQL. This Python MySQL library allows the conversion between Python and MySQL data types. MySQL Connector API is implemented using pure Python and does not require any third-party library.
This Python MySQL tutorial will help t... | [
{
"code": null,
"e": 41552,
"s": 41524,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 41821,
"s": 41552,
"text": "Python MySQL Connector is a Python driver that helps to integrate Python and MySQL. This Python MySQL library allows the conversion between Python and MySQL data t... |
Program to find sum of beauty of all substrings in Python | Suppose we have a string s. We have to find the sum of beauty of all of its substrings. The beauty of a string is actually the difference in frequencies between the most frequent and least frequent characters. So if the string is "abaacc", then its frequency is 3 - 1 = 2.
So, if the input is like s = "xxyzy", then the ... | [
{
"code": null,
"e": 1335,
"s": 1062,
"text": "Suppose we have a string s. We have to find the sum of beauty of all of its substrings. The beauty of a string is actually the difference in frequencies between the most frequent and least frequent characters. So if the string is \"abaacc\", then its fr... |
Geolocation getCurrentPosition() API | The getCurrentPosition method retrieves the current geographic location of the device. The location is expressed as a set of geographic coordinates together with information about heading and speed. The location information is returned in a Position object.
Here is the syntax of this method −
getCurrentPosition(showLo... | [
{
"code": null,
"e": 2866,
"s": 2608,
"text": "The getCurrentPosition method retrieves the current geographic location of the device. The location is expressed as a set of geographic coordinates together with information about heading and speed. The location information is returned in a Position obj... |
How to underline a Hyperlink on Hover using jQuery? | To underline a hyperlink on hover using jQuery, use the jQuery css() property. The color text-decoration property is used.
You can try to run the following code to learn how to underline a hyperlink on hover:
Live Demo
<html>
<head>
<title>jQuery Hyperlink Decoration</title>
<script src = "https://ajax... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "To underline a hyperlink on hover using jQuery, use the jQuery css() property. The color text-decoration property is used."
},
{
"code": null,
"e": 1272,
"s": 1186,
"text": "You can try to run the following code to learn how to unde... |
C Program to find LCM of two numbers using Recursion - GeeksforGeeks | 15 Dec, 2020
Given two integers N and M, the task is to find their LCM using recursion.
Examples:
Input: N = 2, M = 4Output: 4Explanation: LCM of 2, 4 is 4.
Input: N = 3, M = 5Output: 15Explanation: LCM of 3, 5 is 15.
Approach: The idea is to use the basic elementary method of finding LCM of two numbers. Follow the ste... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n15 Dec, 2020"
},
{
"code": null,
"e": 24376,
"s": 24301,
"text": "Given two integers N and M, the task is to find their LCM using recursion."
},
{
"code": null,
"e": 24386,
"s": 24376,
"text": "Examples:"
},... |
Polymorphism in C++ | The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.
C++ polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.
Consid... | [
{
"code": null,
"e": 2470,
"s": 2318,
"text": "The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance."
},
{
"code": null,
"e": 2632,
"s": 2470,
"text": "C++ polymorphism means that a ... |
How to Design a Reinforcement Learning Reward Function for a Lunar Lander 🛸 | by Alina Zhang | Towards Data Science | Imagine aliens 👽 attacked and you were trying to land a Lander🛸 on the Moon, what factors would you consider to complete the mission successfully?
Here are some considerations:
Touch down on the landing pad vs Move away from the landing pad
Land with a low velocity vs Crash at a high velocity
Use as little fuel as po... | [
{
"code": null,
"e": 319,
"s": 172,
"text": "Imagine aliens 👽 attacked and you were trying to land a Lander🛸 on the Moon, what factors would you consider to complete the mission successfully?"
},
{
"code": null,
"e": 349,
"s": 319,
"text": "Here are some considerations:"
},
... |
C Program for subtraction of matrices | Given two matrices MAT1[row][column] and MAT2[row][column] we have to find the difference between two matrices and print the result obtained after subtraction of two matrices. Subtraction of two matrices are MAT1[n][m] – MAT2[n][m].
For subtraction the number of rows and columns of both matrices should be same.
Input:
... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "Given two matrices MAT1[row][column] and MAT2[row][column] we have to find the difference between two matrices and print the result obtained after subtraction of two matrices. Subtraction of two matrices are MAT1[n][m] – MAT2[n][m]."
},
{
"code"... |
AWS DynamoDB - Update Data in a Table - GeeksforGeeks | 31 Mar, 2021
Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an item. While creating a table in DynamoDB, a partition key needs to be defined which acts as the primary key for the table and no schema. Each item ... | [
{
"code": null,
"e": 24707,
"s": 24679,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 25205,
"s": 24707,
"text": "Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an ite... |
Bar Plot in Matplotlib - GeeksforGeeks | 04 Mar, 2021
A bar plot or bar chart is a graph that represents the category of data with rectangular bars with lengths and heights that is proportional to the values which they represent. The bar plots can be plotted horizontally or vertically. A bar chart describes the comparisons between the discrete categories. One... | [
{
"code": null,
"e": 30424,
"s": 30396,
"text": "\n04 Mar, 2021"
},
{
"code": null,
"e": 30895,
"s": 30424,
"text": "A bar plot or bar chart is a graph that represents the category of data with rectangular bars with lengths and heights that is proportional to the values which the... |
Smallest odd number with even sum of digits from the given number N - GeeksforGeeks | 30 Jan, 2022
Given a large number in form of string str. The task is to find the smallest odd number whose sum of digits is even by removing zero or more characters from the given string str, where the digits can be rearranged.
Examples
Input: str = “15470” Output: 15 Explanation: Two smallest odd digits are 1 & 5. Hen... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n30 Jan, 2022"
},
{
"code": null,
"e": 26482,
"s": 26267,
"text": "Given a large number in form of string str. The task is to find the smallest odd number whose sum of digits is even by removing zero or more characters from the gi... |
C# | Structures | Set - 1 - GeeksforGeeks | 27 Jun, 2021
Structure is a value type and a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined data types and both hold a bunch of different data types. C# provide the ability to use pre-defined data types. However, sometimes the user migh... | [
{
"code": null,
"e": 23704,
"s": 23676,
"text": "\n27 Jun, 2021"
},
{
"code": null,
"e": 24526,
"s": 23704,
"text": "Structure is a value type and a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined ... |
HTML maxlength Attribute - GeeksforGeeks | 08 Dec, 2021
It specifies the maximum number of characters that have been allowed in the Element. It can be used on the following Elements:
<input><textarea>
<input>
<textarea>
Attribute Values: It contains a single value number that allows the maximum number of characters in the <input> element. Its default value is ... | [
{
"code": null,
"e": 25643,
"s": 25615,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 25771,
"s": 25643,
"text": "It specifies the maximum number of characters that have been allowed in the Element. It can be used on the following Elements: "
},
{
"code": null,
"e"... |
C/C++ Program to Find the Number Occurring Odd Number of Times - GeeksforGeeks | 08 Jan, 2021
Given an array arr[] consisting of positive integers that occur even number of times, except one number, which occurs odd number of times. The task is to find this odd number of times occurring number.
Examples :
Input : arr = {1, 2, 3, 2, 3, 1, 3}
Output : 3
Input : arr = {5, 7, 2, 7, 5, 2, 5}
Output :... | [
{
"code": null,
"e": 26066,
"s": 26038,
"text": "\n08 Jan, 2021"
},
{
"code": null,
"e": 26268,
"s": 26066,
"text": "Given an array arr[] consisting of positive integers that occur even number of times, except one number, which occurs odd number of times. The task is to find this... |
Angular CLI - ng generate Command | This chapter explains the syntax, argument and options of ng generate command along with an example.
The syntax for ng generate command is as follows −
ng generate <schematic> [options]
ng g <schematic> [options]
ng generate command generates and/or modifies files based on a schematic.
The argument for ng help command... | [
{
"code": null,
"e": 2176,
"s": 2075,
"text": "This chapter explains the syntax, argument and options of ng generate command along with an example."
},
{
"code": null,
"e": 2227,
"s": 2176,
"text": "The syntax for ng generate command is as follows −"
},
{
"code": null,
... |
Next.js SWR (Stale While Revalidate) Introduction - GeeksforGeeks | 03 Nov, 2021
State While Revalidate is React Hooks library for remote data fetching, created by Zeit. It is used for
Returns the data from cache (stale)
Sends the fetch request (revalidate), and then
Comes with the up-to-date data again.
Google says about the concept of SWR:
“It helps developers balance between imme... | [
{
"code": null,
"e": 24199,
"s": 24171,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 24304,
"s": 24199,
"text": "State While Revalidate is React Hooks library for remote data fetching, created by Zeit. It is used for "
},
{
"code": null,
"e": 24340,
"s": 24304... |
Grouped Barplots in Python with Seaborn - GeeksforGeeks | 02 Dec, 2020
Prerequisites: Seaborn
In this article, we will discuss ways to make grouped barplots using Seaborn in Python. Before that, there are some concepts one must be familiar with:
Barcharts: Barcharts are great when you have two variables one is numerical and therefore the other may be a categorical variable. A... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 25688,
"s": 25665,
"text": "Prerequisites: Seaborn"
},
{
"code": null,
"e": 25840,
"s": 25688,
"text": "In this article, we will discuss ways to make grouped barplots usin... |
Node.js fs.lstatSync() Method - GeeksforGeeks | 11 Oct, 2021
The fs.lstatSync() method is used to synchronously return information about the symbolic link that is being used to refer to a file or directory. The fs.Stat object returns several fields and methods to get more details about the file.
Syntax:
fs.lstatSync( path, options )
Parameters: This method accept tw... | [
{
"code": null,
"e": 26842,
"s": 26814,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 27078,
"s": 26842,
"text": "The fs.lstatSync() method is used to synchronously return information about the symbolic link that is being used to refer to a file or directory. The fs.Stat objec... |
Advanced Excel Statistical - LINEST Function | The LINEST function calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and then returns an array that describes the line.
You can also combine LINEST with other functions to calculate the statistics for other types of models that are linear in... | [
{
"code": null,
"e": 2053,
"s": 1854,
"text": "The LINEST function calculates the statistics for a line by using the \"least squares\" method to calculate a straight line that best fits your data, and then returns an array that describes the line."
},
{
"code": null,
"e": 2265,
"s": ... |
Best Data Visualization Project for beginners | Towards Data Science | People often tend to travel from one location to another location and explore new things, and in their journey, they need to know all the popular places around them so that they don’t miss out on any. So this application is for those people who need to know all the densely populated areas around them.
Input to this mod... | [
{
"code": null,
"e": 475,
"s": 172,
"text": "People often tend to travel from one location to another location and explore new things, and in their journey, they need to know all the popular places around them so that they don’t miss out on any. So this application is for those people who need to kn... |
What is ternary operator (? X : Y) in C++? | The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows −
The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing.
If the first operand evaluates to true (1), the second operand is evaluated... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows −"
},
{
"code": null,
"e": 1307,
"s": 1186,
"text": "The first operand is implicitly converted to bool. It is e... |
Comparing dates in Python - GeeksforGeeks | 24 May, 2018
Comparing dates is quite easy in Python. Dates can be easily compared using comparison operators (like <, >, <=, >=, != etc.). Let’s see how to compare dates with the help of datetime module using Python.
Code #1 : Basic
# Simple Python program to compare dates # importing datetime moduleimport datetime ... | [
{
"code": null,
"e": 26103,
"s": 26075,
"text": "\n24 May, 2018"
},
{
"code": null,
"e": 26308,
"s": 26103,
"text": "Comparing dates is quite easy in Python. Dates can be easily compared using comparison operators (like <, >, <=, >=, != etc.). Let’s see how to compare dates with ... |
Statistics - Continuous Uniform Distribution | The continuous uniform distribution is the probability distribution of random number selection from the continuous interval between a and b. Its density function is defined by the following. Here is a graph of the continuous uniform distribution with a = 1, b = 3.
Problem Statement:
Suppose you are leading a test and p... | [
{
"code": null,
"e": 4588,
"s": 4323,
"text": "The continuous uniform distribution is the probability distribution of random number selection from the continuous interval between a and b. Its density function is defined by the following. Here is a graph of the continuous uniform distribution with a ... |
How to Use SQL in Pandas. Add another relational database skill... | by Acusio Bivona | Towards Data Science | If you consider the structure of a Pandas DataFrame and the structure of a table from a SQL Database, they are structured very similarly. They both consist of data points, or values, with every row having a unique index and each column having a unique name. Because of this, SQL allows you to rapidly access the specific... | [
{
"code": null,
"e": 730,
"s": 172,
"text": "If you consider the structure of a Pandas DataFrame and the structure of a table from a SQL Database, they are structured very similarly. They both consist of data points, or values, with every row having a unique index and each column having a unique nam... |
How to make “spoiler” text in github wiki pages? - GeeksforGeeks | 29 May, 2020
GitHub Wiki pages support GitHub Flavored Markdown. Read more about GitHub flavored markdown here:
Mastering Markdown
GitHub Flavored Markdown Spec
However, there is no direct method to add a spoiler text in GitHub Flavored Markdown. But, there’s a workaround!
Approach: Markdown Supports HTML Blocks in it... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n29 May, 2020"
},
{
"code": null,
"e": 26379,
"s": 26279,
"text": "GitHub Wiki pages support GitHub Flavored Markdown. Read more about GitHub flavored markdown here: "
},
{
"code": null,
"e": 26398,
"s": 26379,
... |
How to perform group-wise linear regression for a data frame in R? | The group−wise linear regression means creating regression model for group levels. For example, if we have a dependent variable y and the independent variable x also a grouping variable G that divides the combination of x and y into multiple groups then we can create a linear regression model for each of the group. In ... | [
{
"code": null,
"e": 1491,
"s": 1062,
"text": "The group−wise linear regression means creating regression model for group levels. For example, if we have a dependent variable y and the independent variable x also a grouping variable G that divides the combination of x and y into multiple groups then... |
Apply a Function over a Ragged Array in R Programming - tapply() Function - GeeksforGeeks | 19 Jun, 2020
tapply() function in R Language is used to apply a function over a subset of vectors given by a combination of factors
Syntax: tapply(vector, factor, fun)
Parameters:vector: Created Vectorfactor: Created Factorfun: Function to be applied
Example 1:
# R Program to apply a function# over a data object # Cre... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 26606,
"s": 26487,
"text": "tapply() function in R Language is used to apply a function over a subset of vectors given by a combination of factors"
},
{
"code": null,
"e": 26642,
... |
Fabric.js Textbox editable Property - GeeksforGeeks | 20 Jan, 2021
In this article, we are going to see how to set the edit mode of a Textbox canvas using Fabric.js. The Textbox in Fabric.js is movable and can be stretched according to requirements. Further, the Textbox can be customized when it comes to initial stroke color, height, width, fill color, or stroke width.
To... | [
{
"code": null,
"e": 25220,
"s": 25192,
"text": "\n20 Jan, 2021"
},
{
"code": null,
"e": 25525,
"s": 25220,
"text": "In this article, we are going to see how to set the edit mode of a Textbox canvas using Fabric.js. The Textbox in Fabric.js is movable and can be stretched accordi... |
Android - Enable Logging in OkHttp - GeeksforGeeks | 19 Sep, 2021
Have you ever experienced a negative experience while doing an API request in your Android application? Or perhaps you encountered an error that rendered your API call ineffective.
The first option would have been to try API requests through some client to figure out what was wrong. Or perhaps you would ha... | [
{
"code": null,
"e": 26515,
"s": 26487,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 26696,
"s": 26515,
"text": "Have you ever experienced a negative experience while doing an API request in your Android application? Or perhaps you encountered an error that rendered your API ... |
How to Pass Data to Destination using Safe Args in Android? - GeeksforGeeks | 04 Feb, 2021
SafeArgs is a gradle plugin that allows you to Pass data to destination UI components. It generates simple object and builder classes for type-safe navigation and access to any associated arguments. Safe Args is strongly recommended for navigating and passing data because it ensures type-safety. A sample v... | [
{
"code": null,
"e": 24006,
"s": 23978,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 24472,
"s": 24006,
"text": "SafeArgs is a gradle plugin that allows you to Pass data to destination UI components. It generates simple object and builder classes for type-safe navigation and ... |
C program to convert roman numbers to decimal numbers | Given below is an algorithm to convert roman numbers to decimal numbers in C language −
Step 1 − Start
Step 2 − Read the roman numeral at runtime
Step 3 − length: = strlen(roman)
Step 4 − for i = 0 to length-1 do
Step 4.1 − switch(roman[i])
Step 4.1.1 − case ‘m’:
Step 4.1.2 − case ‘M’:
... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "Given below is an algorithm to convert roman numbers to decimal numbers in C language −"
},
{
"code": null,
"e": 1165,
"s": 1150,
"text": "Step 1 − Start"
},
{
"code": null,
"e": 1208,
"s": 1165,
"text": "Step 2 −... |
A R(API)D assessment of travel carbon emissions around the world | by Kyle Baranko | Towards Data Science | As a climate-conscious consumer, I’ve often wondered about the environmental impact of my routine travel from the East Coast to Salt Lake City and back. After seeing one of many recent headlines highlighting air travel’s surprisingly high rates of carbon emissions, I wondered: would taking a train, bus, or driving a ca... | [
{
"code": null,
"e": 532,
"s": 172,
"text": "As a climate-conscious consumer, I’ve often wondered about the environmental impact of my routine travel from the East Coast to Salt Lake City and back. After seeing one of many recent headlines highlighting air travel’s surprisingly high rates of carbon ... |
Check whether the sum of prime elements of the array is prime or not - GeeksforGeeks | 23 Apr, 2021
Given an array having N elements. The task is to check if the sum of prime elements of the array is prime or not.Examples:
Input: arr[] = {1, 2, 3}
Output: Yes
As there are two primes in the array i.e. 2 and 3.
So, the sum of prime is 2 + 3 = 5 and 5 is also prime.
Input: arr[] = {2, 3, 2, 2}
Output: N... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 24529,
"s": 24405,
"text": "Given an array having N elements. The task is to check if the sum of prime elements of the array is prime or not.Examples: "
},
{
"code": null,
"e": 24... |
ASP.NET - Validators | ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored.
ASP.NET provides the following validation controls:
RequiredFieldValidator
RangeValidator
CompareValidator
RegularExpressionValidator
CustomValidator
ValidationSummary
The validation... | [
{
"code": null,
"e": 2485,
"s": 2347,
"text": "ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored."
},
{
"code": null,
"e": 2537,
"s": 2485,
"text": "ASP.NET provides the following validation co... |
How to get the Position of mouse pointer in jQuery ? - GeeksforGeeks | 31 Mar, 2021
In this article, we will see how to get the position of the mouse pointer using jQuery. To get the position of mouse pointer, event.pageX, and event.pageY property is used. The event.pageX property is used to find the position of the mouse pointer relative to the left edge of the document. The event.pageY ... | [
{
"code": null,
"e": 25675,
"s": 25647,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 26083,
"s": 25675,
"text": "In this article, we will see how to get the position of the mouse pointer using jQuery. To get the position of mouse pointer, event.pageX, and event.pageY property... |
Swift - Extensions | Functionality of an existing class, structure or enumeration type can be added with the help of extensions. Type functionality can be added with extensions but overriding the functionality is not possible with extensions.
Swift Extension Functionalities −
Adding computed properties and computed type properties
Defining... | [
{
"code": null,
"e": 2475,
"s": 2253,
"text": "Functionality of an existing class, structure or enumeration type can be added with the help of extensions. Type functionality can be added with extensions but overriding the functionality is not possible with extensions."
},
{
"code": null,
... |
How to strike through and underline text in JavaFX? | In JavaFX, the text node is represented by the Javafx.scene.text.Text class. To insert/display text in JavaFx window you need to −
Instantiate the Text class.
Instantiate the Text class.
Set the basic properties like position and text string, using the setter methods or, bypassing them as arguments to the constructor.
... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "In JavaFX, the text node is represented by the Javafx.scene.text.Text class. To insert/display text in JavaFx window you need to −"
},
{
"code": null,
"e": 1221,
"s": 1193,
"text": "Instantiate the Text class."
},
{
"code": n... |
MongoDB - Update Document | MongoDB's update() and save() methods are used to update document into a collection. The update() method updates the values in the existing document while the save() method replaces the existing document with the document passed in save() method.
The update() method updates the values in the existing document.
The basi... | [
{
"code": null,
"e": 2800,
"s": 2553,
"text": "MongoDB's update() and save() methods are used to update document into a collection. The update() method updates the values in the existing document while the save() method replaces the existing document with the document passed in save() method."
},
... |
Level up your code with Python decorators | by Alexander Bailey | Towards Data Science | There comes a point in every Python user’s life where you can level up from writing good code, to great code.
Once you’ve mastered core Python functionality like list comprehensions and ternary operators, you should be ready to write more readable Python. Decorators are key to upgrading your code’s readability, and her... | [
{
"code": null,
"e": 281,
"s": 171,
"text": "There comes a point in every Python user’s life where you can level up from writing good code, to great code."
},
{
"code": null,
"e": 556,
"s": 281,
"text": "Once you’ve mastered core Python functionality like list comprehensions and ... |
Delete all records from a table in MySQL? | To delete all the records from a table in MySQL, use the TRUNCATE command. Let us fir see the syntax −
TRUNCATE TABLE yourTableName.
The above syntax will delete all the records from a table. Let us create a table to understand the above syntax −
mysql> create table TruncateTableDemo
−> (
−> BookId int
−> ,
−>... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "To delete all the records from a table in MySQL, use the TRUNCATE command. Let us fir see the syntax −"
},
{
"code": null,
"e": 1195,
"s": 1165,
"text": "TRUNCATE TABLE yourTableName."
},
{
"code": null,
"e": 1309,
"s... |
All Pandas cut() you should know for transforming numerical data into categorical data | by B. Chen | Towards Data Science | Numerical data is common in data analysis. Often you have numerical data that is continuous, very large scales, or highly skewed. Sometimes, it can be easier to bin those data into discrete intervals. This is helpful to perform descriptive statistics when values are divided into meaningful categories. For example, we c... | [
{
"code": null,
"e": 554,
"s": 171,
"text": "Numerical data is common in data analysis. Often you have numerical data that is continuous, very large scales, or highly skewed. Sometimes, it can be easier to bin those data into discrete intervals. This is helpful to perform descriptive statistics when... |
C++ Memory Library - static_pointer_cast | It allocates memory for an object of type T using alloc and constructs it passing args to its constructor. The function returns an object of type shared_ptr that owns and stores a pointer to the constructed object.
Following is the declaration for std::static_pointer_cast.
template <class T, class U>
shared_ptr<T> s... | [
{
"code": null,
"e": 2818,
"s": 2603,
"text": "It allocates memory for an object of type T using alloc and constructs it passing args to its constructor. The function returns an object of type shared_ptr that owns and stores a pointer to the constructed object."
},
{
"code": null,
"e": 2... |
How to create a movie trailer app in ReactJS ? - GeeksforGeeks | 06 Aug, 2021
In this article, we are going to make a simple app that searches for any movie/web series trailers. We will use ‘movie-trailer’ npm package to find such URLs and display the content using another npm package called ‘react-player’.
Prerequisites: The pre-requisites for this project are:
React.
React Hooks.... | [
{
"code": null,
"e": 24708,
"s": 24680,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 24940,
"s": 24708,
"text": "In this article, we are going to make a simple app that searches for any movie/web series trailers. We will use ‘movie-trailer’ npm package to find such URLs and d... |
Firebase - Github Authentication | In this chapter, we will show you how to authenticate users using the GitHub API.
Open Firebase dashboard and click Auth from the side menu and then SIGN-IN-METHOD in tab bar. You need enable GitHub authentication and copy the Callback URL. You will need this in step 2. You can leave this tab open since you will need t... | [
{
"code": null,
"e": 2248,
"s": 2166,
"text": "In this chapter, we will show you how to authenticate users using the GitHub API."
},
{
"code": null,
"e": 2544,
"s": 2248,
"text": "Open Firebase dashboard and click Auth from the side menu and then SIGN-IN-METHOD in tab bar. You ne... |
Real Time Custom Object Detection: Part 2 | Towards Data Science | In this article we will test the Custom trained Darknet model from my previous article
Citations: The video output feed is available on YouTube by Bloomberg Quicktake. Image of a window is a screenshot of my personal computer. The output image feed is taken from an open source dataset from Kaggle. Huge thanks to Shaury... | [
{
"code": null,
"e": 259,
"s": 172,
"text": "In this article we will test the Custom trained Darknet model from my previous article"
},
{
"code": null,
"e": 503,
"s": 259,
"text": "Citations: The video output feed is available on YouTube by Bloomberg Quicktake. Image of a window ... |
Hexadecimal Arithmetic | Following are the characteristics of a hexadecimal number system.
Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Letters represents numbers starting from 10. A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
Letters represents numbers starting... | [
{
"code": null,
"e": 2037,
"s": 1971,
"text": "Following are the characteristics of a hexadecimal number system."
},
{
"code": null,
"e": 2100,
"s": 2037,
"text": "Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F."
},
{
"code": null,
"e": 2163,
"s": 2... |
Docker - Hub | Docker Hub is a registry service on the cloud that allows you to download Docker images that are built by other communities. You can also upload your own Docker built images to Docker hub. In this chapter, we will see how to download and the use the Jenkins Docker image from Docker hub.
The official site for Docker hu... | [
{
"code": null,
"e": 2629,
"s": 2340,
"text": "Docker Hub is a registry service on the cloud that allows you to download Docker images that are built by other communities. You can also upload your own Docker built images to Docker hub. In this chapter, we will see how to download and the use the Jen... |
Product of Primes | Practice | GeeksforGeeks | Given two numbers L and R (inclusive) find the product of primes within this range. Print the product modulo 109+7. If there are no primes in that range you must print 1.
Example 1:
Input: L = 1, R = 10
Output: 210
Explaination: The prime numbers are
2, 3, 5 and 7.
Example 2:
Input: L = 1, R = 20
Output: 9699690
Expla... | [
{
"code": null,
"e": 409,
"s": 238,
"text": "Given two numbers L and R (inclusive) find the product of primes within this range. Print the product modulo 109+7. If there are no primes in that range you must print 1."
},
{
"code": null,
"e": 420,
"s": 409,
"text": "Example 1:"
}... |
Add Image Recognition to your Chatbot with Google Dialogflow and Vision API | by Priyanka Vergadia | Towards Data Science | Conversational AI use cases are diverse. They include customer support, e-commerce, controlling IoT devices, enterprise productivity and much more. In very simplistic terms, these use cases involve a user asking a specific question (intent) and the conversational experience (or the chatbot) responding to the question b... | [
{
"code": null,
"e": 667,
"s": 171,
"text": "Conversational AI use cases are diverse. They include customer support, e-commerce, controlling IoT devices, enterprise productivity and much more. In very simplistic terms, these use cases involve a user asking a specific question (intent) and the conver... |
List all Files with Specific Extension in R - GeeksforGeeks | 17 Jun, 2021
R programming language contains a wide variety of method to work with directory and its associated sub-directories. There are various inbuilt methods in R programming language which are used to return the file names with the required extensions. It can be used to efficiently locate the presence of a file. ... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 25470,
"s": 25162,
"text": "R programming language contains a wide variety of method to work with directory and its associated sub-directories. There are various inbuilt methods in R programm... |
Reverse String in Python | Suppose we have an array of characters. We have to reverse the string without using any additional space. So if the string is like [‘H’, ‘E’, ‘L’, ‘L’, ‘O’], the output will be [‘O’, ‘L’, ‘L’, ‘E’, ‘H’]
To solve this, we will follow these steps −
Take two pointers to start = 0 and end = length of the string – 1
swap fi... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "Suppose we have an array of characters. We have to reverse the string without using any additional space. So if the string is like [‘H’, ‘E’, ‘L’, ‘L’, ‘O’], the output will be [‘O’, ‘L’, ‘L’, ‘E’, ‘H’]"
},
{
"code": null,
"e": 1309,
"s"... |
The Ultimate Beginner’s Guide To Implement A Neural Network From Scratch | by Ravsehaj Singh Puri | Towards Data Science | Neural networks have been with us for a long time but they have gathered importance in recent years due to advancement in computing machinery as well as growing needs of technology in various aspects of life.
From the perspective of a beginner in machine learning, a neural network is considered as a black box which can... | [
{
"code": null,
"e": 381,
"s": 172,
"text": "Neural networks have been with us for a long time but they have gathered importance in recent years due to advancement in computing machinery as well as growing needs of technology in various aspects of life."
},
{
"code": null,
"e": 830,
... |
How can we prevent the resizing of UI controls in JavaFX? | In JavaFX the javafx.scene.control package provides various classes for nodes specially designed for UI applications by instantiating these classes you can create UI elements such as button, Label, etc..
You can resize the created elements using the setPrefWidth() or, setPrefHeight() or, setprefSize() methods according... | [
{
"code": null,
"e": 1266,
"s": 1062,
"text": "In JavaFX the javafx.scene.control package provides various classes for nodes specially designed for UI applications by instantiating these classes you can create UI elements such as button, Label, etc.."
},
{
"code": null,
"e": 1386,
"s... |
How to detect duplicate values in primitive Java array? | To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements, in case of a match you got your duplicate element.
One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 (where i is the variable of outer loop) to avoid repeti... | [
{
"code": null,
"e": 1233,
"s": 1062,
"text": "To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements, in case of a match you got your duplicate element."
},
{
"code": null,
"e": 1403,
"s": 1233,
"text": "One solutio... |
How to insert a pandas DataFrame to an existing PostgreSQL table? - GeeksforGeeks | 22 Nov, 2021
In this article, we are going to see how to insert a pandas DataFrame to an existing PostgreSQL table.
pandas: Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). A Data frame is a two-dimensional data structure, i.e., da... | [
{
"code": null,
"e": 23973,
"s": 23942,
"text": " \n22 Nov, 2021\n"
},
{
"code": null,
"e": 24076,
"s": 23973,
"text": "In this article, we are going to see how to insert a pandas DataFrame to an existing PostgreSQL table."
},
{
"code": null,
"e": 24421,
"s": 2407... |
MongoDB - Text Indexes - GeeksforGeeks | 17 Feb, 2021
MongoDB is a document-based NoSQL database. As the data is stored in the format of the document, it can hold a huge amount of data and as it is a NoSQL database type, there is no strict necessity to have referential integrity relationships. So searching is an important criteria here and for that MongoDB pr... | [
{
"code": null,
"e": 23879,
"s": 23851,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 24338,
"s": 23879,
"text": "MongoDB is a document-based NoSQL database. As the data is stored in the format of the document, it can hold a huge amount of data and as it is a NoSQL database ty... |
From Scikit-learn to TensorFlow : Part 1 | by Karthik M Swamy | Towards Data Science | Over the past year and a half, TensorFlow has grown at a tremendous pace, both in terms of adoption rate and in compute speed.
TensorFlow has established itself as the most sought after library for machine learning (ML) algorithm development. However, it seems to have also established itself as a library requiring defi... | [
{
"code": null,
"e": 298,
"s": 171,
"text": "Over the past year and a half, TensorFlow has grown at a tremendous pace, both in terms of adoption rate and in compute speed."
},
{
"code": null,
"e": 678,
"s": 298,
"text": "TensorFlow has established itself as the most sought after ... |
Circular (polar) histogram in Python | To plot circular (polar) histogram in Python, we can take the following steps−
Create data points for theta, radii and width using numpy.
Add a subplot to the current figure, where projection='polar' and nrows=1, ncols=1 and
index=1.
. Make a bar plot using bar() method, with theta, radii and width data points
Iterate ... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "To plot circular (polar) histogram in Python, we can take the following steps−"
},
{
"code": null,
"e": 1200,
"s": 1141,
"text": "Create data points for theta, radii and width using numpy."
},
{
"code": null,
"e": 1296,
... |
Demonstrate constructors in a Multilevel Hierarchy in Java | Multilevel inheritance is when a class inherits a class which inherits another class. An example of this is class C inherits class B and class B in turn inherits class A.
A program that demonstrates constructors in a Multilevel Hierarchy in Java is given as follows:
Live Demo
class A {
A() {
System.out.printl... | [
{
"code": null,
"e": 1233,
"s": 1062,
"text": "Multilevel inheritance is when a class inherits a class which inherits another class. An example of this is class C inherits class B and class B in turn inherits class A."
},
{
"code": null,
"e": 1329,
"s": 1233,
"text": "A program t... |
Demystifying Support Vector Machines | by Dhairya Kumar | Towards Data Science | This is my second article of the Demystifying series. You can check out the first article here —
towardsdatascience.com
In this article, I will focus on Support Vector Machines or SVM. It is one of the most popular machine learning algorithms and it enjoyed its Numero Uno status for almost a decade (the early 1990s to ... | [
{
"code": null,
"e": 269,
"s": 172,
"text": "This is my second article of the Demystifying series. You can check out the first article here —"
},
{
"code": null,
"e": 292,
"s": 269,
"text": "towardsdatascience.com"
},
{
"code": null,
"e": 633,
"s": 292,
"text"... |
Another Twitter sentiment analysis with Python-Part 2 | by Ricky Kim | Towards Data Science | This blog post is the second part of the Twitter sentiment analysis project I am currently doing for my capstone project in General Assembly London. You can find the first part here.
Before I move on to EDA, and data visualisation, I have made some changes to the data cleaning part, due to the faults of the data cleani... | [
{
"code": null,
"e": 355,
"s": 172,
"text": "This blog post is the second part of the Twitter sentiment analysis project I am currently doing for my capstone project in General Assembly London. You can find the first part here."
},
{
"code": null,
"e": 536,
"s": 355,
"text": "Bef... |
How to create a table from view in MySQL? | To create a table from the view below is the syntax −
create table yourTableName select *from yourViewName;
Let us first create a table −
mysql> create table DemoTable830(Name varchar(100));
Query OK, 0 rows affected (0.91 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable830 valu... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "To create a table from the view below is the syntax −"
},
{
"code": null,
"e": 1170,
"s": 1116,
"text": "create table yourTableName select *from yourViewName;"
},
{
"code": null,
"e": 1200,
"s": 1170,
"text": "Let... |
How to measure the goodness of a regression model | by Gianluca Malato | Towards Data Science | Regression models are very useful and widely used in machine learning. However, they might show some problems when comes to measure the goodness of a trained model. While classification models have some standard tools that can be used to assess their performance (i.e. area under the ROC curve, confusion matrix, F-1 sco... | [
{
"code": null,
"e": 668,
"s": 172,
"text": "Regression models are very useful and widely used in machine learning. However, they might show some problems when comes to measure the goodness of a trained model. While classification models have some standard tools that can be used to assess their perf... |
What is the difference between a Java method and a native method? | A native method is the one whose method implementation is done in other languages like c++ and Java. These programs are linked to Java using JNI or JNA interfaces.
The difference between normal method and native method is That the native method declaration contains native keyword and, the implementation of the method w... | [
{
"code": null,
"e": 1226,
"s": 1062,
"text": "A native method is the one whose method implementation is done in other languages like c++ and Java. These programs are linked to Java using JNI or JNA interfaces."
},
{
"code": null,
"e": 1417,
"s": 1226,
"text": "The difference bet... |
Styling First-Letters with CSS ::first-letter | CSS can help us style the first letter of an element using the ::first-letter pseudo-element. Note that punctuation marks, digraphs and content property can change the first-letter.
The following examples illustrate CSS ::first-letter pseudo-element.
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
body {
text-align... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "CSS can help us style the first letter of an element using the ::first-letter pseudo-element. Note that punctuation marks, digraphs and content property can change the first-letter."
},
{
"code": null,
"e": 1313,
"s": 1244,
"text": "... |
ABC Analysis with K-Means Clustering | by Andrew Udell | Towards Data Science | ABC analysis assumes that revenue-generating items in an inventory follow a Pareto distribution, where a very small percent of items generate the most amount of revenue. Using the following conventions, an item in inventory is assigned a letter based on importance:
A items are 20% of items, but contribute 70% of revenu... | [
{
"code": null,
"e": 437,
"s": 171,
"text": "ABC analysis assumes that revenue-generating items in an inventory follow a Pareto distribution, where a very small percent of items generate the most amount of revenue. Using the following conventions, an item in inventory is assigned a letter based on i... |
How to get the datatype of MySQL table columns? | You can get the MySQL table columns data type with the help of “information_schema.columns”.
The syntax is as follows −
SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where
table_schema = ’yourDatabaseName’ and table_name = ’yourTableName’.
To understand the above syntax, let us first create a table −
mysql> create t... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "You can get the MySQL table columns data type with the help of “information_schema.columns”."
},
{
"code": null,
"e": 1182,
"s": 1155,
"text": "The syntax is as follows −"
},
{
"code": null,
"e": 1305,
"s": 1182,
... |
How to change text font in HTML? | To change the text font in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-family, font-size, font-style, etc.
HTML5 do not support the <font> tag, so the CSS style is used to change font. The <font> tag... | [
{
"code": null,
"e": 1290,
"s": 1062,
"text": "To change the text font in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-family, font-size, font-style, etc."
},
{
"code": nul... |
multimap value_comp() function in C++ STL - GeeksforGeeks | 22 Oct, 2018
The multimap::value_comp() method returns a comparison object that can be used to compare two elements to get whether the key of the first one goes before the second. Here the 1st object compares the object of type std::multimap::type. The arguments taken by this function object are of member type type. It... | [
{
"code": null,
"e": 24018,
"s": 23990,
"text": "\n22 Oct, 2018"
},
{
"code": null,
"e": 24370,
"s": 24018,
"text": "The multimap::value_comp() method returns a comparison object that can be used to compare two elements to get whether the key of the first one goes before the seco... |
Python Modules for Web Scraping | In this chapter, let us learn various Python modules that we can use for web scraping.
Virtualenv is a tool to create isolated Python environments. With the help of virtualenv, we can create a folder that contains all necessary executables to use the packages that our Python project requires. It also allows us to add a... | [
{
"code": null,
"e": 1999,
"s": 1912,
"text": "In this chapter, let us learn various Python modules that we can use for web scraping."
},
{
"code": null,
"e": 2300,
"s": 1999,
"text": "Virtualenv is a tool to create isolated Python environments. With the help of virtualenv, we ca... |
Drowsiness Detection with Machine Learning | by Grant Zhong | Towards Data Science | Team Members: Grant Zhong, Rui Ying, He Wang, Aurangzaib Siddiqui, Gaurav Choudhary
“1 in 25 adult drivers report that they have fallen asleep at the wheel in the past 30 days”
If you have driven before, you’ve been drowsy at the wheel at some point. It’s not something we like to admit but it’s an important problem wit... | [
{
"code": null,
"e": 256,
"s": 172,
"text": "Team Members: Grant Zhong, Rui Ying, He Wang, Aurangzaib Siddiqui, Gaurav Choudhary"
},
{
"code": null,
"e": 349,
"s": 256,
"text": "“1 in 25 adult drivers report that they have fallen asleep at the wheel in the past 30 days”"
},
{... |
Thread Pools in C# | Thread pool in C# is a collection of threads. It is used to perform tasks in the background. When a thread completes a task, it is sent to the queue wherein all the waiting threads are present. This is done so that it can be reused.
Let us see how to create a thread pool.
Firstly, use the following namespace −
using Sy... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "Thread pool in C# is a collection of threads. It is used to perform tasks in the background. When a thread completes a task, it is sent to the queue wherein all the waiting threads are present. This is done so that it can be reused."
},
{
"code"... |
Batch Script - Echo Command - GeeksforGeeks | 05 Nov, 2021
In most of the modern and traditional operating systems, there are one or more user interfaces (e.g. Command Line Interface(CLI), Graphical User Interface(GUI), Touch Screen Interface, etc.) provided by the shell to interact with the kernel. Command Prompt, PowerShell in Windows, Terminal in Linux, Termino... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 24737,
"s": 24015,
"text": "In most of the modern and traditional operating systems, there are one or more user interfaces (e.g. Command Line Interface(CLI), Graphical User Interface(GUI), To... |
ArrayList of ArrayList in Java - GeeksforGeeks | 11 Dec, 2018
We have discussed that an array of ArrayList is not possible without warning. A better idea is to use ArrayList of ArrayList.
// Java code to demonstrate the concept of// array of ArrayList import java.util.*;public class Arraylist { public static void main(String[] args) { int n = 3; ... | [
{
"code": null,
"e": 24412,
"s": 24384,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 24538,
"s": 24412,
"text": "We have discussed that an array of ArrayList is not possible without warning. A better idea is to use ArrayList of ArrayList."
},
{
"code": "// Java code t... |
Tryit Editor v3.7 | HTML Input types
Tryit: input number with restrictions | [
{
"code": null,
"e": 27,
"s": 10,
"text": "HTML Input types"
}
] |
Externalizable Interface in Java | Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method. Whereas at receiver's end when an Externalizable object is a reconstructed instance will be created using no argument con... | [
{
"code": null,
"e": 1437,
"s": 1062,
"text": "Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method. Whereas at receiver's end when an Externalizable objec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.