title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python | Plotting Google Map using gmplot package | 11 Jun, 2018
gmplot is a matplotlib-like interface to generate the HTML and javascript to render all the data user would like on top of Google Maps.
Command to install gmplot :
pip install gmplot
Code #1 : To create a Base Map
# import gmplot packageimport gmplot # GoogleMapPlotter return Map object# Pass the center ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jun, 2018"
},
{
"code": null,
"e": 190,
"s": 54,
"text": "gmplot is a matplotlib-like interface to generate the HTML and javascript to render all the data user would like on top of Google Maps."
},
{
"code": null,
"e": 2... |
How to create a dropdown menu in Bootstrap ? | 06 Aug, 2021
A dropdown menu offers a list of alternatives when clicked or hovered on, which is a clean method of providing a list of alternatives as only one option is displayed initially onto the screen. Drop-down menus are used in almost all types of software nowadays to show sub-options of the option.
Step 1: To i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 349,
"s": 54,
"text": "A dropdown menu offers a list of alternatives when clicked or hovered on, which is a clean method of providing a list of alternatives as only one option is displayed initiall... |
Vector size() Method in Java | 17 Aug, 2018
The java.util.vector.size() method in Java is used to get the size of the Vector or the number of elements present in the Vector.
Syntax:
Vector.size()
Parameters: The method does not take any parameter.
Return Value: The method returns the size or the number of elements present in the Vector.
Below progra... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Aug, 2018"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "The java.util.vector.size() method in Java is used to get the size of the Vector or the number of elements present in the Vector."
},
{
"code": null,
"e": 166,
... |
Find nth Magic Number | 07 Jun, 2022
A magic number is defined as a number which can be expressed as a power of 5 or sum of unique powers of 5. First few magic numbers are 5, 25, 30(5 + 25), 125, 130(125 + 5), ....Write a function to find the nth Magic number.Example:
Input: n = 2
Output: 25
Input: n = 5
Output: 130
If we notice carefull... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 287,
"s": 54,
"text": "A magic number is defined as a number which can be expressed as a power of 5 or sum of unique powers of 5. First few magic numbers are 5, 25, 30(5 + 25), 125, 130(125 + 5), .... |
Partial Classes in C# | 17 Nov, 2020
A partial class is a special feature of C#. It provides a special ability to implement the functionality of a single class into multiple files and all these files are combined into a single class file when the application is compiled. A partial class is created by using a partial keyword. This keyword is a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Nov, 2020"
},
{
"code": null,
"e": 455,
"s": 52,
"text": "A partial class is a special feature of C#. It provides a special ability to implement the functionality of a single class into multiple files and all these files are combine... |
Python Tkinter Fonts | There may be up to three ways to specify type style.
As a tuple whose first element is the font family, followed by a size in points, optionally followed by a string containing one or more of the style modifiers bold, italic, underline and overstrike.
("Helvetica", "16") for a 16-point Helvetica regular.
("Helvetica", ... | [
{
"code": null,
"e": 2527,
"s": 2474,
"text": "There may be up to three ways to specify type style."
},
{
"code": null,
"e": 2726,
"s": 2527,
"text": "As a tuple whose first element is the font family, followed by a size in points, optionally followed by a string containing one o... |
Verbose in Python Regex | 19 Jul, 2019
In this article, we will learn about VERBOSE flag of the re package and how to use it.
re.VERBOSE : This flag allows you to write regular expressions that look nicer and are more readable by allowing you to visually separate logical sections of the pattern and add comments.Whitespace within the pattern is ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 141,
"s": 54,
"text": "In this article, we will learn about VERBOSE flag of the re package and how to use it."
},
{
"code": null,
"e": 672,
"s": 141,
"text": "re.VERBOSE : This ... |
Matplotlib.pyplot.tricontour() in Python | 11 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, etc.
Sa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Apr, 2020"
},
{
"code": null,
"e": 333,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT... |
Output of C++ Program | Set 12 | 28 Sep, 2018
Predict the output of following C++ programs.
Question 1
#include <iostream>using namespace std; int fun(int a, int b = 1, int c =2){ return (a + b + c);} int main(){ cout << fun(12, ,2); return 0;}
Output: Compiler Error in function call fun(12, ,2)With default arguments, we cannot skip an arg... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Sep, 2018"
},
{
"code": null,
"e": 98,
"s": 52,
"text": "Predict the output of following C++ programs."
},
{
"code": null,
"e": 109,
"s": 98,
"text": "Question 1"
},
{
"code": "#include <iostream>using na... |
Working with Databases in Julia | 05 Sep, 2020
There are several ways through which data handling can be performed in Julia. Julia can be connected to a lot of databases whose connectors directly connect to Database Independent Interface (DBI) packages such as MySQL, SQLite, PostgreSQL, etc. These can be used for firing queries and obtaining the requir... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 499,
"s": 28,
"text": "There are several ways through which data handling can be performed in Julia. Julia can be connected to a lot of databases whose connectors directly connect to Database Indepe... |
Python – sys.settrace() | 21 Apr, 2020
Python sys module provides some of the powerful functions but they are complex to understand. One of which is the sys.settrace() which is used for implementing debuggers, profilers and coverage tools. This is thread-specific and must register the trace using threading.settrace().
Knowing how the function w... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 333,
"s": 52,
"text": "Python sys module provides some of the powerful functions but they are complex to understand. One of which is the sys.settrace() which is used for implementing debuggers, pro... |
Implementing own Hash Table with Open Addressing Linear Probing in C++ | A hash table is a data structure which is used to store key-value pairs. Hash function is used by hash table to compute an index into an array in which an element will be inserted or searched.
Linear probing is a collision resolving technique in Open Addressed Hash tables. In this method, each cell of a hash table stor... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "A hash table is a data structure which is used to store key-value pairs. Hash function is used by hash table to compute an index into an array in which an element will be inserted or searched."
},
{
"code": null,
"e": 1629,
"s": 1255,
... |
How to get NBA statistics of your favorite players with a Python function | by Edoardo Romani | Towards Data Science | This article will show you one of the ways you can deploy a Python function to simulate a task as simple as searching for your favorite basketball player’s statistics for a given NBA season.
As a big NBA basketball fan, I often found myself looking up online to stay informed over a particular player’s performance, and ... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "This article will show you one of the ways you can deploy a Python function to simulate a task as simple as searching for your favorite basketball player’s statistics for a given NBA season."
},
{
"code": null,
"e": 731,
"s": 363,
"tex... |
Practical Guide to Entity Resolution — part 2 | by Yifei Huang | Towards Data Science | This is part 2 of a mini-series on entity resolution. Check out part 1 if you missed it
Part 2 of this series will focus on the source normalization step of entity resolution, and will use the Amazon-GoogleProducts dataset obtained here as an example to illustrate ideas and implementation. The rest of the series will a... | [
{
"code": null,
"e": 259,
"s": 171,
"text": "This is part 2 of a mini-series on entity resolution. Check out part 1 if you missed it"
},
{
"code": null,
"e": 744,
"s": 259,
"text": "Part 2 of this series will focus on the source normalization step of entity resolution, and will u... |
Sorting a Strings in Java | In order to sort a string in java we could use the arrays API and its inbuilt method sort which internally implementing sorting algorithm and would return a sorted string.
First we will convert our string into a character array and then sort this array using sort method of Arrays class in Java now we have sorted array ... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "In order to sort a string in java we could use the arrays API and its inbuilt method sort which internally implementing sorting algorithm and would return a sorted string."
},
{
"code": null,
"e": 1477,
"s": 1234,
"text": "First we w... |
Kotlin - Lists | Kotlin list is an ordered collection of items. A Kotlin list can be either mutable (mutableListOf) or read-only (listOf). The elements of list can be accessed using indices. Kotlin mutable or immutable lists can have duplicate elements.
For list creation, use the standard library functions listOf() for read-only lists ... | [
{
"code": null,
"e": 2662,
"s": 2425,
"text": "Kotlin list is an ordered collection of items. A Kotlin list can be either mutable (mutableListOf) or read-only (listOf). The elements of list can be accessed using indices. Kotlin mutable or immutable lists can have duplicate elements."
},
{
"c... |
Amazon Interview Experience for SDE 1 (6-Months Experienced) - GeeksforGeeks | 01 Sep, 2021
I applied for SDE1 Role in Amazon March 2021. Selection process completed till Mid-June. I will try to give all the details in this Article.
Apply – I visited Amazon career page, there I found some roles for SDE1 (6 months experienced). I messaged 3-5 people working in amazon for referral through linkedIn.... | [
{
"code": null,
"e": 25588,
"s": 25560,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 25729,
"s": 25588,
"text": "I applied for SDE1 Role in Amazon March 2021. Selection process completed till Mid-June. I will try to give all the details in this Article."
},
{
"code": ... |
Highcharts - Solid Gauge Chart | We have already seen the configuration used to draw a chart in Highcharts Configuration Syntax chapter.
An example of a Solid Gauge Chart is given below.
Let us now see the additional configurations/steps taken.
Configure the chart type to be gauge based. Set the type as 'solidguage'.
var chart = {
type: 'solidguage... | [
{
"code": null,
"e": 2121,
"s": 2017,
"text": "We have already seen the configuration used to draw a chart in Highcharts Configuration Syntax chapter."
},
{
"code": null,
"e": 2171,
"s": 2121,
"text": "An example of a Solid Gauge Chart is given below."
},
{
"code": null,
... |
Predicting Customer Churn in Python | Every business depends on customer's loyalty. The repeat business from customer is one of the cornerstone for business profitability. So it is important to know the reason of customers leaving a business. Customers going away is known as customer churn. By looking at the past trends we can judge what factors influence ... | [
{
"code": null,
"e": 1609,
"s": 1062,
"text": "Every business depends on customer's loyalty. The repeat business from customer is one of the cornerstone for business profitability. So it is important to know the reason of customers leaving a business. Customers going away is known as customer churn.... |
Count the number of words with given prefix using Trie - GeeksforGeeks | 31 Jan, 2022
Prerequisite: Trie
Given a list of string str[] and a prefix string pre. The task is to count the number of words in list of string with given prefix using trie.
Examples:
Input: str = [ “apk”, “app”, “apple”, “arp”, “array” ], pre = “ap” Output: 3 Explanation: Below is the representation of trie from us... | [
{
"code": null,
"e": 24486,
"s": 24458,
"text": "\n31 Jan, 2022"
},
{
"code": null,
"e": 24506,
"s": 24486,
"text": "Prerequisite: Trie "
},
{
"code": null,
"e": 24649,
"s": 24506,
"text": "Given a list of string str[] and a prefix string pre. The task is to c... |
Seaborn - Kernel Density Estimates | Kernel Density Estimation (KDE) is a way to estimate the probability density function of a continuous random variable. It is used for non-parametric analysis.
Setting the hist flag to False in distplot will yield the kernel density estimation plot.
import pandas as pd
import seaborn as sb
from matplotlib import pyplot ... | [
{
"code": null,
"e": 2198,
"s": 2039,
"text": "Kernel Density Estimation (KDE) is a way to estimate the probability density function of a continuous random variable. It is used for non-parametric analysis."
},
{
"code": null,
"e": 2288,
"s": 2198,
"text": "Setting the hist flag t... |
Visualizing In-App User Journey Using Sankey Diagrams In Python | by Nicolas Esnis | Towards Data Science | TL;DR: Sankey diagrams can display multiple types of data over two dimensions, which makes them a great tool to visualize your application or website’s user journey. This article will get you started to build your own Sankey chart in Python (find the code in this gist).
Staring at a chart wondering what you’re supposed... | [
{
"code": null,
"e": 442,
"s": 171,
"text": "TL;DR: Sankey diagrams can display multiple types of data over two dimensions, which makes them a great tool to visualize your application or website’s user journey. This article will get you started to build your own Sankey chart in Python (find the code... |
How MySQL REPEAT loop statement can be used in stored procedure? | As we know that MySQL provides us loop statements that allow us to execute a block of SQL code repeatedly based on a condition. A REPEAT loop statement is one of such kind of loop statement. Its syntax is as follows −
REPEAT
statements;
UNTIL expression
END REPEAT
First of all, MySQL executes the statements, and the... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "As we know that MySQL provides us loop statements that allow us to execute a block of SQL code repeatedly based on a condition. A REPEAT loop statement is one of such kind of loop statement. Its syntax is as follows −"
},
{
"code": null,
"e"... |
Removing non-linear trends from timeseries data | by Florin Andrei | Towards Data Science | Sometimes trends need to be removed from timeseries data, in preparation for the next steps, or part of the data cleaning process. If you can identify a trend, then simply subtract it from the data, and the result is detrended data.
If the trend is linear, you can find it via linear regression. But what if the trend is... | [
{
"code": null,
"e": 405,
"s": 172,
"text": "Sometimes trends need to be removed from timeseries data, in preparation for the next steps, or part of the data cleaning process. If you can identify a trend, then simply subtract it from the data, and the result is detrended data."
},
{
"code": ... |
Piece-wise Linear Transformation | 05 Dec, 2019
Piece-wise Linear Transformation is type of gray level transformation that is used for image enhancement. It is a spatial domain method. It is used for manipulation of an image so that the result is more suitable than the original for a specific application.
Some commonly used piece-wise linear transformat... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Dec, 2019"
},
{
"code": null,
"e": 287,
"s": 28,
"text": "Piece-wise Linear Transformation is type of gray level transformation that is used for image enhancement. It is a spatial domain method. It is used for manipulation of an imag... |
Laws of Chemical Combination | 30 Jun, 2021
Chemistry is the study of matter’s transformation from one form to another. These transformations are frequently caused by the interaction of two different types of matter. Certain fundamental rules govern the combination of different elements to form compounds. These rules are known as the law of chemical... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 375,
"s": 54,
"text": "Chemistry is the study of matter’s transformation from one form to another. These transformations are frequently caused by the interaction of two different types of matter. C... |
Difference between readFile and createReadStream in Node.js | 03 Aug, 2021
In this article, we will discuss the difference between readFile and createReadStream in Nodejs. Both are modules that allow us to open a file/stream and read data present in it.
1. readFile: fs module contains the readFile method. It is used to read a file by bringing it into the buffer. It is an asynchro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 207,
"s": 28,
"text": "In this article, we will discuss the difference between readFile and createReadStream in Nodejs. Both are modules that allow us to open a file/stream and read data present in ... |
let command in Linux with Examples | 14 Jul, 2021
The let command is used to evaluate arithmetic expressions on shell variables.
Syntax:
let [expression]
Options:
Basic arithmetic operators : The addition(+), subtraction(-), multiplication(*), division(/) and modulus(%) operators can be used in the expression with the let command. Example:let "myvar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jul, 2021"
},
{
"code": null,
"e": 108,
"s": 28,
"text": "The let command is used to evaluate arithmetic expressions on shell variables. "
},
{
"code": null,
"e": 118,
"s": 108,
"text": "Syntax: "
},
{
"c... |
Introduction of Assembler | 21 Aug, 2019
Assembler is a program for converting instructions written in low-level assembly code into relocatable machine code and generating along information for the loader.
It generates instructions by evaluating the mnemonics (symbols) in operation field and find the value of symbol and literals to produce machin... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Aug, 2019"
},
{
"code": null,
"e": 217,
"s": 52,
"text": "Assembler is a program for converting instructions written in low-level assembly code into relocatable machine code and generating along information for the loader."
},
{... |
Node.js os.homedir() Method | 13 Oct, 2021
The os.homedir() method is an inbuilt application programming interface of the os module which is used to get path of the home directory for the current user.
Syntax:
os.homedir()
Parameters: This method does not accept any parameters.
Return Value: This method returns a string specifies the path of the ho... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "The os.homedir() method is an inbuilt application programming interface of the os module which is used to get path of the home directory for the current user."
},
{
"c... |
Count number of a class objects created in Java | 10 Oct, 2019
The idea is to use static member in the class to count objects. A static member is shared by all objects of the class, all static data is initialized to zero when the first object is created if no other initialization is present, And constructor and static member function can only access static data member... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Oct, 2019"
},
{
"code": null,
"e": 441,
"s": 54,
"text": "The idea is to use static member in the class to count objects. A static member is shared by all objects of the class, all static data is initialized to zero when the first o... |
Val() and Sum() Function in MS Access | 02 Sep, 2020
1. Val() Function :val() function returns the number found in the string. In this function, it takes a string as a parameter and it will return the number in the string.
Note : This function will stop reading when the first non-numeric character comes.
Syntax :
Val(string)
Example-1 :
SELECT Val("234geeks... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 198,
"s": 28,
"text": "1. Val() Function :val() function returns the number found in the string. In this function, it takes a string as a parameter and it will return the number in the string."
},... |
MySQL - Installation | All downloads for MySQL are located at MySQL Downloads. Pick the version number of MySQL Community Server which is required along with the platform you will be running it on.
The recommended way to install MySQL on a Linux system is via RPM. MySQL AB makes the following RPMs available for download on its website −
MySQ... | [
{
"code": null,
"e": 2508,
"s": 2333,
"text": "All downloads for MySQL are located at MySQL Downloads. Pick the version number of MySQL Community Server which is required along with the platform you will be running it on."
},
{
"code": null,
"e": 2649,
"s": 2508,
"text": "The rec... |
Python 3 - Tkinter Frame | The Frame widget is very important for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets.
It uses rectangular areas in the screen to organize the layout and to provide padding of these widgets. A fr... | [
{
"code": null,
"e": 2552,
"s": 2340,
"text": "The Frame widget is very important for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets."
},
{
"code": null,
"e": 2733... |
How to use CTEs in SQL. How to use a Common Table Expression to... | by Jason Lee | Towards Data Science | If you have ever used SQL, you know how important it is when you create a well-written query that would be helpful to use later. Usually, when you query something, you use it once, but there are times you need to reference old queries — this is where Common Table Expressions (CTEs) come in!
A CTE allows you to define a... | [
{
"code": null,
"e": 339,
"s": 47,
"text": "If you have ever used SQL, you know how important it is when you create a well-written query that would be helpful to use later. Usually, when you query something, you use it once, but there are times you need to reference old queries — this is where Commo... |
DateTime.Compare() Method in C# | The DateTime.Compare() method in C# is used for comparison of two DateTime instances. It returns an integer value,
<0 − If date1 is earlier than date2
0 − If date1 is the same as date2
>0 − If date1 is later than date2
Following is the syntax −
public static int Compare (DateTime d1, DateTime d2);
Above, d1 and d2 are ... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "The DateTime.Compare() method in C# is used for comparison of two DateTime instances. It returns an integer value,"
},
{
"code": null,
"e": 1213,
"s": 1177,
"text": "<0 − If date1 is earlier than date2"
},
{
"code": null,
... |
Creating a button in tkinter in Python | As a library for Python Tkinter offers many ways to create a button on the tkinter canvas. In this article we will see how we can create a tkinter button with normal tkinter module as well as how to get it without using the themed tkinter module.
In the program below we first create a canvas and then apply the Button m... | [
{
"code": null,
"e": 1309,
"s": 1062,
"text": "As a library for Python Tkinter offers many ways to create a button on the tkinter canvas. In this article we will see how we can create a tkinter button with normal tkinter module as well as how to get it without using the themed tkinter module."
},
... |
Execution of printf with ++ operators in C | In some problems we can find some printf() statements are containing some lines with ++ operator. In some questions of competitive examinations, we can find these kind of questions to find the output of that code. In this section we will see an example of that kind of question and try to figure out what will be the ans... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "In some problems we can find some printf() statements are containing some lines with ++ operator. In some questions of competitive examinations, we can find these kind of questions to find the output of that code. In this section we will see an example ... |
Design Patterns in Android with Kotlin - GeeksforGeeks | 10 Nov, 2021
Design patterns is basically a solution or blueprint for a problem that we get over and over again in programming, so they are just typical types of problems we can encounter as programmers, and these design patterns are just a good way to solve those problems, there is a lot of design pattern in android. ... | [
{
"code": null,
"e": 26405,
"s": 26377,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 26762,
"s": 26405,
"text": "Design patterns is basically a solution or blueprint for a problem that we get over and over again in programming, so they are just typical types of problems we ca... |
JQuery | makeArray() Method - GeeksforGeeks | 29 Apr, 2020
This makeArray() method in jQuery is used to convert an array-like object into a true JavaScript array.
Syntax:
jQuery.makeArray( obj )
Parameters: This method accept a single parameter which is mentioned above and described below:
obj : This parameter holds an object to turn into a native Array.
Return Va... | [
{
"code": null,
"e": 24867,
"s": 24839,
"text": "\n29 Apr, 2020"
},
{
"code": null,
"e": 24971,
"s": 24867,
"text": "This makeArray() method in jQuery is used to convert an array-like object into a true JavaScript array."
},
{
"code": null,
"e": 24979,
"s": 24971,... |
How to specify the width and height of the canvas using HTML ? - GeeksforGeeks | 30 Sep, 2020
The <canvas> tag in HTML is used to draw graphics on web page using JavaScript. It can be used to draw paths, boxes, texts, gradient, and adding images. By default, it does not contain borders and text.
Syntax:
<canvas id="canvasID"> HTML Contents... <canvas>
Attributes: The canvas tag has two attributes ... | [
{
"code": null,
"e": 26274,
"s": 26246,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 26477,
"s": 26274,
"text": "The <canvas> tag in HTML is used to draw graphics on web page using JavaScript. It can be used to draw paths, boxes, texts, gradient, and adding images. By default... |
How to Deploy your Custom ML Model with Streamlit and Heroku | by Aren Carpenter | Towards Data Science | I’ve always wanted to host some of my data science projects to the web so that my models could be interactive and have a greater reach. The data professor (Chanin Nantasenamat) on YouTube had a great tutorial series on Streamlit, an open-source interactive data app platform, that appeared to offer everything I was look... | [
{
"code": null,
"e": 501,
"s": 172,
"text": "I’ve always wanted to host some of my data science projects to the web so that my models could be interactive and have a greater reach. The data professor (Chanin Nantasenamat) on YouTube had a great tutorial series on Streamlit, an open-source interactiv... |
How to Export and import CSV file manually in PowerShell? | When you run a command Export-Csv in PowerShell, it automatically creates a CSV file to the specific location.
Get-Service | Select Name, Starttype, Status | Export-Csv C:\temp\services.csv -NoTypeInformation
In the above example, Services.csv file created in C:\Temp folders with the header Name, Starttype, and Status ... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "When you run a command Export-Csv in PowerShell, it automatically creates a CSV file to the specific location."
},
{
"code": null,
"e": 1271,
"s": 1173,
"text": "Get-Service | Select Name, Starttype, Status | Export-Csv C:\\temp\\ser... |
Assignment Problem | Practice | GeeksforGeeks | You are the head of a firm and you have to assign jobs to people. You have N persons working under you and you have N jobs that are to be done by these persons. Each person has to do exactly one job and each job has to be done by exactly one person. Each person has his own capability (in terms of time taken) to do any ... | [
{
"code": null,
"e": 736,
"s": 226,
"text": "You are the head of a firm and you have to assign jobs to people. You have N persons working under you and you have N jobs that are to be done by these persons. Each person has to do exactly one job and each job has to be done by exactly one person. Each ... |
Move Axis Label Closer to Plot in Base R - GeeksforGeeks | 29 Jun, 2021
In this article, we will discuss how to move the axis label closer to the plot in R Programming Language.
Before changing the distance, let us see how the initial plot will look like.
Example:
R
x <- seq(-pi,pi,0.1) plot(x, sin(x), main="The Sine Function", ylab="sin(x)", type="l", col="blue")... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 25348,
"s": 25242,
"text": "In this article, we will discuss how to move the axis label closer to the plot in R Programming Language."
},
{
"code": null,
"e": 25426,
"s": 2534... |
Memory Management in Python - GeeksforGeeks | 10 May, 2020
Understanding Memory allocation is important to any software developer as writing efficient code means writing a memory-efficient code. Memory allocation can be defined as allocating a block of space in the computer memory to a program. In Python memory allocation and deallocation method is automatic as th... | [
{
"code": null,
"e": 24236,
"s": 24208,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24666,
"s": 24236,
"text": "Understanding Memory allocation is important to any software developer as writing efficient code means writing a memory-efficient code. Memory allocation can be de... |
Peak Element in 2D array | An item is said to be a peak element when it is greater than or equal with all four neighbor of that element. The neighbor elements are the top, bottom, left and right elements. For this problem, we will consider some bounds. The diagonal elements are not checked as neighbor elements. More than one peak element may pre... | [
{
"code": null,
"e": 1475,
"s": 1062,
"text": "An item is said to be a peak element when it is greater than or equal with all four neighbor of that element. The neighbor elements are the top, bottom, left and right elements. For this problem, we will consider some bounds. The diagonal elements are n... |
Object Detection On Aerial Imagery Using RetinaNet | by Kapil Varshney | Towards Data Science | For tax assessments purposes, usually, surveys are conducted manually on the ground. These surveys are important to calculate the true value of properties. For example, having a swimming pool can increase the property price. Similarly, the count of cars in a neighborhood or around a store can indicate the levels of eco... | [
{
"code": null,
"e": 701,
"s": 172,
"text": "For tax assessments purposes, usually, surveys are conducted manually on the ground. These surveys are important to calculate the true value of properties. For example, having a swimming pool can increase the property price. Similarly, the count of cars i... |
How to Create Text Changing Animation Effect using CSS ? - GeeksforGeeks | 18 Jun, 2020
Almost any website that we visit today uses some kind of text animation to engage with its users. Generally, all kinds of text-animations are made using plain or vanilla JavaScript or by using some third-party JavaScript libraries. But there are some animations that can be made using only CSS. One of them ... | [
{
"code": null,
"e": 26167,
"s": 26139,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 26703,
"s": 26167,
"text": "Almost any website that we visit today uses some kind of text animation to engage with its users. Generally, all kinds of text-animations are made using plain or v... |
Angular 8 - Angular Material | Angular Material provides a huge collection of high-quality and ready-made Angular component based on Material design. Let us learn how to include Angular material in Angular application and use its component.
Let us see how to configure Angular Material in Angular application.
Open command prompt and go to project roo... | [
{
"code": null,
"e": 2598,
"s": 2388,
"text": "Angular Material provides a huge collection of high-quality and ready-made Angular component based on Material design. Let us learn how to include Angular material in Angular application and use its component."
},
{
"code": null,
"e": 2667,
... |
SQL - DROP or DELETE Table | The SQL DROP TABLE statement is used to remove a table definition and all the data, indexes, triggers, constraints and permission specifications for that table.
NOTE − You should be very careful while using this command because once a table is deleted then all the information available in that table will also be lost f... | [
{
"code": null,
"e": 2614,
"s": 2453,
"text": "The SQL DROP TABLE statement is used to remove a table definition and all the data, indexes, triggers, constraints and permission specifications for that table."
},
{
"code": null,
"e": 2781,
"s": 2614,
"text": "NOTE − You should be ... |
VB.Net - Strings | In VB.Net, you can use strings as array of characters, however, more common practice is to use the String keyword to declare a string variable. The string keyword is an alias for the System.String class.
You can create string object using one of the following methods −
By assigning a string literal to a String variable... | [
{
"code": null,
"e": 2504,
"s": 2300,
"text": "In VB.Net, you can use strings as array of characters, however, more common practice is to use the String keyword to declare a string variable. The string keyword is an alias for the System.String class."
},
{
"code": null,
"e": 2570,
"s... |
Matplotlib.axis.Axis.get_minor_ticks() function in Python - GeeksforGeeks | 03 Jun, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack.
The Axis.get_minor_ticks() function in axis module of matplotlib library is used to ge... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 24513,
"s": 24292,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of ... |
Introduction to ARIMA for Time Series Forecasting | by Juan Nathaniel | Towards Data Science | Auto Regressive Integrated Moving Average (ARIMA) model is among one of the more popular and widely used statistical methods for time-series forecasting. It is a class of statistical algorithms that captures the standard temporal dependencies that is unique to a time series data. In this post, I will introduce you to t... | [
{
"code": null,
"e": 609,
"s": 172,
"text": "Auto Regressive Integrated Moving Average (ARIMA) model is among one of the more popular and widely used statistical methods for time-series forecasting. It is a class of statistical algorithms that captures the standard temporal dependencies that is uniq... |
Data preprocessing in NLP. Data cleaning and data augmentation... | by Chris Lemke | Towards Data Science | This is the second article about my project of text simplification using transformers. If you have not read the first one, feel free to do so, but it is not mandatory to understand this article. Feel free to check out the GitHub repo for this project.
Data preprocessing is not only often seen as the more tedious part o... | [
{
"code": null,
"e": 424,
"s": 172,
"text": "This is the second article about my project of text simplification using transformers. If you have not read the first one, feel free to do so, but it is not mandatory to understand this article. Feel free to check out the GitHub repo for this project."
... |
How to calculate the area and perimeter of a circle in JavaScript? | To calculate the area and perimeter of a circle, you can try to run the following code −
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script>
function Calculate(r) {
this.r = r;
this.perimeter = function () {
return 2*Math.PI*this.r... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "To calculate the area and perimeter of a circle, you can try to run the following code −"
},
{
"code": null,
"e": 1760,
"s": 1151,
"text": "<html>\n <head>\n <title>JavaScript Example</title>\n </head>\n <body>\n <scr... |
Arrange the numbers in the Array as per given inequalities - GeeksforGeeks | 12 Jun, 2021
Given a list of N distinct integers and a list of N-1 inequality signs, the task is to insert the integers between the inequality signs, such that the final inequality formed always holds true.Note: The order of the inequality signs should not be changed.
Examples:
Input: Integers: [ 2, 5, 1, 0 ], Signs: [... | [
{
"code": null,
"e": 24716,
"s": 24688,
"text": "\n12 Jun, 2021"
},
{
"code": null,
"e": 24972,
"s": 24716,
"text": "Given a list of N distinct integers and a list of N-1 inequality signs, the task is to insert the integers between the inequality signs, such that the final inequa... |
Behind The Models: Cholesky Decomposition | by Guido Vivaldi | Towards Data Science | André-Louis Cholesky is a bit of an oddity among mathematicians: his work was published posthumously after he died in battle during WWI. He discovered the linear algebra method that carries his name through his work as a late 19th century map maker, but it continues to be an efficient trick that fuels many machine lea... | [
{
"code": null,
"e": 653,
"s": 172,
"text": "André-Louis Cholesky is a bit of an oddity among mathematicians: his work was published posthumously after he died in battle during WWI. He discovered the linear algebra method that carries his name through his work as a late 19th century map maker, but ... |
Explainable AI (XAI) with SHAP - regression problem | by Idit Cohen | Towards Data Science | Model explainability becomes a basic part of the machine learning pipeline. Keeping a machine learning model as a “black box” is not an option anymore. Luckily there are tools that are evolving rapidly and becoming more popular. This guide is a practical guide for XAI analysis of SHAP open-source Python package for a r... | [
{
"code": null,
"e": 511,
"s": 172,
"text": "Model explainability becomes a basic part of the machine learning pipeline. Keeping a machine learning model as a “black box” is not an option anymore. Luckily there are tools that are evolving rapidly and becoming more popular. This guide is a practical ... |
Python - Normal Distribution | The normal distribution is a form presenting data by arranging the probability distribution of each value in the data.Most values remain around the mean value making the arrangement symmetric.
We use various functions in numpy library to mathematically calculate the values for a normal distribution. Histograms are cre... | [
{
"code": null,
"e": 2723,
"s": 2529,
"text": "The normal distribution is a form presenting data by arranging the probability distribution of each value in the data.Most values remain around the mean value making the arrangement symmetric.\n"
},
{
"code": null,
"e": 2910,
"s": 2723,
... |
Building a Real Time Twitter Bot that Replies with Media | by Praneeth Guduguntla | Towards Data Science | Source Code: https://github.com/pguduguntla/twitter-bot-reply-media
Twitter makes it really easy to build bots that can interact with tweets, users, and analytics tools that can scrape the platform for useful insights.
I wanted to develop a simple real time Twitter bot that actively filters through all tweets containin... | [
{
"code": null,
"e": 240,
"s": 172,
"text": "Source Code: https://github.com/pguduguntla/twitter-bot-reply-media"
},
{
"code": null,
"e": 391,
"s": 240,
"text": "Twitter makes it really easy to build bots that can interact with tweets, users, and analytics tools that can scrape t... |
3 ways to initialize an object in Java | Consider a class Tester which has implemented Cloneable interface. Now you can initialize an object using following three ways −
1. Using new keyword.
Tester tester1 = new Tester();
2. Using Class.forName() method
Tester tester4 = (Tester)Class.forName("Tester").newInstance();
3. Using clone method.
Tester tester2 = te... | [
{
"code": null,
"e": 1191,
"s": 1062,
"text": "Consider a class Tester which has implemented Cloneable interface. Now you can initialize an object using following three ways −"
},
{
"code": null,
"e": 1213,
"s": 1191,
"text": "1. Using new keyword."
},
{
"code": null,
... |
Java AWT | Color Class - GeeksforGeeks | 01 Dec, 2021
The Color class is a part of Java Abstract Window Toolkit(AWT) package. The Color class creates color by using the given RGBA values where RGBA stands for RED, GREEN, BLUE, ALPHA or using HSB value where HSB stands for HUE, SATURATION, BRIcomponents. The value for individual components RGBA ranges from 0 t... | [
{
"code": null,
"e": 24430,
"s": 24402,
"text": "\n01 Dec, 2021"
},
{
"code": null,
"e": 24885,
"s": 24430,
"text": "The Color class is a part of Java Abstract Window Toolkit(AWT) package. The Color class creates color by using the given RGBA values where RGBA stands for RED, GRE... |
Plotting with Pandas: An Introduction to Data Visualization | by Alan Jones | Towards Data Science | Visualizing data gives us the opportunity to gain insights into the relationships between elements of that data, to spot correlations and dependencies, and to communicate those insights to others.
Here we will see how we can, quite easily, plot impressive graphics using Python and Pandas.
Here is what we’ll cover:
Impo... | [
{
"code": null,
"e": 369,
"s": 172,
"text": "Visualizing data gives us the opportunity to gain insights into the relationships between elements of that data, to spot correlations and dependencies, and to communicate those insights to others."
},
{
"code": null,
"e": 462,
"s": 369,
... |
How to add check box list in alert dialog? | How to add checkbox list in alert dialog?
This example demonstrates How to add checkbox list in the alert dialog
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... | [
{
"code": null,
"e": 1104,
"s": 1062,
"text": "How to add checkbox list in alert dialog?"
},
{
"code": null,
"e": 1175,
"s": 1104,
"text": "This example demonstrates How to add checkbox list in the alert dialog"
},
{
"code": null,
"e": 1304,
"s": 1175,
"text":... |
GATE | GATE-CS-2009 | Question 19 - GeeksforGeeks | 28 Jun, 2021
The coupling between different modules of a software is categorized as follows:
I. Content coupling
II. Common coupling
III. Control coupling
IV. Stamp coupling
V. Data coupling
Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desira... | [
{
"code": null,
"e": 24300,
"s": 24272,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24380,
"s": 24300,
"text": "The coupling between different modules of a software is categorized as follows:"
},
{
"code": null,
"e": 24501,
"s": 24380,
"text": " I. Co... |
Minimize the sum of the array according the given condition - GeeksforGeeks | 17 Feb, 2022
Given an array of integers A. The task is to minimize the sum of the elements of the array using the following rule: Choose two indices i and j and an arbitrary integer x, such that x is a divisor of A[i] and change them as following A[i] = A[i]/x and A[j] = A[j]*x.Examples:
Input: A = { 1, 2, 3, 4, 5 } ... | [
{
"code": null,
"e": 25204,
"s": 25176,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 25482,
"s": 25204,
"text": "Given an array of integers A. The task is to minimize the sum of the elements of the array using the following rule: Choose two indices i and j and an arbitrary in... |
Domain Relational Calculus in DBMS - GeeksforGeeks | 25 Mar, 2020
Domain Relational Calculus is a non-procedural query language equivalent in power to Tuple Relational Calculus. Domain Relational Calculus provides only the description of the query but it does not provide the methods to solve it. In Domain Relational Calculus, a query is expressed as,
{ < x1, x2, x3, ...,... | [
{
"code": null,
"e": 24693,
"s": 24665,
"text": "\n25 Mar, 2020"
},
{
"code": null,
"e": 24980,
"s": 24693,
"text": "Domain Relational Calculus is a non-procedural query language equivalent in power to Tuple Relational Calculus. Domain Relational Calculus provides only the descri... |
Beautiful Soup - Encoding | All HTML or XML documents are written in some specific encoding like ASCII or UTF-8. However, when you load that HTML/XML document into BeautifulSoup, it has been converted to Unicode.
>>> markup = "<p>I will display £</p>"
>>> Bsoup = BeautifulSoup(markup)
>>> Bsoup.p
<p>I will display £</p>
>>> Bsoup.p.string
'I will... | [
{
"code": null,
"e": 2170,
"s": 1985,
"text": "All HTML or XML documents are written in some specific encoding like ASCII or UTF-8. However, when you load that HTML/XML document into BeautifulSoup, it has been converted to Unicode."
},
{
"code": null,
"e": 2317,
"s": 2170,
"text"... |
How to convert color spaces in OpenCV using C++? | Color space is the model of representing colors. There are different ways of describing colors. For example, RGB, CYMK, HSV, Grayscale etc.
Here, we used a new header named 'imgproc.hpp'. This 'imgproc.hpp' is the abbreviation of Image Processing. To convert color spaces, we need to use 'cvtColor()' function of OpenCV.... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "Color space is the model of representing colors. There are different ways of describing colors. For example, RGB, CYMK, HSV, Grayscale etc."
},
{
"code": null,
"e": 1477,
"s": 1202,
"text": "Here, we used a new header named 'imgproc.... |
Aptitude | Arithmetic Aptitude 3 | Question 3 - GeeksforGeeks | 28 Jun, 2021
At present, the ratio between ages of Ram and Shyam is 6:5 respectively. After 7 years, Shyam’s age will be 32 years. What is the present age of Ram?(A) 32(B) 40(C) 30(D) 36Answer: (C)Explanation:
Let the present age of Ram and Shyam be 6x years and 5x years respectively.
Then 5x + 7 = 32
∴ 5x = 25
∴... | [
{
"code": null,
"e": 26291,
"s": 26263,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 26488,
"s": 26291,
"text": "At present, the ratio between ages of Ram and Shyam is 6:5 respectively. After 7 years, Shyam’s age will be 32 years. What is the present age of Ram?(A) 32(B) 40(C... |
Docker - Docker Container for Node.js - GeeksforGeeks | 21 Aug, 2021
Node.js is an open-source, asynchronous event-driven javascript runtime that is used to run javascript applications. It is widely used for traditional websites and as API servers. At the same time, a docker container is an isolated, deployable unit that packages an application along with its dependencies, ... | [
{
"code": null,
"e": 25195,
"s": 25167,
"text": "\n21 Aug, 2021"
},
{
"code": null,
"e": 25671,
"s": 25195,
"text": "Node.js is an open-source, asynchronous event-driven javascript runtime that is used to run javascript applications. It is widely used for traditional websites and... |
UGC NET CS 2015 Jun - III - GeeksforGeeks | 25 Oct, 2021
RST 7 CALL 0038 H
RST 6 CALL 0030 H
RST 4 CALL 0028 H
RST 3 CALL 0020 H
RST 2 CALL 0018 H
RST 1 CALL 0010 H
RST 0 CALL 0008 H
Lossless preserving decomposition into 3NF is always possible. True
Lossless preserving decomposition into BCNF is always possible. False Not always possible.
Any Relation... | [
{
"code": null,
"e": 28965,
"s": 28937,
"text": "\n25 Oct, 2021"
},
{
"code": null,
"e": 29101,
"s": 28965,
"text": "RST 7 CALL 0038 H \nRST 6 CALL 0030 H\nRST 4 CALL 0028 H\nRST 3 CALL 0020 H\nRST 2 CALL 0018 H\nRST 1 CALL 0010 H\nRST 0 CALL 0008 H \n"
},
{
"code"... |
Implementing Traffic Signal Using Java Swing Components - GeeksforGeeks | 17 Sep, 2021
Create a Button Group such that it contains three radio buttons Red, Yellow, Green when red is clicked you want to display “Stop”, when orange is clicked you want to display “ready”, when the green button is clicked Display “Go” and also create a sample Traffic signal demo using rectangle and ovals using ... | [
{
"code": null,
"e": 25373,
"s": 25345,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 25693,
"s": 25373,
"text": "Create a Button Group such that it contains three radio buttons Red, Yellow, Green when red is clicked you want to display “Stop”, when orange is clicked you want... |
How to build an IP address finder app in ReactJS ? - GeeksforGeeks | 25 Nov, 2021
In this article, we will be building an IP address finder app that lets you find your client’s approximate location on a map. An IP address is a unique address that identifies a device on the internet or a local network. IP stands for “Internet Protocol,” which is the set of rules governing the format of d... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 26549,
"s": 26071,
"text": "In this article, we will be building an IP address finder app that lets you find your client’s approximate location on a map. An IP address is a unique address tha... |
Implement $match and $project in MongoDB aggregate | The $match filters the documents to pass only the documents that match the specified condition to the next pipeline stage.
The $project passes along the documents with the requested fields to the next stage in the pipeline.
Let us see an example and create a collection with documents −
> db.demo545.insert({Name:"Chris"... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "The $match filters the documents to pass only the documents that match the specified condition to the next pipeline stage."
},
{
"code": null,
"e": 1286,
"s": 1185,
"text": "The $project passes along the documents with the requested ... |
Area of the Largest Triangle inscribed in a Hexagon - GeeksforGeeks | 11 Nov, 2021
Given here is a regular hexagon, of side length a, the task is to find the area of the biggest triangle that can be inscribed within it.Examples:
Input: a = 6
Output: area = 46.7654
Input: a = 8
Output: area = 83.1384
Approach:
It is very clear that the biggest triangle that can be inscribed withi... | [
{
"code": null,
"e": 26405,
"s": 26377,
"text": "\n11 Nov, 2021"
},
{
"code": null,
"e": 26553,
"s": 26405,
"text": "Given here is a regular hexagon, of side length a, the task is to find the area of the biggest triangle that can be inscribed within it.Examples: "
},
{
"... |
Swift - Protocols | Protocols provide a blueprint for Methods, properties and other requirements functionality. It is just described as a methods or properties skeleton instead of implementation. Methods and properties implementation can further be done by defining classes, functions and enumerations. Conformance of a protocol is defined ... | [
{
"code": null,
"e": 2647,
"s": 2253,
"text": "Protocols provide a blueprint for Methods, properties and other requirements functionality. It is just described as a methods or properties skeleton instead of implementation. Methods and properties implementation can further be done by defining classes... |
GATE | GATE-CS-2015 (Set 3) | Question 37 - GeeksforGeeks | 28 Jun, 2021
Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?(A) 256(B) 512(C) 1024(D) 2048Answer: (B)Explanation:
Time complexity of merge sort is Θ(nLogn)
... | [
{
"code": null,
"e": 24678,
"s": 24650,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24943,
"s": 24678,
"text": "Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input si... |
How to get title of a webpage using Selenium in Python? - GeeksforGeeks | 04 Jan, 2021
The title method is used to retrieve the title of the webpage the user is currently working on. It gives the title of the current webpage loaded by the driver in selenium, if webpage has no title a null string will be returned.
Webpage title :A page title, also known as a title tag, is a short description ... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n04 Jan, 2021"
},
{
"code": null,
"e": 25082,
"s": 24854,
"text": "The title method is used to retrieve the title of the webpage the user is currently working on. It gives the title of the current webpage loaded by the driver in s... |
Java program to find the circumference of a circle | The circumference of a circle is double the product of its radius and the value of PI. Therefore, to calculate the circumference of a circle
Get the radius of the circle form the user.
Calculate the product
Print the final result.
import java.util.Scanner;
public class CircumfrenceOfCircle {
public static void main(... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "The circumference of a circle is double the product of its radius and the value of PI. Therefore, to calculate the circumference of a circle"
},
{
"code": null,
"e": 1247,
"s": 1203,
"text": "Get the radius of the circle form the use... |
BigDecimal movePointRight() Method in Java - GeeksforGeeks | 04 Dec, 2018
Prerequisite : BigDecimal Basics
The java.math.BigDecimal.movePointRight(int n) method is used to move the decimal point of the current BigDecimal by n places to the right.
If n is non-negative, the call merely subtracts n from the scale.
If n is negative, the call is equivalent to movePointLeft(-n).
The B... | [
{
"code": null,
"e": 25347,
"s": 25319,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 25380,
"s": 25347,
"text": "Prerequisite : BigDecimal Basics"
},
{
"code": null,
"e": 25520,
"s": 25380,
"text": "The java.math.BigDecimal.movePointRight(int n) method is ... |
Joining Threads in Python - GeeksforGeeks | 22 Jun, 2020
Like running multiple independent programs simultaneously, running multiple threads simultaneously also has similar features with some added benefits, which are as follows :
Multiple threads share the same data space along with the main thread within a process. Hence, they can easily share information or c... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 24386,
"s": 24212,
"text": "Like running multiple independent programs simultaneously, running multiple threads simultaneously also has similar features with some added benefits, which are as... |
Binary Search functions in C++ STL | Binary search is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the sorted array. The time complexity of binary search is O(1). This is a C++ program in which we implement various. Binary Search functions in C++ STL
Be... | [
{
"code": null,
"e": 1380,
"s": 1062,
"text": "Binary search is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the sorted array. The time complexity of binary search is O(1). This is a C++ program i... |
How to Share your Python Objects Across Different Environments in One Line of Code | by Khuyen Tran | Towards Data Science | Have you ever wanted to share Python objects between different scripts? Or to share findings between you and your teammates so that everybody could work on the most updated results? There are three difficulties you might encounter:
Your teammates may deploy a different environment from your script
The model that is tra... | [
{
"code": null,
"e": 403,
"s": 171,
"text": "Have you ever wanted to share Python objects between different scripts? Or to share findings between you and your teammates so that everybody could work on the most updated results? There are three difficulties you might encounter:"
},
{
"code": n... |
Lessons Learned Using Google Cloud BigQuery ML | by Christy Bergman | Towards Data Science | A new buzzword I hear often is “democratize AI for the masses”. Usually what follows is a suggested Cloud Machine Learning tool. The umbrella term for these tools seems to be AML, or Automatic Machine Learning. As a Data Scientist myself, I was curious to investigate these tools. Some questions going through my mind: W... | [
{
"code": null,
"e": 660,
"s": 171,
"text": "A new buzzword I hear often is “democratize AI for the masses”. Usually what follows is a suggested Cloud Machine Learning tool. The umbrella term for these tools seems to be AML, or Automatic Machine Learning. As a Data Scientist myself, I was curious to... |
Creating auto-resize text area using JavaScript | Following is the code for creating auto resize text area using JavaScript −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdan... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "Following is the code for creating auto resize text area using JavaScript −"
},
{
"code": null,
"e": 1149,
"s": 1138,
"text": " Live Demo"
},
{
"code": null,
"e": 1886,
"s": 1149,
"text": "<!DOCTYPE html>\n<html l... |
A Guide To Cleaning Text in Python | by Kurtis Pykes | Towards Data Science | Text is a form of unstructured data. According to Wikipedia, unstructured data is described as “information that either does not have a pre-defined data model or is not organized in a pre-defined manner.” [Source: Wikipedia].
Unfortunately, computers aren’t like humans; Machines cannot read raw text in the same way tha... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "Text is a form of unstructured data. According to Wikipedia, unstructured data is described as “information that either does not have a pre-defined data model or is not organized in a pre-defined manner.” [Source: Wikipedia]."
},
{
"code": null,
... |
Twitter Topic Modeling. Using Machine Learning (Gensim Linear... | by Amin Azad | Towards Data Science | I’m a machine learning geek and I’d like to apply machine learning on everything that I can just to see the results. On the other hand, I started a new role at SoMe (Social Media Management Platform) and within the data science team, we continuously brainstorm around using machine learning to create more value for our ... | [
{
"code": null,
"e": 719,
"s": 172,
"text": "I’m a machine learning geek and I’d like to apply machine learning on everything that I can just to see the results. On the other hand, I started a new role at SoMe (Social Media Management Platform) and within the data science team, we continuously brain... |
COBOL Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to COBOL Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in t... | [
{
"code": null,
"e": 2351,
"s": 2022,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to COBOL Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer butt... |
AJAX - Database Operations | To clearly illustrate how easy it is to access information from a database using AJAX, we are going to build MySQL queries on the fly and display the results on "ajax.html". But before we proceed, let us do the ground work. Create a table using the following command.
NOTE − We are assuming you have sufficient privilege... | [
{
"code": null,
"e": 2004,
"s": 1736,
"text": "To clearly illustrate how easy it is to access information from a database using AJAX, we are going to build MySQL queries on the fly and display the results on \"ajax.html\". But before we proceed, let us do the ground work. Create a table using the fo... |
Data Visualisation Principles Part 1 — A Practical Example in Altair | by Angelica Lo Duca | Towards Data Science | Data Visualisation, which is the final step of a data science project, is very important, because it communicates the results of an analysis or an exploration. For this reason, a good data scientist should know at least the basic principles of Data Visualisation.
In my previous article, I dealt with the first principle... | [
{
"code": null,
"e": 436,
"s": 172,
"text": "Data Visualisation, which is the final step of a data science project, is very important, because it communicates the results of an analysis or an exploration. For this reason, a good data scientist should know at least the basic principles of Data Visual... |
Hibernate - Interceptors | As you have learnt that in Hibernate, an object will be created and persisted. Once the object has been changed, it must be saved back to the database. This process continues until the next time the object is needed, and it will be loaded from the persistent store.
Thus an object passes through different stages in its ... | [
{
"code": null,
"e": 2329,
"s": 2063,
"text": "As you have learnt that in Hibernate, an object will be created and persisted. Once the object has been changed, it must be saved back to the database. This process continues until the next time the object is needed, and it will be loaded from the persi... |
python program to print all even numbers between 1 to 100 | Theory of Computation
In this post, you will learn how to write a Python program to print all even numbers between 1 to 100. Such a type of question is generally asked in a logical programming interview.
In the given example, we have iterated from start 1 till the 100 using for loop and checked, if num % 2 == 0. If the... | [
{
"code": null,
"e": 112,
"s": 90,
"text": "Theory of Computation"
},
{
"code": null,
"e": 294,
"s": 112,
"text": "In this post, you will learn how to write a Python program to print all even numbers between 1 to 100. Such a type of question is generally asked in a logical progra... |
Service Registration with Eureka | In this chapter, you are going to learn in detail about How to register the Spring Boot Micro service application into the Eureka Server. Before registering the application, please make sure Eureka Server is running on the port 8761 or first build the Eureka Server and run it. For further information on building the Eu... | [
{
"code": null,
"e": 3397,
"s": 3025,
"text": "In this chapter, you are going to learn in detail about How to register the Spring Boot Micro service application into the Eureka Server. Before registering the application, please make sure Eureka Server is running on the port 8761 or first build the E... |
Robust & Non-Robust Methods For Data Reduction That You Should Know | by K.A. | Towards Data Science | The rapid advancement in networking technologies, emergence of cloud computing, mobile internet, and the advent of IoT devices the like of home appliances to self-driving vehicles have led to the creation, exchange, and storage of massive amount of data. But, much of these data may contain large amount of redundancy an... | [
{
"code": null,
"e": 1233,
"s": 172,
"text": "The rapid advancement in networking technologies, emergence of cloud computing, mobile internet, and the advent of IoT devices the like of home appliances to self-driving vehicles have led to the creation, exchange, and storage of massive amount of data.... |
What is a standard for commenting a function in JavaScript? | To comment a function in JavaScript, you can use the following standard −
/**
* Adds two numbers
* @param {Number} num1
* @param {Number} um
* @return {Number} sum
*/
function sum(num1,num2) {
return num1 + num2;
} | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "To comment a function in JavaScript, you can use the following standard −"
},
{
"code": null,
"e": 1280,
"s": 1136,
"text": "/**\n* Adds two numbers\n* @param {Number} num1\n* @param {Number} um\n* @return {Number} sum\n*/\nfunction ... |
How to connect to SSH using PowerShell? | It is possible to connect the non-windows target machines with the PowerShell using the SSH command in PowerShell. For that, you need to use the below format.
ssh username@servername
The below example shows how we can connect the non-windows target machine.
PS C:\> ssh ansible@192.168.0.104
Once you run this command th... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "It is possible to connect the non-windows target machines with the PowerShell using the SSH command in PowerShell. For that, you need to use the below format."
},
{
"code": null,
"e": 1245,
"s": 1221,
"text": "ssh username@servername... |
Best way to null check in Kotlin | In any programming paradigm, it is mandatory to check "null safety" in order
to prevent runtime errors. In this article, we will see different ways to check "null safety" in Kotlin.
In most of the programming languages, we have the "if" keyword to check
conditions. In Kotlin too, we can use the "if-else" clause to chec... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "In any programming paradigm, it is mandatory to check \"null safety\" in order\nto prevent runtime errors. In this article, we will see different ways to check \"null safety\" in Kotlin."
},
{
"code": null,
"e": 1415,
"s": 1244,
"tex... |
How to Extract Data from JSON Array in Android using Retrofit Library? | 08 Dec, 2021
In the previous article on JSON Parsing in Android using Retrofit Library, we have seen how we can get the data from JSON Object in our android app and display that JSON Object in our app. In this article, we will take a look at How to extract data from JSON Array and display that in our app.
Note: To ex... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 324,
"s": 28,
"text": "In the previous article on JSON Parsing in Android using Retrofit Library, we have seen how we can get the data from JSON Object in our android app and display that JSON Objec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.