title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python Bokeh – Visualizing Stock Data - GeeksforGeeks | 03 Jul, 2020
Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.Bokeh can be used to visualize stock market data. Visualization is ... | [
{
"code": null,
"e": 24320,
"s": 24292,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 24732,
"s": 24320,
"text": "Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant... |
How to pick an image from an image gallery on Android using Kotlin? | This example demonstrates how to pick an image from an image gallery on Android using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="ut... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "This example demonstrates how to pick an image from an image gallery on Android using Kotlin."
},
{
"code": null,
"e": 1285,
"s": 1156,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all r... |
Customizing Multiple Subplots in Matplotlib | by Rizky Maulana N | Towards Data Science | In certain times, we need to visualize our data into complex plots because we should do it or make a great plot. For example, you want to make a zoom effect in your plot, as shown in Figure 1. To present it, you need to build a convoluted subplot. Figure 1 is built from three different axes: axes1, axes2, and axes3. Ax... | [
{
"code": null,
"e": 664,
"s": 172,
"text": "In certain times, we need to visualize our data into complex plots because we should do it or make a great plot. For example, you want to make a zoom effect in your plot, as shown in Figure 1. To present it, you need to build a convoluted subplot. Figure ... |
Can MySQL automatically store timestamp in a row? | Yes, you can achieve this in the following two ways.
First Approach At the time of creation of a table.
First Approach At the time of creation of a table.
Second Approach At the time of writing query.
Second Approach At the time of writing query.
The syntax is as follows.
CREATE TABLE yourTableName
(
yourDateTimeColumn... | [
{
"code": null,
"e": 1115,
"s": 1062,
"text": "Yes, you can achieve this in the following two ways."
},
{
"code": null,
"e": 1166,
"s": 1115,
"text": "First Approach At the time of creation of a table."
},
{
"code": null,
"e": 1217,
"s": 1166,
"text": "First A... |
Dining Philosophers Problem (DPP) | The dining philosophers problem states that there are 5 philosophers sharing a circular table and they eat and think alternatively. There is a bowl of rice for each of the philosophers and 5 chopsticks. A philosopher needs both their right and left chopstick to eat. A hungry philosopher may only eat if there are both c... | [
{
"code": null,
"e": 1478,
"s": 1062,
"text": "The dining philosophers problem states that there are 5 philosophers sharing a circular table and they eat and think alternatively. There is a bowl of rice for each of the philosophers and 5 chopsticks. A philosopher needs both their right and left chop... |
MBA For Breakfast — A Simple Guide to Market Basket Analysis | by George Wong | Towards Data Science | So recently, I was fortunate enough to work on a project that involves doing market basket analysis but obviously I wouldn’t be able to discuss my work at Kaodim on Medium. So instead, I try to look for suitable datasets on Kaggle.com. Which I managed to find one here AND applied whatever that I know to make it happen!... | [
{
"code": null,
"e": 576,
"s": 172,
"text": "So recently, I was fortunate enough to work on a project that involves doing market basket analysis but obviously I wouldn’t be able to discuss my work at Kaodim on Medium. So instead, I try to look for suitable datasets on Kaggle.com. Which I managed to ... |
Decimal constants in C# | Decimal type has constants to get the minimum and maximum values.
Set a decimal value −
decimal d = 5.8M;
To get the minimum and maximum values of the decimal type, use the following properties −
decimal.MaxValue
decimal.MinValue
Here is the complete code −
Live Demo
using System;
using System.Linq;
class Demo {
st... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Decimal type has constants to get the minimum and maximum values."
},
{
"code": null,
"e": 1150,
"s": 1128,
"text": "Set a decimal value −"
},
{
"code": null,
"e": 1168,
"s": 1150,
"text": "decimal d = 5.8M;"
},... |
MySQL - MONTH() Function | The DATE, DATETIME and TIMESTAMP datatypes in MySQL are used to store the date, date and time, time stamp values respectively. Where a time stamp is a numerical value representing the number of milliseconds from '1970-01-01 00:00:01' UTC (epoch) to the specified time. MySQL provides a set of functions to manipulate the... | [
{
"code": null,
"e": 2664,
"s": 2333,
"text": "The DATE, DATETIME and TIMESTAMP datatypes in MySQL are used to store the date, date and time, time stamp values respectively. Where a time stamp is a numerical value representing the number of milliseconds from '1970-01-01 00:00:01' UTC (epoch) to the ... |
Getting Started with Generative Art in R | by Vít Gabrhel | Towards Data Science | Generative art represents the involvement of a human-independent system (such as an algorithm) in a creative process. Such a system is a key element within the creative process, including its outputs.
Unsurprisingly, there are many “tools” you can use if you want to delve into generative art. In case you want to have “... | [
{
"code": null,
"e": 373,
"s": 172,
"text": "Generative art represents the involvement of a human-independent system (such as an algorithm) in a creative process. Such a system is a key element within the creative process, including its outputs."
},
{
"code": null,
"e": 562,
"s": 373... |
Number of Dice Rolls With Target Sum in Python | Suppose we have d dice, and each die has f number of faces numbered 1, 2, ..., f. We have to find the number of possible ways (out of fd total ways) modulo 10^9 + 7 to roll the dice so the sum of the face up numbers equal to the target. So if the input is like d = 2, f = 6, target = 7, then the output will be 6. So if ... | [
{
"code": null,
"e": 1496,
"s": 1062,
"text": "Suppose we have d dice, and each die has f number of faces numbered 1, 2, ..., f. We have to find the number of possible ways (out of fd total ways) modulo 10^9 + 7 to roll the dice so the sum of the face up numbers equal to the target. So if the input ... |
Java example demonstrating canny edge detection in OpenCV. | The canny edge detector is known as optimal detector since it detects only the existing edges, gives only one response per page and minimizes the distance
between the edge pixels and detected pixels.
The Canny() method of the Imgproc class applies the canny edge detection algorithm on the given image. this method accep... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "The canny edge detector is known as optimal detector since it detects only the existing edges, gives only one response per page and minimizes the distance\nbetween the edge pixels and detected pixels."
},
{
"code": null,
"e": 1387,
"s": ... |
Tensorflow.js tf.image.resizeBilinear() Function - GeeksforGeeks | 28 Jul, 2021
Tensorflow.js is an open-source library developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The .image.resizeBilinear() function is used to bilinearly rescale an individual 3D image or else a heap of 3D images to a different c... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25082,
"s": 24909,
"text": "Tensorflow.js is an open-source library developed by Google for running machine learning models as well as deep learning neural networks in the browser or node env... |
Implementing Google OAuth in Streamlit | by Duc Anh Bui | Towards Data Science | At HousingAnywhere, we often utilize Streamlit to build interactive dashboards for our metrics and targets. Streamlit is a relatively new tool. It has a lot of potential use cases and is very easy to use but can be lacking in some areas such as security. A popular, simple method for security most people use for Streaml... | [
{
"code": null,
"e": 583,
"s": 172,
"text": "At HousingAnywhere, we often utilize Streamlit to build interactive dashboards for our metrics and targets. Streamlit is a relatively new tool. It has a lot of potential use cases and is very easy to use but can be lacking in some areas such as security. ... |
Can Google’s Mobility Report explain New Zealand’s win against the virus? | by Alejandra Vlerick | Towards Data Science | Europe has slowly started opening up after months of restless lockdown, this gives me hope that the worst is behind us. Working from home and virtual wine evenings with friends have become the new ‘normal’. These measures have been put into motion to enforce physical distancing and ultimately slow down the spread of th... | [
{
"code": null,
"e": 507,
"s": 171,
"text": "Europe has slowly started opening up after months of restless lockdown, this gives me hope that the worst is behind us. Working from home and virtual wine evenings with friends have become the new ‘normal’. These measures have been put into motion to enfo... |
Tryit Editor v3.7 | Tryit: HTML table - width: 100% | [] |
Why we use lambda expressions in Java? | A lambda expression can implement a functional interface by defining an anonymous function that can be passed as an argument to some method.
Enables functional programming: All new JVM based languages take advantage of the functional paradigm in their applications, but programmers forced to work with Object-Oriented Pr... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "A lambda expression can implement a functional interface by defining an anonymous function that can be passed as an argument to some method."
},
{
"code": null,
"e": 1490,
"s": 1203,
"text": "Enables functional programming: All new J... |
A Step-by-Step Implementation of Gradient Descent and Backpropagation | by Yitong Ren | Towards Data Science | The original intention behind this post was merely me brushing upon mathematics in neural network, as I like to be well versed in the inner workings of algorithms and get to the essence of things. I then think I might as well put together a story rather than just revisiting the formulas on my notepad over and over. Tho... | [
{
"code": null,
"e": 756,
"s": 172,
"text": "The original intention behind this post was merely me brushing upon mathematics in neural network, as I like to be well versed in the inner workings of algorithms and get to the essence of things. I then think I might as well put together a story rather t... |
Introduction of Programming Paradigms - GeeksforGeeks | 25 Apr, 2022
Paradigm can also be termed as method to solve some problem or do some task. Programming paradigm is an approach to solve problem using some programming language or also we can say it is a method to solve a problem using tools and techniques that are available to us following some approach. There are lots ... | [
{
"code": null,
"e": 25997,
"s": 25969,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 26593,
"s": 25997,
"text": "Paradigm can also be termed as method to solve some problem or do some task. Programming paradigm is an approach to solve problem using some programming language o... |
CSS 3D Transforms | CSS also supports 3D transformations.
Mouse over the elements below to see the difference between a 2D
and a 3D transformation:
In this chapter you will learn about the following CSS property:
transform
The numbers in the table specify the first browser version that fully supports the property.
With the CSS transform ... | [
{
"code": null,
"e": 38,
"s": 0,
"text": "CSS also supports 3D transformations."
},
{
"code": null,
"e": 129,
"s": 38,
"text": "Mouse over the elements below to see the difference between a 2D \nand a 3D transformation:"
},
{
"code": null,
"e": 194,
"s": 129,
... |
How to change the width and height of Twitter Bootstrap's tooltips? - GeeksforGeeks | 31 Jan, 2020
Bootstrap tooltip: A Tooltip is used to provide interactive textual hints to the user about the element when the mouse pointer moves over. Standardized bootstrap element collection like a small pop-up which appears whenever user performs any specific action click, hover(default), and focus on that element.... | [
{
"code": null,
"e": 25104,
"s": 25076,
"text": "\n31 Jan, 2020"
},
{
"code": null,
"e": 25465,
"s": 25104,
"text": "Bootstrap tooltip: A Tooltip is used to provide interactive textual hints to the user about the element when the mouse pointer moves over. Standardized bootstrap e... |
Why isn't sizeof for a struct equal to the sum of sizeof of each member in C/C++? | The size of a struct type element taken by sizeof() is not always equal to the size of each individual member. Sometimes the compilers add some padding to avoid alignment issues. So the size may change. The padding is added when a structure member is followed by a member with a larger size or at the end of the structur... | [
{
"code": null,
"e": 1526,
"s": 1062,
"text": "The size of a struct type element taken by sizeof() is not always equal to the size of each individual member. Sometimes the compilers add some padding to avoid alignment issues. So the size may change. The padding is added when a structure member is fo... |
How to format string using PowerShell? | To format a string in a PowerShell we can use various methods. First using the simple expanding string method.
PS C:\> $str = 'PowerShell'
PS C:\> Write-Output "Hello $str !!!!"
Hello PowerShell !!!!
Second, using the format method. In this method, we will use the Format function of the String .NET class.
PS C:\> $str ... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "To format a string in a PowerShell we can use various methods. First using the simple expanding string method."
},
{
"code": null,
"e": 1262,
"s": 1173,
"text": "PS C:\\> $str = 'PowerShell'\nPS C:\\> Write-Output \"Hello $str !!!!\"... |
React Sass Styling | Sass is a CSS pre-processor.
Sass files are executed on the server and sends CSS to the
browser.
You can learn more about Sass in our
Sass Tutorial.
If you use the create-react-app in your project, you can easily
install and use Sass in your React projects.
Install Sass by running this command in your terminal:
Now y... | [
{
"code": null,
"e": 29,
"s": 0,
"text": "Sass is a CSS pre-processor."
},
{
"code": null,
"e": 98,
"s": 29,
"text": "Sass files are executed on the server and sends CSS to the \nbrowser."
},
{
"code": null,
"e": 150,
"s": 98,
"text": "You can learn more about... |
Introduction to Python Heapq Module | by Vijini Mallawaarachchi | Towards Data Science | A Heap is a special case of a binary tree where the parent nodes are compared to their children with their values and are arranged accordingly. If you have come across my previous article titled 8 Common Data Structures every Programmer must know that there are two types of heaps; min heap and max heap.
towardsdatascie... | [
{
"code": null,
"e": 476,
"s": 171,
"text": "A Heap is a special case of a binary tree where the parent nodes are compared to their children with their values and are arranged accordingly. If you have come across my previous article titled 8 Common Data Structures every Programmer must know that the... |
How to plot a dashed line on a Seaborn lineplot in Matplotlib? | To plot a dashed line on a Seaborn lineplot, we can use linestyle="dashed" in the argument of lineplot().
Set the figure size and adjust the padding between and around the subplots.
Set the figure size and adjust the padding between and around the subplots.
Create x and y data points using numpy.
Create x and y data po... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "To plot a dashed line on a Seaborn lineplot, we can use linestyle=\"dashed\" in the argument of lineplot()."
},
{
"code": null,
"e": 1244,
"s": 1168,
"text": "Set the figure size and adjust the padding between and around the subplots... |
Drop column(s) by name from a given DataFrame in R - GeeksforGeeks | 26 Mar, 2021
Dropping of columns from a data frame is simply used to remove the unwanted columns in the data frame. In this article, we will be discussing the two different approaches to drop columns by name from a given Data Frame in R.
The different approaches to drop columns by the name from a data frame is R langua... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 25467,
"s": 25242,
"text": "Dropping of columns from a data frame is simply used to remove the unwanted columns in the data frame. In this article, we will be discussing the two different app... |
3 Pre-Trained Model Series to Use for NLP with Transfer Learning | by Orhan G. Yalçın | Towards Data Science | Before we start, if you are reading this article, I am sure that we share similar interests and are/will be in similar industries. So let’s connect via Linkedin! Please do not hesitate to send a contact request! Orhan G. Yalçın — Linkedin
If you have been trying to build machine learning models with high accuracy; but... | [
{
"code": null,
"e": 411,
"s": 171,
"text": "Before we start, if you are reading this article, I am sure that we share similar interests and are/will be in similar industries. So let’s connect via Linkedin! Please do not hesitate to send a contact request! Orhan G. Yalçın — Linkedin"
},
{
"... |
Host a dynamic website on Google Firebase using Node.js and Cloud Firestore DB | by Tushar Chand Kapoor | Towards Data Science | Tushar Kapoor: (https://www.tusharck.com/)
Demo Git URL: https://github.com/tusharck/firebase-demo
Firebase is a comprehensive app platform built on Google’s infrastructure, therefore it provides a secure, fast, free (paid options also available for additional resources) and easy way to host your content on the web or ... | [
{
"code": null,
"e": 214,
"s": 171,
"text": "Tushar Kapoor: (https://www.tusharck.com/)"
},
{
"code": null,
"e": 270,
"s": 214,
"text": "Demo Git URL: https://github.com/tusharck/firebase-demo"
},
{
"code": null,
"e": 512,
"s": 270,
"text": "Firebase is a comp... |
Two Dimensional Segment Tree | Sub-Matrix Sum - GeeksforGeeks | CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+... | [
{
"code": null,
"e": 419,
"s": 0,
"text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc... |
Binary Tree ADT in Data Structure | A binary tree is defined as a tree in which no node can have more than two children. The highest degree of any node is two. This indicates that the degree of a binary tree is either zero or one or two.
In the above fig., the binary tree consists of a root and two sub trees TreeLeft & TreeRight. All nodes to the left of... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "A binary tree is defined as a tree in which no node can have more than two children. The highest degree of any node is two. This indicates that the degree of a binary tree is either zero or one or two."
},
{
"code": null,
"e": 1507,
"s":... |
Add Regression Line to ggplot2 Plot in R - GeeksforGeeks | 28 Apr, 2021
Regression models a target prediction value based on independent variables. It is mostly used for finding out the relationship between variables and forecasting. Different regression models differ based on – the kind of relationship between dependent and independent variables, they are considering and the ... | [
{
"code": null,
"e": 25340,
"s": 25312,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 25691,
"s": 25340,
"text": "Regression models a target prediction value based on independent variables. It is mostly used for finding out the relationship between variables and forecasting. D... |
Convert Object to String in Python - GeeksforGeeks | 28 Jul, 2020
Python defines type conversion functions to directly convert one data type to another. This article is aimed at providing information about converting an object to a string.
Everything is an object in Python. So all the built-in objects can be converted to strings using the str() and repr() methods.
Exampl... | [
{
"code": null,
"e": 24866,
"s": 24838,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 25040,
"s": 24866,
"text": "Python defines type conversion functions to directly convert one data type to another. This article is aimed at providing information about converting an object to... |
How to make Value-By-Alpha Maps in Python | by Abdishakur | Towards Data Science | Ever since I have seen the beautiful aesthetics of Value-By-Alpha maps, I wanted to make one. It was not that hard to make them with a bit of hacking in QGIS or ArcGIS back then. Now, you can make your value-by-alpha map with Python thanks to Pysal library and Splot.
In this tutorial, I will guide you on how to make va... | [
{
"code": null,
"e": 440,
"s": 172,
"text": "Ever since I have seen the beautiful aesthetics of Value-By-Alpha maps, I wanted to make one. It was not that hard to make them with a bit of hacking in QGIS or ArcGIS back then. Now, you can make your value-by-alpha map with Python thanks to Pysal librar... |
Time Complexity of Loop with Powers - GeeksforGeeks | 30 Dec, 2021
What is the time complexity of the below function?
C++
C
Java
Python3
C#
Javascript
void fun(int n, int k){ for (int i = 1; i <= n; i++) { int p = pow(i, k); for (int j = 1; j <= p; j++) { // Some O(1) work } }} // This code is contributed by Shubham Singh
vo... | [
{
"code": null,
"e": 25679,
"s": 25651,
"text": "\n30 Dec, 2021"
},
{
"code": null,
"e": 25730,
"s": 25679,
"text": "What is the time complexity of the below function?"
},
{
"code": null,
"e": 25734,
"s": 25730,
"text": "C++"
},
{
"code": null,
"e"... |
Matplotlib.pyplot.thetagrids() in Python - GeeksforGeeks | 29 Jul, 2021
Matplotlib is a plotting library of Python programming language and its numerical mathematics module is NumPy. matplotlib.pyplot is a collection of command style functions that make matplotlib work like the MATLAB Tool. Each of the pyplot functions makes certain changes to a figure: e.g., creating a figure... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 26123,
"s": 25647,
"text": "Matplotlib is a plotting library of Python programming language and its numerical mathematics module is NumPy. matplotlib.pyplot is a collection of command style f... |
AngularJS | number Filter - GeeksforGeeks | 07 May, 2019
AngularJS number filter is used to convert a number into string or text. We can also define a limit to display a number of decimal digits. Number filter rounds off the number to specified decimal digits.
Syntax:
{{ string| number : fractionSize}}
Parameter Values: It contains single parameter value fracti... | [
{
"code": null,
"e": 29516,
"s": 29488,
"text": "\n07 May, 2019"
},
{
"code": null,
"e": 29720,
"s": 29516,
"text": "AngularJS number filter is used to convert a number into string or text. We can also define a limit to display a number of decimal digits. Number filter rounds off... |
Difference Between ArrayList and Vector in Java | In this post, we will understand the difference between ArrayList and Vector in Java.
It is not synchronized.
It is not synchronized.
If the number of elements exceeds the capacity of the ArrayList, it increments the current array size by 50 percent.
If the number of elements exceeds the capacity of the ArrayList, it i... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "In this post, we will understand the difference between ArrayList and Vector in Java."
},
{
"code": null,
"e": 1172,
"s": 1148,
"text": "It is not synchronized."
},
{
"code": null,
"e": 1196,
"s": 1172,
"text": "I... |
Scala - Loop Statements | This chapter takes you through the loop control structures in Scala programming languages.
There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on.... | [
{
"code": null,
"e": 2089,
"s": 1998,
"text": "This chapter takes you through the loop control structures in Scala programming languages."
},
{
"code": null,
"e": 2319,
"s": 2089,
"text": "There may be a situation, when you need to execute a block of code several number of times.... |
Python - Ranking Rows of Pandas DataFrame | To add a column that contains the ranking of each row in the provided data frame that will help us to sort a data frame and determine the rank of a particular element, for example −
Now, as you can see in the above example, our rankings are the whole numbers but have a decimal beside it, so that means we can have ranki... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "To add a column that contains the ranking of each row in the provided data frame that will help us to sort a data frame and determine the rank of a particular element, for example −"
},
{
"code": null,
"e": 1597,
"s": 1244,
"text": "... |
Grammar Error Correction with Deep Learning | by PUSHAP GANDHI | Towards Data Science | IntroductionProblem DefinitionPrerequisitesData SourceUnderstanding the dataExploratory Data AnalysisData PreprocessingData Preparation and Data PipelineBenchmark Solution(Vanilla Encoder-Decoder Model)Attention MechanismMonotonic AttentionInference (Greedy Search VS BEAM Search)Results and Model ComparisonModel Deploy... | [
{
"code": null,
"e": 564,
"s": 172,
"text": "IntroductionProblem DefinitionPrerequisitesData SourceUnderstanding the dataExploratory Data AnalysisData PreprocessingData Preparation and Data PipelineBenchmark Solution(Vanilla Encoder-Decoder Model)Attention MechanismMonotonic AttentionInference (Gree... |
Deduplication Deduplication. Deduplication of text is an application... | by Abhijith C | Towards Data Science | deduplication/diːˌdjuːplɪˈkeɪʃ(ə)n/
nounthe elimination of duplicate or redundant information, especially in computer data.
"deduplication removes the repetitive information before storing it"
As the definition says, the task we are trying to do is to remove the duplicate texts/sentences and so on. This is nothing but ... | [
{
"code": null,
"e": 208,
"s": 172,
"text": "deduplication/diːˌdjuːplɪˈkeɪʃ(ə)n/"
},
{
"code": null,
"e": 296,
"s": 208,
"text": "nounthe elimination of duplicate or redundant information, especially in computer data."
},
{
"code": null,
"e": 365,
"s": 296,
"t... |
Display all the titles of JTabbedPane tabs on Console in Java | To display all the titles of the JTabbedPane, let us first get the count of tabs −
int count = tabbedPane.getTabCount();
Now, loop through the number of tabs in the JTabbedPane. Use the getTitleAt() to get the title of each and every tab −
for (int i = 0; i < count; i++) {
String str = tabbedPane.getTitleAt(i);
S... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "To display all the titles of the JTabbedPane, let us first get the count of tabs −"
},
{
"code": null,
"e": 1183,
"s": 1145,
"text": "int count = tabbedPane.getTabCount();"
},
{
"code": null,
"e": 1302,
"s": 1183,
... |
How can a COBOL-DB2 program call a STORED PROCEDURE? Give an example. | A STORED PROCEDURE generally contains the SQLs which are often used in one or more programs. The main advantage of STORED PROCEDURE is that it reduces the data traffic between the COBOL and DB2 as the STORED PROCEDURES resides in DB2.
A COBOL-DB2 program can call a STORED PROCEDURE using a CALL statement and we can hav... | [
{
"code": null,
"e": 1297,
"s": 1062,
"text": "A STORED PROCEDURE generally contains the SQLs which are often used in one or more programs. The main advantage of STORED PROCEDURE is that it reduces the data traffic between the COBOL and DB2 as the STORED PROCEDURES resides in DB2."
},
{
"cod... |
How to add a month to a date in R? | We have to deal with date data in time series analysis, also sometimes we have a time variable in data set that is recorded to perform another type of analysis. Depending on our objective, we need to process the data and the time variable is also converted into appropriate form that we are looking for. If we want to cr... | [
{
"code": null,
"e": 1557,
"s": 1062,
"text": "We have to deal with date data in time series analysis, also sometimes we have a time variable in data set that is recorded to perform another type of analysis. Depending on our objective, we need to process the data and the time variable is also conver... |
Classification with Random Forests in Python | by Sadrach Pierre, Ph.D. | Towards Data Science | The random forests algorithm is a machine learning method that can be used for supervised learning tasks such as classification and regression. The algorithm works by constructing a set of decision trees trained on random subsets of features. In the case of classification, the output of a random forest model is the mod... | [
{
"code": null,
"e": 646,
"s": 172,
"text": "The random forests algorithm is a machine learning method that can be used for supervised learning tasks such as classification and regression. The algorithm works by constructing a set of decision trees trained on random subsets of features. In the case ... |
Filter, Aggregate and Join in Pandas, Tidyverse, Pyspark and SQL | by Yu Zhou | Towards Data Science | One of the most popular question asked by inspiring data scientists is which language they should learn for data science. The initial choices are usually between Python and R. There are already a lot of conversations to help make a language choice (here and here). Selecting an appropriate language is the first step, bu... | [
{
"code": null,
"e": 1015,
"s": 172,
"text": "One of the most popular question asked by inspiring data scientists is which language they should learn for data science. The initial choices are usually between Python and R. There are already a lot of conversations to help make a language choice (here ... |
How to Extract Chrome Passwords in Python? - GeeksforGeeks | 21 Apr, 2021
In this article, we will discuss how to extract all passwords stored in the Chrome browser.
Note: This article is for users who use Chrome on Windows. If you are a Mac or Linux user, you may need to make some changes to the given path, while the rest of the Python program will remain the same.
Now, Let’s ... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 23994,
"s": 23901,
"text": "In this article, we will discuss how to extract all passwords stored in the Chrome browser. "
},
{
"code": null,
"e": 24197,
"s": 23994,
"text"... |
Super Simple Machine Learning — Multiple Linear Regression Part 1 | by Bernadette Low | Towards Data Science | In this super long post, I cover Multiple Linear Regression describing briefly(lol) how it works and what criteria you need to take note of. So get yourself water and snacks, cause this will take a while.
The bulk of the basic concepts were covered in my Simple Linear Regression posts, which can be found here. I had in... | [
{
"code": null,
"e": 377,
"s": 172,
"text": "In this super long post, I cover Multiple Linear Regression describing briefly(lol) how it works and what criteria you need to take note of. So get yourself water and snacks, cause this will take a while."
},
{
"code": null,
"e": 586,
"s":... |
Node.js crypto.createVerify() Method | 11 Oct, 2021
The crypto.createVerify() method is used to create a Verify object that uses the stated algorithm. Moreover, you can use crypto.getHashes() to access the names of all the available signing algorithms.
Syntax:
crypto.createVerify( algorithm, options )
Parameters: This method accept two parameters as mention... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 229,
"s": 28,
"text": "The crypto.createVerify() method is used to create a Verify object that uses the stated algorithm. Moreover, you can use crypto.getHashes() to access the names of all the avai... |
Rebasing of branches in Git | 03 May, 2020
Branching means to split from the master branch so that you can work separately without affecting the main code and other developers. On creating a Git repository, by default, we are assigned the master branch. As we start making commits, this master branch keeps updating and points to the last commit made... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 May, 2020"
},
{
"code": null,
"e": 388,
"s": 28,
"text": "Branching means to split from the master branch so that you can work separately without affecting the main code and other developers. On creating a Git repository, by default,... |
What are n, bins and patches in matplotlib? | The hist() method returns n, bins and patches in matplotlib. Patches are the containers of individual artists used to create the histogram or list of such containers if there are multiple input datasets. Bins define the number of equal-width bins in the range.
Let's take an example to understand how it works.
Set the f... | [
{
"code": null,
"e": 1323,
"s": 1062,
"text": "The hist() method returns n, bins and patches in matplotlib. Patches are the containers of individual artists used to create the histogram or list of such containers if there are multiple input datasets. Bins define the number of equal-width bins in the... |
Introduction to NLP - Part 1: Preprocessing text in Python | by Zolzaya Luvsandorj | Towards Data Science | Welcome to Introduction to NLP! This is the first part of the 5-part series of posts. This post will show one way to preprocess text using an approach called bag-of-words where each text is represented by its words regardless of the order in which they are presented or the embedded grammar. We will complete the followi... | [
{
"code": null,
"e": 520,
"s": 171,
"text": "Welcome to Introduction to NLP! This is the first part of the 5-part series of posts. This post will show one way to preprocess text using an approach called bag-of-words where each text is represented by its words regardless of the order in which they ar... |
How can we detect an event when the mouse moves over any component in Java? | We can implement a MouseListener interface when the mouse is stable while handling the mouse event. A MouseEvent is fired when we can press, release or click (press followed by release) a mouse button (left or right button) at the source object or position the mouse pointer at (enter) and away (exit) from the source ob... | [
{
"code": null,
"e": 1605,
"s": 1062,
"text": "We can implement a MouseListener interface when the mouse is stable while handling the mouse event. A MouseEvent is fired when we can press, release or click (press followed by release) a mouse button (left or right button) at the source object or posit... |
Adding Firebase to Android App - GeeksforGeeks | 18 Oct, 2021
There are various services offered online such as storage, online processing, realtime database, authorisation of user etc. Google developed a platform called Firebase that provide all these online services. It also gives a daily analysis of usage of these services along with the details of user using it.
... | [
{
"code": null,
"e": 25296,
"s": 25268,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 25603,
"s": 25296,
"text": "There are various services offered online such as storage, online processing, realtime database, authorisation of user etc. Google developed a platform called Fire... |
How to find parent elements by python webdriver? | We can find parent elements with Selenium webdriver. First of all we need to identify the child element with help of any of the locators like id, class, name,xpath or css. Then we have to identify the parent element with the find_element_by_xpath() method.
We can identify the parent from the child, by localizing it wit... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "We can find parent elements with Selenium webdriver. First of all we need to identify the child element with help of any of the locators like id, class, name,xpath or css. Then we have to identify the parent element with the find_element_by_xpath() meth... |
AI Stock Trading agent to predict stock prices | Towards Data Science | If you have followed the stock market recently, you would have noticed the wild swings due to COVID-19. It goes up a day and goes down another day, which AI might easily predict. Won’t it be wonderful to have a stock trading agent with AI powers to buy and sell stocks without the need to monitor hour by hour?
So I deci... | [
{
"code": null,
"e": 483,
"s": 172,
"text": "If you have followed the stock market recently, you would have noticed the wild swings due to COVID-19. It goes up a day and goes down another day, which AI might easily predict. Won’t it be wonderful to have a stock trading agent with AI powers to buy an... |
Python | Pandas Series.dt.week - GeeksforGeeks | 20 Mar, 2019
Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.week attribute return a numpy array containing the week ordinal of the year in the underlying data of the given series object.
Syntax: Series.dt.week
Parameter : None
Returns : numpy arr... | [
{
"code": null,
"e": 24844,
"s": 24816,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 25092,
"s": 24844,
"text": "Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.week attribute return a numpy array contai... |
How to remove element in a MongoDB array? | To remove an element, update, and use $pull in MongoDB. The $pull operator removes from an existing array all instances of a value or values that match a specified condition.
Let us first create a collection with documents −
db.demo541.insertOne({"software":{"services":["gmail","facebook","yahoo"]}});{
"acknowledged... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "To remove an element, update, and use $pull in MongoDB. The $pull operator removes from an existing array all instances of a value or values that match a specified condition."
},
{
"code": null,
"e": 1287,
"s": 1237,
"text": "Let us ... |
C# program to split and join a string | To split and join a string in C#, use the split() and join() method. Let us say the following is our string −
string str = "This is our Demo String";
To split the string, we will use the split() method −
var arr = str.Split(' ');
Now to join, use the join() method and join rest of the string. Here, we have skipped the ... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "To split and join a string in C#, use the split() and join() method. Let us say the following is our string −"
},
{
"code": null,
"e": 1212,
"s": 1172,
"text": "string str = \"This is our Demo String\";"
},
{
"code": null,
... |
Pytest - Stop Test Suite after N Test Failures | In a real scenario, once a new version of the code is ready to deploy, it is first deployed into pre-prod/ staging environment. Then a test suite runs on it.
The code is qualified for deploying to production only if the test suite passes. If there is test failure, whether it is one or many, the code is not production r... | [
{
"code": null,
"e": 2200,
"s": 2042,
"text": "In a real scenario, once a new version of the code is ready to deploy, it is first deployed into pre-prod/ staging environment. Then a test suite runs on it."
},
{
"code": null,
"e": 2368,
"s": 2200,
"text": "The code is qualified fo... |
DuckDB — SQLite for Data Analysis | by Alan Jones | Towards Data Science | When I wrote Python Pandas and SQLite, for Towards Data Science, I was unaware of another embedded database sytem called DuckDB. I received a tweet about it a day or so after publication so thought I should take a look at it.
DuckDB is not buit in to Python like SQLite but after a simple install, you’d hardly know the ... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "When I wrote Python Pandas and SQLite, for Towards Data Science, I was unaware of another embedded database sytem called DuckDB. I received a tweet about it a day or so after publication so thought I should take a look at it."
},
{
"code": null,
... |
Fifth root of a number - GeeksforGeeks | 19 Oct, 2021
Given a number, print floor of 5’th root of the number.Examples:
Input : n = 32
Output : 2
2 raise to power 5 is 32
Input : n = 250
Output : 3
Fifth square root of 250 is between 3 and 4
So floor value is 3.
Method 1 (Simple) A simple solution is initialize result as 0, keep incrementing result while ... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 24368,
"s": 24301,
"text": "Given a number, print floor of 5’th root of the number.Examples: "
},
{
"code": null,
"e": 24514,
"s": 24368,
"text": "Input : n = 32\nOutput... |
Extracting MAC address using C# | A MAC address of a device is a media access control address. It is a unique identifier assigned to a network.
The MAC address technology is used by many technologies such as Ethernet, Bluetooth, Fibre Channel, etc.
Here, we will use the following method to check for all the network interfaces on the computer.
NetworkIn... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "A MAC address of a device is a media access control address. It is a unique identifier assigned to a network."
},
{
"code": null,
"e": 1277,
"s": 1172,
"text": "The MAC address technology is used by many technologies such as Ethernet... |
C++ program to read file word by word | 08 May, 2019
Given a text file, extract words from it. In other words, read the content of file word by word.Example :
Input: And in that dream, we were flying.
Output:
And
in
that
dream,
we
were
flying.
Approach :
1) Open the file which contains string. For example, file named “file.txt” contains a string “geeks for ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 May, 2019"
},
{
"code": null,
"e": 160,
"s": 54,
"text": "Given a text file, extract words from it. In other words, read the content of file word by word.Example :"
},
{
"code": null,
"e": 246,
"s": 160,
"text": ... |
How to embed Google Forms on any Website ? | 01 Oct, 2020
Google Forms are one of the most famous online platform developed and supported by Google. One can create and customize the created forms and can perform various tasks from review to automatic certificate generator. One can also embed it on a website so that anyone visiting the website can submit or view t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 447,
"s": 54,
"text": "Google Forms are one of the most famous online platform developed and supported by Google. One can create and customize the created forms and can perform various tasks from r... |
Python – K Maximum elements with Index in List | 01 Aug, 2020
GIven a List, extract K Maximum elements with their indices.
Input : test_list = [5, 3, 1, 4, 7, 8, 2], K = 2Output : [(4, 7), (5, 8)]Explanation : 8 is maximum on index 5, 7 on 4th.
Input : test_list = [5, 3, 1, 4, 7, 10, 2], K = 1Output : [(5, 10)]Explanation : 10 is maximum on index 5.
Method #1 : Using... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 89,
"s": 28,
"text": "GIven a List, extract K Maximum elements with their indices."
},
{
"code": null,
"e": 211,
"s": 89,
"text": "Input : test_list = [5, 3, 1, 4, 7, 8, 2], K = ... |
TypeScript | Array unshift() Method | 15 Dec, 2021
The Array.unshift() is an inbuilt TypeScript function that is used to add one or more elements to the beginning of an array and returns the new length of the array.
Syntax:
array.unshift( element1, ..., elementN )
Parameter: This method accepts n number of similar elements.
element1, ..., elementN : This ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 194,
"s": 28,
"text": "The Array.unshift() is an inbuilt TypeScript function that is used to add one or more elements to the beginning of an array and returns the new length of the array. "
},
{... |
Node.js util.types.isDate() Method | 08 Oct, 2021
The util.types.isDate() method is an inbuilt application programming interface of the util module which is used to check type for Date in the node.js.
Syntax:
util.types.isDate( value )
Parameters: This method accepts single parameter as mentioned above and described below.
value: It is a required paramete... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 179,
"s": 28,
"text": "The util.types.isDate() method is an inbuilt application programming interface of the util module which is used to check type for Date in the node.js."
},
{
"code": nu... |
PyQtGraph – Bar Graph | 05 May, 2021
In this article we will see how we can create bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying data... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 487,
"s": 28,
"text": "In this article we will see how we can create bar graph in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality comm... |
Default constructor in Java | 10 Jul, 2018
Like C++, Java automatically creates default constructor if there is no default or parameterized constructor written by user, and (like C++) the default constructor automatically calls parent default constructor. But unlike C++, default constructor in Java initializes member data variable to default values... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Jul, 2018"
},
{
"code": null,
"e": 474,
"s": 53,
"text": "Like C++, Java automatically creates default constructor if there is no default or parameterized constructor written by user, and (like C++) the default constructor automatic... |
Interesting facts about data-types and modifiers in C/C++ | 17 Apr, 2020
Here are some logical and interesting facts about data-types and the modifiers associated with data-types:-
1. If no data type is given to a variable, the compiler automatically converts it to int data type.
C++
C
#include <iostream>using namespace std; int main(){ signed a; signed b; // size o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Apr, 2020"
},
{
"code": null,
"e": 160,
"s": 52,
"text": "Here are some logical and interesting facts about data-types and the modifiers associated with data-types:-"
},
{
"code": null,
"e": 260,
"s": 160,
"text"... |
Get number of rows and columns of PySpark dataframe | 13 Sep, 2021
In this article, we will discuss how to get the number of rows and the number of columns of a PySpark dataframe. For finding the number of rows and number of columns we will use count() and columns() with len() function respectively.
df.count(): This function is used to extract number of rows from the Data... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 262,
"s": 28,
"text": "In this article, we will discuss how to get the number of rows and the number of columns of a PySpark dataframe. For finding the number of rows and number of columns we will u... |
Swarmplot using Seaborn in Python | 06 Nov, 2020
Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots more attractive. It is built on the top of the matplotlib library and also closely integrated into the data structures from pandas.
Seab... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Nov, 2020"
},
{
"code": null,
"e": 355,
"s": 52,
"text": "Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots mor... |
Docker - Setting ASP.Net | ASP.Net is the standard web development framework that is provided by Microsoft for developing server-side applications. Since ASP.Net has been around for quite a long time for development, Docker has ensured that it has support for ASP.Net.
In this chapter, we will see the various steps for getting the Docker containe... | [
{
"code": null,
"e": 2582,
"s": 2340,
"text": "ASP.Net is the standard web development framework that is provided by Microsoft for developing server-side applications. Since ASP.Net has been around for quite a long time for development, Docker has ensured that it has support for ASP.Net."
},
{
... |
Array filtering using first string letter in JavaScript | Suppose we have an array that contains name of some people like this:
const arr = ['Amy','Dolly','Jason','Madison','Patricia'];
We are required to write a JavaScript function that takes in one such string as the first argument, and two lowercase alphabet characters as second and third argument. Then, our function shoul... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "Suppose we have an array that contains name of some people like this:"
},
{
"code": null,
"e": 1190,
"s": 1132,
"text": "const arr = ['Amy','Dolly','Jason','Madison','Patricia'];"
},
{
"code": null,
"e": 1533,
"s": 11... |
Decision Tree Classifier from Scratch: Classifying Student’s Knowledge Level | by Anish Shrestha | Towards Data Science | You need to have basic knowledge in:
Python programming languageNumpy (Library for scientific computing)Pandas
Python programming language
Numpy (Library for scientific computing)
Pandas
The data set I am going to use in this project has been sourced from the Machine Learning Repository of the University of California,... | [
{
"code": null,
"e": 209,
"s": 172,
"text": "You need to have basic knowledge in:"
},
{
"code": null,
"e": 283,
"s": 209,
"text": "Python programming languageNumpy (Library for scientific computing)Pandas"
},
{
"code": null,
"e": 311,
"s": 283,
"text": "Python... |
Genetic Algorithm in R: The Knapsack Problem | by Raden Aurelius Andhika Viadinugroho | Towards Data Science | Motivation
The Knapsack Problem is one of the famous problems in optimization, specifically in combinatoric optimization. The motivation of this problem comes where someone needs to maximize his knapsack capacity — hence the name — with the most valuable items possible. There are many approaches to solve this problem, ... | [
{
"code": null,
"e": 57,
"s": 46,
"text": "Motivation"
},
{
"code": null,
"e": 479,
"s": 57,
"text": "The Knapsack Problem is one of the famous problems in optimization, specifically in combinatoric optimization. The motivation of this problem comes where someone needs to maximiz... |
Polymorphism in Python | Polymorphism means multiple forms. In python we can find the same operator or function taking multiple forms. It also useful in creating different classes which will have class methods with same name. That helps in re using a lot of code and decreases code complexity. Polymorphism is also linked to inheritance as we wi... | [
{
"code": null,
"e": 1413,
"s": 1062,
"text": "Polymorphism means multiple forms. In python we can find the same operator or function taking multiple forms. It also useful in creating different classes which will have class methods with same name. That helps in re using a lot of code and decreases c... |
Detect Cat Faces in Real-Time using Python-OpenCV - GeeksforGeeks | 03 Jul, 2020
Face Detection is a technology to identify faces from the image. We use Python’s OpenCV for this. We can also use Face Detection in the case of Animals too. If one can take a close look at the OpenCV repository, the haar cascades directory to be specific (where the OpenCV stores all its pre-trained haar cl... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 24676,
"s": 24292,
"text": "Face Detection is a technology to identify faces from the image. We use Python’s OpenCV for this. We can also use Face Detection in the case of Animals too. If one... |
filepath.Abs() Function in Golang With Examples - GeeksforGeeks | 10 May, 2020
In Go language, path package used for paths separated by forwarding slashes, such as the paths in URLs. The filepath.Abs() function in Go language used to return an absolute representation of the specified path. If the path is not absolute it will be joined with the current working directory to turn it int... | [
{
"code": null,
"e": 24460,
"s": 24432,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24932,
"s": 24460,
"text": "In Go language, path package used for paths separated by forwarding slashes, such as the paths in URLs. The filepath.Abs() function in Go language used to return a... |
21 Number game in Python - GeeksforGeeks | 31 Jan, 2022
21, Bagram, or Twenty plus one is a game which progresses by counting up 1 to 21, with the player who calls “21” is eliminated. It can be played between any number of players.
ImplementationThis is a simple 21 number game using Python programming language. The game illustrated here is between the player an... | [
{
"code": null,
"e": 24716,
"s": 24688,
"text": "\n31 Jan, 2022"
},
{
"code": null,
"e": 24892,
"s": 24716,
"text": "21, Bagram, or Twenty plus one is a game which progresses by counting up 1 to 21, with the player who calls “21” is eliminated. It can be played between any number... |
How to get value from the first checkbox which is not hidden in jQuery? | To get value from the first checkbox, which is not hidden, use the :visible selector. Following is the code −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initialscale=1.0">
<title>>Document</title>
<link rel="stylesheet"
href="//code.jquer... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "To get value from the first checkbox, which is not hidden, use the :visible selector. Following is the code −"
},
{
"code": null,
"e": 1183,
"s": 1172,
"text": " Live Demo"
},
{
"code": null,
"e": 2068,
"s": 1183,
... |
Building an Event-Driven Data Pipeline to Copy Data from Amazon S3 to Azure Storage | by Yi Ai | Towards Data Science | It may be a requirement of your business to move a good amount of data periodically from one public cloud to another. More specifically, you may face mandates requiring a multi-cloud solution. This article covers one approach to automate data replication from AWS S3 Bucket to Microsoft Azure Blob Storage container usin... | [
{
"code": null,
"e": 564,
"s": 172,
"text": "It may be a requirement of your business to move a good amount of data periodically from one public cloud to another. More specifically, you may face mandates requiring a multi-cloud solution. This article covers one approach to automate data replication ... |
How to set the color to alternate rows of JTable in Java? | A JTable is a subclass of JComponent class and it can be used to create a table with information displayed in multiple rows and columns. When a value is selected from a JTable, a TableModelEvent is generated, which is handled by implementing a TableModelListener interface.
We can set the color to alternate rows of JTab... | [
{
"code": null,
"e": 1336,
"s": 1062,
"text": "A JTable is a subclass of JComponent class and it can be used to create a table with information displayed in multiple rows and columns. When a value is selected from a JTable, a TableModelEvent is generated, which is handled by implementing a TableMode... |
How to get installed windows update using PowerShell? | To get the installed windows updates using PowerShell, we can use the Get-Hotfix command. This command gets the hotfixes and updates that are installed on the local and the remote computer.
This command is the part of Microsoft.Management.PowerShell utility.
Get-HotFix
PS C:\> Get-HotFix
Source Description HotFixID Ins... | [
{
"code": null,
"e": 1252,
"s": 1062,
"text": "To get the installed windows updates using PowerShell, we can use the Get-Hotfix command. This command gets the hotfixes and updates that are installed on the local and the remote computer."
},
{
"code": null,
"e": 1321,
"s": 1252,
"... |
How to match non-digits using Java Regular Expression (RegEx) | You can match non-digit character using the meta character "\\D".
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Example {
public static void main(String args[]) {
//Reading String from user
System.out.println("Enter a String");
Scanner sc = n... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "You can match non-digit character using the meta character \"\\\\D\"."
},
{
"code": null,
"e": 1793,
"s": 1128,
"text": "import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\npublic class Exampl... |
GATE | GATE-CS-2015 (Set 1) | Question 65 - GeeksforGeeks | 19 Feb, 2021
Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algor... | [
{
"code": null,
"e": 24604,
"s": 24576,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 25226,
"s": 24604,
"text": "Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial positi... |
ML | Implementation of KNN classifier using Sklearn - GeeksforGeeks | 28 Nov, 2019
Prerequisite: K-Nearest Neighbours Algorithm
K-Nearest Neighbors is one of the most basic yet essential classification algorithms in Machine Learning. It belongs to the supervised learning domain and finds intense application in pattern recognition, data mining and intrusion detection. It is widely disposa... | [
{
"code": null,
"e": 24344,
"s": 24316,
"text": "\n28 Nov, 2019"
},
{
"code": null,
"e": 24389,
"s": 24344,
"text": "Prerequisite: K-Nearest Neighbours Algorithm"
},
{
"code": null,
"e": 24892,
"s": 24389,
"text": "K-Nearest Neighbors is one of the most basic ... |
How to detect swipe vertically on a ScrollView using Swift? | To detect swipe in scrollView we will need to make use of some tricks as scroll view does not natively give the directions of scroll made on it. We’ll see this with help of an example.
Create an empty project, add scroll view to the view as per your requirement.
Give them constraint as required in the application.
From... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "To detect swipe in scrollView we will need to make use of some tricks as scroll view does not natively give the directions of scroll made on it. We’ll see this with help of an example."
},
{
"code": null,
"e": 1325,
"s": 1247,
"text"... |
How to perform the arithmetic operations on arrays in C language? | An array is a group of related data items that are stored with single name.
For example, int student[30]; //student is an array name that holds 30 collection of data items with a single variable name
Searching − It is used to find whether particular element is present or not
Searching − It is used to find whether parti... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "An array is a group of related data items that are stored with single name."
},
{
"code": null,
"e": 1262,
"s": 1138,
"text": "For example, int student[30]; //student is an array name that holds 30 collection of data items with a sin... |
How to use cURL via a proxy ? - GeeksforGeeks | 01 Sep, 2020
This tutorial will show the way to use a proxy with PHP’s cURL functions. In this tutorial, we’ll send our HTTP request via a selected proxy IP address and port.
Why should you use a proxy?There are various reasons why you would possibly want to use a proxy with cURL:
To get around regional filters and cou... | [
{
"code": null,
"e": 24581,
"s": 24553,
"text": "\n01 Sep, 2020"
},
{
"code": null,
"e": 24743,
"s": 24581,
"text": "This tutorial will show the way to use a proxy with PHP’s cURL functions. In this tutorial, we’ll send our HTTP request via a selected proxy IP address and port."
... |
How to check the column values have string or digits in MySQL? | If you want only the string values, then use the below syntax −
select *from yourTableName where yourColumnName NOT regexp '^[0-9]+$';
If you want only the digit, then use the below syntax −
select *from yourTableName where yourColumnName regexp '^[0-9]+$';
Let us first create a table −
mysql> create table DemoTable(
... | [
{
"code": null,
"e": 1126,
"s": 1062,
"text": "If you want only the string values, then use the below syntax −"
},
{
"code": null,
"e": 1197,
"s": 1126,
"text": "select *from yourTableName where yourColumnName NOT regexp '^[0-9]+$';"
},
{
"code": null,
"e": 1253,
... |
C++ program to print Happy Birthday | This is a C++ program to print Happy Birthday.
Begin
Take a str1 which takes the next character of our desired ouput like for H it will be G.
Assign the string to a pointer p.
Make a while loop till *p != NULL.
Go next character of the string print it and after that go the nextposition of string.
Prin... | [
{
"code": null,
"e": 1109,
"s": 1062,
"text": "This is a C++ program to print Happy Birthday."
},
{
"code": null,
"e": 1400,
"s": 1109,
"text": "Begin\n Take a str1 which takes the next character of our desired ouput like for H it will be G.\n Assign the string to a pointer p... |
QlikView - Incremental Load | As the volume of data in the data source of a QlikView document increases, the time taken to load the file also increases which slows down the process of analysis. One approach to minimize this time taken to load data is to load only the records that are new in the source or the updated ones. This concept of loading on... | [
{
"code": null,
"e": 3341,
"s": 2920,
"text": "As the volume of data in the data source of a QlikView document increases, the time taken to load the file also increases which slows down the process of analysis. One approach to minimize this time taken to load data is to load only the records that ar... |
A Complete Dashboard Project in R Shiny App | by Lasha Gochiashvili | Towards Data Science | To get a taste of what we will build in this guide you can take a look at the live dashboard: https://gesurvey.shinyapps.io/Graduate-Employment-Survey/
Now, one can ask why R and Shiny App? I would answer - because it is free, scalable, and easy to learn, supported by a generous & enthusiastic community, and it's prett... | [
{
"code": null,
"e": 324,
"s": 172,
"text": "To get a taste of what we will build in this guide you can take a look at the live dashboard: https://gesurvey.shinyapps.io/Graduate-Employment-Survey/"
},
{
"code": null,
"e": 495,
"s": 324,
"text": "Now, one can ask why R and Shiny A... |
ScheduledExecutorService Interface | A java.util.concurrent.ScheduledExecutorService interface is a subinterface of ExecutorService interface, and supports future and/or periodic execution of tasks.
<V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
Creates and executes a ScheduledFuture that becomes enabled after the given d... | [
{
"code": null,
"e": 2819,
"s": 2657,
"text": "A java.util.concurrent.ScheduledExecutorService interface is a subinterface of ExecutorService interface, and supports future and/or periodic execution of tasks."
},
{
"code": null,
"e": 2900,
"s": 2819,
"text": "<V> ScheduledFuture<... |
How to add and subtract days using DateTime in Python? - GeeksforGeeks | 23 Apr, 2021
As we know date and time are used in programs where we have to keep track of date and time, so it is necessary to have a module to manipulate date and time. In python, a Date Time module deals with dates and times. Date time module is built into Python standard library.
Datetime module consists of the foll... | [
{
"code": null,
"e": 24541,
"s": 24513,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 24812,
"s": 24541,
"text": "As we know date and time are used in programs where we have to keep track of date and time, so it is necessary to have a module to manipulate date and time. In pyt... |
ReactJS - Props Validation | Properties validation is a useful way to force the correct usage of the components. This will help during development to avoid future bugs and problems, once the app becomes larger. It also makes the code more readable, since we can see how each component should be used.
In this example, we are creating App component w... | [
{
"code": null,
"e": 2305,
"s": 2033,
"text": "Properties validation is a useful way to force the correct usage of the components. This will help during development to avoid future bugs and problems, once the app becomes larger. It also makes the code more readable, since we can see how each compone... |
Random Numbers in C# | To generate random numbers in C#, use the Next(minValue, MaxValue) method. The parameters are used to set the minimum and maximum values.
Next(100,200);
We have set the above method under Random() object.
Random rd = new Random();
int rand_num = rd.Next(100,200);
The following is an example −
Live Demo
using System;
c... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "To generate random numbers in C#, use the Next(minValue, MaxValue) method. The parameters are used to set the minimum and maximum values."
},
{
"code": null,
"e": 1215,
"s": 1200,
"text": "Next(100,200);"
},
{
"code": null,
... |
What is the range of MySQL DECIMAL(x,0)? | The range of DECIMAL data type is more than the INTEGER data type and BIGINT. As we know the BIGINT can store 18446744073709551615 while in DECIMAL you can store DECIMAL(65,0) where x represents the 65 nines(9). The DECIMAL stores the number in bytes and the storage requirement formula is: DECIMAL(x,0) i.e.
StorageRequ... | [
{
"code": null,
"e": 1371,
"s": 1062,
"text": "The range of DECIMAL data type is more than the INTEGER data type and BIGINT. As we know the BIGINT can store 18446744073709551615 while in DECIMAL you can store DECIMAL(65,0) where x represents the 65 nines(9). The DECIMAL stores the number in bytes an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.