title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to use ForEach-Object Parallel cmdlet in PowerShell? | Foreach-Object -Parallel command was introduced in PowerShell version 7, preview 3, and it is used for the parallel execution of the pipeline input and more details on this have been explained in this article.
Please Note: Foreach-Object and Foreach commands are the same but we can’t write Foreach -Parallel command bec... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "Foreach-Object -Parallel command was introduced in PowerShell version 7, preview 3, and it is used for the parallel execution of the pipeline input and more details on this have been explained in this article."
},
{
"code": null,
"e": 1472,
... |
Coding in R: Pivot Painlessly. A quick guide to pivot_longer and... | by Rebecca O’Dwyer | Towards Data Science | I can’t gather or spread. I have some kind of mental block and can’t remember which one is which. I almost always use the wrong one, end up with some weird tibble and slam my laptop shut in frustration. Therefore, I thank the R Gods for the recently released pivot_wider and pivot_longer. I find them infinitely more int... | [
{
"code": null,
"e": 528,
"s": 172,
"text": "I can’t gather or spread. I have some kind of mental block and can’t remember which one is which. I almost always use the wrong one, end up with some weird tibble and slam my laptop shut in frustration. Therefore, I thank the R Gods for the recently relea... |
I built a DIY license plate reader with a Raspberry Pi and machine learning | by Robert Lucian Chiriac | Towards Data Science | A few months ago, I started entertaining the idea of giving my car the ability to detect and recognize objects. I mostly fancied this idea because I’ve seen what Teslas are capable of, and while I didn’t want to buy a Tesla right away (Model 3 is looking juicier with each passing day I gotta say), I thought I’d try mee... | [
{
"code": null,
"e": 515,
"s": 172,
"text": "A few months ago, I started entertaining the idea of giving my car the ability to detect and recognize objects. I mostly fancied this idea because I’ve seen what Teslas are capable of, and while I didn’t want to buy a Tesla right away (Model 3 is looking ... |
NumPy - Array Creation Routines | A new ndarray object can be constructed by any of the following array creation routines or using a low-level ndarray constructor.
It creates an uninitialized array of specified shape and dtype. It uses the following constructor −
numpy.empty(shape, dtype = float, order = 'C')
The constructor takes the following parame... | [
{
"code": null,
"e": 2373,
"s": 2243,
"text": "A new ndarray object can be constructed by any of the following array creation routines or using a low-level ndarray constructor."
},
{
"code": null,
"e": 2473,
"s": 2373,
"text": "It creates an uninitialized array of specified shape... |
Java Program to Perform Binary Search on ArrayList - GeeksforGeeks | 07 Jan, 2021
The ArrayList class is a part of the collection framework and is present in java.util package. It provides us with resizable or dynamic arrays in java. It is quite slower than standard arrays but can be helpful in some programs where we need to come up with cleaner and shorter code and lots of manipulation... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n07 Jan, 2021"
},
{
"code": null,
"e": 23888,
"s": 23557,
"text": "The ArrayList class is a part of the collection framework and is present in java.util package. It provides us with resizable or dynamic arrays in java. It is quite... |
Count of subarrays whose sum is a perfect square - GeeksforGeeks | 24 Nov, 2021
Given an array arr[] with positive and negative elements, the task is to count all subarrays whose sum is a perfect square.
Examples:
Input: arr[] = {2, 3, -5, 6, -7, 4}; Output: 5 Explanation: Subarrays {2, 3, -5}, {-5, 6}, {3, -5, 6}, {3, -5, 6, -7, 4} and {4} with sum is 0, 1, 4, 1 and 4 respectively h... | [
{
"code": null,
"e": 25498,
"s": 25470,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 25622,
"s": 25498,
"text": "Given an array arr[] with positive and negative elements, the task is to count all subarrays whose sum is a perfect square."
},
{
"code": null,
"e": 25... |
How to display text Right-to-Left Using CSS ? - GeeksforGeeks | 16 Jul, 2021
The task is to display a text from the right to left direction by using CSS. This is done with the help of the CSS Direction property. By default, the text alignment is set to left to right direction in HTML Document. To display the text from right to left, we simply set the direction property to the valu... | [
{
"code": null,
"e": 25376,
"s": 25348,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 25696,
"s": 25376,
"text": "The task is to display a text from the right to left direction by using CSS. This is done with the help of the CSS Direction property. By default, the text alignme... |
Draw geometric shapes on images using Python OpenCv module | The basic operations of OpenCV is to draw over images. The ability to add different geometric shapes just like lines, circles and rectangle etc.
Often working with image analysis, we want to highlight a portion of the image, for example by adding a rectangle that defines that portion. Also as example an arrow to indica... | [
{
"code": null,
"e": 1207,
"s": 1062,
"text": "The basic operations of OpenCV is to draw over images. The ability to add different geometric shapes just like lines, circles and rectangle etc."
},
{
"code": null,
"e": 1396,
"s": 1207,
"text": "Often working with image analysis, we... |
How can I select date from a datepicker div using Selenium Webdriver? | We can select data from a datepicker using Selenium webdriver. A datepicker in a calendar can be designed in numerous ways on the web UI. Based on the UI, we have to design our test.
A calendar may have a dropdown for selection of day, month or year. It may also contain forward and backward navigation to move up and do... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "We can select data from a datepicker using Selenium webdriver. A datepicker in a calendar can be designed in numerous ways on the web UI. Based on the UI, we have to design our test."
},
{
"code": null,
"e": 1576,
"s": 1245,
"text": ... |
Angular Google Charts - Environment Setup | This tutorial will guide you on how to prepare a development environment to start your work with Google Charts and Angular Framework. In this chapter, we will discuss the Environment Setup required for Angular 6. To install Angular 6, we require the following −
Nodejs
Npm
Angular CLI
IDE for writing your code
Nodejs ha... | [
{
"code": null,
"e": 2058,
"s": 1796,
"text": "This tutorial will guide you on how to prepare a development environment to start your work with Google Charts and Angular Framework. In this chapter, we will discuss the Environment Setup required for Angular 6. To install Angular 6, we require the fol... |
Python Lists Cheat sheet | Towards Data Science | List — The built-in, array-like data structure in Python!
List is one of the most frequently used data structure in Python and it is mutable or changeable, ordered sequence of elements of same or different data types.
Here are the 5 must-know tweaks and tricks about Python list, which I mastered (and certainly you can)... | [
{
"code": null,
"e": 230,
"s": 172,
"text": "List — The built-in, array-like data structure in Python!"
},
{
"code": null,
"e": 390,
"s": 230,
"text": "List is one of the most frequently used data structure in Python and it is mutable or changeable, ordered sequence of elements o... |
A Beginner’s Guide on Sentiment Analysis with RNN | by Susan Li | Towards Data Science | Sentiment analysis probably is one the most common applications in Natural Language processing. I don’t have to emphasize how important customer service tool sentiment analysis has become. So here we are, we will train a classifier movie reviews in IMDB data set, using Recurrent Neural Networks. If you want to dive dee... | [
{
"code": null,
"e": 558,
"s": 171,
"text": "Sentiment analysis probably is one the most common applications in Natural Language processing. I don’t have to emphasize how important customer service tool sentiment analysis has become. So here we are, we will train a classifier movie reviews in IMDB d... |
VB.Net - Database Access | Applications communicate with a database, firstly, to retrieve the data stored there and present it in a user-friendly way, and secondly, to update the database by inserting, modifying and deleting data.
Microsoft ActiveX Data Objects.Net (ADO.Net) is a model, a part of the .Net framework that is used by the .Net appli... | [
{
"code": null,
"e": 2504,
"s": 2300,
"text": "Applications communicate with a database, firstly, to retrieve the data stored there and present it in a user-friendly way, and secondly, to update the database by inserting, modifying and deleting data."
},
{
"code": null,
"e": 2673,
"s... |
Converting Context Free Grammar to Chomsky Normal Form - GeeksforGeeks | 21 May, 2019
Prerequisite – Simplifying Context Free Grammars
A context free grammar (CFG) is in Chomsky Normal Form (CNF) if all production rules satisfy one of the following conditions:
A non-terminal generating a terminal (e.g.; X->x)
A non-terminal generating two non-terminals (e.g.; X->YZ)
Start symbol generating ... | [
{
"code": null,
"e": 29836,
"s": 29808,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 29885,
"s": 29836,
"text": "Prerequisite – Simplifying Context Free Grammars"
},
{
"code": null,
"e": 30011,
"s": 29885,
"text": "A context free grammar (CFG) is in Chomsk... |
Python OpenCV – Background Subtraction | 22 Jun, 2020
Background Subtraction is one of the major Image Processing tasks. It is used in various Image Processing applications like Image Segmentation, Object Detection, etc. OpenCV provides us 3 types of Background Subtraction algorithms:-
BackgroundSubtractorMOG
BackgroundSubtractorMOG2
BackgroundSubtractorGMG
N... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 261,
"s": 28,
"text": "Background Subtraction is one of the major Image Processing tasks. It is used in various Image Processing applications like Image Segmentation, Object Detection, etc. OpenCV p... |
Kotlin | Language for Android, now Official by Google | 07 Feb, 2018
Kotlin is a new Open-Source programming language from JetBrains. It first appeared in 2011 when JetBrains unveiled their project named “Kotlin”. Basically like Java, C and C++ — Kotlin is also a “statically typed programming language” (languages in which variables need not be defined before they are used).... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Feb, 2018"
},
{
"code": null,
"e": 564,
"s": 54,
"text": "Kotlin is a new Open-Source programming language from JetBrains. It first appeared in 2011 when JetBrains unveiled their project named “Kotlin”. Basically like Java, C and C+... |
Conceptual Model of the Unified Modeling Language (UML) | 11 Jul, 2022
The Unified Modeling Language (UML) is a standard visual language for describing and modelling software blueprints. The UML is more than just a graphical language. Stated formally, the UML is for: Visualizing, Specifying, Constructing, and Documenting.The artifacts of a software-intensive system (particula... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Jul, 2022"
},
{
"code": null,
"e": 411,
"s": 52,
"text": "The Unified Modeling Language (UML) is a standard visual language for describing and modelling software blueprints. The UML is more than just a graphical language. Stated for... |
Java toDegrees() method with Example | 12 Apr, 2018
The java.lang.Math.toDegrees() is used to convert an angle measured in radians to an approximately equivalent angle measured in degrees.
Note: The conversion from radians to degrees is generally inexact; users should not expect cos(toRadians(90.0)) to exactly equal 0.0.
Syntax:
public static double toDegre... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Apr, 2018"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "The java.lang.Math.toDegrees() is used to convert an angle measured in radians to an approximately equivalent angle measured in degrees."
},
{
"code": null,
"e": 2... |
OpenCV C++ Windows Setup using Visual Studio 2019 | 29 Dec, 2020
OpenCV is the Real-Time Computer Vision library which provides various real-time computer vision, video capturing, image processing, and machine learning functionalities. Using OpenCV with Visual Studio you can build robust applications for object detection, image transformation, video capturing, and analy... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 442,
"s": 28,
"text": "OpenCV is the Real-Time Computer Vision library which provides various real-time computer vision, video capturing, image processing, and machine learning functionalities. Usin... |
Monitors in Process Synchronization | 30 Sep, 2019
The monitor is one of the ways to achieve Process synchronization. The monitor is supported by programming languages to achieve mutual exclusion between processes. For example Java Synchronized methods. Java provides wait() and notify() constructs.
It is the collection of condition variables and procedures... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Sep, 2019"
},
{
"code": null,
"e": 303,
"s": 54,
"text": "The monitor is one of the ways to achieve Process synchronization. The monitor is supported by programming languages to achieve mutual exclusion between processes. For exampl... |
How to Calculate Distance Between two Locations in Android? | 24 Jan, 2021
We have seen many apps that use Google Maps. These maps are used to indicate places on Google Maps and also we can use this to calculate the distance between two locations. In this article, we will take a look at calculating the distance between two locations in Android.
We will be building a simple appli... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "We have seen many apps that use Google Maps. These maps are used to indicate places on Google Maps and also we can use this to calculate the distance between two locations. In... |
Pythagorean Triplet with given sum | 06 Apr, 2021
A Pythagorean Triplet is a set of natural numbers such that a < b < c, for which a^2 + b^2 = c^2. For example, 3^2 + 4^2 = 5^2.Given a number n, find a Pythagorean Triplet with sum as given n. Examples :
Input : n = 12
Output : 3, 4, 5
Note that 3, 4 and 5 is a Pythagorean Triplet
with sum equal to 12.
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 258,
"s": 52,
"text": "A Pythagorean Triplet is a set of natural numbers such that a < b < c, for which a^2 + b^2 = c^2. For example, 3^2 + 4^2 = 5^2.Given a number n, find a Pythagorean Triplet wi... |
Python | Remove all duplicates words from a given sentence | 27 Jun, 2022
Given a sentence containing n words/strings. Remove all duplicates words/strings which are similar to each others.Examples:
Input : Geeks for Geeks
Output : Geeks for
Input : Python is great and Java is also great
Output : is also Java Python and great
Chapters
descriptions off, selected
captions sett... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 154,
"s": 28,
"text": "Given a sentence containing n words/strings. Remove all duplicates words/strings which are similar to each others.Examples: "
},
{
"code": null,
"e": 284,
"s"... |
wc command in Linux with examples | 19 Feb, 2021
wc stands for word count. As the name implies, it is mainly used for counting purpose.
It is used to find out number of lines, word count, byte and characters count in the files specified in the file arguments.
By default it displays four-columnar output.
First column shows number of lines present in a fil... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 139,
"s": 52,
"text": "wc stands for word count. As the name implies, it is mainly used for counting purpose."
},
{
"code": null,
"e": 263,
"s": 139,
"text": "It is used to find... |
How to Change the Number of Ticks in Matplotlib? | 28 Nov, 2021
In this article, we will see how to change the number of ticks on the plots in matplotlib in Python.
xticks() and yticks() is the function that lets us customize the x ticks and y ticks by giving the values as a list, and we can also give labels for the ticks, matters, and as **kwargs we can apply text eff... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 129,
"s": 28,
"text": "In this article, we will see how to change the number of ticks on the plots in matplotlib in Python."
},
{
"code": null,
"e": 360,
"s": 129,
"text": "xtick... |
How to change the title bar in Tkinter? | Tkinter initially sets a default title bar for every application. We can update or replace the Title Bar of the Tkinter application by configuring the title("Enter any Title") method. For a particular application, let us see how we can change the title of a Tkinter application that calculates the square of a number.
#I... | [
{
"code": null,
"e": 1380,
"s": 1062,
"text": "Tkinter initially sets a default title bar for every application. We can update or replace the Title Bar of the Tkinter application by configuring the title(\"Enter any Title\") method. For a particular application, let us see how we can change the titl... |
Count pairs with given sum - GeeksforGeeks | 11 Feb, 2022
Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’.
Examples:
Input : arr[] = {1, 5, 7, -1},
sum = 6
Output : 2
Pairs with sum 6 are (1, 5) and (7, -1)
Input : arr[] = {1, 5, 7, -1, 5},
sum = 6
Output :... | [
{
"code": null,
"e": 24691,
"s": 24663,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 24818,
"s": 24691,
"text": "Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’."
},
{
"code": null,
"e":... |
Minkowski distance in Python | The Minkowski distance is a metric and in a normed vector space, the result is Minkowski inequality. Minkowski distance is used for distance similarity of vector.
scipy.spatial.distance.minkowski
>>> from scipy.spatial import distance
>>> distance.minkowski([1, 0, 0], [0, 1, 0], 1)
2.0
>>> distance.minkowski([1, 0, 0],... | [
{
"code": null,
"e": 1225,
"s": 1062,
"text": "The Minkowski distance is a metric and in a normed vector space, the result is Minkowski inequality. Minkowski distance is used for distance similarity of vector."
},
{
"code": null,
"e": 1258,
"s": 1225,
"text": "scipy.spatial.dista... |
Spring Boot Lazy Loading Beans Example - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to see how to ... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
File.Copy(String, String) Method in C# with Examples - GeeksforGeeks | 14 Aug, 2021
File.Copy(String, String) is an inbuilt File class method that is used to copy the content of the existing source file content to another destination file which is created by this function.
Syntax:
public static void Copy (string sourceFileName, string destFileName);
Parameter: This function accepts two... | [
{
"code": null,
"e": 23873,
"s": 23845,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 24064,
"s": 23873,
"text": "File.Copy(String, String) is an inbuilt File class method that is used to copy the content of the existing source file content to another destination file which is... |
Revealed: A ridiculously easy way to integrate Azure Cosmos DB with Azure Databricks | by Prashanth Xavier | Towards Data Science | Buddy our novice Data Engineer who recently discovered the ultimate cheat-sheet to read and write files in Databricks is now leveling up in the Azure world.
In this article, you will discover how to seamlessly integrate Azure Cosmos DB with Azure Databricks. Azure Cosmos DB is a key service in the Azure cloud platform ... | [
{
"code": null,
"e": 328,
"s": 171,
"text": "Buddy our novice Data Engineer who recently discovered the ultimate cheat-sheet to read and write files in Databricks is now leveling up in the Azure world."
},
{
"code": null,
"e": 552,
"s": 328,
"text": "In this article, you will dis... |
Building Web App for Computer Vision Model & Deploying to Production in 10 Minutes*: A Detailed Guide | by Pankaj Mathur | Towards Data Science | After downloading starter packs & performing one-time setup for one of the Docker hosted web app providers, You can quickly deploy your Computer Vision model created in fast.ai or keras libraries as a responsive web app, all in less than 10–15 minutes.
UPDATES on August 23rd, 2020: The world has changed a lot, since i ... | [
{
"code": null,
"e": 425,
"s": 172,
"text": "After downloading starter packs & performing one-time setup for one of the Docker hosted web app providers, You can quickly deploy your Computer Vision model created in fast.ai or keras libraries as a responsive web app, all in less than 10–15 minutes."
... |
innerHTML vs innerText in JavaScript. | innerHTML − The innerHTML property returns the text, including all spacing and inner element tags. It preserves the formatting of the text and all the extra tags like <b>, <i> etc.
innerText − The innerText property returns just the text, removing the spacing and the inner element tags.
Following is the code for innerH... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "innerHTML − The innerHTML property returns the text, including all spacing and inner element tags. It preserves the formatting of the text and all the extra tags like <b>, <i> etc."
},
{
"code": null,
"e": 1350,
"s": 1243,
"text": "i... |
Creating Multipage applications using Streamlit (efficiently!) | by Prakhar Rathi | Towards Data Science | How often have you had a great ML project idea that you think you would be able to show-off on your resume? You quickly collect data, analyze it and build models on it; all inside a Jupyter Notebook and then you face your worst nightmare— somebody asks you to deploy the model and show inferencing with a user-friendly i... | [
{
"code": null,
"e": 832,
"s": 172,
"text": "How often have you had a great ML project idea that you think you would be able to show-off on your resume? You quickly collect data, analyze it and build models on it; all inside a Jupyter Notebook and then you face your worst nightmare— somebody asks yo... |
What is super() function in JavaScript? | Use the super() function to call the constructor of the parent class and access functions on an object's parent class.
You can try to run the following code to implement super()
Live Demo
<!DOCTYPE html>
<html>
<body>
<script>
class Department {
constructor() {}
static msg() {
... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "Use the super() function to call the constructor of the parent class and access functions on an object's parent class."
},
{
"code": null,
"e": 1240,
"s": 1181,
"text": "You can try to run the following code to implement super()"
}... |
WPF - Dependency Properties | In WPF applications, dependency property is a specific type of property which extends the CLR property. It takes the advantage of specific functionalities available in the WPF property system.
A class which defines a dependency property must be inherited from the DependencyObject class. Many of the UI controls class wh... | [
{
"code": null,
"e": 2213,
"s": 2020,
"text": "In WPF applications, dependency property is a specific type of property which extends the CLR property. It takes the advantage of specific functionalities available in the WPF property system."
},
{
"code": null,
"e": 2509,
"s": 2213,
... |
How do I check for null values in JavaScript? | To check for null values in JavaScript, you need to check the variable value with null. Use the JavaScript strict equality operator to achieve this.
You can try to run the following code to check whether the value of the variable is null or not −
<html>
<head>
<title>JavaScript Strict Equality Operator</title>... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "To check for null values in JavaScript, you need to check the variable value with null. Use the JavaScript strict equality operator to achieve this."
},
{
"code": null,
"e": 1309,
"s": 1211,
"text": "You can try to run the following ... |
NumPy Array Indexing | Array indexing is the same as accessing an array element.
You can access an array element by referring to its index number.
The indexes in NumPy arrays start with 0, meaning that the first element
has index 0, and the second has index 1 etc.
Get the first element from the following array:
Get the second element from ... | [
{
"code": null,
"e": 58,
"s": 0,
"text": "Array indexing is the same as accessing an array element."
},
{
"code": null,
"e": 124,
"s": 58,
"text": "You can access an array element by referring to its index number."
},
{
"code": null,
"e": 244,
"s": 124,
"text"... |
toupper() function in C - GeeksforGeeks | 04 Aug, 2021
The toupper() function is used to convert lowercase alphabet to uppercase. i.e. If the character passed is a lowercase alphabet then the toupper() function converts a lowercase alphabet to an uppercase alphabet. It is defined in the ctype.h header file.Syntax:
int toupper(int ch);
Parameter: It accepts a... | [
{
"code": null,
"e": 24208,
"s": 24180,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 24471,
"s": 24208,
"text": "The toupper() function is used to convert lowercase alphabet to uppercase. i.e. If the character passed is a lowercase alphabet then the toupper() function convert... |
Beautiful Ridge maps with Python | by Thiago Carvalho | Towards Data Science | This visualization is the result of the sweet combination of elevation maps and ridge plots.
It uses multiple horizontal lines to represent the elevation of the terrain, like tracing the peak of various latitudes, one above the other.
The result is a very cool-looking map that shapes the mountains and different altitud... | [
{
"code": null,
"e": 265,
"s": 172,
"text": "This visualization is the result of the sweet combination of elevation maps and ridge plots."
},
{
"code": null,
"e": 407,
"s": 265,
"text": "It uses multiple horizontal lines to represent the elevation of the terrain, like tracing the... |
How to change the font size of textView in android? | This example demonstrates how do I change the font size of TextView in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<Relativ... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "This example demonstrates how do I change the font size of TextView in android."
},
{
"code": null,
"e": 1271,
"s": 1142,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detail... |
Root to leaf path sum equal to a given number in BST - GeeksforGeeks | 30 Jun, 2021
Given a BST and a number. The task is to check whether the given number is equal to the sum of all the node from root leaf across any of the root to leaf paths in the given Binary Search Tree.
Approach: The idea is to traverse from root to all leaves in top-down fashion maintaining a path[] array to st... | [
{
"code": null,
"e": 25019,
"s": 24991,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 25214,
"s": 25019,
"text": "Given a BST and a number. The task is to check whether the given number is equal to the sum of all the node from root leaf across any of the root to leaf paths in ... |
CloneNode() method in JavaScript? | It is a method used to clone an element from one list to another list. The cloneNode(), provided by javascript, the method creates a copy of a node and returns the clone. It can clone all attributes and their values.
node.cloneNode();
In the following example, initially, two lists were created and then using the javas... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "It is a method used to clone an element from one list to another list. The cloneNode(), provided by javascript, the method creates a copy of a node and returns the clone. It can clone all attributes and their values. "
},
{
"code": null,
"e"... |
Segmentation of Roads in Aerial Images. | by Jerin Paul | Towards Data Science | The onset of Convolutional Neural Networks (C.N.N.s) was a breakthrough in the field of computer vision as they radically changed the way computers “looked at” images. Machine vision has come a long way from where it began, but it is still at the bleeding edge of research today. Semantic Segmentation is the process of ... | [
{
"code": null,
"e": 602,
"s": 172,
"text": "The onset of Convolutional Neural Networks (C.N.N.s) was a breakthrough in the field of computer vision as they radically changed the way computers “looked at” images. Machine vision has come a long way from where it began, but it is still at the bleeding... |
Spring MVC - Exception Handling Example | The following example show how to write a simple web based application using Spring MVC Framwork, which can handle one or more exceptions raised inside its controllers. To start with it, let us have working Eclipse IDE in place and follow the following steps to develop a Dynamic Form based Web Application using Spring ... | [
{
"code": null,
"e": 3126,
"s": 2791,
"text": "The following example show how to write a simple web based application using Spring MVC Framwork, which can handle one or more exceptions raised inside its controllers. To start with it, let us have working Eclipse IDE in place and follow the following ... |
JavaFX - Transformations | Transformation means changing some graphics into something else by applying rules. We can have various types of transformations such as Translation, Scaling Up or Down, Rotation, Shearing, etc.
Using JavaFX, you can apply transformations on nodes such as rotation, scaling and translation. All these transformations are ... | [
{
"code": null,
"e": 2094,
"s": 1900,
"text": "Transformation means changing some graphics into something else by applying rules. We can have various types of transformations such as Translation, Scaling Up or Down, Rotation, Shearing, etc."
},
{
"code": null,
"e": 2307,
"s": 2094,
... |
Spring AOP - Implementations | Spring supports the @AspectJ annotation style approach and the schema-based approach to implement custom aspects.
Aspects are implemented using regular classes along with XML based configuration.
To use the AOP namespace tags described in this section, you need to import the spring AOP schema, described as follows −
<?... | [
{
"code": null,
"e": 2383,
"s": 2269,
"text": "Spring supports the @AspectJ annotation style approach and the schema-based approach to implement custom aspects."
},
{
"code": null,
"e": 2465,
"s": 2383,
"text": "Aspects are implemented using regular classes along with XML based c... |
Program to find the time remaining for the day to complete - GeeksforGeeks | 11 May, 2021
Given the current time in the form of HH::MM, where H represents the hours and M, represents the minutes in a 24-hour time format. The task is to calculate the time remaining for the day to complete as HH::MM.Examples:
Input: HH::MM = 00::01
Output: 23::01
Input: HH::MM = 23::55
Output: 00::05
Approac... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 26182,
"s": 25961,
"text": "Given the current time in the form of HH::MM, where H represents the hours and M, represents the minutes in a 24-hour time format. The task is to calculate the tim... |
Minimum steps to make sum and the product of all elements of array non-zero - GeeksforGeeks | 29 Apr, 2021
Given an array arr of N integers, the task is to find the minimum steps in which the sum and product of all elements of the array can be made non-zero. In one step any element of the array can be incremented by 1.Examples:
Input: N = 4, arr[] = {0, 1, 2, 3} Output: 1 Explanation: As product of all elemen... | [
{
"code": null,
"e": 26066,
"s": 26038,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 26291,
"s": 26066,
"text": "Given an array arr of N integers, the task is to find the minimum steps in which the sum and product of all elements of the array can be made non-zero. In one step... |
Maximum number of unique prime factors - GeeksforGeeks | 20 May, 2021
Given a number N, find the maximum number of unique prime factors any number can have in range [1, N].Examples:
Input : N = 500
Output : 4
The maximum number of prime factors
for any number in [1, 500] is 4. A
number in range that has 4 prime
factors is 210 (2 x 3 x 5 x 7)
Input : N = 3
Output : 1
In... | [
{
"code": null,
"e": 25825,
"s": 25797,
"text": "\n20 May, 2021"
},
{
"code": null,
"e": 25939,
"s": 25825,
"text": "Given a number N, find the maximum number of unique prime factors any number can have in range [1, N].Examples: "
},
{
"code": null,
"e": 26158,
"... |
set::empty() in C++ STL - GeeksforGeeks | 17 Jun, 2020
Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, though it is possible to remove and add the modified value of that element.
empty() function is used to ... | [
{
"code": null,
"e": 25368,
"s": 25340,
"text": "\n17 Jun, 2020"
},
{
"code": null,
"e": 25647,
"s": 25368,
"text": "Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies it. The value of the element cannot b... |
Tailwind CSS Text Color - GeeksforGeeks | 23 Mar, 2022
This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can color any text. In CSS, we do that by using the CSS Color property.
Text Color classes:
text-transparent: The text color will be transparent.
text-current: The text color will ... | [
{
"code": null,
"e": 37385,
"s": 37357,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 37584,
"s": 37385,
"text": "This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can color any text. In CSS, we do th... |
Remove extra spaces from a string - GeeksforGeeks | 19 Apr, 2022
Given a string containing many consecutive spaces, trim all spaces so that all words should contain only a single space between them. The conversion should be done in-place and solution should handle trailing and leading spaces and also remove preceding spaces before common punctuation like full stop, comm... | [
{
"code": null,
"e": 26473,
"s": 26445,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 26803,
"s": 26473,
"text": "Given a string containing many consecutive spaces, trim all spaces so that all words should contain only a single space between them. The conversion should be done... |
Move all zeroes to end of array using Two-Pointers - GeeksforGeeks | 25 May, 2021
Given an array of random numbers, Push all the zero’s of the given array to the end of the array. For example, if the given arrays is {1, 0, 2, 6, 0, 4}, it should be changed to {1, 2, 6, 4, 0, 0}. The order of all other elements should be the same.Examples:
Input: arr[]={8, 9, 0, 1, 2, 0, 3}
Output: arr... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 26326,
"s": 26065,
"text": "Given an array of random numbers, Push all the zero’s of the given array to the end of the array. For example, if the given arrays is {1, 0, 2, 6, 0, 4}, it should... |
How to Install Matplotlib on Windows? - GeeksforGeeks | 09 Sep, 2021
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
In this article, we will look into the various process of installing Matplotlib on Windows.
The... | [
{
"code": null,
"e": 26097,
"s": 26069,
"text": "\n09 Sep, 2021"
},
{
"code": null,
"e": 26309,
"s": 26097,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an... |
JavaFX | RadioButton with examples - GeeksforGeeks | 25 Oct, 2019
RadioButtons are a part of JavaFx package. RadioButtons are mainly used to create a series of items where only one can be selected. When a Radio button is pressed and released an Action event is sent, this Action Event can be handled using an Event Handler.RadioButton can be added to Toggle Group so that t... | [
{
"code": null,
"e": 25321,
"s": 25293,
"text": "\n25 Oct, 2019"
},
{
"code": null,
"e": 25817,
"s": 25321,
"text": "RadioButtons are a part of JavaFx package. RadioButtons are mainly used to create a series of items where only one can be selected. When a Radio button is pressed ... |
Difference between an Integer and int in Java with Examples - GeeksforGeeks | 10 Oct, 2019
In Java, int is a primitive data type while Integer is a Wrapper class.
int, being a primitive data type has got less flexibility. We can only store the binary value of an integer in it.
Since Integer is a wrapper class for int data type, it gives us more flexibility in storing, converting and manipulating... | [
{
"code": null,
"e": 25530,
"s": 25502,
"text": "\n10 Oct, 2019"
},
{
"code": null,
"e": 25602,
"s": 25530,
"text": "In Java, int is a primitive data type while Integer is a Wrapper class."
},
{
"code": null,
"e": 25717,
"s": 25602,
"text": "int, being a primi... |
Fill 8 numbers in grid with given conditions - GeeksforGeeks | 07 Jul, 2021
Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in the figure given below, in such a way that no number is adjacent to a number that is next to it in the sequence. For example, 1 should not be adjacent to 2 but can be adjacent to 3, 4, 5, 6, 7, 8. Similarly for others.
Naive Algorithm Th... | [
{
"code": null,
"e": 26229,
"s": 26201,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 26516,
"s": 26229,
"text": "Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in the figure given below, in such a way that no number is adjacent to a number that is next to it ... |
Python | Pandas Series.iteritems() - GeeksforGeeks | 12 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.iteritems() function iterates over t... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 24158,
"s": 23901,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label... |
PLSQL | ASCII Function - GeeksforGeeks | 18 Sep, 2019
The string in PL/SQL is actually a sequence of characters with an optional size specification.The characters could be numeric, letters, blank, special characters or a combination of all.The ASCII Function in PLSQL is used to return the NUMBER code that represents the specified character.
Syntax
ASCII( sing... | [
{
"code": null,
"e": 23585,
"s": 23557,
"text": "\n18 Sep, 2019"
},
{
"code": null,
"e": 23874,
"s": 23585,
"text": "The string in PL/SQL is actually a sequence of characters with an optional size specification.The characters could be numeric, letters, blank, special characters o... |
Fetch multiple documents in MongoDB query with OR condition? | Let us create a collection with documents −
> db.demo362.insertOne({"ClientName":"John","ClientProject":"School Management System"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e56a77454a481fef8ec7a1c")
}
> db.demo362.insertOne({"ClientName":"David","ClientProject":"Library Management System"});
{
"ack... | [
{
"code": null,
"e": 1106,
"s": 1062,
"text": "Let us create a collection with documents −"
},
{
"code": null,
"e": 1800,
"s": 1106,
"text": "> db.demo362.insertOne({\"ClientName\":\"John\",\"ClientProject\":\"School Management System\"});\n{\n \"acknowledged\" : true,\n \"in... |
Evaluate the expression | Practice | GeeksforGeeks | Given a number n, find the value of below expression:
f(n-1)*f(n+1) - f(n)*f(n) where f(n) is nth Fibonacci.
Example 1:
Input : n = 5
Output: -1
Explanation: f(4) = 3, f(5) = 5
f(6) = 8. 3 * 8 - 5 * 5 = -1
Example 2:
Input: n = 3
Output: 1
Explanation: f(2) = 1, f(3) = 2
and f(4) = 3. 1 * 3 - 2 * 2 =... | [
{
"code": null,
"e": 353,
"s": 226,
"text": "Given a number n, find the value of below expression:\n f(n-1)*f(n+1) - f(n)*f(n) where f(n) is nth Fibonacci. \n "
},
{
"code": null,
"e": 364,
"s": 353,
"text": "Example 1:"
},
{
"code": null,
"e": 451,
... |
Creating Dictionary using Javascript | Let's create a MyMap class so that it doesn't hide the actual Map class in JS. We'll create a container object that'll keep track of all our values that we add to the map. We'll also create a display function that prints the map for us.
class MyMap {
constructor() {
this.container = {};
}
display() {
... | [
{
"code": null,
"e": 1300,
"s": 1062,
"text": "Let's create a MyMap class so that it doesn't hide the actual Map class in JS. We'll create a container object that'll keep track of all our values that we add to the map. We'll also create a display function that prints the map for us. "
},
{
"... |
How to get the mean of a specific column in a dataframe in Python? | Sometimes, it may be required to get the mean value of a specific column that is numeric in nature. This is where the ‘mean’ function can be used.
The column whose mean needs to be computed can be indexed to the dataframe, and the mean function can be called on this using the dot operator.
The index of the column can a... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "Sometimes, it may be required to get the mean value of a specific column that is numeric in nature. This is where the ‘mean’ function can be used."
},
{
"code": null,
"e": 1353,
"s": 1209,
"text": "The column whose mean needs to be c... |
How to algorithmically generate an image dataset | by Albert Sanchez Lafuente | Towards Data Science | This post is inspired by the NFT art collections that have been released lately, such as Cryptopunks, Sollamas, ON1 Force, or Bored Ape Yacht Club. Among all these projects, there are some in which the images are created by artists while in others the images are algorithmically generated. As we are in a Data Science bl... | [
{
"code": null,
"e": 566,
"s": 171,
"text": "This post is inspired by the NFT art collections that have been released lately, such as Cryptopunks, Sollamas, ON1 Force, or Bored Ape Yacht Club. Among all these projects, there are some in which the images are created by artists while in others the ima... |
How to select distinct value from one MySQL column only? | To select distinct value from one column only, you can use aggregate function MAX() along with GROUP BY. Let us first create a table −
mysql> create table distinctFromOneColumn
-> (
-> StudentId int,
-> StudentName varchar(100)
-> );
Query OK, 0 rows affected (0.77 sec)
Following is the query to insert reco... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "To select distinct value from one column only, you can use aggregate function MAX() along with GROUP BY. Let us first create a table −"
},
{
"code": null,
"e": 1345,
"s": 1197,
"text": "mysql> create table distinctFromOneColumn\n -... |
Make a gradient color mapping on a specified column in Pandas - GeeksforGeeks | 05 Apr, 2022
Let us see how to gradient color mapping on specific columns of a Pandas DataFrame. We can do this using the Styler.background_gradient() function of the Styler class.
Syntax : Styler.background_gradient(cmap=’PuBu’, low=0, high=0, axis=0, subset=None)
Parameters :
cmap : str or colormap (matplotlib colo... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n05 Apr, 2022"
},
{
"code": null,
"e": 24069,
"s": 23901,
"text": "Let us see how to gradient color mapping on specific columns of a Pandas DataFrame. We can do this using the Styler.background_gradient() function of the Styler cl... |
All the Statistical Tests You Must Do for a Good Linear Regression | by Gustavo Santos | Towards Data Science | The idea of this post is to show the many statistical tests that are around a Linear Regression. I know that it may sound repetitive (“Yet another post about Linear Regression”), but the information I am about to write about is not widely spread as we may think.
We will cover the following subjects:
What are the necess... | [
{
"code": null,
"e": 435,
"s": 172,
"text": "The idea of this post is to show the many statistical tests that are around a Linear Regression. I know that it may sound repetitive (“Yet another post about Linear Regression”), but the information I am about to write about is not widely spread as we may... |
Python - Plotting Combined charts in excel sheet using XlsxWriter module | lsxWriter is a Python library using which one can perform multiple operations on excel files like creating, writing, arithmetic operations and plotting graphs.
# import xlsxwriter module
import xlsxwriter
# Workbook() takes one, non-optional, argument which is the filename #that we want to create.
workbook = xlsxwriter... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "lsxWriter is a Python library using which one can perform multiple operations on excel files like creating, writing, arithmetic operations and plotting graphs."
},
{
"code": null,
"e": 3690,
"s": 1222,
"text": "# import xlsxwriter mo... |
is_pod template in C++ | In this article we will be discussing the working, syntax and examples of std::is_pod template in C++ STL.
is_ pod is a template which comes under <type_traits> header file. This template is used to check whether the given type T is a POD(plain-old-data) type or not.
Plain old data(POD) types are those types which are ... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "In this article we will be discussing the working, syntax and examples of std::is_pod template in C++ STL."
},
{
"code": null,
"e": 1330,
"s": 1169,
"text": "is_ pod is a template which comes under <type_traits> header file. This tem... |
AWK - String Functions | AWK has the following built-in String functions −
This function sorts the contents of arr using GAWK's normal rules for comparing values, and replaces the indexes of the sorted values arr with sequential integers starting with 1.
[jerry]$ awk 'BEGIN {
arr[0] = "Three"
arr[1] = "One"
arr[2] = "Two"
print "Ar... | [
{
"code": null,
"e": 1907,
"s": 1857,
"text": "AWK has the following built-in String functions −"
},
{
"code": null,
"e": 2087,
"s": 1907,
"text": "This function sorts the contents of arr using GAWK's normal rules for comparing values, and replaces the indexes of the sorted value... |
Learning To Win Blackjack With Monte Carlo Methods | by Donal Byrne | Towards Data Science | This article will take you through the logic behind one of the foundational pillars of reinforcement learning, Monte Carlo (MC) methods. This classic approach to the problem of reinforcement learning will be demonstrated by finding the optimal policy to a simplified version of blackjack.
By the end of this article I ho... | [
{
"code": null,
"e": 460,
"s": 171,
"text": "This article will take you through the logic behind one of the foundational pillars of reinforcement learning, Monte Carlo (MC) methods. This classic approach to the problem of reinforcement learning will be demonstrated by finding the optimal policy to a... |
Deep Learning with Tensorflow: Part 2 — Image classification | by Matteo Kofler | Towards Data Science | Hi everybody, welcome back to my Tenserflow series, this is part 2. I already described the logic and functionality of neural networks and Tenserflow in the first part as well as I showed you how to set up your coding environment. If you haven’t checked it out already, find it here.
Image recognition and classification... | [
{
"code": null,
"e": 455,
"s": 171,
"text": "Hi everybody, welcome back to my Tenserflow series, this is part 2. I already described the logic and functionality of neural networks and Tenserflow in the first part as well as I showed you how to set up your coding environment. If you haven’t checked i... |
Scikit Learn - Modelling Process | This chapter deals with the modelling process involved in Sklearn. Let us understand about the same in detail and begin with dataset loading.
A collection of data is called dataset. It is having the following two components −
Features − The variables of data are called its features. They are also known as predictors, i... | [
{
"code": null,
"e": 2363,
"s": 2221,
"text": "This chapter deals with the modelling process involved in Sklearn. Let us understand about the same in detail and begin with dataset loading."
},
{
"code": null,
"e": 2447,
"s": 2363,
"text": "A collection of data is called dataset. ... |
D3.js - Transitions API | D3 Transitions take a selection of elements and for each element; it applies a transition to a part of the current definition of the element.
You can configure the transition API using the following script.
<script src = "https://d3js.org/d3-color.v1.min.js"></script>
<script src = "https://d3js.org/d3-dispatch.v1.min.... | [
{
"code": null,
"e": 2272,
"s": 2130,
"text": "D3 Transitions take a selection of elements and for each element; it applies a transition to a part of the current definition of the element."
},
{
"code": null,
"e": 2337,
"s": 2272,
"text": "You can configure the transition API usi... |
MariaDB - Connection | One way to establish a connection with MariaDB consists of using the mysql binary at the command prompt.
Review an example given below.
[root@host]# mysql -u root -p
Enter password:******
The code given above connects to MariaDB and provides a command prompt for executing SQL commands. After entering the code, a welc... | [
{
"code": null,
"e": 2467,
"s": 2362,
"text": "One way to establish a connection with MariaDB consists of using the mysql binary at the command prompt."
},
{
"code": null,
"e": 2498,
"s": 2467,
"text": "Review an example given below."
},
{
"code": null,
"e": 2552,
... |
Add legends without border and with white background in R - GeeksforGeeks | 21 Apr, 2021
A legend is defined as an area of the graph plot describing each of the parts of the plot. The legend plot is used to show statistical data in graphical form. We can add a legend to a graph using the legend() function. In this article, we will see how to add plot legends without border and with white backg... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25192,
"s": 24851,
"text": "A legend is defined as an area of the graph plot describing each of the parts of the plot. The legend plot is used to show statistical data in graphical form. We c... |
Calculating the Distance between Two Locations Using Geocodes | by Francis Adrian Viernes | Towards Data Science | You’ve heard the famous phrase “Location, Location, Location” for instances where people want to emphasize the centrality of the location to business and real estate.
In data analysis and computing, however, this phrase is a bit ambiguous. The way computers understand the concept of “location” is through what we know a... | [
{
"code": null,
"e": 339,
"s": 172,
"text": "You’ve heard the famous phrase “Location, Location, Location” for instances where people want to emphasize the centrality of the location to business and real estate."
},
{
"code": null,
"e": 588,
"s": 339,
"text": "In data analysis an... |
How to create a JavaFX Basic Application? | To create a basic JavaFX application follow the steps given below −
To create a JavaFX application, you need to instantiate the Application class and implement its abstract method start(). In this method, we will write the code for
the JavaFX Application.
Create a Java class and inherit the Application class of the pac... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "To create a basic JavaFX application follow the steps given below −"
},
{
"code": null,
"e": 1318,
"s": 1130,
"text": "To create a JavaFX application, you need to instantiate the Application class and implement its abstract method st... |
Java Program to get the difference between two time zones by seconds | Here are the two timezones −
ZoneId zone1 = ZoneId.of("America/Panama");
ZoneId zone2 = ZoneId.of("Asia/Taipei");
Set the date −
LocalDateTime dateTime = LocalDateTime.of(2019, 04, 11, 10, 5);
Now, set the first timezone −
ZonedDateTime panamaDateTime = ZonedDateTime.of(dateTime, zone1);
Set the second timezone −
Zoned... | [
{
"code": null,
"e": 1091,
"s": 1062,
"text": "Here are the two timezones −"
},
{
"code": null,
"e": 1176,
"s": 1091,
"text": "ZoneId zone1 = ZoneId.of(\"America/Panama\");\nZoneId zone2 = ZoneId.of(\"Asia/Taipei\");"
},
{
"code": null,
"e": 1191,
"s": 1176,
"... |
Using Lambda Function with CloudTrail | AWS CloudTrail is a service available with Amazon, which helps to logs all the activities done inside AWS console. It logs all the API calls and stores the history, which can be used later for debugging purpose. Note that we cannot trigger Lambda from CloudTrail. Instead, CloudTrail stores all the history in the form o... | [
{
"code": null,
"e": 2892,
"s": 2406,
"text": "AWS CloudTrail is a service available with Amazon, which helps to logs all the activities done inside AWS console. It logs all the API calls and stores the history, which can be used later for debugging purpose. Note that we cannot trigger Lambda from C... |
How to read data from all files in a directory using Java? | The class named File of the java.io package represents a file or directory (pathnames) in the system. This class provides various methods to perform various operations on files/directories.
To get the list of all the existing files in a directory this class provides five different methods to get the details of all file... | [
{
"code": null,
"e": 1252,
"s": 1062,
"text": "The class named File of the java.io package represents a file or directory (pathnames) in the system. This class provides various methods to perform various operations on files/directories."
},
{
"code": null,
"e": 1409,
"s": 1252,
"... |
C++ Library - <iosfwd> | It is used to input-Output forward declarations,this header provides forward declarations for the types of the standard input/output library.
Following is the defines for iosfwd function.
#define _GLIBCXX_IOSFWD
In below example explains about iosfwd function.
amespace std {
template<class charT> struct char_traits... | [
{
"code": null,
"e": 2745,
"s": 2603,
"text": "It is used to input-Output forward declarations,this header provides forward declarations for the types of the standard input/output library."
},
{
"code": null,
"e": 2791,
"s": 2745,
"text": "Following is the defines for iosfwd func... |
How to read a number of characters from a text file using Python? | To read a file’s contents, you can call f.read(size), which reads some quantity of data and returns it as a string. size is an optional numeric argument. When size is omitted or negative, the entire contents of the file will be read and returned. Otherwise, at most size bytes are read and returned. If the end of the fi... | [
{
"code": null,
"e": 1446,
"s": 1062,
"text": "To read a file’s contents, you can call f.read(size), which reads some quantity of data and returns it as a string. size is an optional numeric argument. When size is omitted or negative, the entire contents of the file will be read and returned. Otherw... |
OrientDB - Quick Guide | OrientDB is an Open Source NoSQL Database Management System. NoSQL Database provides a mechanism for storing and retrieving NO-relation or NON-relational data that refers to data other than tabular data such as document data or graph data. NoSQL databases are increasingly used in Big Data and real-time web applications... | [
{
"code": null,
"e": 3732,
"s": 3294,
"text": "OrientDB is an Open Source NoSQL Database Management System. NoSQL Database provides a mechanism for storing and retrieving NO-relation or NON-relational data that refers to data other than tabular data such as document data or graph data. NoSQL databas... |
HBase - Create Table | You can create a table using the create command, here you must specify the table name and the Column Family name. The syntax to create a table in HBase shell is shown below.
create ‘<table name>’,’<column family>’
Given below is a sample schema of a table named emp. It has two column families: “personal data” and “pr... | [
{
"code": null,
"e": 2211,
"s": 2037,
"text": "You can create a table using the create command, here you must specify the table name and the Column Family name. The syntax to create a table in HBase shell is shown below."
},
{
"code": null,
"e": 2253,
"s": 2211,
"text": "create ‘... |
Deployment of Machine learning Models Demystified (Part 1) | by Bamigbade Opeyemi | Towards Data Science | This is the first part of a two-part series. you can read the second part after this
Imagine building a supervised machine learning(ML) model to decide whether a loan application should be approved. With the model confidence level (probability) in successful applications, we can calculate the risk-free loanable amount.... | [
{
"code": null,
"e": 257,
"s": 172,
"text": "This is the first part of a two-part series. you can read the second part after this"
},
{
"code": null,
"e": 554,
"s": 257,
"text": "Imagine building a supervised machine learning(ML) model to decide whether a loan application should ... |
A simple SVM based implementation of semi-supervised learning | by Dr. Saptarsi Goswami | Towards Data Science | We all have come across semi-supervised learning as a type of machine learning problem. But it is a concept not understood really well. It’s best to understand this by getting our hands dirty and precisely that’s what we are bringing on.
The use-case is simple, we have some data that maybe 100 observations, and out of ... | [
{
"code": null,
"e": 410,
"s": 172,
"text": "We all have come across semi-supervised learning as a type of machine learning problem. But it is a concept not understood really well. It’s best to understand this by getting our hands dirty and precisely that’s what we are bringing on."
},
{
"co... |
Create Your Custom, private Python Package That You Can PIP Install From Your Git Repository | by Mike Huls | Towards Data Science | You’ve created some convenient script that you would like your coworkers or others to use. In many companies, code like this is copied and emailed to one another. Although email is a very accessible tool to share code, we’re not living in the 90s anymore so let’s distribute your code in a smart way.
This article tackle... | [
{
"code": null,
"e": 472,
"s": 171,
"text": "You’ve created some convenient script that you would like your coworkers or others to use. In many companies, code like this is copied and emailed to one another. Although email is a very accessible tool to share code, we’re not living in the 90s anymore ... |
C++ Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n! - GeeksforGeeks | 05 Dec, 2018
You have been given a series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!, find out the sum of the series till nth term.
Examples:
Input :n = 5
Output : 2.70833
Input :n = 7
Output : 2.71806
/*CPP program to print the sum of series */#include <bits/stdc++.h>using namespace std; /*function to calculate sum o... | [
{
"code": null,
"e": 24553,
"s": 24525,
"text": "\n05 Dec, 2018"
},
{
"code": null,
"e": 24670,
"s": 24553,
"text": "You have been given a series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!, find out the sum of the series till nth term."
},
{
"code": null,
"e": 24680,
... |
Depth-first search traversal in Javascript | DFS visits the child vertices before visiting the sibling vertices; that is, it traverses the depth of any particular path before exploring its breadth. A stack (often the program's call stack via recursion) is generally used when implementing the algorithm.
Following is how a DFS works −
Visit the adjacent unvisited v... | [
{
"code": null,
"e": 1321,
"s": 1062,
"text": "DFS visits the child vertices before visiting the sibling vertices; that is, it traverses the depth of any particular path before exploring its breadth. A stack (often the program's call stack via recursion) is generally used when implementing the algor... |
Dimensionality Reduction: PCA versus Autoencoders | by Abhishek Mungoli | Towards Data Science | Dimensionality reduction is a technique of reducing the feature space to obtain a stable and statistically sound machine learning model avoiding the Curse of dimensionality. There are mainly two approaches to perform dimensionality reduction: Feature Selection and Feature Transformation.
Feature Selection approach trie... | [
{
"code": null,
"e": 461,
"s": 172,
"text": "Dimensionality reduction is a technique of reducing the feature space to obtain a stable and statistically sound machine learning model avoiding the Curse of dimensionality. There are mainly two approaches to perform dimensionality reduction: Feature Sele... |
Data Science Apps Using Streamlit - GeeksforGeeks | 26 Apr, 2022
Data visualization is one of the most important steps of data analysis. It is the way to convey your research and findings of data (set) through interactive plots and charts. There are many libraries that are available for data visualization like matplotlib, seaborn, etc. which allows us to visualize a lar... | [
{
"code": null,
"e": 24976,
"s": 24948,
"text": "\n26 Apr, 2022"
},
{
"code": null,
"e": 25420,
"s": 24976,
"text": "Data visualization is one of the most important steps of data analysis. It is the way to convey your research and findings of data (set) through interactive plots ... |
Java program to implement binary search | Binary search is a fast search algorithm with run-time complexity of Ο(log n). This search algorithm works on the principle of divide and conquer. For this algorithm to work properly, the data collection should be in the sorted form.
The binary search looks for a particular item by comparing the middle most item of the... | [
{
"code": null,
"e": 1296,
"s": 1062,
"text": "Binary search is a fast search algorithm with run-time complexity of Ο(log n). This search algorithm works on the principle of divide and conquer. For this algorithm to work properly, the data collection should be in the sorted form."
},
{
"code... |
Scala - Higher-Order Functions | Scala allows the definition of higher-order functions. These are functions that take other functions as parameters, or whose result is a function.
Try the following example program, apply() function takes another function f and a value v and applies function f to v.
object Demo {
def main(args: Array[String]) {
... | [
{
"code": null,
"e": 2145,
"s": 1998,
"text": "Scala allows the definition of higher-order functions. These are functions that take other functions as parameters, or whose result is a function."
},
{
"code": null,
"e": 2265,
"s": 2145,
"text": "Try the following example program, ... |
Count minimum number of “move-to-front” moves to sort an array in C++ | We are given with an array of numbers between 1 to n. The goal here is to find the no. of ‘move
to front’ operations required to sort the given array. The array has no repetition. The ‘move to
front’ operation picks an element and places at first position, here at index 0.
We will traverse the array from end, if elemen... | [
{
"code": null,
"e": 1336,
"s": 1062,
"text": "We are given with an array of numbers between 1 to n. The goal here is to find the no. of ‘move\nto front’ operations required to sort the given array. The array has no repetition. The ‘move to\nfront’ operation picks an element and places at first posi... |
C library function - memcmp() | The C library function int memcmp(const void *str1, const void *str2, size_t n)) compares the first n bytes of memory area str1 and memory area str2.
Following is the declaration for memcmp() function.
int memcmp(const void *str1, const void *str2, size_t n)
str1 − This is the pointer to a block of memory.
str1 − This ... | [
{
"code": null,
"e": 2157,
"s": 2007,
"text": "The C library function int memcmp(const void *str1, const void *str2, size_t n)) compares the first n bytes of memory area str1 and memory area str2."
},
{
"code": null,
"e": 2209,
"s": 2157,
"text": "Following is the declaration for... |
How to Secure The SSHD Using Fail2Ban on RHEL 7.x/CentOS 7.x | In this article, we will learn how to install and configure to secure the SSH connection using Fail2ban on CentOS 7, as we all get connected to the servers using the SSH which is secured and SSH will get exposed to the internet to work properly, there may be a risk of being targeted in this way, if we see the logs for ... | [
{
"code": null,
"e": 1462,
"s": 1062,
"text": "In this article, we will learn how to install and configure to secure the SSH connection using Fail2ban on CentOS 7, as we all get connected to the servers using the SSH which is secured and SSH will get exposed to the internet to work properly, there m... |
Difference between Entity and Object - GeeksforGeeks | 04 May, 2020
A database is a organized collection of logical related data stored in a software named Database Management Systems (DBMS). Before inserting the data into the system, it needs to be in the form of a model for appropriate understanding of the database. Many models were introduced and Entity-Relationship mod... | [
{
"code": null,
"e": 25843,
"s": 25815,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 26346,
"s": 25843,
"text": "A database is a organized collection of logical related data stored in a software named Database Management Systems (DBMS). Before inserting the data into the syst... |
Java Program to Print Multiplication Table for Any Number - GeeksforGeeks | 19 Jan, 2021
Given a number n as input, we need to print its table, where N>0.
Example
Input 1 :- N = 7
Output :-
7 * 1 = 7
7 * 2 = 14
7 * 3 = 21
7 * 4 = 28
7 * 5 = 35
7 * 6 = 42
7 * 7 = 49
7 * 8 = 56
7 * 9 = 63
7 * 10 = 70
Two ways are shown to Print Multiplication Table for... | [
{
"code": null,
"e": 25445,
"s": 25414,
"text": " \n19 Jan, 2021\n"
},
{
"code": null,
"e": 25511,
"s": 25445,
"text": "Given a number n as input, we need to print its table, where N>0."
},
{
"code": null,
"e": 25519,
"s": 25511,
"text": "Example"
},
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.