title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to Get Started with Spark NLP in 2 Weeks — Part I | by Mustafa Aytuğ Kaya | Towards Data Science | If you want to make a head start in enterprise NLP, but have no clue about Spark, this article is for you. I have seen many colleagues wanting to step to this domain but disheartened due to the initial learning overhead that comes with Spark. It may seem inconspicuous at first glance since Spark code is a bit different... | [
{
"code": null,
"e": 1006,
"s": 172,
"text": "If you want to make a head start in enterprise NLP, but have no clue about Spark, this article is for you. I have seen many colleagues wanting to step to this domain but disheartened due to the initial learning overhead that comes with Spark. It may seem... |
Human Resources Datafication (Part 1) | by Michelle Venables | Towards Data Science | Michelle Venables, Data Scientist and Machine Learning Engineer
What is the strategy that is best aligned with business activities and human capital? Human Resource (HR) strategy is the idea that sets a direction for all the key areas of HR. It is our increasing ability to use analytics to understand more about people,... | [
{
"code": null,
"e": 235,
"s": 171,
"text": "Michelle Venables, Data Scientist and Machine Learning Engineer"
},
{
"code": null,
"e": 615,
"s": 235,
"text": "What is the strategy that is best aligned with business activities and human capital? Human Resource (HR) strategy is the ... |
jQuery | multiple classes Selector - GeeksforGeeks | 08 Sep, 2021
The .class selector in jquery is used to select multiple classes.
Syntax:
$(".class1, .class2, .class3, ...")
Parameter:
class: This parameter is required to specify the class of the elements to be selected.
Example-1:
<!DOCTYPE html><html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jque... | [
{
"code": null,
"e": 40723,
"s": 40695,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 40789,
"s": 40723,
"text": "The .class selector in jquery is used to select multiple classes."
},
{
"code": null,
"e": 40797,
"s": 40789,
"text": "Syntax:"
},
{
"c... |
The complete guide to Polynomials | by Shaun Enslin | Towards Data Science | Need a brief and easy introduction to polynomials? Read ahead or watch this tutorial on youtube. You can also download the source code in this article from github.
The problem with linear regression is that data does not often go in a straight line. If we look at below data set, a linear function makes perfect sense.
P... | [
{
"code": null,
"e": 335,
"s": 171,
"text": "Need a brief and easy introduction to polynomials? Read ahead or watch this tutorial on youtube. You can also download the source code in this article from github."
},
{
"code": null,
"e": 490,
"s": 335,
"text": "The problem with linea... |
How to plot a histogram using Matplotlib in Python with a list of data? | To plot a histogram using Matplotlib, we can follow the steps given below −
Make a list of numbers and assign it to a variable x.
Make a list of numbers and assign it to a variable x.
Use the plt.hist() method to plot a histogram.
Use the plt.hist() method to plot a histogram.
Compute and draw the histogram of *x*.
Com... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "To plot a histogram using Matplotlib, we can follow the steps given below −"
},
{
"code": null,
"e": 1192,
"s": 1138,
"text": "Make a list of numbers and assign it to a variable x."
},
{
"code": null,
"e": 1246,
"s": ... |
2 Types of Duplicate Features in Machine Learning | by Samarth Agrawal | Towards Data Science | Two things distinguish top data scientists from others in most cases: Feature Creation and Feature Selection. i.e., creating features that capture deeper/hidden insights about the business or customer and then making the right choices about which features to choose for your model.
Feature Selection is the process of re... | [
{
"code": null,
"e": 454,
"s": 172,
"text": "Two things distinguish top data scientists from others in most cases: Feature Creation and Feature Selection. i.e., creating features that capture deeper/hidden insights about the business or customer and then making the right choices about which features... |
Exporting Data from scripts in R Programming - GeeksforGeeks | 01 Jun, 2020
So far the operations using R program are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are written to store the information fetched from the program. One such way is to store the fetched information in a file. So the two most common operations t... | [
{
"code": null,
"e": 28964,
"s": 28936,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 29307,
"s": 28964,
"text": "So far the operations using R program are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the programs are written to... |
PyWebIO 1.3.0: Add Tabs, Pin Input, and Update an Input Based on Another Input | by Khuyen Tran | Towards Data Science | PyWebIO is a Python library that makes it easy for you to create a web application like below in a few lines of code.
In the last article, I have introduced some basic usage of PyWebIO, but you might want to do more than just those basic functions. Luckily, PyWebIO 1.3.0 introduces more useful tools to create complicat... | [
{
"code": null,
"e": 290,
"s": 172,
"text": "PyWebIO is a Python library that makes it easy for you to create a web application like below in a few lines of code."
},
{
"code": null,
"e": 530,
"s": 290,
"text": "In the last article, I have introduced some basic usage of PyWebIO, ... |
GDB - Installation | Before you go for installation, check if you already have gdb installed on your Unix system by issuing the following command −
$gdb -help
If GDB is installed, then it will display all the available options within your GDB. If GDB is not installed, then proceed for a fresh installation.
You can install GDB on your sys... | [
{
"code": null,
"e": 1836,
"s": 1709,
"text": "Before you go for installation, check if you already have gdb installed on your Unix system by issuing the following command −"
},
{
"code": null,
"e": 1849,
"s": 1836,
"text": "$gdb -help \n"
},
{
"code": null,
"e": 1998... |
JavaScript program to take in a binary number as a string and returns its numerical equivalent in base 10 | We are required to write a JavaScript function that takes in a binary number as a string and
returns its numerical equivalent in base 10. Therefore, let’s write the code for the function.
This one is quite simple, we iterate over the string using a for loop and for each passing bit, we
double the number with adding the... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a binary number as a string and\nreturns its numerical equivalent in base 10. Therefore, let’s write the code for the function."
},
{
"code": null,
"e": 1419,
"s": 1250,
"t... |
What is Context on Android? | it's the context of current state of the application/object. It lets newly-created objects understand what has been going on. Typically, you call it to get information regarding another part of your program (activity and package/application). In the below program you will see that we have created a textView dynamically... | [
{
"code": null,
"e": 1470,
"s": 1062,
"text": "it's the context of current state of the application/object. It lets newly-created objects understand what has been going on. Typically, you call it to get information regarding another part of your program (activity and package/application). In the bel... |
Text Processing Techniques on Twitter data | by Ramya Vidiyala | Towards Data Science | There is a huge amount of data in text format. Analyzing data in the text format is the most complex task for a machine as it’s difficult for a machine to understand the semantics behind the text. To serve this purpose we process text data into a machine-understandable format.
Text Processing is simply converting the d... | [
{
"code": null,
"e": 450,
"s": 172,
"text": "There is a huge amount of data in text format. Analyzing data in the text format is the most complex task for a machine as it’s difficult for a machine to understand the semantics behind the text. To serve this purpose we process text data into a machine-... |
Generation of triangular wave using DAC interface | We write an 8085 assembly language program for the generation of triangular waveform using the Digital to Analog Converter (DAC) interface. The display of the waveform is seen on the CRO.
Let us consider a problem solution in this domain. The problem states that: To get unipolar output, J1 is shorted to J2 on the inter... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "We write an 8085 assembly language program for the generation of triangular waveform using the Digital to Analog Converter (DAC) interface. The display of the waveform is seen on the CRO."
},
{
"code": null,
"e": 1516,
"s": 1250,
"te... |
How to Write/create a JSON file using Java? | JSON or JavaScript Object Notation is a lightweight text-based open standard designed for human-readable data interchange. Conventions used by JSON are known to programmers, which include C, C++, Java, Python, Perl, etc. Sample JSON document −
{
"book": [
{
"id": "01",
"language": "Java",
... | [
{
"code": null,
"e": 1306,
"s": 1062,
"text": "JSON or JavaScript Object Notation is a lightweight text-based open standard designed for human-readable data interchange. Conventions used by JSON are known to programmers, which include C, C++, Java, Python, Perl, etc. Sample JSON document −"
},
{... |
Rat Maze With Multiple Jumps | Practice | GeeksforGeeks | A Maze is given as n*n matrix of blocks where source block is the upper left most block i.e., matrix[0][0] and destination block is lower rightmost block i.e., matrix[n-1][n-1]. A rat starts from source and has to reach the destination. The rat can move in only two directions: first forward if possible or down. If mult... | [
{
"code": null,
"e": 1098,
"s": 226,
"text": "A Maze is given as n*n matrix of blocks where source block is the upper left most block i.e., matrix[0][0] and destination block is lower rightmost block i.e., matrix[n-1][n-1]. A rat starts from source and has to reach the destination. The rat can move ... |
Repeat Rows of DataFrame N Times in R - GeeksforGeeks | 14 Sep, 2021
In this article, we will discuss how to repeat rows of Dataframe for a given number of times using R programming language.
A replication factor is declared to define the number of times the data frame rows are to be repeated. The do.call() method in R is used to perform an R function while taking as input... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 24975,
"s": 24851,
"text": "In this article, we will discuss how to repeat rows of Dataframe for a given number of times using R programming language. "
},
{
"code": null,
"e": 25... |
Framework7 - Card HTML Layout | The card HTML layout contains many classes, which are listed below −
cards
It is the card container.
card-header
It is the optional card header that is used to display card title.
card-footer
It is optional and used for specifying additional information or custom links.
card-content
It is the main container for content... | [
{
"code": null,
"e": 2720,
"s": 2651,
"text": "The card HTML layout contains many classes, which are listed below −"
},
{
"code": null,
"e": 2726,
"s": 2720,
"text": "cards"
},
{
"code": null,
"e": 2752,
"s": 2726,
"text": "It is the card container."
},
{
... |
How to make an HTTP POST request on iOS App using Swift? | To make an http request in iOS we’ll make use of DataTask and sessions. We’ll create configuration, sessions, url, request, and dataTask objects. Let’s see the steps that we’ll go through.
First of all we need to create a session object, which default configuration.
First of all we need to create a session object, whic... | [
{
"code": null,
"e": 1251,
"s": 1062,
"text": "To make an http request in iOS we’ll make use of DataTask and sessions. We’ll create configuration, sessions, url, request, and dataTask objects. Let’s see the steps that we’ll go through."
},
{
"code": null,
"e": 1329,
"s": 1251,
"t... |
Split array into two subarrays such that difference of their maximum is minimum - GeeksforGeeks | 07 May, 2021
Given an array arr[] consisting of integers, the task is to split the given array into two sub-arrays such that the difference between their maximum elements is minimum.
Example:
Input: arr[] = {7, 9, 5, 10} Output: 1 Explanation: The subarrays are {5, 10} and {7, 9} with the difference between their ma... | [
{
"code": null,
"e": 24975,
"s": 24947,
"text": "\n07 May, 2021"
},
{
"code": null,
"e": 25147,
"s": 24975,
"text": "Given an array arr[] consisting of integers, the task is to split the given array into two sub-arrays such that the difference between their maximum elements is mi... |
6 simple tips for prettier and customised plots in Seaborn (Python) | by Zolzaya Luvsandorj | Towards Data Science | In this post, we will look at simple ways to customise your plots to make them aesthetically more pleasing. I hope these simple tricks will help you get better-looking plots and save you time from adjusting individual plots.
The scripts in this post are tested in Python 3.8.3 in Jupyter Notebook.
Let’s use Seaborn’s bu... | [
{
"code": null,
"e": 396,
"s": 171,
"text": "In this post, we will look at simple ways to customise your plots to make them aesthetically more pleasing. I hope these simple tricks will help you get better-looking plots and save you time from adjusting individual plots."
},
{
"code": null,
... |
Difference between require() and require_once() in PHP - GeeksforGeeks | 21 Oct, 2021
PHP require() Function: The require() function in PHP is mostly used to include the code/data of one PHP file to another file. During this process, if there are any kind of errors then this require() function will display a warning along with a fatal error which will immediately stop the execution of the s... | [
{
"code": null,
"e": 24581,
"s": 24553,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 24896,
"s": 24581,
"text": "PHP require() Function: The require() function in PHP is mostly used to include the code/data of one PHP file to another file. During this process, if there are an... |
How to Deal with Imbalanced Multiclass Datasets in Python | by Angelica Lo Duca | Towards Data Science | Imbalanced datasets may often produce poor performance when running a Machine Learning model, although, in some cases the evaluation metrics produce good results. This can be due to the fact that the model is good at predicting the majority class, but it has poor performance while predicting the minority class. Since t... | [
{
"code": null,
"e": 617,
"s": 172,
"text": "Imbalanced datasets may often produce poor performance when running a Machine Learning model, although, in some cases the evaluation metrics produce good results. This can be due to the fact that the model is good at predicting the majority class, but it ... |
How to Migrate Your Oracle Database to PostgreSQL | by Shafiqa Iqbal | Towards Data Science | Using this walkthrough, you can learn how to migrate Oracle database to RDS PostgreSQL using AWS Data Migration Service and AWS Schema Conversion Tool (AWS SCT). In this post we will cover the following:
Migrate Schema using AWS SCT
Drop foreign keys and secondary indexes on the target database, and disable triggers.
P... | [
{
"code": null,
"e": 375,
"s": 171,
"text": "Using this walkthrough, you can learn how to migrate Oracle database to RDS PostgreSQL using AWS Data Migration Service and AWS Schema Conversion Tool (AWS SCT). In this post we will cover the following:"
},
{
"code": null,
"e": 404,
"s": ... |
FileChannel Class tryLock() Method in Java with Examples | 13 Apr, 2021
In the case of a multi-threaded program, where multiple threads are in execution concurrently, we require locks to be acquired and released to maintain synchronization among the processes. FileChannel Class of java also provides a method known as trylock() which is used to acquire a lock on the File specif... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 449,
"s": 28,
"text": "In the case of a multi-threaded program, where multiple threads are in execution concurrently, we require locks to be acquired and released to maintain synchronization among t... |
Maximize number of elements from Array with sum at most K | 12 May, 2021
Given an array A[] of N integers and an integer K, the task is to select the maximum number of elements from the array whose sum is at most K.
Examples:
Input: A[] = {1, 12, 5, 111, 200, 1000, 10}, K = 50 Output: 4 Explanation: Maximum number of selections will be 1, 12, 5, 10 that is 1 + 12 + 5 + 10 = 28... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 May, 2021"
},
{
"code": null,
"e": 172,
"s": 28,
"text": "Given an array A[] of N integers and an integer K, the task is to select the maximum number of elements from the array whose sum is at most K. "
},
{
"code": null,
... |
Class and Instance Attributes in Python | 20 Apr, 2020
Class attributes
Class attributes belong to the class itself they will be shared by all the instances. Such attributes are defined in the class body parts usually at the top, for legibility.
# Write Python code hereclass sampleclass: count = 0 # class attribute def increase(self): sample... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Apr, 2020"
},
{
"code": null,
"e": 69,
"s": 52,
"text": "Class attributes"
},
{
"code": null,
"e": 243,
"s": 69,
"text": "Class attributes belong to the class itself they will be shared by all the instances. Such... |
Opening and Reading a File in Julia | 20 Jul, 2021
File handling in Julia is achieved using functions such as open(), read(), close(). There are many ways to read the contents of a file like readline(), readlines() and just read().
open(): To open a file existing in an absolute path, provided as the parameter.
read(): Read the contents of the file into ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 234,
"s": 52,
"text": "File handling in Julia is achieved using functions such as open(), read(), close(). There are many ways to read the contents of a file like readline(), readlines() and just r... |
turtle.setworldcoordinates() function in Python | 25 Aug, 2021
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to set up a user-defined coordinate system. This performs a reset. I... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a ver... |
Program to calculate product of digits of a number | 24 Nov, 2021
Given a number, the task is to find the product of the digits of a number.
Examples:
Input: n = 4513
Output: 60
Input: n = 5249
Output: 360
General Algorithm for product of digits in a given number:
Get the numberDeclare a variable to store the product and set it to 1Repeat the next two steps till the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 103,
"s": 28,
"text": "Given a number, the task is to find the product of the digits of a number."
},
{
"code": null,
"e": 114,
"s": 103,
"text": "Examples: "
},
{
"code"... |
How to initialize multiple tables using jQuery DataTables plugin ? | 15 Jan, 2021
DataTables are a modern jQuery plugin for adding interactive and advanced controls to HTML tables for our webpage. It is a very simple-to-use plug-in with a variety of options for the developer’s custom changes as per the application need. The plugin’s features include pagination, sorting, searching, and m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jan, 2021"
},
{
"code": null,
"e": 360,
"s": 28,
"text": "DataTables are a modern jQuery plugin for adding interactive and advanced controls to HTML tables for our webpage. It is a very simple-to-use plug-in with a variety of options... |
Bash program to check if the Number is a Palindrome | 14 Jan, 2019
Given a number num, find whether the given number is palindrome or not using Bash Scripting.
Examples:
Input :
666
Output :
Number is palindrome
Input :
45667
Output :
Number is NOT palindrome
ApproachTo find the given number is palindrome just check if the number is same from beginning and the end. Rev... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Jan, 2019"
},
{
"code": null,
"e": 147,
"s": 54,
"text": "Given a number num, find whether the given number is palindrome or not using Bash Scripting."
},
{
"code": null,
"e": 157,
"s": 147,
"text": "Examples:"
... |
Puzzle 19 | (Poison and Rat) | 12 Aug, 2021
There are 1000 wine bottles. One of the bottles contains poisoned wine. A rat dies after one hour of drinking the poisoned wine. How many minimum rats are needed to figure out which bottle contains poison in hour.
Solution: We need to figure out in hour. We need 10 rats to figure out the poisoned bottle. ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 267,
"s": 52,
"text": "There are 1000 wine bottles. One of the bottles contains poisoned wine. A rat dies after one hour of drinking the poisoned wine. How many minimum rats are needed to figure ou... |
Activity Lifecycle in Android with Demo App - GeeksforGeeks | 30 Apr, 2021
In Android, an activity is referred to as one screen in an application. It is very similar to a single window of any desktop application. An Android app consists of one or more screens or activities. Each activity goes through various stages or a lifecycle and is managed by activity stacks. So when a new a... | [
{
"code": null,
"e": 24600,
"s": 24572,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 25004,
"s": 24600,
"text": "In Android, an activity is referred to as one screen in an application. It is very similar to a single window of any desktop application. An Android app consists o... |
QlikView - Dashboard | A Dashboard is a powerful feature to display values from many fields simultaneously. QlikeView's feature of data association in memory can display the dynamic values in all the sheet objects.
Let us consider the following input data, which represents the sales figure of different product lines and product categories.
P... | [
{
"code": null,
"e": 3112,
"s": 2920,
"text": "A Dashboard is a powerful feature to display values from many fields simultaneously. QlikeView's feature of data association in memory can display the dynamic values in all the sheet objects."
},
{
"code": null,
"e": 3239,
"s": 3112,
... |
Create Word Cloud using Python | In this problem, there is a file with some texts. We have to create Word Clouds from those texts and one masking image. The program will store the word cloud image as png format.
To implement this problem, we need to use some libraries of python. The libraries are matplotlib, wordcloud, numpy, tkinter and PIL.
To insta... | [
{
"code": null,
"e": 1241,
"s": 1062,
"text": "In this problem, there is a file with some texts. We have to create Word Clouds from those texts and one masking image. The program will store the word cloud image as png format."
},
{
"code": null,
"e": 1374,
"s": 1241,
"text": "To ... |
Decode the string | Practice | GeeksforGeeks | An encoded string (s) is given, the task is to decode it. The pattern in which the strings were encoded were as follows
original string: abbbababbbababbbab
encoded string : 3[a3[b]1[ab]]
Example 1:
Input: s = 1[b]
Output: b
Explaination: 'b' is present only one time.
Example 2:
Input: s = 3[b2[ca]]
Output: bcacabcacab... | [
{
"code": null,
"e": 426,
"s": 238,
"text": "An encoded string (s) is given, the task is to decode it. The pattern in which the strings were encoded were as follows\noriginal string: abbbababbbababbbab \nencoded string : 3[a3[b]1[ab]]"
},
{
"code": null,
"e": 437,
"s": 426,
"text... |
How can Tensorflow be used to add dense layers on top using Python? | A dense layer can be added to the sequential model using the ‘add’ method, and specifying the type of layer as ‘Dense’. The layers are first flattened, and then a layer is added. This new layer will be applied to the entire training dataset.
Read More:
What is TensorFlow and how Keras work with TensorFlow to create Neu... | [
{
"code": null,
"e": 1304,
"s": 1062,
"text": "A dense layer can be added to the sequential model using the ‘add’ method, and specifying the type of layer as ‘Dense’. The layers are first flattened, and then a layer is added. This new layer will be applied to the entire training dataset."
},
{
... |
Getting Started with Git and GitHub: A Complete Tutorial for Beginner | by Audhi Aprilliant | Towards Data Science | Git is an open-source version control system commonly used by developers around the world. The version control system helps developers to contribute to the open-source projects and check the version of codes. The git is developed by Linus Torvald, the Linux founder as a tool to help Linux developers develop and maintai... | [
{
"code": null,
"e": 588,
"s": 172,
"text": "Git is an open-source version control system commonly used by developers around the world. The version control system helps developers to contribute to the open-source projects and check the version of codes. The git is developed by Linus Torvald, the Lin... |
JupyterLab 2.0. Let’s take a glimpse into the future of... | by Roman Orac | Towards Data Science | A few days ago, I wrote a story Are you still using JupyterLab? and I got an amazing response. Readers pointed me to various new IDEs that are being developed for Data Science, but one of them stood out.
Michal Krassowski left me a note about a project that he and other contributors have been working on. JupyterLab-LSP... | [
{
"code": null,
"e": 376,
"s": 172,
"text": "A few days ago, I wrote a story Are you still using JupyterLab? and I got an amazing response. Readers pointed me to various new IDEs that are being developed for Data Science, but one of them stood out."
},
{
"code": null,
"e": 787,
"s": ... |
Validate IPv4 address using ReGex patterns in C++ | Given an IP Address, the task is to validate this IP address and check whether it is IPv4 or not with the help of ReGex(Regular Expression). If the IP Address is valid then print “IPv4 Address” otherwise print “Not”.
A valid IPv4 address is an IP in the form "X1.X2.X3.X4" where 0 <= Xi <= 255 and Xi cannot contain lead... | [
{
"code": null,
"e": 1279,
"s": 1062,
"text": "Given an IP Address, the task is to validate this IP address and check whether it is IPv4 or not with the help of ReGex(Regular Expression). If the IP Address is valid then print “IPv4 Address” otherwise print “Not”."
},
{
"code": null,
"e":... |
Angular Material 7 - Chips | The <mat-chip-list>, an Angular Directive, is used to a list of values as chips.
In this chapter, we will showcase the configuration required to draw a chip control using Angular Material.
Follow the following steps to update the Angular application we created in Angular 6 - Project Setup chapter −
Following is the con... | [
{
"code": null,
"e": 2836,
"s": 2755,
"text": "The <mat-chip-list>, an Angular Directive, is used to a list of values as chips."
},
{
"code": null,
"e": 2944,
"s": 2836,
"text": "In this chapter, we will showcase the configuration required to draw a chip control using Angular Mat... |
Plotting the Learning Curve with a Single Line of Code | by Rukshan Pramoditha | Towards Data Science | The Learning Curve is another great tool to have in any data scientist’s toolbox. It is a visualization technique that can be to see how much our model benefits from adding more training data. It shows the relationship between the training score and the test score for a machine learning model with a varying number of t... | [
{
"code": null,
"e": 606,
"s": 172,
"text": "The Learning Curve is another great tool to have in any data scientist’s toolbox. It is a visualization technique that can be to see how much our model benefits from adding more training data. It shows the relationship between the training score and the t... |
What is Pass By Reference and Pass By Value in PHP? | In this article, we will learn about pass by value and pass by reference in PHP.
Now, let’s understand these two concepts in detail.
In PHP generally, we followed to pass the arguments to the function with passed by value approach. We are following this practice because if the value of the argument within the function... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "In this article, we will learn about pass by value and pass by reference in PHP. "
},
{
"code": null,
"e": 1196,
"s": 1144,
"text": "Now, let’s understand these two concepts in detail."
},
{
"code": null,
"e": 1444,
"... |
Evaluating Bayesian Mixed Models in R/Python | by Eduardo Coronado Sroka | Towards Data Science | What can I say, model checking and evaluation are just one of those things you can’t (and shouldn’t) avoid in your model development process (as if this isn’t obvious enough). Yet, I think in many cases we end up chasing performance metrics — say RMSE, misclassification, etc.— rather than understanding how well our mod... | [
{
"code": null,
"e": 556,
"s": 171,
"text": "What can I say, model checking and evaluation are just one of those things you can’t (and shouldn’t) avoid in your model development process (as if this isn’t obvious enough). Yet, I think in many cases we end up chasing performance metrics — say RMSE, mi... |
Largest K digit number divisible by all numbers in given array | 15 Dec, 2021
Given an array arr[] of size N and an integer K. The task is to find the largest K digit number divisible by all number of arr[].
Examples:
Input: arr[] = {2, 3, 5}, K = 3Output: 990Explanation: 990 is the largest 3 digit number divisible by 2, 3 and 5.
Input: arr[] = {91, 93, 95}, K = 3Output: -1Explanati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "Given an array arr[] of size N and an integer K. The task is to find the largest K digit number divisible by all number of arr[]."
},
{
"code": null,
"e": 168,
... |
value_of_css_property() element method – Selenium Python | 27 Apr, 2020
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 585,
"s": 28,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium ... |
Lazy import in Python | 11 May, 2021
In this article, we will learn how to do Lazy import in Python. For this, let’s first understand the lazy import.
It is a feature of the Pyforest module that allows the user to perform the task without adding libraries to the code snippet as the task of this function is to add those libraries themselves in... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 168,
"s": 54,
"text": "In this article, we will learn how to do Lazy import in Python. For this, let’s first understand the lazy import."
},
{
"code": null,
"e": 577,
"s": 168,
... |
BigDecimal equals() Method in Java | 04 Dec, 2018
The java.math.BigDecimal.equals() method checks for equality of a BigDecimal value with the object passed. This method considers two BigDecimal objects equal if only if they are equal in value and scale.
Syntax:
public boolean equals(Object obj)
Parameters: This function accepts an Object obj as a mandator... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 232,
"s": 28,
"text": "The java.math.BigDecimal.equals() method checks for equality of a BigDecimal value with the object passed. This method considers two BigDecimal objects equal if only if they a... |
Ways to remove particular List element in Python | 03 Dec, 2020
List is an important container and used almost in every code of day-day programming as well as web-development. The more it is used, more is the requirement to master it and hence knowledge of its operations is necessary.
Let’s see the different ways of removing particular list element.
Method #1 : Using r... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2020"
},
{
"code": null,
"e": 250,
"s": 28,
"text": "List is an important container and used almost in every code of day-day programming as well as web-development. The more it is used, more is the requirement to master it and h... |
YACC program to implement a Calculator and recognize a valid Arithmetic expression | 26 Aug, 2020
Problem: YACC program to implement a Calculator and recognize a valid Arithmetic expression.
Explanation:Yacc (for “yet another compiler compiler.”) is the standard parser generator for the Unix operating system. An open source program, yacc generates code for the parser in the C programming language. The ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Aug, 2020"
},
{
"code": null,
"e": 145,
"s": 52,
"text": "Problem: YACC program to implement a Calculator and recognize a valid Arithmetic expression."
},
{
"code": null,
"e": 442,
"s": 145,
"text": "Explanation:... |
Comparison between Lists and Array in Python | 08 Jul, 2020
Python programming language has four collection data types namely List, Tuple, Set, and Dictionary. A list is a mutable and ordered collection i.e., elements of the list can be changed and it maintains the order of insertion of its items. Because of the property of order maintaining, each element of the li... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 524,
"s": 54,
"text": "Python programming language has four collection data types namely List, Tuple, Set, and Dictionary. A list is a mutable and ordered collection i.e., elements of the list can ... |
Python | Longest String in list | 11 Dec, 2019
Sometimes, while working with Python Lists, we can have a problem in which we receive Strings as elements and wish to compute the String which has maximum length. This kind of problem can have applications in many domains. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using lo... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n11 Dec, 2019"
},
{
"code": null,
"e": 340,
"s": 53,
"text": "Sometimes, while working with Python Lists, we can have a problem in which we receive Strings as elements and wish to compute the String which has maximum length. This kind o... |
Race Condition in Golang | 07 Jul, 2020
As per Wikipedia, race condition is defined as the condition of an electronics, software, or other systems where the system’s substantive behavior is dependent on the sequence or timing of other uncontrollable events. Race condition falls under the “Concurrency” department. Concurrency is the art of making... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2020"
},
{
"code": null,
"e": 429,
"s": 28,
"text": "As per Wikipedia, race condition is defined as the condition of an electronics, software, or other systems where the system’s substantive behavior is dependent on the sequence... |
Program to find Circumcenter of a Triangle | 20 Jun, 2022
Given 3 non-collinear points in the 2D Plane P, Q and R with their respective x and y coordinates, find the circumcenter of the triangle.Note: Circumcenter of a triangle is the centre of the circle, formed by the three vertices of a triangle. Note that three points can uniquely determine a circle.Examples:... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 362,
"s": 52,
"text": "Given 3 non-collinear points in the 2D Plane P, Q and R with their respective x and y coordinates, find the circumcenter of the triangle.Note: Circumcenter of a triangle is t... |
Baud Rate and its importance | 19 Oct, 2021
Computers communicate by transmitting bits of digital data from one device to another device through transmission media. You can send and receive data without worrying about setting up the details. However, for some devices, we need to supply baud rates and other details.
Old devices use parallel and seria... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "Computers communicate by transmitting bits of digital data from one device to another device through transmission media. You can send and receive data without worrying about s... |
Radar Chart or Spider Chart in Excel | 24 May, 2021
Radar Chart is a pictorial representation of multivariate data. Multivariate data analysis in statistics is nothing but dealing with more than one outcome or observations. Radar graphs can be of two dimensions, three dimensions, or more on the basis of the multiple comparable variables used. The variables ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 538,
"s": 54,
"text": "Radar Chart is a pictorial representation of multivariate data. Multivariate data analysis in statistics is nothing but dealing with more than one outcome or observations. Ra... |
Java Program to Convert File to a Byte Array | 22 Apr, 2022
Here, we will go through the different ways to convert file to byte array in Java.
Note: Keep a check that prior doing anything first. Create a file on the system repository to deal with our program\writing a program as we will be accessing the same directory through our programs.
Methods:
Using read(byte[... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 136,
"s": 53,
"text": "Here, we will go through the different ways to convert file to byte array in Java."
},
{
"code": null,
"e": 335,
"s": 136,
"text": "Note: Keep a check tha... |
Prototype - addClassName() Method | This method Adds a CSS class to element.
element.addClassName(className);
An HTML element in which CSS class is added.
<html>
<head>
<title>Prototype examples</title>
<script type="text/javascript" src = "/javascript/prototype.js"></script>
<script>
function addClass() {
... | [
{
"code": null,
"e": 2236,
"s": 2195,
"text": "This method Adds a CSS class to element."
},
{
"code": null,
"e": 2270,
"s": 2236,
"text": "element.addClassName(className);\n"
},
{
"code": null,
"e": 2315,
"s": 2270,
"text": "An HTML element in which CSS class ... |
Ruby | Array length() function | 06 Dec, 2019
Array#length() : length() is a Array class method which returns the number of elements in the array.
Syntax: Array.length()
Parameter: Array
Return: the number of elements in the array.
Example #1 :
# Ruby code for length() method # declaring arraya = [18, 22, 33, nil, 5, 6] # declaring arrayb = [1, 4, 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 153,
"s": 52,
"text": "Array#length() : length() is a Array class method which returns the number of elements in the array."
},
{
"code": null,
"e": 176,
"s": 153,
"text": "Synt... |
How do you separate zeros from non-zeros in an integer array using Java? | To separate zeros from non-zeros in an integer array, and push them to the end, you need to rearrange it array by assigning all the nonzero elements to its positions, sequentially, starting from zero. Then, from last position of the array to its end populate it with zeros.
Following Java program pushes all the zeros in... | [
{
"code": null,
"e": 1336,
"s": 1062,
"text": "To separate zeros from non-zeros in an integer array, and push them to the end, you need to rearrange it array by assigning all the nonzero elements to its positions, sequentially, starting from zero. Then, from last position of the array to its end pop... |
Equivalent for Row_Number() in SAP ABAP | When you want to modify the contents and store them into table and also to add a column for the value, use something like
DATA: my_string TYPE String
LOOP AT itab INTO wa_itab.
my_string = sy-tabix.
CONCATENATE some_text my_string more_text into wa_itab-my_field.
MODIFY itab FROM wa_itab.
CLEAR my_string.
ENDLOOP. | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "When you want to modify the contents and store them into table and also to add a column for the value, use something like"
},
{
"code": null,
"e": 1212,
"s": 1184,
"text": "DATA: my_string TYPE String"
},
{
"code": null,
... |
How to execute a background process in PHP ? - GeeksforGeeks | 12 Jan, 2022
What is the background process and why do we need them?
A process that runs behind the scenes (i.e. in the background) and without user intervention is called the background process. Debug/error logging, monitoring any system with grafana or kibana, user notification, scheduling jobs, and publishing some... | [
{
"code": null,
"e": 24972,
"s": 24944,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 25028,
"s": 24972,
"text": "What is the background process and why do we need them?"
},
{
"code": null,
"e": 25560,
"s": 25028,
"text": "A process that runs behind the sce... |
JSP - Handling Date | In this chapter, we will discuss how to handle data in JSP. One of the most important advantages of using JSP is that you can use all the methods available in core Java. We will take you through the Date class which is available in the java.util package; this class encapsulates the current date and time.
The Date class... | [
{
"code": null,
"e": 2545,
"s": 2239,
"text": "In this chapter, we will discuss how to handle data in JSP. One of the most important advantages of using JSP is that you can use all the methods available in core Java. We will take you through the Date class which is available in the java.util package... |
C++ STL Priority Queue | Practice | GeeksforGeeks | Implement different operations on Priority Queue .i.e. adding element, removing element, size of priority queue, print the queue and top element of queue.
Input:
The first line of input contains an integer T denoting the no of test cases. For each test case, the first line of input contains an integer Q denoting the n... | [
{
"code": null,
"e": 394,
"s": 238,
"text": "Implement different operations on Priority Queue .i.e. adding element, removing element, size of priority queue, print the queue and top element of queue. "
},
{
"code": null,
"e": 916,
"s": 394,
"text": "Input:\nThe first line of inpu... |
Cordova - Network Information | This plugin provides information about device's network.
To install this plugin, we will open command prompt and run the following code −
C:\Users\username\Desktop\CordovaProject>cordova plugin
add cordova-plugin-network-information
Let's create one button in index.html that will be used for getting info about net... | [
{
"code": null,
"e": 2237,
"s": 2180,
"text": "This plugin provides information about device's network."
},
{
"code": null,
"e": 2318,
"s": 2237,
"text": "To install this plugin, we will open command prompt and run the following code −"
},
{
"code": null,
"e": 2418,
... |
DSum() and DAvg() Functions MS Access - GeeksforGeeks | 18 Sep, 2020
1. DSum() Function :In MS Access, the DSum() function is used to calculate the sum of a set of values in a specified set of records (a domain). The DSum functions return the sum of a set of values from a field that satisfy the criteria. The difference between DSum and Sum is that in DSum function, values a... | [
{
"code": null,
"e": 24038,
"s": 24010,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 24488,
"s": 24038,
"text": "1. DSum() Function :In MS Access, the DSum() function is used to calculate the sum of a set of values in a specified set of records (a domain). The DSum functions ... |
HTTP headers | Content-Security-Policy | 16 Jul, 2021
The Content Security Policy response header field is a tool to implement defense in depth mechanism for protection of data from content injection vulnerabilities such as cross-scripting attacks. It provides a policy mechanism that allows developers to detect the flaws present in their application and reduc... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 491,
"s": 28,
"text": "The Content Security Policy response header field is a tool to implement defense in depth mechanism for protection of data from content injection vulnerabilities such as cross... |
C# | Count the total number of elements in the List | 01 Feb, 2019
List class represents the list of objects which can be accessed by index. It comes under the System.Collection.Generic namespace. List class can be used to create a collection of different types like integers, strings etc. List class also provides the methods to search, sort, and manipulate lists. List.Cou... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 438,
"s": 52,
"text": "List class represents the list of objects which can be accessed by index. It comes under the System.Collection.Generic namespace. List class can be used to create a collectio... |
Django Basics | 22 Apr, 2022
Django is a Python-based web framework which allows you to quickly create web application without all of the installation or dependency problems that you normally will find with other frameworks.When you’re building a website, you always need a similar set of components: a way to handle user authentication... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 518,
"s": 52,
"text": "Django is a Python-based web framework which allows you to quickly create web application without all of the installation or dependency problems that you normally will find w... |
How to take HTML form data as text and send them to html2pdf ? | 08 Jan, 2021
In order to convert the HTML form data into pdf, the main approach is to use the html2pdf() function from the html2pdf library.
Approach: First, create a form with encryption type as text and add some input fields. After that we need to use html2pdf(element) function from html2pdf library. Provide an oncli... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jan, 2021"
},
{
"code": null,
"e": 156,
"s": 28,
"text": "In order to convert the HTML form data into pdf, the main approach is to use the html2pdf() function from the html2pdf library."
},
{
"code": null,
"e": 511,
"... |
GWT - Custom Widgets | GWT provides three ways to create custom user interface elements. There are three general strategies to follow −
Create a widget by extending Composite Class − This is the most common and easiest way to create custom widgets. Here you can use existing widgets to create composite view with custom properties.
Create a wi... | [
{
"code": null,
"e": 2136,
"s": 2023,
"text": "GWT provides three ways to create custom user interface elements. There are three general strategies to follow −"
},
{
"code": null,
"e": 2332,
"s": 2136,
"text": "Create a widget by extending Composite Class − This is the most commo... |
How to make a case-insensitive query in MongoDB? | For a case-insensitive query, use regex in MongoDB. Let us create a collection with documents −
> db.demo314.insertOne({"Name":"Chris brown"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e50d742f8647eb59e562056")
}
> db.demo314.insertOne({"Name":"David Miller"});
{
"acknowledged" : true,
"insertedId... | [
{
"code": null,
"e": 1158,
"s": 1062,
"text": "For a case-insensitive query, use regex in MongoDB. Let us create a collection with documents −"
},
{
"code": null,
"e": 1825,
"s": 1158,
"text": "> db.demo314.insertOne({\"Name\":\"Chris brown\"});\n{\n \"acknowledged\" : true,\n ... |
Adobe Interview | Set 13 (On Campus for Internship) - GeeksforGeeks | 23 May, 2019
We had Adobe visit our campus recently. First they shortlisted students for an online test on the basis of CGPA. A few students even got direct offer.
Online RoundThere were 8 questions in total. 5 MCQ, 2 Coding and 1 question was based on creativity.The MCQ’s were on heap, and probability. Finding the exp... | [
{
"code": null,
"e": 26207,
"s": 26179,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 26358,
"s": 26207,
"text": "We had Adobe visit our campus recently. First they shortlisted students for an online test on the basis of CGPA. A few students even got direct offer."
},
{
... |
A Beginner’s Guide to Latent Dirichlet Allocation(LDA) | by Ria Kulshrestha | Towards Data Science | Topic modeling is a method for unsupervised classification of documents, similar to clustering on numeric data, which finds some natural groups of items (topics) even when we’re not sure what we’re looking for.
A document can be a part of multiple topics, kind of like in fuzzy clustering(soft clustering) in which each ... | [
{
"code": null,
"e": 383,
"s": 172,
"text": "Topic modeling is a method for unsupervised classification of documents, similar to clustering on numeric data, which finds some natural groups of items (topics) even when we’re not sure what we’re looking for."
},
{
"code": null,
"e": 537,
... |
Lodash Introduction - GeeksforGeeks | 10 Dec, 2021
Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. It provides us with various inbuilt functions and uses a functional programming approach that makes coding in JavaScript easier to understand because instead of writin... | [
{
"code": null,
"e": 37356,
"s": 37328,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 37860,
"s": 37356,
"text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. It provides us with var... |
How to place an image into a frame in Tkinter? | To place an image into a Tkinter frame, you can follow the steps given below −
Import the required libraries and create an instance of tkinter frame. To open an image and place it inside the frame, we will use the Pillow (PIL) library.
Import the required libraries and create an instance of tkinter frame. To open an im... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "To place an image into a Tkinter frame, you can follow the steps given below −"
},
{
"code": null,
"e": 1298,
"s": 1141,
"text": "Import the required libraries and create an instance of tkinter frame. To open an image and place it in... |
Step by step: build a data pipeline with Airflow | by Tony Xu | Towards Data Science | Each time we deploy our new software, we will check the log file twice a day to see whether there is an issue or exception in the following one or two weeks. One colleague asked me is there a way to monitor the errors and send alert automatically if a certain error occurs more than 3 times. I am following the Airflow c... | [
{
"code": null,
"e": 467,
"s": 47,
"text": "Each time we deploy our new software, we will check the log file twice a day to see whether there is an issue or exception in the following one or two weeks. One colleague asked me is there a way to monitor the errors and send alert automatically if a cert... |
Android | How to send data from one activity to second activity - GeeksforGeeks | 06 Nov, 2021
Pre-requisites:
Android App Development Fundamentals for Beginners
Guide to Install and Set up Android Studio
Android | Starting with first app/android project
Android | Running your first Android app
This article aims to tell and show about how to “Send the data from one activity to second activity using... | [
{
"code": null,
"e": 25839,
"s": 25811,
"text": "\n06 Nov, 2021"
},
{
"code": null,
"e": 25856,
"s": 25839,
"text": "Pre-requisites: "
},
{
"code": null,
"e": 25907,
"s": 25856,
"text": "Android App Development Fundamentals for Beginners"
},
{
"code": ... |
HTML | <spacer> tag - GeeksforGeeks | 27 Aug, 2019
The HTML <spacer> tag is used to create some white-space. This tag is history in HTML5, there is no more support in HTML5 also this tag does not support by any major browsers.Syntax:
<spacer type="" size="">
Attribute:
type: This attribute holds the value for the type of space horizontal, vertical or block... | [
{
"code": null,
"e": 26275,
"s": 26247,
"text": "\n27 Aug, 2019"
},
{
"code": null,
"e": 26458,
"s": 26275,
"text": "The HTML <spacer> tag is used to create some white-space. This tag is history in HTML5, there is no more support in HTML5 also this tag does not support by any maj... |
Advances in few-shot learning: reproducing results in PyTorch | by Oscar Knagg | Towards Data Science | Few-shot learning is an exciting field of machine learning which aims to close the gap between machine and human in the challenging task of learning from few examples. In my previous post I provided a high level summary of three cutting edge papers in few-shot learning — I assume you’ve either read that, are already fa... | [
{
"code": null,
"e": 569,
"s": 172,
"text": "Few-shot learning is an exciting field of machine learning which aims to close the gap between machine and human in the challenging task of learning from few examples. In my previous post I provided a high level summary of three cutting edge papers in few... |
Tryit Editor v3.7 | Tryit: HTML italic text | [] |
The Simple Math behind 3 Decision Tree Splitting criterions | by Rahul Agarwal | Towards Data Science | Decision Trees are great and are useful for a variety of tasks. They form the backbone of most of the best performing models in the industry like XGboost and Lightgbm.
But how do they work exactly? In fact, this is one of the most asked questions in ML/DS interviews.
We generally know they work in a stepwise manner and... | [
{
"code": null,
"e": 340,
"s": 172,
"text": "Decision Trees are great and are useful for a variety of tasks. They form the backbone of most of the best performing models in the industry like XGboost and Lightgbm."
},
{
"code": null,
"e": 440,
"s": 340,
"text": "But how do they wo... |
ICC 2019 Cricket World Cup Prediction using Machine Learning | by Abhinav Sagar | Towards Data Science | Stuck behind the paywall? Click here to read the full story with my Friend Link!
The 2019 ICC Men’s Cricket World Cup is ready to begin on Thursday (30th May). This 12th edition of the Cricket World Cup will run for almost one and a half month in England and Wales. The tournament will be contested by 10 teams who will ... | [
{
"code": null,
"e": 253,
"s": 172,
"text": "Stuck behind the paywall? Click here to read the full story with my Friend Link!"
},
{
"code": null,
"e": 614,
"s": 253,
"text": "The 2019 ICC Men’s Cricket World Cup is ready to begin on Thursday (30th May). This 12th edition of the C... |
Boolean list initialization in Python | There are scenarios when we need to get a list containing only the Boolean values like true and false. In this article how to create list containing only Boolean values.
We use range function giving it which is the number of values we want. Using a for loop we assign true or false today list as required.
Live Demo
res... | [
{
"code": null,
"e": 1232,
"s": 1062,
"text": "There are scenarios when we need to get a list containing only the Boolean values like true and false. In this article how to create list containing only Boolean values."
},
{
"code": null,
"e": 1368,
"s": 1232,
"text": "We use range... |
Compute pearson product-moment correlation coefficients of two given NumPy arrays - GeeksforGeeks | 02 Sep, 2020
In NumPy, We can compute pearson product-moment correlation coefficients of two given arrays with the help of numpy.corrcoef() function.
In this function, we will pass arrays as a parameter and it will return the pearson product-moment correlation coefficients of two given arrays.
Syntax: numpy.corrcoef(x,... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 24429,
"s": 24292,
"text": "In NumPy, We can compute pearson product-moment correlation coefficients of two given arrays with the help of numpy.corrcoef() function."
},
{
"code": null... |
10 Essential Python Tips And Tricks For Programmers - GeeksforGeeks | Top 4 Advanced Project Ideas to Enhance Your AI Skills
Top 10 Machine Learning Project Ideas That You Can Implement
5 Machine Learning Project Ideas for Beginners
7 Cool Python Project Ideas for Intermediate Developers
10 Interesting Python Cool Tricks
10 Essential Python Tips And Tricks For Programmers
Amazing hacks o... | [
{
"code": null,
"e": 22297,
"s": 22242,
"text": "Top 4 Advanced Project Ideas to Enhance Your AI Skills"
},
{
"code": null,
"e": 22358,
"s": 22297,
"text": "Top 10 Machine Learning Project Ideas That You Can Implement"
},
{
"code": null,
"e": 22405,
"s": 22358,
... |
Introduction of Relational Algebra in DBMS - GeeksforGeeks | 28 Jun, 2021
Relational Algebra is procedural query language, which takes Relation as input and generate relation as output. Relational algebra mainly provides theoretical foundation for relational databases and SQL.
Operators in Relational Algebra
Projection (π)Projection is used to project required column data from a... | [
{
"code": null,
"e": 29624,
"s": 29596,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 29828,
"s": 29624,
"text": "Relational Algebra is procedural query language, which takes Relation as input and generate relation as output. Relational algebra mainly provides theoretical foun... |
JSON - Comparison with XML | JSON and XML are human readable formats and are language independent. They both have support for creation, reading and decoding in real world situations. We can compare JSON with XML, based on the following factors −
XML is more verbose than JSON, so it is faster to write JSON for programmers.
XML is used to describe t... | [
{
"code": null,
"e": 1997,
"s": 1780,
"text": "JSON and XML are human readable formats and are language independent. They both have support for creation, reading and decoding in real world situations. We can compare JSON with XML, based on the following factors −"
},
{
"code": null,
"e":... |
Chocolate Distribution Problem | Practice | GeeksforGeeks | Given an array A[ ] of positive integers of size N, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are M students, the task is to distribute chocolate packets among M students such that :
1. Each student gets exactly one packet.
2. The diffe... | [
{
"code": null,
"e": 684,
"s": 238,
"text": "Given an array A[ ] of positive integers of size N, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are M students, the task is to distribute chocolate packets among M students ... |
How to convert jQuery to JavaScript ? | 03 Aug, 2021
JavaScript is an object orient programming language designed to make web development easier and more attractive. In most cases, JavaScript is used to create responsive, interactive elements for web pages, enhancing the user experience.
jQuery is an open-source JavaScript library that simplifies the interac... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 289,
"s": 53,
"text": "JavaScript is an object orient programming language designed to make web development easier and more attractive. In most cases, JavaScript is used to create responsive, inter... |
HTTP headers | Accept-Charset | 07 Nov, 2019
The HTTP Accept-Charset is a request type header. This header is used to indicate what character set are acceptable for the response from the server. The accept-charset header specifies the character encodings which are accepted by the client and this header also allows a user-agent to specify the charsets... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Nov, 2019"
},
{
"code": null,
"e": 846,
"s": 28,
"text": "The HTTP Accept-Charset is a request type header. This header is used to indicate what character set are acceptable for the response from the server. The accept-charset header... |
Replace all occurrences of X by Y for Q queries in given Array | 10 Nov, 2021
Given an array arr[] and an 2D array query[][] consisting of queries. For each query q, replace all occurrences of query[i][0] in arr[], with query[i][1].
Examples:
Input: arr[] = {2, 2, 5, 1} query = {{2, 4}, {5, 2}}Output: {4, 4, 2, 1}Explanation: Following are the operations performed in the given array... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 207,
"s": 52,
"text": "Given an array arr[] and an 2D array query[][] consisting of queries. For each query q, replace all occurrences of query[i][0] in arr[], with query[i][1]."
},
{
"code... |
Python | GUI Calendar using Tkinter | 08 Jul, 2021
Prerequisites:Introduction to Tkinter
Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. Python with Tkinter outputs the fastest and easiest way to create GUI applications. In this article, we will learn how ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2021"
},
{
"code": null,
"e": 90,
"s": 52,
"text": "Prerequisites:Introduction to Tkinter"
},
{
"code": null,
"e": 440,
"s": 90,
"text": "Python offers multiple options for developing a GUI (Graphical User I... |
Flutter – Tabs | 13 Jun, 2022
Tabs are exactly what you think it is. It’s part of the UI that navigates the user through different routes(ie, pages) when clicked upon. The use of tabs in applications is standard practice. Flutter provides a simple way to create tab layouts using the material library. In this article, exploring we will ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 392,
"s": 52,
"text": "Tabs are exactly what you think it is. It’s part of the UI that navigates the user through different routes(ie, pages) when clicked upon. The use of tabs in applications is s... |
Python – Ways to remove multiple empty spaces from string List | 30 Jun, 2022
Sometimes, while working with Python strings, we have a problem in which we need to perform the removal of empty spaces in Strings. The problem of filtering a single space is easier. But sometimes we are unaware of number of spaces. This has application in many domains. Lets discuss certain ways in which t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 628,
"s": 28,
"text": "Sometimes, while working with Python strings, we have a problem in which we need to perform the removal of empty spaces in Strings. The problem of filtering a single space is ... |
How do I drop a primary key in MySQL? | To drop a primary key, use ALTER at first to alter the table. With that, use DROP to drop the key as in the below
alter table yourTableName drop primary key;
Let us first create a table −
mysql> create table DemoTable
-> (
-> StudentId int NOT NULL,
-> StudentName varchar(20),
-> StudentAge int,
-> prima... | [
{
"code": null,
"e": 1301,
"s": 1187,
"text": "To drop a primary key, use ALTER at first to alter the table. With that, use DROP to drop the key as in the below"
},
{
"code": null,
"e": 1345,
"s": 1301,
"text": "alter table yourTableName drop primary key;"
},
{
"code": nu... |
W3.CSS Containers and Panels | 02 Mar, 2021
W3.CSS provides web developers with the two most useful classes i.e. container and panels. They are used to place content together with same font-color, background-color, font-size, font-family, etc.
w3-container: This class is used to add 16px padding on both the left and right side of the element. It can... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Mar, 2021"
},
{
"code": null,
"e": 228,
"s": 28,
"text": "W3.CSS provides web developers with the two most useful classes i.e. container and panels. They are used to place content together with same font-color, background-color, font... |
How to embed Matplotlib charts in Tkinter GUI? | 10 Jul, 2020
Prerequisite: Introduction to Tkinter | Introduction to Matplotlib
When Matplotlib is used from Python shell, the plots are displayed in a default window. The plots can be embedded in many graphical user interfaces like wxpython, pygtk, or Tkinter. These various options available as a target for the output... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 119,
"s": 52,
"text": "Prerequisite: Introduction to Tkinter | Introduction to Matplotlib"
},
{
"code": null,
"e": 561,
"s": 119,
"text": "When Matplotlib is used from Python sh... |
Difference between index.ejs and index.html | 09 Apr, 2021
What is HTML?
HTML (Hypertext Markup Language) is used to design the structure of a web page and its content. HTML is actually not technically programming languages like C++, JAVA, or python. It is a markup language, and it ultimately gives declarative instructions to the browser. When a web page is loaded... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 42,
"s": 28,
"text": "What is HTML?"
},
{
"code": null,
"e": 466,
"s": 42,
"text": "HTML (Hypertext Markup Language) is used to design the structure of a web page and its content... |
Exception Handling in Java - GeeksQuiz | 30 Sep, 2018
Main.java:4: error: incompatible types
throw 10;
^
required: Throwable
found: int
Main.java:6: error: unexpected type
catch(int e) {
^
required: class
found: int
2 errors
Got the Test Exception
Inside finally block
Got the Test Exception
Inside final... | [
{
"code": null,
"e": 29498,
"s": 29470,
"text": "\n30 Sep, 2018"
},
{
"code": null,
"e": 29725,
"s": 29498,
"text": "Main.java:4: error: incompatible types\n throw 10;\n ^\n required: Throwable\n found: int\nMain.java:6: error: unexpected type\n ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.