title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Automate the Structure of Your Data Science Projects with Cookiecutter | by Ahmed Besbes | Towards Data Science
Here’s a situation a lot of data scientists are familiar with. Every time you start a new project, you reuse the structure of older projects. You go through their folders and copy-paste them, you remove the unnecessary files, you rename the remaining ones with your new project’s specifics, and you go inside each config...
[ { "code": null, "e": 235, "s": 172, "text": "Here’s a situation a lot of data scientists are familiar with." }, { "code": null, "e": 603, "s": 235, "text": "Every time you start a new project, you reuse the structure of older projects. You go through their folders and copy-paste ...
Comparator reversed() method in Java with examples - GeeksforGeeks
05 Feb, 2021 The reversed() method of Comparator Interface in Java returns a comparator that imposes the reverse ordering of this comparator. If you use sort method of the array and passes this comparator after applying the reversed method then it will sort the array in reverse order. Syntax: default Comparator<T> re...
[ { "code": null, "e": 24109, "s": 24081, "text": "\n05 Feb, 2021" }, { "code": null, "e": 24382, "s": 24109, "text": "The reversed() method of Comparator Interface in Java returns a comparator that imposes the reverse ordering of this comparator. If you use sort method of the arra...
4 Cute Python Functions for Working with Dirty Data | by Onel Harrison | Towards Data Science
Coalesce Safe Get Dig Safe Cast Conclusion This function comes in handy when there are one or more possible values that could be assigned to a variable or used in a given situation and there is a known preference for which value among the options should be selected for use if it’s available. If you have been writing SQ...
[ { "code": null, "e": 181, "s": 172, "text": "Coalesce" }, { "code": null, "e": 190, "s": 181, "text": "Safe Get" }, { "code": null, "e": 194, "s": 190, "text": "Dig" }, { "code": null, "e": 204, "s": 194, "text": "Safe Cast" }, { "c...
Python has a Built-in Database — Here’s How to use it | by Dario Radečić | Towards Data Science
Databases are a great, secure, and reliable way to store data. All major relational databases have something in common — SQL — a language to manipulate databases, tables, and data. SQL is a broad topic to cover, especially when dealing with different database vendors, such as Microsoft, IBM, or Oracle, so let’s start w...
[ { "code": null, "e": 542, "s": 171, "text": "Databases are a great, secure, and reliable way to store data. All major relational databases have something in common — SQL — a language to manipulate databases, tables, and data. SQL is a broad topic to cover, especially when dealing with different data...
Google Maps - UI Controls
Google Maps provides a User Interface with various controls to let the user interact with the map. We can add, customize, and disable these controls. Here is a list of the default controls provided by Google Maps − Zoom − To increase and decease the zoom level of the map, we will have a slider with + and − buttons, by ...
[ { "code": null, "e": 1982, "s": 1832, "text": "Google Maps provides a User Interface with various controls to let the user interact with the map. We can add, customize, and disable these controls." }, { "code": null, "e": 2047, "s": 1982, "text": "Here is a list of the default co...
C++ Fstream Library - is_open Function
Returns whether the stream is currently associated to a file. If streams can be associated to files by a successful call to member open or directly on construction, and disassociated by calling close or on destruction. The file association of a stream is kept by its internal stream buffer: Internally, then the function...
[ { "code": null, "e": 2950, "s": 2603, "text": "Returns whether the stream is currently associated to a file. If streams can be associated to files by a successful call to member open or directly on construction, and disassociated by calling close or on destruction. The file association of a stream i...
How do I stop a MySQL decimal field from being rounded?
You can stop rounding decimal field with the help of DECIMAL() function. Here is the demo of a rounded decimal field. For our example, let us first create a demo table mysql> create table stopRoundingDemo -> ( -> Amount DECIMAL(7) -> ); Query OK, 0 rows affected (0.67 sec) Insert some records in the table usin...
[ { "code": null, "e": 1230, "s": 1062, "text": "You can stop rounding decimal field with the help of DECIMAL() function. Here is the demo of a rounded decimal field. For our example, let us first create a demo table" }, { "code": null, "e": 1345, "s": 1230, "text": "mysql> create ...
Statistics in Spark SQL explained | by David Vrba | Towards Data Science
Spark SQL optimizer uses two types of optimizations: rule-based and cost-based. The former relies on heuristic rules while the latter can use some statistical properties of the data. In this article, we will explain how these statistics are used in Spark under the hood and we will see in which situations they are usefu...
[ { "code": null, "e": 529, "s": 172, "text": "Spark SQL optimizer uses two types of optimizations: rule-based and cost-based. The former relies on heuristic rules while the latter can use some statistical properties of the data. In this article, we will explain how these statistics are used in Spark ...
Difference between private, public, and protected modifiers in C++
Data hiding is one of the important features of Object Oriented Programming which allows preventing the functions of a program to access directly the internal representation of a class type. The access restriction to the class members is specified by the labeled access modifiers − public, private, and protected section...
[ { "code": null, "e": 1407, "s": 1062, "text": "Data hiding is one of the important features of Object Oriented Programming which allows preventing the functions of a program to access directly the internal representation of a class type. The access restriction to the class members is specified by th...
Change the curdate() (current date) format in MySQL
The current date format is ‘YYYY-mm-dd’. To change current date format, you can use date_format(). Let us first display the current date − mysql> select curdate(); This will produce the following output − +------------+ | curdate() | +------------+ | 2019-08-08 | +------------+ 1 row in set (0.00 sec) Following is the...
[ { "code": null, "e": 1161, "s": 1062, "text": "The current date format is ‘YYYY-mm-dd’. To change current date format, you can use date_format()." }, { "code": null, "e": 1201, "s": 1161, "text": "Let us first display the current date −" }, { "code": null, "e": 1226, ...
How to Predict Business Success & Failure | by Nadim Kawwa | Towards Data Science
Starting a business is no trivial task, there are many expenses to consider such as sunk costs, overhead, and loans. Metrics for success include but are not limited to growth, sales revenue, customer retention, and balance sheets. The viability of a business is first and foremost dependent on one axiom: that it stays o...
[ { "code": null, "e": 402, "s": 171, "text": "Starting a business is no trivial task, there are many expenses to consider such as sunk costs, overhead, and loans. Metrics for success include but are not limited to growth, sales revenue, customer retention, and balance sheets." }, { "code": nu...
Packages in C#
As an alternative of Packages in Java, the C# language has namespace. Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating and usage of classes, interfaces, enumerations and annotations easier, etc. A namespace is designed for providing a way to keep one set of n...
[ { "code": null, "e": 1132, "s": 1062, "text": "As an alternative of Packages in Java, the C# language has namespace." }, { "code": null, "e": 1318, "s": 1132, "text": "Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating an...
Set existing column as Primary Key in MySQL?
You can set primary key on an existing column in MySQL with the help of alter command. The syntax is as follows to add primary key to an existing column. ALTER TABLE yourTableName ADD PRIMARY KEY(yourColumnName); To set existing column as primary key, let us first create a table. The query to create a table − mysql> cr...
[ { "code": null, "e": 1149, "s": 1062, "text": "You can set primary key on an existing column in MySQL with the help of alter command." }, { "code": null, "e": 1216, "s": 1149, "text": "The syntax is as follows to add primary key to an existing column." }, { "code": null, ...
Android - Sensors
Most of the android devices have built-in sensors that measure motion, orientation, and various environmental condition. The android platform supports three broad categories of sensors. Motion Sensors Environmental sensors Position sensors Some of the sensors are hardware based and some are software based sensors. What...
[ { "code": null, "e": 3793, "s": 3607, "text": "Most of the android devices have built-in sensors that measure motion, orientation, and various environmental condition. The android platform supports three broad categories of sensors." }, { "code": null, "e": 3808, "s": 3793, "text...
Create HTML User Interface using Eel in Python - GeeksforGeeks
08 May, 2021 Eel is a Python library for making simple offline HTML/JS GUI apps, with full access to Python capabilities and libraries. Eel hosts a local webserver, then lets you annotate functions in Python so that they can be called from Javascript, and vice versa. To install this module type the below command in the...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n08 May, 2021" }, { "code": null, "e": 24156, "s": 23901, "text": "Eel is a Python library for making simple offline HTML/JS GUI apps, with full access to Python capabilities and libraries. Eel hosts a local webserver, then lets y...
Java Examples - Display a pie chart
How to display a pie chart using a frame? Following example displays how to a display a piechart by making Slices class & creating arc depending on the slices. import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import javax.swing.JComponent; import javax.swing.JFrame...
[ { "code": null, "e": 2110, "s": 2068, "text": "How to display a pie chart using a frame?" }, { "code": null, "e": 2228, "s": 2110, "text": "Following example displays how to a display a piechart by making Slices class & creating arc depending on the slices." }, { "code": ...
C Program to check if two given strings are isomorphic to each other - GeeksforGeeks
04 Oct, 2021 Given two strings str1 and str2, the task is to check if the two given strings are isomorphic to each other or not. Two strings are said to be isomorphic if there is a one to one mapping possible for every character of str1 to every character of str2 and all occurrences of every character in str1 map to s...
[ { "code": null, "e": 24643, "s": 24615, "text": "\n04 Oct, 2021" }, { "code": null, "e": 24760, "s": 24643, "text": "Given two strings str1 and str2, the task is to check if the two given strings are isomorphic to each other or not. " }, { "code": null, "e": 24973, ...
Condition Coverage Testing
Condition coverage is also known as Predicate Coverage in which each one of the Boolean expression have been evaluated to both TRUE and FALSE. if ((A || B) && C) { << Few Statements >> } else { << Few Statements >> } In order to ensure complete Condition coverage criteria for the above example, A, B and C should b...
[ { "code": null, "e": 5888, "s": 5745, "text": "Condition coverage is also known as Predicate Coverage in which each one of the Boolean expression have been evaluated to both TRUE and FALSE." }, { "code": null, "e": 5967, "s": 5888, "text": "if ((A || B) && C)\n{\n << Few Stateme...
How to convert a JSON string to a bean using JSON-lib API in Java?
The JSON-lib API is a java library to serialize and de-serialize java beans, maps, arrays, and collections in the JSON format. We need to convert a JSON string to a bean by converting a string to JSON object first then convert this to a java bean. public static Object toBean(JSONObject jsonObject, Class beanClass) In t...
[ { "code": null, "e": 1310, "s": 1062, "text": "The JSON-lib\nAPI is a java library to serialize and de-serialize java beans, maps, arrays, and collections in the JSON format. We need to convert a JSON string to a bean by converting a string to JSON object first then convert this to a java bean." }...
jQuery submit() with Examples
The submit() method in jQuery is used to trigger the submit event. It occurs when a form is submitted. The syntax is as follows − $(selector).submit(func) Above, the func parameter is the function to run when the submit event is triggered Let us now see an example to implement the jQuery submit() method − Live Demo <!...
[ { "code": null, "e": 1165, "s": 1062, "text": "The submit() method in jQuery is used to trigger the submit event. It occurs when a form is submitted." }, { "code": null, "e": 1192, "s": 1165, "text": "The syntax is as follows −" }, { "code": null, "e": 1217, "s": ...
GATE | GATE-CS-2003 | Question 76 - GeeksforGeeks
20 Aug, 2021 Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed to be either Java or C++, though the syntax is similar. Class P { void f(int i) { print(i); } } Class Q subclass of...
[ { "code": null, "e": 25485, "s": 25457, "text": "\n20 Aug, 2021" }, { "code": null, "e": 25712, "s": 25485, "text": "Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be ...
Create transparent png image with Python - Pillow - GeeksforGeeks
24 Feb, 2021 To create a transparent png using Python3, the Pillow library is used. The Pillow library comes with python itself. If python is unable to find Pillow library then open the command prompt and run this command:- pip install Pillow Note: If you got any problem installing Pillow using pip, then install and se...
[ { "code": null, "e": 25791, "s": 25763, "text": "\n24 Feb, 2021" }, { "code": null, "e": 26002, "s": 25791, "text": "To create a transparent png using Python3, the Pillow library is used. The Pillow library comes with python itself. If python is unable to find Pillow library then...
Basic Operators in Shell Scripting - GeeksforGeeks
06 Oct, 2021 There are 5 basic operators in bash/shell scripting: Arithmetic Operators Relational Operators Boolean Operators Bitwise Operators File Test Operators 1. Arithmetic Operators: These operators are used to perform normal arithmetics/mathematical operations. There are 7 arithmetic operators: Addition (+): Bin...
[ { "code": null, "e": 25907, "s": 25879, "text": "\n06 Oct, 2021" }, { "code": null, "e": 25960, "s": 25907, "text": "There are 5 basic operators in bash/shell scripting:" }, { "code": null, "e": 25981, "s": 25960, "text": "Arithmetic Operators" }, { "c...
Sum of Interval and Update with Number of Divisors - GeeksforGeeks
05 Apr, 2018 Given an array A of N integers. You have to answer two types of queries :1. Update [l, r] – for every i in range from l to r update Ai with D(Ai), where D(Ai) represents the number of divisors of Ai2. Query [l, r] – calculate the sum of all numbers ranging between l and r in array A.Input is given as two i...
[ { "code": null, "e": 25957, "s": 25929, "text": "\n05 Apr, 2018" }, { "code": null, "e": 26471, "s": 25957, "text": "Given an array A of N integers. You have to answer two types of queries :1. Update [l, r] – for every i in range from l to r update Ai with D(Ai), where D(Ai) repr...
Calculate number of nodes between two vertices in an acyclic Graph by DFS method - GeeksforGeeks
22 Jun, 2021 Given a connected acyclic graph consisting of V vertices and E edges, a source vertex src, and a destination vertex dest, the task is to count the number of vertices between the given source and destination vertex in the graph. Examples: Input: V = 8, E = 7, src = 7, dest = 8, edges[][] ={{1 4}, {4, 5}, {4...
[ { "code": null, "e": 25164, "s": 25136, "text": "\n22 Jun, 2021" }, { "code": null, "e": 25392, "s": 25164, "text": "Given a connected acyclic graph consisting of V vertices and E edges, a source vertex src, and a destination vertex dest, the task is to count the number of vertic...
tooltip("show") method in Bootstrap
Use the tooltip(“show”) method in Bootstrap to display the tooltip. As shown below that the tooltip is visible on button click: $(document).ready(function(){ $(".btn-primary").click(function(){ $("[data-toggle='tooltip']").tooltip('show'); }); }); The tooltip would be visible on a link wherein I have set the da...
[ { "code": null, "e": 1190, "s": 1062, "text": "Use the tooltip(“show”) method in Bootstrap to display the tooltip. As shown below that the tooltip is visible on button click:" }, { "code": null, "e": 1318, "s": 1190, "text": "$(document).ready(function(){\n $(\".btn-primary\").c...
How to query and calculate GA4 event data in BigQuery | by Johan van de Werken | Towards Data Science
The future of app and web analytics is here: Google announced a new way of measurement in Google Analytics. While still in beta, this is a small revolution for web and app analytics. On top of this: there is a raw data BigQuery export available for all (even non 360) Google Analytics accounts. Let’s dive right in! Note...
[ { "code": null, "e": 355, "s": 172, "text": "The future of app and web analytics is here: Google announced a new way of measurement in Google Analytics. While still in beta, this is a small revolution for web and app analytics." }, { "code": null, "e": 488, "s": 355, "text": "On ...
3 Python Tricks to Read, Create, and Run Multiple Models Automatically | by Khuyen Tran | Towards Data Science
When putting your code into production, you will most likely need to deal with organizing the files of your code. It can be really time-consuming to read, create, and run many files of data. This article will show you how to automatically Loop through files in a directory Create nested files if they do not exist Run on...
[ { "code": null, "e": 411, "s": 172, "text": "When putting your code into production, you will most likely need to deal with organizing the files of your code. It can be really time-consuming to read, create, and run many files of data. This article will show you how to automatically" }, { "c...
Check if Email Address is Valid or not in Java - GeeksforGeeks
22 Oct, 2021 Given a string, find if the given string is a valid email or not. Input : email = "review-team@geeksforgeeks.org" Output : Yes Input : email = "contribute@geeksforgeeks..org" Output : No Explanation : There is an extra dot(.) before org. Prerequisite: Regular Expressions in Java Regular Expressions or Re...
[ { "code": null, "e": 24403, "s": 24375, "text": "\n22 Oct, 2021" }, { "code": null, "e": 24469, "s": 24403, "text": "Given a string, find if the given string is a valid email or not." }, { "code": null, "e": 24642, "s": 24469, "text": "Input : email = \"review...
Traversing a map (or unordered_map) in C++ STL - GeeksforGeeks
08 Jul, 2021 We can traverse map and unordered_map using following different ways. Using a range based for loop map unordered_map // CPP program to traverse a map using range// based for loop#include <bits/stdc++.h>using namespace std; int main(){ int arr[] = { 1, 1, 2, 1, 1, 3, 4, 3 }; int n = sizeof(arr) / s...
[ { "code": null, "e": 25924, "s": 25896, "text": "\n08 Jul, 2021" }, { "code": null, "e": 25995, "s": 25924, "text": "We can traverse map and unordered_map using following different ways. " }, { "code": null, "e": 26024, "s": 25995, "text": "Using a range based...
sigwaitinfo() - Unix, Linux System Call
Unix - Home Unix - Getting Started Unix - File Management Unix - Directories Unix - File Permission Unix - Environment Unix - Basic Utilities Unix - Pipes & Filters Unix - Processes Unix - Communication Unix - The vi Editor Unix - What is Shell? Unix - Using Variables Unix - Special Variables Unix - Using Arrays Unix -...
[ { "code": null, "e": 1466, "s": 1454, "text": "Unix - Home" }, { "code": null, "e": 1489, "s": 1466, "text": "Unix - Getting Started" }, { "code": null, "e": 1512, "s": 1489, "text": "Unix - File Management" }, { "code": null, "e": 1531, "s": 1...
Make your Own Book and Movie Recommender System using Surprise | by Maha Amami | Towards Data Science
I spent my Ph.D. years building recommender systems and benchmarking them all from scratch and it is only when I finished it that I heard about the sikit library Surprise. It was a Surprise that I wished to know before. It would be spare me time and effort in implementing many recommender system baselines. So I want to...
[ { "code": null, "e": 343, "s": 171, "text": "I spent my Ph.D. years building recommender systems and benchmarking them all from scratch and it is only when I finished it that I heard about the sikit library Surprise." }, { "code": null, "e": 479, "s": 343, "text": "It was a Surpr...
bzip2 command in Linux with Examples - GeeksforGeeks
22 Aug, 2019 bzip2 command in Linux is used to compress and decompress the files i.e. it helps in binding the files into a single file which takes less storage space as the original file use to take. It has a slower decompression time and higher memory use. It uses Burrows-Wheeler block sorting text compression algorit...
[ { "code": null, "e": 24431, "s": 24403, "text": "\n22 Aug, 2019" }, { "code": null, "e": 24886, "s": 24431, "text": "bzip2 command in Linux is used to compress and decompress the files i.e. it helps in binding the files into a single file which takes less storage space as the ori...
Longest Span in two Binary Arrays | Practice | GeeksforGeeks
Given two binary arrays arr1[] and arr2[] of same size N. Find length of the longest common span [i, j] where j>=i such that arr1[i] + arr1[i+1] + .... + arr1[j] = arr2[i] + arr2[i+1] + .... + arr2[j]. Example 1: Input: N = 6 Arr1[] = {0, 1, 0, 0, 0, 0} Arr2[] = {1, 0, 1, 0, 0, 1} Output: 4 Explanation: The longest ...
[ { "code": null, "e": 429, "s": 226, "text": "Given two binary arrays arr1[] and arr2[] of same size N. Find length of the longest common span [i, j] where j>=i such that arr1[i] + arr1[i+1] + .... + arr1[j] = arr2[i] + arr2[i+1] + .... + arr2[j]. " }, { "code": null, "e": 442, "s": 4...
Remove k corner elements to maximize remaining sum - GeeksforGeeks
31 Aug, 2021 Given an array, the task is to remove total k elements from corners to maximize the sum of remaining elements. For example, if we k = 5 and if we remove 2 elements from the left corner, then we need to remove 3 elements from the right corner.Examples: Input : arr = [11, 49, 100, 20, 86, 29, 72], k = 4 Out...
[ { "code": null, "e": 24812, "s": 24784, "text": "\n31 Aug, 2021" }, { "code": null, "e": 25065, "s": 24812, "text": "Given an array, the task is to remove total k elements from corners to maximize the sum of remaining elements. For example, if we k = 5 and if we remove 2 elements...
MongoDB aggregate to convert multiple documents into single document with an array?
For aggregate in MongoDB, use aggregate(). Let us create a collection with documents − > db.demo248.insertOne({"id":101,"Name":"Chris","Age":21,"CountryName":"US"}); { "acknowledged" : true, "insertedId" : ObjectId("5e46b6651627c0c63e7dba6d") } > db.demo248.insertOne({"id":101,"Name":"Bob","Age":22,"CountryName":...
[ { "code": null, "e": 1149, "s": 1062, "text": "For aggregate in MongoDB, use aggregate(). Let us create a collection with documents −" }, { "code": null, "e": 1639, "s": 1149, "text": "> db.demo248.insertOne({\"id\":101,\"Name\":\"Chris\",\"Age\":21,\"CountryName\":\"US\"});\n{\n...
How to enable soft delete for Azure Storage blobs using Azure CLI in Powershell?
From the Azure portal, we need to access the Data Protection property of the Azure Storage account. To enable soft delete using Az CLI, you first need to install the storage-preview extension with the below command. az extension add -n storage-preview Once the extension is installed, you need to make sure that you are ...
[ { "code": null, "e": 1162, "s": 1062, "text": "From the Azure portal, we need to access the Data Protection property of the Azure Storage account." }, { "code": null, "e": 1278, "s": 1162, "text": "To enable soft delete using Az CLI, you first need to install the storage-preview ...
Count factorial numbers in a given range in C++
We are given the range starting from an integer value holded by a variable let’s say start till the variable end and the task is to count the total number of factorial numbers available in the given range. Factorial of a number is calculated by multiplying the digits in a number while decrementing thevalue of digit by ...
[ { "code": null, "e": 1268, "s": 1062, "text": "We are given the range starting from an integer value holded by a variable let’s say start till the variable end and the task is to count the total number of factorial numbers available in the given range." }, { "code": null, "e": 1487, ...
Node.js new Agent() Method - GeeksforGeeks
26 Aug, 2020 The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘require(‘http’)‘). HTTP message headers are represented as JSON Format. The new Agent({}) (Added in v0.3.4) method is an inbuilt application pro...
[ { "code": null, "e": 36891, "s": 36863, "text": "\n26 Aug, 2020" }, { "code": null, "e": 37126, "s": 36891, "text": "The Node.js HTTP API is low-level so that it could support the HTTP applications. In order to access and use the HTTP server and client, we need to call them (by ‘...
Toolz module in Python - GeeksforGeeks
26 Mar, 2020 Toolz package provides a set of utility functions for iterators, functions, and dictionaries. These functions extend the standard libraries itertools and functools and borrow heavily from the standard libraries of contemporary functional languages. This package consists of following modules – dicttoolz fun...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n26 Mar, 2020" }, { "code": null, "e": 24506, "s": 24212, "text": "Toolz package provides a set of utility functions for iterators, functions, and dictionaries. These functions extend the standard libraries itertools and functools...
How to add a rounded border with CSS ? - GeeksforGeeks
23 Sep, 2020 The purpose of this article is to add a rounded border to a HTML element by using the border-radius property in CSS. It is used to round the corner of an element. The property sets the border-radius for the element. Syntax: border-radius: 1-4 length|% / 1-4 length|%|initial|inherit Example: <!DOCTYPE html>...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n23 Sep, 2020" }, { "code": null, "e": 25201, "s": 24985, "text": "The purpose of this article is to add a rounded border to a HTML element by using the border-radius property in CSS. It is used to round the corner of an element. ...
Program to find covariance - GeeksforGeeks
24 Nov, 2021 Given a two set of random variable, find Covariance. Covariance is a measure of how much two random variables vary together. It’s similar to variance, but where variance tells you how a single variable varies, covariance tells you how two variables vary together. Covariance can be calculated by using the f...
[ { "code": null, "e": 24697, "s": 24669, "text": "\n24 Nov, 2021" }, { "code": null, "e": 25060, "s": 24697, "text": "Given a two set of random variable, find Covariance. Covariance is a measure of how much two random variables vary together. It’s similar to variance, but where va...
NHibernate - QueryOver Queries
In this chapter, we will be covering QueryOver Queries. It is a new syntax which is more like LINQ using the method chain syntax as shown in the following query. var customers = session.QueryOver<Customer>() .Where(x => x.FirstName == "Laverne"); It is still criteria under the covers, but now our queries are strongly ...
[ { "code": null, "e": 2495, "s": 2333, "text": "In this chapter, we will be covering QueryOver Queries. It is a new syntax which is more like LINQ using the method chain syntax as shown in the following query." }, { "code": null, "e": 2581, "s": 2495, "text": "var customers = sess...
Select parent element of known element in Selenium.
We can select the parent element of a known element with Selenium webdriver. First of all we have to identify the known element with the help of any of the locators like id, classname and so on. Then we have to identify its parent element with findElement(By.xpath()) method. We can identify the parent element from its ...
[ { "code": null, "e": 1338, "s": 1062, "text": "We can select the parent element of a known element with Selenium webdriver. First of all we have to identify the known element with the help of any of the locators like id, classname and so on. Then we have to identify its parent element with findEleme...
Image Data Labelling and Annotation — Everything you need to know | by Sabina Pokhrel | Towards Data Science
Data labelling is an essential step in a supervised machine learning task. Garbage In Garbage Out is a phrase commonly used in the machine learning community, which means that the quality of the training data determines the quality of the model. The same is true for annotations used for data labelling. If you show a ch...
[ { "code": null, "e": 780, "s": 172, "text": "Data labelling is an essential step in a supervised machine learning task. Garbage In Garbage Out is a phrase commonly used in the machine learning community, which means that the quality of the training data determines the quality of the model. The same ...
How to set the layout weight of a textview programmatically in Android?
This example demonstrates how do I set the layout weight of a textView programmatically 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. <RelativeLayout xmlns:a...
[ { "code": null, "e": 1162, "s": 1062, "text": "This example demonstrates how do I set the layout weight of a textView programmatically in android." }, { "code": null, "e": 1291, "s": 1162, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill...
Angular 2 - Navigation
In Angular 2, it is also possible to carry out manual navigation. Following are the steps. Step 1 − Add the following code to the Inventory.component.ts file. import { Component } from '@angular/core'; import { Router } from '@angular/router'; @Component ({ selector: 'my-app', template: 'Inventory <a...
[ { "code": null, "e": 2388, "s": 2297, "text": "In Angular 2, it is also possible to carry out manual navigation. Following are the steps." }, { "code": null, "e": 2456, "s": 2388, "text": "Step 1 − Add the following code to the Inventory.component.ts file." }, { "code": n...
How to find the first date of a given year using Python?
In this program, we have to print the first day of the year. We have to take a year as a user input. Step 1: Import the datetime library. Step 2: Take year as input from the user. Step 3: Get the first day of the year by passing month, day and year as parameters to the datetime.datetime() function Step 4: Display the f...
[ { "code": null, "e": 1163, "s": 1062, "text": "In this program, we have to print the first day of the year. We have to take a year as a user input." }, { "code": null, "e": 1418, "s": 1163, "text": "Step 1: Import the datetime library.\nStep 2: Take year as input from the user.\n...
Python - API.retweets() in Tweepy - GeeksforGeeks
05 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 24366, "s": 24338, "text": "\n05 Jun, 2020" }, { "code": null, "e": 24766, "s": 24366, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data ...
Audio Context.close() in Web APIs - GeeksforGeeks
07 Sep, 2021 Web Audio APIs help to make the audio of a website application sound correct. Sounds make the site more fun and attractive. Using Audio APIs, many music or sound applications can be built. In this article, we will learn about audiocontext.close() along with some basic information about Audio APIs. Audio C...
[ { "code": null, "e": 26731, "s": 26703, "text": "\n07 Sep, 2021" }, { "code": null, "e": 27031, "s": 26731, "text": "Web Audio APIs help to make the audio of a website application sound correct. Sounds make the site more fun and attractive. Using Audio APIs, many music or sound a...
Simple way to deploy machine learning models to cloud | by Tanuj Jain | Towards Data Science
The Machine learning world currently sees Data Scientists (DS) performing one or both of the following 2 prominent roles: Where a DS receives a data dump, applies some Machine learning algo on the data and reports back the results in the form of some presentation or report.Where the DS creates a usable piece of softwar...
[ { "code": null, "e": 294, "s": 172, "text": "The Machine learning world currently sees Data Scientists (DS) performing one or both of the following 2 prominent roles:" }, { "code": null, "e": 555, "s": 294, "text": "Where a DS receives a data dump, applies some Machine learning a...
How to add color breezing effect using pygame? - GeeksforGeeks
19 Apr, 2022 Pygame is a python library that can be used specifically to design and build games. Pygame supports only 2d games that are built using different sprites. Pygame is not particularly best for designing games as it is very complex to use and doesn’t have a proper GUI like unity but it definitely builds logic ...
[ { "code": null, "e": 25823, "s": 25795, "text": "\n19 Apr, 2022" }, { "code": null, "e": 26160, "s": 25823, "text": "Pygame is a python library that can be used specifically to design and build games. Pygame supports only 2d games that are built using different sprites. Pygame is...
Java RMI - Quick Guide
RMI stands for Remote Method Invocation. It is a mechanism that allows an object residing in one system (JVM) to access/invoke an object running on another JVM. RMI is used to build distributed applications; it provides remote communication between Java programs. It is provided in the package java.rmi. In an RMI applic...
[ { "code": null, "e": 1858, "s": 1697, "text": "RMI stands for Remote Method Invocation. It is a mechanism that allows an object residing in one system (JVM) to access/invoke an object running on another JVM." }, { "code": null, "e": 2001, "s": 1858, "text": "RMI is used to build ...
How to select at the same time from two Tkinter Listbox?
Let us consider a situation for a particular system to keep selecting multiple files from a directory and, once copied in the clipboard, paste them into another directory. The idea of making multiple selections in ListBoxes can be implemented by using the exportselection property. The property prevents the selected opt...
[ { "code": null, "e": 1599, "s": 1062, "text": "Let us consider a situation for a particular system to keep selecting multiple files from a directory and, once copied in the clipboard, paste them into another directory. The idea of making multiple selections in ListBoxes can be implemented by using t...
Java Examples - Find proxy settings
How to find proxy settings of a System ? Following example shows how to find proxy settings & create a proxy connection on a system using put method of systemSetting & getResponse method of HttpURLConnection class. import java.net.HttpURLConnection; import java.net.URL; import java.util.Properties; import java.net.Inet...
[ { "code": null, "e": 2109, "s": 2068, "text": "How to find proxy settings of a System ?" }, { "code": null, "e": 2283, "s": 2109, "text": "Following example shows how to find proxy settings & create a proxy connection on a system using put method of systemSetting & getResponse me...
Building Neural Network from scratch | by Aayush Agrawal | Towards Data Science
In this notebook, we are going to build a neural network(multilayer perceptron) using numpy and successfully train it to recognize digits in the image. Deep learning is a vast topic, but we got to start somewhere, so let’s start with the very basics of a neural network which is Multilayer Perceptron. You can find the s...
[ { "code": null, "e": 541, "s": 172, "text": "In this notebook, we are going to build a neural network(multilayer perceptron) using numpy and successfully train it to recognize digits in the image. Deep learning is a vast topic, but we got to start somewhere, so let’s start with the very basics of a ...
Java program to print the Armstrong numbers between two numbers
An Armstrong number is a number which equals to the sum of the cubes of its individual digits. For example, 153 is an Armstrong number as − 153 = (1)3 + (5)3 + (3)3 153 1 + 125 + 27 154 153 1. Take integer variable Arms. 2. Assign a value to the variable. 3. Split all digits of Arms. 4. Find cube-value of each digit. 5...
[ { "code": null, "e": 1202, "s": 1062, "text": "An Armstrong number is a number which equals to the sum of the cubes of its individual digits. For example, 153 is an Armstrong number as −" }, { "code": null, "e": 1252, "s": 1202, "text": "153 = (1)3 + (5)3 + (3)3\n153 1 + 125 + 27...
Machine learning made easier with PyCaret | by Phani Rohith | Towards Data Science
We are often stuck in scenarios where we have a time crunch to finish our tasks. In Machine Learning, a library that is very useful in such scenarios is PyCaret. PyCaret is an open-source library in Python that is extremely useful for several machine learning activities. It can help you right from data preprocessing to...
[ { "code": null, "e": 334, "s": 172, "text": "We are often stuck in scenarios where we have a time crunch to finish our tasks. In Machine Learning, a library that is very useful in such scenarios is PyCaret." }, { "code": null, "e": 1018, "s": 334, "text": "PyCaret is an open-sour...
How to perform Bitwise And operation on two images using Java OpenCV?
You can compute bitwise conjunction between two images using the bitwise_and() method of the org.opencv.core.Core class. This method accepts three Mat objects representing the source, destination and result matrices, calculates the bitwise conjunction of each every element in the source matrices and stores the result i...
[ { "code": null, "e": 1183, "s": 1062, "text": "You can compute bitwise conjunction between two images using the bitwise_and() method of the org.opencv.core.Core class." }, { "code": null, "e": 1408, "s": 1183, "text": "This method accepts three Mat objects representing the source...
Matrix Autoregressive Model for Multidimensional Time Series Forecasting | by Xinyu Chen (陈新宇) | Towards Data Science
Autoregressive (AR) process is a representative and classical model in time series analysis and it has broad applications in nature, science, and economics. AR can describe certain time-varying processes with a linear relationship in univariate time series. Another important counterpart of AR is vector autoregressive (...
[ { "code": null, "e": 603, "s": 171, "text": "Autoregressive (AR) process is a representative and classical model in time series analysis and it has broad applications in nature, science, and economics. AR can describe certain time-varying processes with a linear relationship in univariate time serie...
Functional Programming - Pure Function
A function is considered as Pure Function if it fulfils the following two conditions − It always returns the same result for the given inputs and its results purely depends upon the inputs passed. It always returns the same result for the given inputs and its results purely depends upon the inputs passed. It has no sid...
[ { "code": null, "e": 2176, "s": 2089, "text": "A function is considered as Pure Function if it fulfils the following two conditions −" }, { "code": null, "e": 2286, "s": 2176, "text": "It always returns the same result for the given inputs and its results purely depends upon the ...
React Components
Components are like functions that return HTML elements. Components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML. Components come in two types, Class components and Function components, in this tutorial we will concentrate on Func...
[ { "code": null, "e": 57, "s": 0, "text": "Components are like functions that return HTML elements." }, { "code": null, "e": 203, "s": 57, "text": "Components are independent and reusable bits of code.\nThey serve the same purpose as JavaScript functions,\nbut work in isolation an...
How to load CSS files using JavaScript? - GeeksforGeeks
30 Jul, 2021 The CSS file is used to describe how HTML elements will be displayed. There are various ways to add CSS file in the HTML document. JavaScript can also be used to load a CSS file in the HTML document. Approach: Use document.getElementsByTagName() method to get HTML head element. Create new link element usin...
[ { "code": null, "e": 26495, "s": 26467, "text": "\n30 Jul, 2021" }, { "code": null, "e": 26695, "s": 26495, "text": "The CSS file is used to describe how HTML elements will be displayed. There are various ways to add CSS file in the HTML document. JavaScript can also be used to l...
DataTables orderCellsTop Option - GeeksforGeeks
21 Jul, 2021 DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to be searched, sorted, and filtered according to the needs of the user. The DataTable also exposes a powerful API that can be further used to mod...
[ { "code": null, "e": 26954, "s": 26926, "text": "\n21 Jul, 2021" }, { "code": null, "e": 27292, "s": 26954, "text": "DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to...
Get and Post method using Fetch API - GeeksforGeeks
17 Sep, 2021 The fetch() method is used to send the requests to the server without refreshing the page. It is an alternative to the XMLHttpRequest object.The basic syntax of a fetch() request is as follows: javascript fetch(url, {options}).then(data => { // Do some stuff here}).catch(err => { // Catch and displ...
[ { "code": null, "e": 25675, "s": 25647, "text": "\n17 Sep, 2021" }, { "code": null, "e": 25871, "s": 25675, "text": "The fetch() method is used to send the requests to the server without refreshing the page. It is an alternative to the XMLHttpRequest object.The basic syntax of a ...
Ruby | Hash each_key() function - GeeksforGeeks
07 Jan, 2020 Hash#each_key() is a Hash class method which finds the nested value which calls block once for each_key key in hash by passing the key pair as parameters. Syntax: Hash.each_key() Parameter: Hash values Return: calls block once for each_key key in hash with key as parameter otherwise Enumerator if no argume...
[ { "code": null, "e": 24995, "s": 24967, "text": "\n07 Jan, 2020" }, { "code": null, "e": 25150, "s": 24995, "text": "Hash#each_key() is a Hash class method which finds the nested value which calls block once for each_key key in hash by passing the key pair as parameters." }, ...
Mean and Median of a matrix - GeeksforGeeks
19 Apr, 2021 Given a sorted matrix of size n*n. Calculate the mean and median of the matrix .Examples: Input : 1 2 3 4 5 6 7 8 9 Output :Mean: 5 Median: 5 Input : 1 1 1 2 2 2 4 4 4 Output :Mean: 2 Median: 2 Mean of matrix is = (sum of all elements of matrix)/ ...
[ { "code": null, "e": 26499, "s": 26471, "text": "\n19 Apr, 2021" }, { "code": null, "e": 26591, "s": 26499, "text": "Given a sorted matrix of size n*n. Calculate the mean and median of the matrix .Examples: " }, { "code": null, "e": 26744, "s": 26591, "text":...
ISRO | ISRO CS 2013 | Question 39 - GeeksforGeeks
08 May, 2018 If the frame to be transmitted is 1101011011 and the CRC polynomial to be used for generating checksum is x4+ x + 1, then what is the transmitted frame?(A) 11010110111011(B) 11010110111101(C) 11010110111110(D) 11010110111001Answer: (C)Explanation: Step-1: Append (number of bits in divisor - 1) number of z...
[ { "code": null, "e": 25673, "s": 25645, "text": "\n08 May, 2018" }, { "code": null, "e": 25921, "s": 25673, "text": "If the frame to be transmitted is 1101011011 and the CRC polynomial to be used for generating checksum is x4+ x + 1, then what is the transmitted frame?(A) 1101011...
PostgreSQL - Function Parameter Modes - GeeksforGeeks
26 Jan, 2021 While using procedures and functions, PostgreSQL allows us to pass data from the calling program to the procedure or function and to receive data back from the procedure or function. This functionality is achieved using Parameters. Parameters declared in the function definition are known as Formal paramete...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n26 Jan, 2021" }, { "code": null, "e": 25599, "s": 25367, "text": "While using procedures and functions, PostgreSQL allows us to pass data from the calling program to the procedure or function and to receive data back from the pro...
Convert a normal BST to Balanced BST - GeeksforGeeks
23 Aug, 2021 Given a BST (Binary Search Tree) that may be unbalanced, convert it into a balanced BST that has minimum possible height.Examples : Input: 30 / 20 / 10 Output: 20 / \ 10 30 Input: 4 / 3 / 2 / 1 Output: 3 3...
[ { "code": null, "e": 26243, "s": 26215, "text": "\n23 Aug, 2021" }, { "code": null, "e": 26376, "s": 26243, "text": "Given a BST (Binary Search Tree) that may be unbalanced, convert it into a balanced BST that has minimum possible height.Examples : " }, { "code": null, ...
Python: filecmp.cmp() method - GeeksforGeeks
10 Jan, 2020 Filecmp module in Python provides functions to compare files and directories. This module comes under Python’s standard utility modules. This module also consider the properties of files and directories for comparison in addition to data in them. filecmp.cmp() method in Python is used to compare two files....
[ { "code": null, "e": 25939, "s": 25911, "text": "\n10 Jan, 2020" }, { "code": null, "e": 26186, "s": 25939, "text": "Filecmp module in Python provides functions to compare files and directories. This module comes under Python’s standard utility modules. This module also consider ...
Understanding static_assert in C++ 11 - GeeksforGeeks
06 Jan, 2022 What is static assertion? Static assertions are a way to check if a condition is true when the code is compiled. If it isn’t, the compiler is required to issue an error message and stop the compiling process. The condition that needs to be checked is a constant expression. Performs compile-time assertion c...
[ { "code": null, "e": 25681, "s": 25653, "text": "\n06 Jan, 2022" }, { "code": null, "e": 25707, "s": 25681, "text": "What is static assertion?" }, { "code": null, "e": 25955, "s": 25707, "text": "Static assertions are a way to check if a condition is true when...
How to set up Kubernetes cluster on local machine using minikube ? - GeeksforGeeks
03 Feb, 2021 Creating a Kubernetes cluster on AWS, Google Cloud, etc, can be a little difficult and cost you a pretty decent amount of money. If you have a Windows machine or a mac then it is easy to create a multi-container cluster using Docker Desktop for windows/mac and use Kubernetes to manage the cluster. Perquisi...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n03 Feb, 2021" }, { "code": null, "e": 26566, "s": 26267, "text": "Creating a Kubernetes cluster on AWS, Google Cloud, etc, can be a little difficult and cost you a pretty decent amount of money. If you have a Windows machine or a...
What is Components Inheritance in React ? - GeeksforGeeks
14 Jul, 2021 Inheritance is a concept that plays a major role in object-oriented programming. It is a technique that allows objects to have those properties that are already existing on previous objects. Two classes exist are: Superclass(Parent Class) Subclass(Child Class) In React, the composition model is used instea...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n14 Jul, 2021" }, { "code": null, "e": 26262, "s": 26071, "text": "Inheritance is a concept that plays a major role in object-oriented programming. It is a technique that allows objects to have those properties that are already ex...
ReactJS Reactstrap Spinners Component - GeeksforGeeks
28 Jul, 2021 Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Spinner component allows the user to show the loading effect. It is used for the purpose of indicating a loading state. We can use the follow...
[ { "code": null, "e": 26582, "s": 26554, "text": "\n28 Jul, 2021" }, { "code": null, "e": 26962, "s": 26582, "text": "Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. T...
Find difference between sums of two diagonals - GeeksforGeeks
28 Apr, 2022 Given a matrix of n X n. The task is to calculate the absolute difference between the sums of its diagonal.Examples: Input : mat[][] = 11 2 4 4 5 6 10 8 -12 Output : 15 Sum of primary diagonal = 11 + 5 + (-12) = 4. Sum of secondary diagonal = 4 + 5 + 10 = 19. Differe...
[ { "code": null, "e": 26262, "s": 26234, "text": "\n28 Apr, 2022" }, { "code": null, "e": 26381, "s": 26262, "text": "Given a matrix of n X n. The task is to calculate the absolute difference between the sums of its diagonal.Examples: " }, { "code": null, "e": 26649, ...
Initializing a List in Java - GeeksforGeeks
13 May, 2022 The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the insertion order, it allows positional access and insertion of elements. List Interface is implemented by ArrayList, LinkedList, Vector and Stack cl...
[ { "code": null, "e": 26243, "s": 26215, "text": "\n13 May, 2022" }, { "code": null, "e": 26557, "s": 26243, "text": "The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the ins...
How to make a video call app in node.js ? - GeeksforGeeks
05 Jan, 2021 For making a video call app, It is required that each and every client send their video and audio stream to all the other clients. So for this purpose we are using Peer.js and for the communication between the clients and the server we are using WebSocket i.e. Socket.io. Prerequisite:1. Node.js: It is an o...
[ { "code": null, "e": 26293, "s": 26265, "text": "\n05 Jan, 2021" }, { "code": null, "e": 26565, "s": 26293, "text": "For making a video call app, It is required that each and every client send their video and audio stream to all the other clients. So for this purpose we are using...
PLSQL | SIGN Function - GeeksforGeeks
25 Oct, 2019 The PLSQL SIGN function is used for returning a value which indicates the sign of a number. The SIGN function accepts one parameter which is the number whose sign needs to be known. The SIGN function returns a value of the numeric data type. This function takes as an argument any numeric data type as well ...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n25 Oct, 2019" }, { "code": null, "e": 25906, "s": 25513, "text": "The PLSQL SIGN function is used for returning a value which indicates the sign of a number. The SIGN function accepts one parameter which is the number whose sign ...
HTML <font> size Attribute - GeeksforGeeks
15 Dec, 2021 The HTML <font> size Attribute is used to specify the size of text which is present inside <font> element. Syntax: <font size="number"> Attribute Values: It contains a single value number that specifies the size of the text. The font size lies between 1 to 7. The default value of font size is 3. Note: The ...
[ { "code": null, "e": 25515, "s": 25487, "text": "\n15 Dec, 2021" }, { "code": null, "e": 25622, "s": 25515, "text": "The HTML <font> size Attribute is used to specify the size of text which is present inside <font> element." }, { "code": null, "e": 25630, "s": 256...
Keyword Cipher - GeeksforGeeks
18 Feb, 2022 A keyword cipher is a form of monoalphabetic substitution. A keyword is used as the key, and it determines the letter matchings of the cipher alphabet to the plain alphabet. Repeats of letters in the word are removed, then the cipher alphabet is generated with the keyword matching to A, B, C, etc. until th...
[ { "code": null, "e": 25991, "s": 25963, "text": "\n18 Feb, 2022" }, { "code": null, "e": 26440, "s": 25991, "text": "A keyword cipher is a form of monoalphabetic substitution. A keyword is used as the key, and it determines the letter matchings of the cipher alphabet to the plain...
Laravel | Route::resource vs Route::controller - GeeksforGeeks
18 Apr, 2022 In Laravel, the Route actions can be controlled by any of the following two methods, either by using Route::resource method or by using Route::controller method. But both of them have their differences. Route::resource: The Route::resource method is a RESTful Controller that generates all the basic routes ...
[ { "code": null, "e": 26703, "s": 26675, "text": "\n18 Apr, 2022" }, { "code": null, "e": 27529, "s": 26703, "text": "In Laravel, the Route actions can be controlled by any of the following two methods, either by using Route::resource method or by using Route::controller method. B...
Difference Between '+' and 'append' in Python - GeeksforGeeks
10 May, 2020 Using ‘+’ operator to add an element in the list in Python: The use of the ‘+’ operator causes Python to access each element of that first list. When ‘+’ is used a new list is created with space for one more element. Then all the elements from the old list must be copied to the new list and the new element...
[ { "code": null, "e": 24493, "s": 24465, "text": "\n10 May, 2020" }, { "code": null, "e": 24835, "s": 24493, "text": "Using ‘+’ operator to add an element in the list in Python: The use of the ‘+’ operator causes Python to access each element of that first list. When ‘+’ is used a...
How to use PowerShell Help commands?
To get help for the particular command, you can use Get-Help (alias: help) cmdlet with the command that you need help. For example, help Get-Service Once you run this command, you will get the description of NAME, SYNOPSIS, SYNTAX, DESCRIPTION, RELATED LINKS, and REMARKS. Multiple parameters that support help as shown...
[ { "code": null, "e": 1182, "s": 1062, "text": "To get help for the particular command, you can use Get-Help (alias: help) cmdlet with the command that you need help." }, { "code": null, "e": 1195, "s": 1182, "text": "For example," }, { "code": null, "e": 1212, "s...
How to Change Apache Default Web Root Folder to a New Location on Ubuntu 16.04
In this article, we will learn how to change the Apache default web root folder to a new location. By default, the Apache web root or Document root folder location is at /var/www/html. These type of changes will be useful for security reason or having the space issue due to data size, we want to change the document roo...
[ { "code": null, "e": 1247, "s": 1062, "text": "In this article, we will learn how to change the Apache default web root folder to a new location. By default, the Apache web root or Document root folder location is at /var/www/html." }, { "code": null, "e": 1559, "s": 1247, "text"...
Solidity - View Functions
View functions ensure that they will not modify the state. A function can be declared as view. The following statements if present in the function are considered modifying the state and compiler will throw warning in such cases. Modifying state variables. Modifying state variables. Emitting events. Emitting events. Cre...
[ { "code": null, "e": 2784, "s": 2555, "text": "View functions ensure that they will not modify the state. A function can be declared as view. The following statements if present in the function are considered modifying the state and compiler will throw warning in such cases." }, { "code": nu...
How to Speedup Pandas with with One-Line change using Modin ? - GeeksforGeeks
15 Mar, 2021 In this article, we are going to see how to increase the speed of computation of the pandas using modin library. Modin is a python library very similar to pandas (almost identical in terms of syntax) capable of handling a huge dataset that cannot fit into RAM in one go. Pandas are good enough in terms of s...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n15 Mar, 2021" }, { "code": null, "e": 24372, "s": 23901, "text": "In this article, we are going to see how to increase the speed of computation of the pandas using modin library. Modin is a python library very similar to pandas (...
Salesforce Interview Experience | Set 1 (For SDE-1)
28 Jun, 2021 I have recently attended an interview with Salesforce Hyderabad, for SDE-I position. There are 5 rounds in total, all are technical. I. Programming Round: 1. Find the diameter of a binary treeHere the diameter is maximum number of nodes possible in the tree, formed by two leaf nodes. It can pass through t...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 186, "s": 52, "text": "I have recently attended an interview with Salesforce Hyderabad, for SDE-I position. There are 5 rounds in total, all are technical. " }, { "code": null, "e": 384...
jQuery | resize() with Examples
13 Feb, 2019 The resize() method is an inbuilt method in jQuery which is used when the browser window change its size. Syntax: $(selector).resize(function) Parameter: This method accepts single parameter function which is optional. It is used to specify the function to run when the resize event is called. Return Value:...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Feb, 2019" }, { "code": null, "e": 134, "s": 28, "text": "The resize() method is an inbuilt method in jQuery which is used when the browser window change its size." }, { "code": null, "e": 142, "s": 134, "text": "...
XAML - DataGrid
A DataGrid represents a control that displays data in a customizable grid. It provides a flexible way to display a collection of data in rows and columns. The hierarchical inheritance of DataGrid class is as follows − AlternatingRowBackground Gets or sets the background brush for use on alternating rows. AreRowDetailsF...
[ { "code": null, "e": 2275, "s": 2057, "text": "A DataGrid represents a control that displays data in a customizable grid. It provides a flexible way to display a collection of data in rows and columns. The hierarchical inheritance of DataGrid class is as follows −" }, { "code": null, "e"...
How to get parameters from a URL string in PHP?
28 Feb, 2022 The parameters from a URL string can be be retrieved in PHP using parse_url() and parse_str() functions. Note: Page URL and the parameters are separated by the ? character. parse_url() Function: The parse_url() function is used to return the components of a URL by parsing it. It parse an URL and return an ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2022" }, { "code": null, "e": 133, "s": 28, "text": "The parameters from a URL string can be be retrieved in PHP using parse_url() and parse_str() functions." }, { "code": null, "e": 201, "s": 133, "text": "N...
Why companies like Amazon, Microsoft, Google focuses on Data Structures and Algorithms : Answered
06 May, 2022 If you’re preparing for a tech interview of any big tech company like Adobe, Amazon, Microsoft, Google, etc. – most probably, you would have known about the importance of Data Structures and Algorithms to crack these interviews. Yes, most of the interviews for technical roles in these companies are focused...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 May, 2022" }, { "code": null, "e": 442, "s": 54, "text": "If you’re preparing for a tech interview of any big tech company like Adobe, Amazon, Microsoft, Google, etc. – most probably, you would have known about the importance of Dat...
Reduce string by removing outermost parenthesis from each primitive substring
28 May, 2022 Given a string S of valid parentheses “(“ and “)”, the task is to print the string obtained by removing the outermost parentheses of every primitive substring from S. A valid parentheses substring S is primitive if it is non-empty, and cannot be split into two or more non-empty substrings which are also a ...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 May, 2022" }, { "code": null, "e": 220, "s": 53, "text": "Given a string S of valid parentheses “(“ and “)”, the task is to print the string obtained by removing the outermost parentheses of every primitive substring from S." }, ...
Using “not equal” in MySQL?
If you want to work with not equal operator, then use the <> operator. The syntax is as follows − SELECT *FROM yourTableName WHERE yourColumnName <> anyValue; To understand the above syntax, let us first create a table. The query to create a table is as follows − mysql> create table NotEqualDemo -> ( -> ProductId int -...
[ { "code": null, "e": 1285, "s": 1187, "text": "If you want to work with not equal operator, then use the <> operator. The syntax is as follows −" }, { "code": null, "e": 1346, "s": 1285, "text": "SELECT *FROM yourTableName WHERE yourColumnName <> anyValue;" }, { "code": n...
PLSQL | LOG Function
25 Oct, 2019 The PLSQL LOG function is used for returning the logarithm of n base m. The LOG function accepts two parameters which are used to calculate the logarithmic value. The LOG function returns a value of the numeric data type. This function takes as an argument any numeric data type as well as any non-numeric d...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Oct, 2019" }, { "code": null, "e": 250, "s": 28, "text": "The PLSQL LOG function is used for returning the logarithm of n base m. The LOG function accepts two parameters which are used to calculate the logarithmic value. The LOG func...
Wald Test
18 Jul, 2021 Prerequisite : Maximum Likelihood Estimate NOTE : It is advised to read the prerequisite article before moving on to Wald Test. Wald Test : It is a hypothesis test done on the parameters calculated by the Maximum Likelihood Estimate (MLE). It checks if the value of the true input parameters has the same li...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jul, 2021" }, { "code": null, "e": 71, "s": 28, "text": "Prerequisite : Maximum Likelihood Estimate" }, { "code": null, "e": 156, "s": 71, "text": "NOTE : It is advised to read the prerequisite article before movi...
ushort keyword in C#
22 Jun, 2020 Keywords are the words in a language that are used for some internal process or represent some predefined actions. ushort is a keyword that is used to declare a variable which can store an unsigned integer value from the range 0 to 65,535. It is an alias of System.UInt16. Syntax: ushort variable_name = val...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2020" }, { "code": null, "e": 301, "s": 28, "text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. ushort is a keyword that is used to declare a variable which...
Merge two DataFrames with different amounts of columns in PySpark
21 Dec, 2021 In this article, we will discuss how to perform union on two dataframes with different amounts of columns in PySpark in Python. Here we are having 3 columns named id, name, and address. Python3 # importing moduleimport pyspark # import when and lit functionfrom pyspark.sql.functions import when, lit # impo...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Dec, 2021" }, { "code": null, "e": 156, "s": 28, "text": "In this article, we will discuss how to perform union on two dataframes with different amounts of columns in PySpark in Python." }, { "code": null, "e": 214, "...
How to change the width of an iframe to 100% using JavaScript ?
30 Jul, 2020 Given an HTML document containing an <iframe> element and the task is to change the width of the <iframe> element to 100% with the help of JavaScript. There are two methods to change the width of the iframe which are discussed below: Method 1: This method uses id attribute of iframe with width property to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2020" }, { "code": null, "e": 262, "s": 28, "text": "Given an HTML document containing an <iframe> element and the task is to change the width of the <iframe> element to 100% with the help of JavaScript. There are two methods to...
Johnson’s algorithm for All-pairs shortest paths
23 Jun, 2022 The problem is to find the shortest paths between every pair of vertices in a given weighted directed Graph and weights may be negative. We have discussed Floyd Warshall Algorithm for this problem. The time complexity of the Floyd Warshall Algorithm is Θ(V3). Using Johnson’s algorithm, we can find all pa...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 314, "s": 52, "text": "The problem is to find the shortest paths between every pair of vertices in a given weighted directed Graph and weights may be negative. We have discussed Floyd Warshall Algo...