title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
A Beginner’s Guide to Machine Learning in Python | by Natassha Selvaraj | Towards Data Science | There are two approaches you can take to study any topic — top-down, and bottom-up.
When you learnt subjects like math and science in school, you would’ve been taught using the bottom-up approach.
First, you were taught the foundations of the topic, and then gradually progressed through the material.
However, when lear... | [
{
"code": null,
"e": 256,
"s": 172,
"text": "There are two approaches you can take to study any topic — top-down, and bottom-up."
},
{
"code": null,
"e": 369,
"s": 256,
"text": "When you learnt subjects like math and science in school, you would’ve been taught using the bottom-up... |
How to install PostgreSql on Mac - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
Here we will see how to install PostgreSQL on... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
How to convert InputStream object to a String in Java? | Java provides I/O Streams to read and write data where, a Stream represents an input source or an output destination which could be a file, i/o devise, other program etc.
There are two types of streams available −
InputStream − This is used to read (sequential) data from a source.
OutputStream − This is used to write d... | [
{
"code": null,
"e": 1233,
"s": 1062,
"text": "Java provides I/O Streams to read and write data where, a Stream represents an input source or an output destination which could be a file, i/o devise, other program etc."
},
{
"code": null,
"e": 1276,
"s": 1233,
"text": "There are t... |
Calculate score of parentheses from a given string - GeeksforGeeks | 10 Jun, 2021
Given string str of length N, consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the given rules:
“()” has a score of 1.
“a b” has a score of a + b, where a and b are individual pairs of balanced parentheses.
“(a)” has a score twice of a i.e., the s... | [
{
"code": null,
"e": 24747,
"s": 24719,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 24903,
"s": 24747,
"text": "Given string str of length N, consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the given rules:"
},
... |
Working with Hive using AWS S3 and Python | by Nishakanthi Angulgamuwa | Towards Data Science | In this article, I’m going to share my experience of maintaining a Hive schema. This will be useful to the freshers who are willing to step into Big Data technologies. Mainly this will describe how to connect to Hive using python and How to use AWS S3 as the data storage. If you are not familiar with Hive concepts plea... | [
{
"code": null,
"e": 407,
"s": 47,
"text": "In this article, I’m going to share my experience of maintaining a Hive schema. This will be useful to the freshers who are willing to step into Big Data technologies. Mainly this will describe how to connect to Hive using python and How to use AWS S3 as t... |
C program to sort names in alphabetical order using structures | Structure is a collection of different datatype variables, grouped together under a single name.
The features of structure in the C programming language are as follows −
It is possible to copy the contents of all the structure elements of different datatypes to another structure variable of its type by using an assignm... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Structure is a collection of different datatype variables, grouped together under a single name."
},
{
"code": null,
"e": 1232,
"s": 1159,
"text": "The features of structure in the C programming language are as follows −"
},
{
... |
GATE | GATE-CS-2015 (Set 1) | Question 42 - GeeksforGeeks | 28 Jun, 2021
Consider a max heap, represented by the array: 40, 30, 20, 10, 15, 16, 17, 8, 4. Now consider that a value 35 is inserted into this heap. After insertion, the new heap is(A) 40, 30, 20, 10, 15, 16, 17, 8, 4, 35(B) 40, 35, 20, 10, 30, 16, 17, 8, 4, 15(C) 40, 30, 20, 10, 35, 16, 17, 8, 4, 15(D) 40, 35, 20, 1... | [
{
"code": null,
"e": 24518,
"s": 24490,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24941,
"s": 24518,
"text": "Consider a max heap, represented by the array: 40, 30, 20, 10, 15, 16, 17, 8, 4. Now consider that a value 35 is inserted into this heap. After insertion, the new ... |
5 Reasons why you should Switch from Jupyter Notebook to Scripts | by Khuyen Tran | Towards Data Science | Like most people, the first tool I used when started learning data science is Jupyter Notebook. Most of the online data science courses use Jupyter Notebook as a medium to teach. This makes sense because it is easier for beginners to start writing code in Jupyter Notebook’s cells than writing a script with classes and ... | [
{
"code": null,
"e": 503,
"s": 172,
"text": "Like most people, the first tool I used when started learning data science is Jupyter Notebook. Most of the online data science courses use Jupyter Notebook as a medium to teach. This makes sense because it is easier for beginners to start writing code in... |
Validate IP Address in C# | An IP Address is an Internet Protocol address that is a series of numbers assigned to each device on a computer network. In C#, the class IPAddress class in the namespace System.Net deals with IP addresses.
A program that is used to validate an IP address is given as follows −
Live Demo
using System;
using System.Net;... | [
{
"code": null,
"e": 1269,
"s": 1062,
"text": "An IP Address is an Internet Protocol address that is a series of numbers assigned to each device on a computer network. In C#, the class IPAddress class in the namespace System.Net deals with IP addresses."
},
{
"code": null,
"e": 1340,
... |
How to convert a date to quarter and year in R? | Most of the times the date data is available only in date format and there is not information about the quarter of the year. The quarter of the year is required when we want compare the quarters or do some time series analysis. For the conversion of date into quarter and year can be done by using as.yearqtr function fr... | [
{
"code": null,
"e": 1429,
"s": 1062,
"text": "Most of the times the date data is available only in date format and there is not information about the quarter of the year. The quarter of the year is required when we want compare the quarters or do some time series analysis. For the conversion of dat... |
Datalake File Ingestion: From FTP to AWS S3 | by Furqan Butt | Towards Data Science | Hello everyone. When developing Datalake pipe lines, data ingestion is an important step in the entire process. We need a reliable, secure and fault tolerant method to bring our files from source(client FTP server) to our target( AWS S3). Considering how important this step is, I developed an implementation in python t... | [
{
"code": null,
"e": 726,
"s": 172,
"text": "Hello everyone. When developing Datalake pipe lines, data ingestion is an important step in the entire process. We need a reliable, secure and fault tolerant method to bring our files from source(client FTP server) to our target( AWS S3). Considering how ... |
Batch Script - Moving Files | For moving files, Batch Script provides the MOVE command.
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
Following are the description of the options which can be presented to the DEL command.
[drive:][path]filename1
Specifies the location and name of the file or files you want to move
destination
Specifies... | [
{
"code": null,
"e": 2227,
"s": 2169,
"text": "For moving files, Batch Script provides the MOVE command."
},
{
"code": null,
"e": 2286,
"s": 2227,
"text": "MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination\n"
},
{
"code": null,
"e": 2374,
"s": 2286,
"t... |
Anonymous Array in Java - GeeksforGeeks | 22 Apr, 2022
An array in Java without any name is known as an anonymous array. It is an array just for creating and using instantly. Using an anonymous array, we can pass an array with user values without the referenced variable.
Properties of Anonymous Arrays:
We can create an array without a name. Such types of namel... | [
{
"code": null,
"e": 23972,
"s": 23944,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 24189,
"s": 23972,
"text": "An array in Java without any name is known as an anonymous array. It is an array just for creating and using instantly. Using an anonymous array, we can pass an ar... |
Get distinct levels of array field in MongoDB? | To get distinct levels of array field, use $addToSet in MongoDB. Let us create a collection with documents −
> db.demo122.insertOne({"ListOfValues":[100,10]});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e2f20f1140daf4c2a3544b6")
}
> db.demo122.insertOne({"ListOfValues":[240,10]});
{
"acknowledged" : tr... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "To get distinct levels of array field, use $addToSet in MongoDB. Let us create a collection with documents −"
},
{
"code": null,
"e": 1443,
"s": 1171,
"text": "> db.demo122.insertOne({\"ListOfValues\":[100,10]});\n{\n \"acknowledge... |
Spring Batch - Configuration | While writing a Spring Batch application, we will configure the job, step, JobLauncher, JobRepository, Transaction Manager, readers, and writers using the XML tags provided in the Spring Batch namespace. Therefore, you need to include this namespace in your XML file as shown below.
<beans xmlns = "http://www.springfram... | [
{
"code": null,
"e": 2211,
"s": 1928,
"text": "While writing a Spring Batch application, we will configure the job, step, JobLauncher, JobRepository, Transaction Manager, readers, and writers using the XML tags provided in the Spring Batch namespace. Therefore, you need to include this namespace in ... |
What is Operator Precedence Parsing? | Operator Precedence Parsing is also a type of Bottom-Up Parsing that can be used to a class of Grammars known as Operator Grammar.
A Grammar G is Operator Grammar if it has the following properties −
Production should not contain ε on its right side.
Production should not contain ε on its right side.
There should not b... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "Operator Precedence Parsing is also a type of Bottom-Up Parsing that can be used to a class of Grammars known as Operator Grammar."
},
{
"code": null,
"e": 1262,
"s": 1193,
"text": "A Grammar G is Operator Grammar if it has the follo... |
OpenCV - Scharr Operator | Scharr is also used to detect the second derivatives of an image in horizontal and vertical directions. You can perform scharr operation on an image using the method scharr(). Following is the syntax of this method −
Scharr(src, dst, ddepth, dx, dy)
This method accepts the following parameters −
src − An object of the... | [
{
"code": null,
"e": 3221,
"s": 3004,
"text": "Scharr is also used to detect the second derivatives of an image in horizontal and vertical directions. You can perform scharr operation on an image using the method scharr(). Following is the syntax of this method −"
},
{
"code": null,
"e":... |
Bootstrap 4 Fluid Layout - GeeksforGeeks | 24 Dec, 2021
Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. This is the most popular HTML, CSS, and JavaScript framework for developing responsive websites. It solves many issues which we had once, one of which is the cross-browser compatibility issue.
The fol... | [
{
"code": null,
"e": 25620,
"s": 25592,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 25920,
"s": 25620,
"text": "Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. This is the most popular HTML, CSS, and JavaScript frame... |
Check existence of an element in Java ArrayList | The java.util.ArrayList.contains() method can be used to check if an element exists in an ArrayList or not. This method has a single parameter i.e. the element whose presence in the ArrayList is tested. Also it returns true if the element is present in the ArrayList and false if the element is not present.
A program th... | [
{
"code": null,
"e": 1370,
"s": 1062,
"text": "The java.util.ArrayList.contains() method can be used to check if an element exists in an ArrayList or not. This method has a single parameter i.e. the element whose presence in the ArrayList is tested. Also it returns true if the element is present in ... |
How to convert a string into upper case using JavaScript? | To convert a string into upper case, use the JavaScript toUpperCase() method. This method returns the calling string value converted to uppercase.
You can try to run the following code to convert a string into the upper case −
Live Demo
<html>
<head>
<title>JavaScript String toUpperCase() Method</title>
</h... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "To convert a string into upper case, use the JavaScript toUpperCase() method. This method returns the calling string value converted to uppercase."
},
{
"code": null,
"e": 1289,
"s": 1209,
"text": "You can try to run the following co... |
Linux Admin - Shell Scripting | Like flavors of GNU Linux, shells come in many varieties and vary in compatibility. The default shell in CentOS is known as the Bash or Bourne Again Shell. The Bash shell is a modern day, modified version of Bourne Shell developed by Stephen Bourne. Bash was the direct replacement to the original Thompson Shell on the ... | [
{
"code": null,
"e": 2705,
"s": 2257,
"text": "Like flavors of GNU Linux, shells come in many varieties and vary in compatibility. The default shell in CentOS is known as the Bash or Bourne Again Shell. The Bash shell is a modern day, modified version of Bourne Shell developed by Stephen Bourne. Bas... |
Tryit Editor v3.7 - Show Java | public class GetFileInfo {
public static void main(String[] args) {
File myObj = new File("filename.txt");
if (myObj.exists()) {
System.out.println("File name: " + myObj.getName());
System.out.println("Absolute path: " + myObj.getAbsolutePath());
System.out.println("Writeable: " + myOb... | [] |
Python vs Excel — Compound Annual Growth Rate (CAGR) | by Wilson Wong | Towards Data Science | One of my greatest frustrations with Microsoft Excel (or Google Sheets) is the lack of an inbuilt function to calculate the compound annual growth rate or CAGR (XIRR is the closest but it’s not the same). This means that in every case where I needed to conduct a quick Excel CAGR analysis, I would need to write the Exce... | [
{
"code": null,
"e": 511,
"s": 171,
"text": "One of my greatest frustrations with Microsoft Excel (or Google Sheets) is the lack of an inbuilt function to calculate the compound annual growth rate or CAGR (XIRR is the closest but it’s not the same). This means that in every case where I needed to co... |
Ubuntu - Secure Shell | The Secure Shell (SSH) in Linux is used to log into the machine in an encrypted and safe manner. This helps in providing a secure channel to streamline all requests to the Ubuntu server. SSH uses cryptographic keys to log into the server.
On Windows, the most common tool to perform a secure shell to a Linux server is p... | [
{
"code": null,
"e": 2372,
"s": 2133,
"text": "The Secure Shell (SSH) in Linux is used to log into the machine in an encrypted and safe manner. This helps in providing a secure channel to streamline all requests to the Ubuntu server. SSH uses cryptographic keys to log into the server."
},
{
... |
DoubleStream sum() method in Java | The sum() method of the DoubleStream class in Java returns the sum of elements in this stream.
The syntax is as follows
double sum()
To use the DoubleStream class in Java, import the following package
import java.util.stream.DoubleStream;
Create DoubleStream and add some elements
DoubleStream doubleStream = DoubleStrea... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "The sum() method of the DoubleStream class in Java returns the sum of elements in this stream."
},
{
"code": null,
"e": 1182,
"s": 1157,
"text": "The syntax is as follows"
},
{
"code": null,
"e": 1195,
"s": 1182,
... |
Partnership - Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to Partnership. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the q... | [
{
"code": null,
"e": 4217,
"s": 3892,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to Partnership. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. ... |
SORT command in Linux/Unix with examples - GeeksforGeeks | 11 Feb, 2022
SORT command is used to sort a file, arranging the records in a particular order. By default, the sort command sorts file assuming the contents are ASCII. Using options in the sort command can also be used to sort numerically.
SORT command sorts the contents of a text file, line by line.
sort is a standar... | [
{
"code": null,
"e": 23958,
"s": 23930,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 24186,
"s": 23958,
"text": "SORT command is used to sort a file, arranging the records in a particular order. By default, the sort command sorts file assuming the contents are ASCII. Using op... |
C++ Program to Check Whether a Directed Graph Contains a Eulerian Path | The Euler path is a path; by which we can visit every edge exactly once. We can use the same vertices for multiple times. One graph which contains Euler Circuit is also considered in this case, as it also has the Euler path.
To check whether a directed graph has Euler path or not, we have to check these conditions -
Th... | [
{
"code": null,
"e": 1287,
"s": 1062,
"text": "The Euler path is a path; by which we can visit every edge exactly once. We can use the same vertices for multiple times. One graph which contains Euler Circuit is also considered in this case, as it also has the Euler path."
},
{
"code": null,
... |
error_reporting() function in PHP | The error_reporting() function specifies which errors are reported. It sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script. It returns the old error reporting level or the current error reporting level if no level pa... | [
{
"code": null,
"e": 1400,
"s": 1062,
"text": "The error_reporting() function specifies which errors are reported. It sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script. It returns the old error ... |
Time series analysis for predictive maintenance of turbofan engines | by Koen Peters | Towards Data Science | <disclaimer: I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.>
Welcome to another installment of the ‘Exploring NASA’s turbofan dataset’ ser... | [
{
"code": null,
"e": 414,
"s": 171,
"text": "<disclaimer: I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.>"
},
{
... |
New to Data Visualization? Start with New York City | by Thomas Hikaru Clark | Towards Data Science | Like many others, I have been working from home for several weeks due to the coronavirus. Inspired in part by Terence Shin’s great article on data science projects to try during quarantine, I decided to use some of my free time on improving my data science skills. I am a high school computer science teacher, and adding... | [
{
"code": null,
"e": 983,
"s": 172,
"text": "Like many others, I have been working from home for several weeks due to the coronavirus. Inspired in part by Terence Shin’s great article on data science projects to try during quarantine, I decided to use some of my free time on improving my data scienc... |
Make the button size small with Bootstrap | To make a small button, use the .btn-sm Bootstrap class.
You can try to run the following code to make small size of button −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta name = "viewport" content = "width=device-width, initial-scale = 1">
<link rel = "stylesheet" ... | [
{
"code": null,
"e": 1119,
"s": 1062,
"text": "To make a small button, use the .btn-sm Bootstrap class."
},
{
"code": null,
"e": 1188,
"s": 1119,
"text": "You can try to run the following code to make small size of button −"
},
{
"code": null,
"e": 1198,
"s": 1188... |
showq - Unix, Linux Command | showq [generic Postfix daemon options]
The showq(8) daemon can also be run in stand-alone mode
by the superuser. This mode of operation is used to emulate
the ‘mailq’ command while the Postfix mail system is down.
The text below provides only a parameter summary. See
postconf(5) for more details including exa... | [
{
"code": null,
"e": 10617,
"s": 10577,
"text": "showq [generic Postfix daemon options]\n"
},
{
"code": null,
"e": 10794,
"s": 10617,
"text": "\nThe showq(8) daemon can also be run in stand-alone mode\nby the superuser. This mode of operation is used to emulate\nthe ‘mailq’ comma... |
NumPy Array Manipulation. A practical guide to modify the shape... | by Soner Yıldırım | Towards Data Science | Everything about data science starts with data and it comes in various formats. Numbers, images, texts, x-rays, sound and video recordings are just some examples of data sources. Whatever the format data comes in, it needs to be converted to an array of numbers to be analyzed. Complex computer vision models cannot see ... | [
{
"code": null,
"e": 816,
"s": 171,
"text": "Everything about data science starts with data and it comes in various formats. Numbers, images, texts, x-rays, sound and video recordings are just some examples of data sources. Whatever the format data comes in, it needs to be converted to an array of n... |
Spring Security - Form Login, Remember Me and Logout | Introduction and Overview
Getting Started (Practical Guide)
Spring Security comes with a ton of built-in features and tools for our convenience. In this example, we are going to discuss three of those interesting and useful features −
Form-login
Remember Me
Logout
Form-based login is one form of Username/password authe... | [
{
"code": null,
"e": 1861,
"s": 1835,
"text": "Introduction and Overview"
},
{
"code": null,
"e": 1895,
"s": 1861,
"text": "Getting Started (Practical Guide)"
},
{
"code": null,
"e": 2070,
"s": 1895,
"text": "Spring Security comes with a ton of built-in featur... |
Left Shift and Right Shift Operators in C/C++ | In the left shift operator, the left operands value is moved left by the number of bits specified by the right operand.
Here is an example of left shift operator in C language,
Live Demo
#include <stdio.h>
int main() {
int y = 28; // 11100
int i = 0;
for(i;i<=3;++i)
printf("Left shift by %d: %d\n", i, y<... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "In the left shift operator, the left operands value is moved left by the number of bits specified by the right operand."
},
{
"code": null,
"e": 1239,
"s": 1182,
"text": "Here is an example of left shift operator in C language,"
},... |
Widest Path Problem | Practical application of Dijkstra's Algorithm - GeeksforGeeks | 01 Sep, 2021
It is highly recommended to read Dijkstra’s algorithm using the Priority Queue first.Widest Path Problem is a problem of finding a path between two vertices of the graph maximizing the weight of the minimum-weight edge in the path. See the below image to get the idea of the problem:
Practical Application ... | [
{
"code": null,
"e": 26051,
"s": 26023,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 26336,
"s": 26051,
"text": "It is highly recommended to read Dijkstra’s algorithm using the Priority Queue first.Widest Path Problem is a problem of finding a path between two vertices of the... |
Call a method Asynchronously in C# | Asynchronous programming in C# is an efficient approach towards activities blocked or access is delayed. If an activity is blocked like this in a synchronous process, then the complete application waits and it takes more time. The application stops responding. Using asynchronous approach, the applications continues wit... | [
{
"code": null,
"e": 1405,
"s": 1062,
"text": "Asynchronous programming in C# is an efficient approach towards activities blocked or access is delayed. If an activity is blocked like this in a synchronous process, then the complete application waits and it takes more time. The application stops resp... |
How to find the number of non-empty values in an R data frame column? | To find the number of non-empty values, we can find the negation of the sum of empty values which is actually the total number of non-empty values. For example, if we have a data frame df that contains a column x which has some empty values then to find the total number of non-empty values we can find the opposite/nega... | [
{
"code": null,
"e": 1511,
"s": 1062,
"text": "To find the number of non-empty values, we can find the negation of the sum of empty values which is actually the total number of non-empty values. For example, if we have a data frame df that contains a column x which has some empty values then to find... |
Binary Insertion Sort - GeeksforGeeks | 14 Jan, 2022
We can use binary search to reduce the number of comparisons in normal insertion sort. Binary Insertion Sort uses binary search to find the proper location to insert the selected item at each iteration. In normal insertion sort, it takes O(n) comparisons (at nth iteration) in the worst case. We can reduce ... | [
{
"code": null,
"e": 24999,
"s": 24971,
"text": "\n14 Jan, 2022"
},
{
"code": null,
"e": 25345,
"s": 24999,
"text": "We can use binary search to reduce the number of comparisons in normal insertion sort. Binary Insertion Sort uses binary search to find the proper location to inse... |
How to draw a rectangle in OpenCV using C++? | To draw a rectangle, we need four points. Look at the following figure.
In the figure, there are four points x1, x2, y1 and y2. These four points are forming the four coordinates. To draw a rectangle using OpenCV, we have to define these points and show the rectangle we need a matrix. We have to declare other relevant ... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To draw a rectangle, we need four points. Look at the following figure."
},
{
"code": null,
"e": 1432,
"s": 1134,
"text": "In the figure, there are four points x1, x2, y1 and y2. These four points are forming the four coordinates. To... |
How to compare two JavaScript array objects using jQuery/JavaScript ? - GeeksforGeeks | 29 Jun, 2021
Given two JavaScript array/array objects and the task is to compare the equality of both array objects. Approach 1:
Use jQuery not() method to check for each element of array1, if it is not present in array2 or for each element of array2, if this is not present in array1, then it return false in both cas... | [
{
"code": null,
"e": 26744,
"s": 26716,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 26862,
"s": 26744,
"text": "Given two JavaScript array/array objects and the task is to compare the equality of both array objects. Approach 1: "
},
{
"code": null,
"e": 27055,
... |
Find the maximum number of composite summands of a number - GeeksforGeeks | 21 Jul, 2021
Given an integer N(1<=N<=10^9). The task is to represent N as a sum of the maximum possible number of composite summands and print this maximum number, or print -1, if there are no such splittings. There can be multiple queries
Examples:
Input : 12
Output : 3
Explanation : 12 can be written has 4 + 4 + 4 ... | [
{
"code": null,
"e": 25046,
"s": 25018,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25274,
"s": 25046,
"text": "Given an integer N(1<=N<=10^9). The task is to represent N as a sum of the maximum possible number of composite summands and print this maximum number, or print -1... |
Collapsing Table Borders in CSS | The CSS border-collapse property is used to specify whether <table>elements have shared or separate borders. It can take two values: separate and collapse.
The syntax of CSS border-collapse property is as follows −
Selector {
border-collapse: /*value*/
}
The following examples illustrate CSS border-collapse −
Live ... | [
{
"code": null,
"e": 1218,
"s": 1062,
"text": "The CSS border-collapse property is used to specify whether <table>elements have shared or separate borders. It can take two values: separate and collapse."
},
{
"code": null,
"e": 1277,
"s": 1218,
"text": "The syntax of CSS border-c... |
Difference between 3-address instruction and 0-address instruction - GeeksforGeeks | 16 May, 2020
Prerequisite – Instruction Formats1. Three-Address Instructions :Three-address instruction is a format of machine instruction. It has one opcode and three address fields. One address field is used for destination and two address fields for source.
Example:
X = (A + B) x (C + D)
Solution:
ADD R1, A, B ... | [
{
"code": null,
"e": 26049,
"s": 26021,
"text": "\n16 May, 2020"
},
{
"code": null,
"e": 26297,
"s": 26049,
"text": "Prerequisite – Instruction Formats1. Three-Address Instructions :Three-address instruction is a format of machine instruction. It has one opcode and three address ... |
Angular PrimeNG tag Component - GeeksforGeeks | 08 Sep, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the tag component in Angular PrimeNG.
tag component: It is used to... | [
{
"code": null,
"e": 26464,
"s": 26436,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 26743,
"s": 26464,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
Google BigQuery SQL Dates and Times Cheat Sheet | by Rebecca Vickery | Towards Data Science | I have just started working on a time series forecasting project this morning. The first step in this project, as with most data science tasks, was to gather the data first. This meant a relatively simple SQL query in Google BigQuery. Once again I found myself googling how to extract the year from a timestamp, and scro... | [
{
"code": null,
"e": 784,
"s": 172,
"text": "I have just started working on a time series forecasting project this morning. The first step in this project, as with most data science tasks, was to gather the data first. This meant a relatively simple SQL query in Google BigQuery. Once again I found m... |
CharArrayWriter append() method in Java with Examples - GeeksforGeeks | 05 Jun, 2020
The append() method of CharArrayWriter class in Java is of three types:
The append(char) method of CharArrayWriter class in Java is used to append the specified character to the writer. This append() method appends one character at a time to the CharArrayWriter and returns this CharArrayWriter.Syntax: pub... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 24020,
"s": 23948,
"text": "The append() method of CharArrayWriter class in Java is of three types:"
},
{
"code": null,
"e": 28925,
"s": 24020,
"text": "The append(char) m... |
How To Make Your Graph Look Astonishingly Beautiful Quickly | by Bruce Ironhardt | Towards Data Science | So, you just finished retrieving, processing, and analyzing your data. You grab your data and you decide to graph it so you can show others your findings. You click ‘graph’ and......
Ya looks kinda boring. What we want is something a little more fun and dynamic. Something like... this:
Yes! Now that looks awesome! So l... | [
{
"code": null,
"e": 354,
"s": 171,
"text": "So, you just finished retrieving, processing, and analyzing your data. You grab your data and you decide to graph it so you can show others your findings. You click ‘graph’ and......"
},
{
"code": null,
"e": 458,
"s": 354,
"text": "Ya ... |
10 Features Your Streamlit ML App Can’t Do Without — Implemented | by Dor Meir | Towards Data Science | Much has been written about Streamlit killer data apps, and it is no surprise to see Streamlit is the fastest growing platform in this field:
However, developing an object segmentation app with the CRISP-DM phases in Streamlit made me realize many basic features are missing from the platform. These features are rarely ... | [
{
"code": null,
"e": 314,
"s": 172,
"text": "Much has been written about Streamlit killer data apps, and it is no surprise to see Streamlit is the fastest growing platform in this field:"
},
{
"code": null,
"e": 905,
"s": 314,
"text": "However, developing an object segmentation a... |
AWT CheckBox Class | Checkbox control is used to turn an option on(true) or off(false). There is label for each checkbox representing what the checkbox does.The state of a checkbox can be changed by clicking on it.
Following is the declaration for java.awt.Checkbox class:
public class Checkbox
extends Component
implements ItemSel... | [
{
"code": null,
"e": 1942,
"s": 1747,
"text": "Checkbox control is used to turn an option on(true) or off(false). There is label for each checkbox representing what the checkbox does.The state of a checkbox can be changed by clicking on it."
},
{
"code": null,
"e": 2000,
"s": 1942,
... |
Kotlin - Generics | Like Java, Kotlin provides higher order of variable typing called as Generics. In this chapter, we will learn how Kotlin implements Generics and how as a developer we can use those functionalities provided inside the generics library. Implementation wise, generics is pretty similar to Java but Kotlin developer has intr... | [
{
"code": null,
"e": 2847,
"s": 2425,
"text": "Like Java, Kotlin provides higher order of variable typing called as Generics. In this chapter, we will learn how Kotlin implements Generics and how as a developer we can use those functionalities provided inside the generics library. Implementation wis... |
JSON - Syntax | Let's have a quick look at the basic syntax of JSON. JSON syntax is basically considered as a subset of JavaScript syntax; it includes the following −
Data is represented in name/value pairs.
Data is represented in name/value pairs.
Curly braces hold objects and each name is followed by ':'(colon), the name/value pairs... | [
{
"code": null,
"e": 1931,
"s": 1780,
"text": "Let's have a quick look at the basic syntax of JSON. JSON syntax is basically considered as a subset of JavaScript syntax; it includes the following −"
},
{
"code": null,
"e": 1972,
"s": 1931,
"text": "Data is represented in name/val... |
A Naive Bayes approach towards creating closed domain Chatbots! | by Dhruvil Shah | Towards Data Science | Have you ever experienced seeking customer support help for making an inquiry or paying bills or maybe while ordering food online? The chances are good that your first interaction was with a chatbot. Many companies use rule-based or retrieval-based chatbots that are trained for a specific subject, these are called clos... | [
{
"code": null,
"e": 603,
"s": 171,
"text": "Have you ever experienced seeking customer support help for making an inquiry or paying bills or maybe while ordering food online? The chances are good that your first interaction was with a chatbot. Many companies use rule-based or retrieval-based chatbo... |
Spotify Data Project Part 1 — from Data Retrieval to First Insights | by Tomi Gelo | Towards Data Science | 2018 has been a great year so far for us data nerds. There are so many great options to get interesting data, such as the biggest data science community Kaggle, with more than 10.000 published datasets from all kinds of industries. Or Google (who also happens to own Kaggle) with the newly introduced dataset search tool... | [
{
"code": null,
"e": 632,
"s": 172,
"text": "2018 has been a great year so far for us data nerds. There are so many great options to get interesting data, such as the biggest data science community Kaggle, with more than 10.000 published datasets from all kinds of industries. Or Google (who also hap... |
Get fields from multiple sub-documents that match a condition in MongoDB? | To get fields from multiple sub-documents, use MongoDB aggregate with $unwind. Let us create a collection with documents −
> db.demo671.insertOne(
... {
...
... "details" : [
... {
... "id" : "1"
... },
... {
... CountryName:"US",
... "details1" : [
... {
... "id" : "1"
... ... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "To get fields from multiple sub-documents, use MongoDB aggregate with $unwind. Let us create a collection with documents −"
},
{
"code": null,
"e": 1832,
"s": 1185,
"text": "> db.demo671.insertOne(\n... {\n...\n... \"details\" : [... |
Explicit type casting operator in C++ | A type cast provides a method for explicit conversion of the type of an object in a specific situation. It can be used as a unary expression −
( type-name ) cast-expression
The compiler treats cast-expression as type type-name after a typecast has been made. Casts are used to convert objects of any scalar kind to or fr... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "A type cast provides a method for explicit conversion of the type of an object in a specific situation. It can be used as a unary expression −"
},
{
"code": null,
"e": 1235,
"s": 1205,
"text": "( type-name ) cast-expression"
},
{... |
Given a binary string, count number of substrings that start and end with 1. - GeeksforGeeks | 28 Apr, 2021
Given a binary string, count number of substrings that start and end with 1. For example, if the input string is “00100101”, then there are three substrings “1001”, “100101” and “101”.Source: Amazon Interview Experience | Set 162Difficulty Level: Rookie
A Simple Solution is to run two loops. Outer loops p... | [
{
"code": null,
"e": 25222,
"s": 25194,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 25477,
"s": 25222,
"text": "Given a binary string, count number of substrings that start and end with 1. For example, if the input string is “00100101”, then there are three substrings “1001”... |
What are C++ Manipulators (endl, setw, setprecision, setf)? | Stream Manipulators are functions specifically designed to be used in conjunction with the insertion (<<) and extraction (>>) operators on stream objects, for example −
std::cout << std::setw(10);
They are still regular functions and can also be called as any other function using a stream object as an argument, for exa... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "Stream Manipulators are functions specifically designed to be used in conjunction with the insertion (<<) and extraction (>>) operators on stream objects, for example −"
},
{
"code": null,
"e": 1259,
"s": 1231,
"text": "std::cout << ... |
How to return the response from an asynchronous call in Javascript? | There are multiple ways to return the response from an asynchronous call in javascript. Let us understand the problem first. Say you have a function called foo that is asynchronous and will give the data after some time. It can do this in 2 ways. It can either accept a callback that it'll call when it is ready to execu... | [
{
"code": null,
"e": 1428,
"s": 1062,
"text": "There are multiple ways to return the response from an asynchronous call in javascript. Let us understand the problem first. Say you have a function called foo that is asynchronous and will give the data after some time. It can do this in 2 ways. It can... |
Sieve of Eratosthenes in java | Sieve of Eratosthenes is the ancient algorithm to find prime numbers up to a given number.
1. Generate integers from 2 to n (Given number).
2. Counting from 2 mark every 2nd integer. (multiples of 2)
3. Now, starting from 3 mark every third integer. (multiples of 3)
4. Finally, marking from 5 mark every 5th integer.(mu... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "Sieve of Eratosthenes is the ancient algorithm to find prime numbers up to a given number."
},
{
"code": null,
"e": 1202,
"s": 1153,
"text": "1. Generate integers from 2 to n (Given number)."
},
{
"code": null,
"e": 1262,... |
numpy.char.encode() | This function calls str.encode function for each element in the array. Default encoding is utf_8, codecs available in standard Python library may be used.
import numpy as np
a = np.char.encode('hello', 'cp500')
print a
Its output is as follows −
�����
63 Lectures
6 hours
Abhilash Nelson
19 Lecture... | [
{
"code": null,
"e": 2398,
"s": 2243,
"text": "This function calls str.encode function for each element in the array. Default encoding is utf_8, codecs available in standard Python library may be used."
},
{
"code": null,
"e": 2464,
"s": 2398,
"text": "import numpy as np \na = np... |
ML Pipeline with Grid Search in Scikit-Learn | by Benjamin Wang | Towards Data Science | Let’s start by outlining some main benefits of using ML pipeline, already.
Unified API for both data transformations and modelling
No extra preprocessing steps needed during model serving time
Joint grid search possible including data preprocessing steps/parameters and model selection/parameters
Compatible with big dat... | [
{
"code": null,
"e": 247,
"s": 172,
"text": "Let’s start by outlining some main benefits of using ML pipeline, already."
},
{
"code": null,
"e": 303,
"s": 247,
"text": "Unified API for both data transformations and modelling"
},
{
"code": null,
"e": 365,
"s": 303,... |
Flutter - Chip Widget - GeeksforGeeks | 12 Nov, 2021
Chip is a material design widget which comes built-in with flutter. It can simply be described as a compact element holding an icon and text, usually a rounded rectangle in the background. It can serve many purposes, like it can be simply used as a button, representing a user with a CircleAvatar and text, ... | [
{
"code": null,
"e": 23645,
"s": 23617,
"text": "\n12 Nov, 2021"
},
{
"code": null,
"e": 23993,
"s": 23645,
"text": "Chip is a material design widget which comes built-in with flutter. It can simply be described as a compact element holding an icon and text, usually a rounded rec... |
Design a Calculator using JavaScript with Neumorphism Effect/Soft UI | 01 Oct, 2021
In this article, we will learn how to create a working calculator with the Neumorphism effect using HTML, CSS, and JavaScript. Basic mathematical operations such as addition, subtraction, multiplication, and division can be performed using this calculator.
Approach: Neumorphism is a contemporary approach o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Oct, 2021"
},
{
"code": null,
"e": 311,
"s": 54,
"text": "In this article, we will learn how to create a working calculator with the Neumorphism effect using HTML, CSS, and JavaScript. Basic mathematical operations such as addition,... |
PyQt5 – How to make editable ComboBox | 22 Apr, 2020
In this article we will see how we can make a combo box such that user and change the value of it by typing. By default when we create a combo box we can only choose from the option in the drop down menu although in editable combo box we can set the text by our self.
In order to do this we will use setEdit... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 296,
"s": 28,
"text": "In this article we will see how we can make a combo box such that user and change the value of it by typing. By default when we create a combo box we can only choose from the ... |
MongoDB Projection | 10 Feb, 2021
MongoDB provides a special feature that is known as Projection. It allows you to select only the necessary data rather than selecting whole data from the document. For example, a document contains 5 fields, i.e.,
{
name: "Roma",
age: 30,
branch: EEE,
department: "HR",
salary: 20000
}
But we only want to d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Feb, 2021"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "MongoDB provides a special feature that is known as Projection. It allows you to select only the necessary data rather than selecting whole data from the document. For example... |
Aptitude Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to Aptitude. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz... | [
{
"code": null,
"e": 4348,
"s": 4026,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to Aptitude. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You... |
Java AWT | Cursor class with examples | 23 Oct, 2019
Cursor class is a part of Java AWT package and it is used to create custom cursors or inherit system or predefined cursors.Cursor class is mainly used to encapsulate the bitmap representation of the mouse cursor.
Constructor of cursor class are :
Cursor(int t) : Creates a cursor with specified classCursor(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Oct, 2019"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "Cursor class is a part of Java AWT package and it is used to create custom cursors or inherit system or predefined cursors.Cursor class is mainly used to encapsulate the bitma... |
v-else-if Directive in Vue.js | 25 Jun, 2020
v-else-if directive is a Vue.js directive used to toggle the display CSS property of an element depending on a condition when the if condition is not satisfied. First, we will create a div element with id as app and let’s apply the v-else-if directive to an element with data. Now we will create this data b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 411,
"s": 28,
"text": "v-else-if directive is a Vue.js directive used to toggle the display CSS property of an element depending on a condition when the if condition is not satisfied. First, we will... |
How to call ‘npm start’ though docker ? | 04 Jul, 2021
The following article covers how to call npm start through docker. While doing so, we will dockerize a simple React App.
Docker is an open-source platform for running, shipping, and managing applications. It allows us to manage our infrastructure in the same way as we manage our applications.
It runs the ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 173,
"s": 52,
"text": "The following article covers how to call npm start through docker. While doing so, we will dockerize a simple React App."
},
{
"code": null,
"e": 347,
"s": 17... |
How to generate JSON output using Python? | The json module in python allows you to dump a dict to json format directly. To use it,
import json
my_dict = {
'foo': 42,
'bar': {
'baz': "Hello",
'poo': 124.2
}
}
my_json = json.dumps(my_dict)
print(my_json)
This will give the output −
'{"foo": 42, "bar": {"baz": "Hello", "poo": 124.2}}'
You can... | [
{
"code": null,
"e": 1275,
"s": 1187,
"text": "The json module in python allows you to dump a dict to json format directly. To use it,"
},
{
"code": null,
"e": 1419,
"s": 1275,
"text": "import json\n\nmy_dict = {\n 'foo': 42,\n 'bar': {\n 'baz': \"Hello\",\n 'poo': ... |
R – Objects | 10 May, 2020
Every programming language has its own data types to store values or any information so that the user can assign these data types to the variables and perform operations respectively. Operations are performed accordingly to the data types.These data types can be character, integer, float, long, etc. Based ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 725,
"s": 53,
"text": "Every programming language has its own data types to store values or any information so that the user can assign these data types to the variables and perform operations resp... |
Ruby/DBI - Database Access | This chapter teaches you how to access a database using Ruby. The Ruby DBI module provides a database-independent interface for Ruby scripts similar to that of the Perl DBI module.
DBI stands for Database Independent Interface for Ruby, which means DBI provides an abstraction layer between the Ruby code and the underly... | [
{
"code": null,
"e": 2609,
"s": 2428,
"text": "This chapter teaches you how to access a database using Ruby. The Ruby DBI module provides a database-independent interface for Ruby scripts similar to that of the Perl DBI module."
},
{
"code": null,
"e": 2974,
"s": 2609,
"text": "D... |
Is Python call by reference or call by value | 19 Apr, 2021
Python utilizes a system, which is known as “Call by Object Reference” or “Call by assignment”. In the event that you pass arguments like whole numbers, strings or tuples to a function, the passing is like call-by-value because you can not change the value of the immutable objects being passed to the funct... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 559,
"s": 52,
"text": "Python utilizes a system, which is known as “Call by Object Reference” or “Call by assignment”. In the event that you pass arguments like whole numbers, strings or tuples to ... |
Simple Contact Form using HTML CSS and PHP | 02 Feb, 2022
In this article, we will learn to create a basic contact form using HTML, CSS, and PHP.
We are creating a simple HTML form that has three fields name, email address, and a message. The design part is implemented using CSS. Any functionality is added to the form using PHP. We can add our own details, such a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 116,
"s": 28,
"text": "In this article, we will learn to create a basic contact form using HTML, CSS, and PHP."
},
{
"code": null,
"e": 523,
"s": 116,
"text": "We are creating a ... |
Remove duplicate words from Sentence using Regular Expression | 16 Feb, 2021
Given a string str which represents a sentence, the task is to remove the duplicate words from sentences using regular expression in java.Examples:
Input: str = “Good bye bye world world” Output: Good bye world Explanation: We remove the second occurrence of bye and world from Good bye bye world worldInp... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 204,
"s": 54,
"text": "Given a string str which represents a sentence, the task is to remove the duplicate words from sentences using regular expression in java.Examples: "
},
{
"code": nu... |
Expedia Hackerrank test for SDE (8 Years Experienced) | 05 Nov, 2020
The test was conducted on Hackerrank platform and there were three questions that needed to be solved in 100 minutes:
Run-length Encoding.Device name system: Given a list of IoT devices having names say:int[] deviceNames={"tv","fridge","microwave",
"tv","microwave","tv","fridge"}
Generat... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Nov, 2020"
},
{
"code": null,
"e": 146,
"s": 28,
"text": "The test was conducted on Hackerrank platform and there were three questions that needed to be solved in 100 minutes:"
},
{
"code": null,
"e": 598,
"s": 146,
... |
Bifid Cipher in Cryptography - GeeksforGeeks | 06 Nov, 2019
This cipher technique considered more secure compared to other substitution algorithms reason being it breaks the message apart into two separate streams and then recombines them. It is a combination of the Polybius square with the transposition and uses fractionation to achieve diffusion. This encrypting ... | [
{
"code": null,
"e": 24516,
"s": 24488,
"text": "\n06 Nov, 2019"
},
{
"code": null,
"e": 24913,
"s": 24516,
"text": "This cipher technique considered more secure compared to other substitution algorithms reason being it breaks the message apart into two separate streams and then ... |
Count the Arithmetic sequences in the Array of size at least 3 - GeeksforGeeks | 18 Aug, 2021
Given an array arr[] of size N, the task is to find the count of all arithmetic sequences in the array.
Examples:
Input: arr = [1, 2, 3, 4] Output: 3 Explanation: The arithmetic sequences in arr are [1, 2, 3], [2, 3, 4] and [1, 2, 3, 4] itself.
Input: arr = [1, 3, 5, 6, 7, 8] Output: 4 Explanation: The a... | [
{
"code": null,
"e": 24822,
"s": 24794,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 24927,
"s": 24822,
"text": "Given an array arr[] of size N, the task is to find the count of all arithmetic sequences in the array. "
},
{
"code": null,
"e": 24938,
"s": 24927... |
Minimum Swaps for Bracket Balancing | Practice | GeeksforGeeks | You are given a string S of 2N characters consisting of N ‘[‘ brackets and N ‘]’ brackets. A string is considered balanced if it can be represented in the for S2[S1] where S1 and S2 are balanced strings. We can make an unbalanced string balanced by swapping adjacent characters. Calculate the minimum number of swaps nec... | [
{
"code": null,
"e": 631,
"s": 238,
"text": "You are given a string S of 2N characters consisting of N ‘[‘ brackets and N ‘]’ brackets. A string is considered balanced if it can be represented in the for S2[S1] where S1 and S2 are balanced strings. We can make an unbalanced string balanced by swappi... |
Angular Highcharts - Basic Pie Chart | Following is an example of a Pie Chart.
We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. Now, let us see an example of a basic pie chart. We will also understand additional configuration. We have changed the type attribute in chart.
Configure the chart type to be ... | [
{
"code": null,
"e": 2075,
"s": 2035,
"text": "Following is an example of a Pie Chart."
},
{
"code": null,
"e": 2324,
"s": 2075,
"text": "We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. Now, let us see an example of a basic... |
Make a Beautiful Nightingale Rose Chart in Python | by Di(Candice) Han | Towards Data Science | Nightingale’s Rose chart, also referred to as “polar area chart” or “coxcomb chart”, is a circular graph that combines elements of a radar chart and a column graph. This special chart is named after a nurse, statistician, and reformer Florence Nightingale. She invented a color statistical graphic entitled “Diagram of t... | [
{
"code": null,
"e": 776,
"s": 172,
"text": "Nightingale’s Rose chart, also referred to as “polar area chart” or “coxcomb chart”, is a circular graph that combines elements of a radar chart and a column graph. This special chart is named after a nurse, statistician, and reformer Florence Nightingale... |
Function Interposition in C with an example of user defined malloc() - GeeksforGeeks | 29 May, 2017
Function interposition is the concept of replacing calls to functions in dynamic libraries with calls to user-defined wrappers.
What are applications?
We can count number of calls to function.Store caller’s information and arguments passed to function to track usage.Detect memory leak, we can override mall... | [
{
"code": null,
"e": 23843,
"s": 23815,
"text": "\n29 May, 2017"
},
{
"code": null,
"e": 23971,
"s": 23843,
"text": "Function interposition is the concept of replacing calls to functions in dynamic libraries with calls to user-defined wrappers."
},
{
"code": null,
"e"... |
How to combine lists of data frames in R? | If we have a list of data frames and the size of those data frames is same then we might want to combine the lists so that the data frames can be combined. This can be done by using mapply function along with cbind. For example, if we have two lists of data frames defined as List1 and List2 then we can combine them usi... | [
{
"code": null,
"e": 1399,
"s": 1062,
"text": "If we have a list of data frames and the size of those data frames is same then we might want to combine the lists so that the data frames can be combined. This can be done by using mapply function along with cbind. For example, if we have two lists of ... |
Unary operators in C/C++ - GeeksforGeeks | 19 Oct, 2021
Unary operator: are operators that act upon a single operand to produce a new value.
Types of unary operators:
unary minus(-)increment(++)decrement(- -)NOT(!)Addressof operator(&)sizeof()
unary minus(-)
increment(++)
decrement(- -)
NOT(!)
Addressof operator(&)
sizeof()
unary minusThe minus operator changes... | [
{
"code": null,
"e": 26570,
"s": 26542,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 26655,
"s": 26570,
"text": "Unary operator: are operators that act upon a single operand to produce a new value."
},
{
"code": null,
"e": 26681,
"s": 26655,
"text": "Types... |
rename command in Linux with Examples - GeeksforGeeks | 24 May, 2019
rename command in Linux is used to rename the named files according to the regular expression perlexpr. It can change the name of the multiple files. If the user will not specify any file names on the command line with this command then it will take the file name from the standard input.
Syntax:
rename [op... | [
{
"code": null,
"e": 24040,
"s": 24012,
"text": "\n24 May, 2019"
},
{
"code": null,
"e": 24329,
"s": 24040,
"text": "rename command in Linux is used to rename the named files according to the regular expression perlexpr. It can change the name of the multiple files. If the user w... |
Python | Merge Tuple String List values to String | 03 Nov, 2019
Sometimes, while working with records, we can have a problem in which any element of record can be of type string but mistakenly processed as list of characters. This can be a problem while working with a lot of data. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using list co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Nov, 2019"
},
{
"code": null,
"e": 310,
"s": 28,
"text": "Sometimes, while working with records, we can have a problem in which any element of record can be of type string but mistakenly processed as list of characters. This can be a... |
Convert a string to lowercase in Julia – lowercase() and lowercasefirst() Methods | 01 Apr, 2020
The lowercase() is an inbuilt function in julia which is used to return a string with all characters converted to lowercase.
Syntax: lowercase(s::AbstractString)
Parameters:
s::AbstractString: Specified string.
Returns: It returns a string with all characters converted to lowercase.
Example:
# Julia progra... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2020"
},
{
"code": null,
"e": 153,
"s": 28,
"text": "The lowercase() is an inbuilt function in julia which is used to return a string with all characters converted to lowercase."
},
{
"code": null,
"e": 190,
"s":... |
.NET Core - Migrations | In this chapter, we will migrate the console application which contains the project.json file build system instead of MSBuild (*.csproj). So, we have an old project which contains the following files.
Now the question is, why do we need migration? This project is created using .NET Core 1.0 preview 2 tooling and now we... | [
{
"code": null,
"e": 2721,
"s": 2520,
"text": "In this chapter, we will migrate the console application which contains the project.json file build system instead of MSBuild (*.csproj). So, we have an old project which contains the following files."
},
{
"code": null,
"e": 3006,
"s": ... |
Interpolator in Android with Example | 23 Feb, 2021
An interpolator is a function (in the mathematical sense) that outputs values “interpolated” between a range of values that are given to it as input. Interpolation is simply a method to generate new data points between two fixed data points. The exact values of these generated data points are determined by... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 983,
"s": 28,
"text": "An interpolator is a function (in the mathematical sense) that outputs values “interpolated” between a range of values that are given to it as input. Interpolation is simply a... |
PyQt5 | How to adjust the image inside Push Button ? | 22 Apr, 2020
When we set image to a push button we see that if the push button size is smaller than the image then image will get cropped. In this article we will see how we can retain the actual size of the image.
There are two ways to do this :
-> Change the size of Push Button according to the size of image.-> Inste... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 230,
"s": 28,
"text": "When we set image to a push button we see that if the push button size is smaller than the image then image will get cropped. In this article we will see how we can retain the... |
How to access the last element in a Pandas series? | 26 Nov, 2020
Prerequisite: Pandas
Pandas series is useful in handling various analytical operations independently or as being a part of pandas data frame. So it is important for us to know how various operations are performed in pandas series. The following article discusses various ways in which last element of a pan... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 50,
"s": 28,
"text": "Prerequisite: Pandas "
},
{
"code": null,
"e": 364,
"s": 50,
"text": "Pandas series is useful in handling various analytical operations independently or as ... |
Find the largest multiple of 3 | Set 1 (Using Queue) | 08 Jul, 2022
Given an array of non-negative integers. Find the largest multiple of 3 that can be formed from array elements. For example, if the input array is {8, 1, 9}, the output should be “9 8 1”, and if the input array is {8, 1, 7, 6, 0}, output should be “8 7 6 0”.
Method 1 (Brute Force) :
The simple & straight f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 311,
"s": 52,
"text": "Given an array of non-negative integers. Find the largest multiple of 3 that can be formed from array elements. For example, if the input array is {8, 1, 9}, the output shoul... |
Spring Boot JpaRepository with Example | 28 Dec, 2021
Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-ready environment which enables the developers to directly focus on the logic instead of struggling with the configuration and setup. Sp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 526,
"s": 52,
"text": "Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-rea... |
Navigation with BeautifulSoup | 24 Dec, 2021
BeautifulSoup is a Python package used for parsing HTML and XML documents, it creates a parse tree for parsed paged which can be used for web scraping, it pulls data from HTML and XML files and works with your favorite parser to provide the idiomatic way of navigating, searching, and modifying the parse tr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "BeautifulSoup is a Python package used for parsing HTML and XML documents, it creates a parse tree for parsed paged which can be used for web scraping, it pulls data from HTML... |
Efficient program to calculate e^x | 29 Oct, 2021
The value of Exponential Function e^x can be expressed using following Taylor Series.
e^x = 1 + x/1! + x^2/2! + x^3/3! + ......
How to efficiently calculate the sum of above series? The series can be re-written as
e^x = 1 + (x/1) (1 + (x/2) (1 + (x/3) (........) ) )
Let the sum needs to be calculated f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 140,
"s": 54,
"text": "The value of Exponential Function e^x can be expressed using following Taylor Series."
},
{
"code": null,
"e": 183,
"s": 140,
"text": "e^x = 1 + x/1! + x^... |
PHP | imagecreatetruecolor() Function | 23 Aug, 2019
The imagecreatetruecolor() function is an inbuilt function in PHP which is used to create a new true-color image. This function returns a blank image of the given size.
Syntax:
resource imagecreatetruecolor( $width, $height )
Parameters: This function accepts two parameters as mentioned above and described... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 197,
"s": 28,
"text": "The imagecreatetruecolor() function is an inbuilt function in PHP which is used to create a new true-color image. This function returns a blank image of the given size."
},
... |
How to verify enter number is phone number or not using regex in android? | This example demonstrates how to verify enter number is phone number or not, using regex 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" enc... | [
{
"code": null,
"e": 1288,
"s": 1187,
"text": "This example demonstrates how to verify enter number is phone number or not, using regex in android."
},
{
"code": null,
"e": 1417,
"s": 1288,
"text": "Step 1 - Create a new project in Android Studio, go to File ⇒ New Project and fil... |
C program to sort an array using pointers | 25 May, 2022
Given an array of size n, the task is to sort this array using pointers in C. Examples:
Input: n = 5, arr[] = {0, 23, 14, 12, 9}
Output: {0, 9, 12, 14, 23}
Input: n = 3, arr[] = {7, 0, 2}
Output: {0, 2, 7}
Approach: The array can be fetched with the help of pointers with the pointer variable pointing to t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 140,
"s": 52,
"text": "Given an array of size n, the task is to sort this array using pointers in C. Examples:"
},
{
"code": null,
"e": 259,
"s": 140,
"text": "Input: n = 5, arr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.