title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Array.GetValue() Method in C# with Examples | Set - 1 - GeeksforGeeks
10 May, 2020 Array.GetValue() Method in C# is used to gets the value of the specified element in the current Array. There are total 8 methods in the overload list of this method which are as follows: Array.GetValue(Int32, Int32) Array.GetValue(Int64, Int64) Array.GetValue(Int32) Array.GetValue(Int64) Array.GetValue(Int...
[ { "code": null, "e": 24552, "s": 24524, "text": "\n10 May, 2020" }, { "code": null, "e": 24739, "s": 24552, "text": "Array.GetValue() Method in C# is used to gets the value of the specified element in the current Array. There are total 8 methods in the overload list of this metho...
Decimal to Binary using recursion and without using power operator - GeeksforGeeks
04 Aug, 2021 Given an integer N, the task is convert and print the binary equaiva;ent of N.Examples: Input: N = 13 Output: 1101Input: N = 15 Output: 1111 Approach Write a recursive function that takes an argument N and recursively calls itself with the value N / 2 as the new argument and prints N % 2 after the ca...
[ { "code": null, "e": 24379, "s": 24351, "text": "\n04 Aug, 2021" }, { "code": null, "e": 24469, "s": 24379, "text": "Given an integer N, the task is convert and print the binary equaiva;ent of N.Examples: " }, { "code": null, "e": 24524, "s": 24469, "text": "...
Java Program to Check Whether the String Consists of Special Characters
30 Mar, 2022 Special characters are those characters that are neither a letter nor a number. Whitespace is also not considered a special character. Examples of special characters are:- !(exclamation mark), , (comma), #(hash), etc. Methods: Using Character classUsing regular expressions Using Character class Using regu...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Mar, 2022" }, { "code": null, "e": 273, "s": 54, "text": "Special characters are those characters that are neither a letter nor a number. Whitespace is also not considered a special character. Examples of special characters are:- !(...
Python | pack() method in Tkinter
22 Feb, 2022 The Pack geometry manager packs widgets relative to the earlier widget. Tkinter literally packs all the widgets one after the other in a window. We can use options like fill, expand, and side to control this geometry manager.Compared to the grid manager, the pack manager is somewhat limited, but it’s much...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Feb, 2022" }, { "code": null, "e": 413, "s": 52, "text": "The Pack geometry manager packs widgets relative to the earlier widget. Tkinter literally packs all the widgets one after the other in a window. We can use options like fill...
How to get specific key value from array in PHP ?
22 Nov, 2021 In this article, we will see how to get specific key values from the given array. PHP array is a collection of items that are stored under keys. There are two possible types of keys: strings and integers. For any type of key, there is a common syntax to get a specific value by key — square brackets. Exampl...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2021" }, { "code": null, "e": 329, "s": 28, "text": "In this article, we will see how to get specific key values from the given array. PHP array is a collection of items that are stored under keys. There are two possible types o...
Doubly Circular Linked List | Set 1 (Introduction and Insertion)
13 Jun, 2022 Prerequisite: Doubly Linked list, Circular Linked List Circular Doubly Linked List has properties of both doubly linked list and circular linked list in which two consecutive elements are linked or connected by previous and next pointer and the last node points to first node by next pointer and also the fi...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 413, "s": 52, "text": "Prerequisite: Doubly Linked list, Circular Linked List Circular Doubly Linked List has properties of both doubly linked list and circular linked list in which two consecutive...
Difference between Django and PHP
10 Dec, 2020 In the present world, many new frameworks have emerged in web technology. One such framework is Django which is based on Python. PHP has been in use for several years and has been serving as a powerful scripting language especially for backend connectivity. This article compares and contrasts Django and PH...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2020" }, { "code": null, "e": 338, "s": 28, "text": "In the present world, many new frameworks have emerged in web technology. One such framework is Django which is based on Python. PHP has been in use for several years and has ...
Starting with first Servlet Application
13 Jan, 2022 To get started with Servlets, let’s first start with a simple Servlet application i.e LifeCycle application, that will demonstrate the implementation of the init(), service() and destroy() methods.First of all it is important to understand that if we are developing any Servlet application, it will handle s...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jan, 2022" }, { "code": null, "e": 678, "s": 52, "text": "To get started with Servlets, let’s first start with a simple Servlet application i.e LifeCycle application, that will demonstrate the implementation of the init(), service()...
Explosion Animation in Canvas
01 Feb, 2021 Explosion animation can be created using canvas in HTML. Approach: At first, we have to create a canvas element in HTML and get its reference in JavaScript. All the elements and animations are controlled using JavaScript functions. Some steps required are: Use the canvas methods to get the canvas and the c...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2021" }, { "code": null, "e": 85, "s": 28, "text": "Explosion animation can be created using canvas in HTML." }, { "code": null, "e": 285, "s": 85, "text": "Approach: At first, we have to create a canvas elem...
Confidential Machine Learning - ConfML | Towards Data Science
Confidential Machine Learning - ConfML - is a protocol that data owners follow when sharing training data with an ML service. This protocol maintains the confidentiality of the training data during the training process. The confidentiality of data-at-rest and data-in-transit can be ensured through encryption. The data ...
[ { "code": null, "e": 392, "s": 172, "text": "Confidential Machine Learning - ConfML - is a protocol that data owners follow when sharing training data with an ML service. This protocol maintains the confidentiality of the training data during the training process." }, { "code": null, "e"...
CakePHP - Installation
In this chapter, we will show the installation of CakePHP 4.0.3. The minimum PHP version that we need to install is PHP 7.3. You need to have PHP 7.3 and Composer to be installed before starting the installation of cakePHP. For Windows users, install or update WAMP server with PHP version > 7.3. Go to www.wampserver.co...
[ { "code": null, "e": 2367, "s": 2242, "text": "In this chapter, we will show the installation of CakePHP 4.0.3. The minimum PHP version that we need to install is PHP 7.3." }, { "code": null, "e": 2466, "s": 2367, "text": "You need to have PHP 7.3 and Composer to be installed bef...
MATLAB - Matrix Multiplication
Consider two matrices A and B. If A is an m x n matrix and B is an n x p matrix, they could be multiplied together to produce an m x p matrix C. Matrix multiplication is possible only if the number of columns n in A is equal to the number of rows n in B. In matrix multiplication, the elements of the rows in the first m...
[ { "code": null, "e": 2396, "s": 2141, "text": "Consider two matrices A and B. If A is an m x n matrix and B is an n x p matrix, they could be multiplied together to produce an m x p matrix C. Matrix multiplication is possible only if the number of columns n in A is equal to the number of rows n in B...
Decimal.ToInt64() Method in C# - GeeksforGeeks
30 Jan, 2019 This method is used to convert the value of the specified Decimal to the equivalent 64-bit signed integer. A user can also convert a Decimal value to a 64-bit integer by using the Explicit assignment operator. Syntax: public static long ToInt64 (decimal d); Here, the value is the decimal number which is to...
[ { "code": null, "e": 24936, "s": 24908, "text": "\n30 Jan, 2019" }, { "code": null, "e": 25146, "s": 24936, "text": "This method is used to convert the value of the specified Decimal to the equivalent 64-bit signed integer. A user can also convert a Decimal value to a 64-bit inte...
How to update the state of react components using callback? - GeeksforGeeks
12 Sep, 2021 The state is mutable in react components. To make the React applications interactive we almost use state in every react component. The state is initialized with some value and based on user interaction with the application we update the state of the component at some point in time using setState method. se...
[ { "code": null, "e": 24456, "s": 24428, "text": "\n12 Sep, 2021" }, { "code": null, "e": 25416, "s": 24456, "text": "The state is mutable in react components. To make the React applications interactive we almost use state in every react component. The state is initialized with so...
Validate IPv6 address using ReGex patterns in C++
Given an IP Address, the task is to validate this IP address and check whether it is IPv6 or not with the help of ReGex(Regular Expression). If the IP Address is valid then print “IPv6 Address” otherwise print “Not”. A valid IPv4 address is an IP in the form "XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX" where each Xi digit...
[ { "code": null, "e": 1279, "s": 1062, "text": "Given an IP Address, the task is to validate this IP address and check whether it is IPv6 or not with the help of ReGex(Regular Expression). If the IP Address is valid then print “IPv6 Address” otherwise print “Not”." }, { "code": null, "e":...
Bulma - Form controls
Bulma contains different types of form control classes for creating variety of forms. It supports following form control classes − .label .label .input .input .textarea .textarea .select .select .checkbox .checkbox .radio .radio .button .button .help .help The form control classes can be wrapped in the .control class c...
[ { "code": null, "e": 1829, "s": 1698, "text": "Bulma contains different types of form control classes for creating variety of forms. It supports following form control classes −" }, { "code": null, "e": 1836, "s": 1829, "text": ".label" }, { "code": null, "e": 1843, ...
Who’s talking? — Using K-Means clustering to sort neural events in Python | by Carsten Klein | Towards Data Science
Epilepsy is a form of brain disorder in which an excess of synchronous electrical brain activity leads to seizures which can range from having no outward symptom at all to jerking movements (tonic-clonic seizure) and loss of awareness (absence seizure). For some epilepsy patients surgical removal of the effected brain ...
[ { "code": null, "e": 920, "s": 172, "text": "Epilepsy is a form of brain disorder in which an excess of synchronous electrical brain activity leads to seizures which can range from having no outward symptom at all to jerking movements (tonic-clonic seizure) and loss of awareness (absence seizure). F...
How to check if two numbers (m,n) are amicable or not using Python?
Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. (A proper divisor of a number is a positive factor of that number other than the number itself. For example, the proper divisors of 6 are 1, 2, and 3.) In python, you can find these numbers by...
[ { "code": null, "e": 1342, "s": 1062, "text": "Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. (A proper divisor of a number is a positive factor of that number other than the number itself. For example, the proper divis...
Median of Two Sorted Arrays in C++
Suppose we have two arrays; these arrays are sorted. So we have to find the median of these two arrays. So if the arrays are like [1,5,8] and [2,3,6,9], then the answer will be 5. To solve this, we will follow these steps − Define a function findMedianSortedArrays, this will take nums1 and nums2 arrays Define a functio...
[ { "code": null, "e": 1242, "s": 1062, "text": "Suppose we have two arrays; these arrays are sorted. So we have to find the median of these two arrays. So if the arrays are like [1,5,8] and [2,3,6,9], then the answer will be 5." }, { "code": null, "e": 1286, "s": 1242, "text": "To...
BabelJS - Babel Plugins
BabelJS is a javascript compiler that changes the syntax of the code given based on presets and plugins available. The flow of babel compilation involves the following 3 parts − parsing transforming printing The code given to babel is given back as it is with just the syntax changed. We have already seen presets being ...
[ { "code": null, "e": 2273, "s": 2095, "text": "BabelJS is a javascript compiler that changes the syntax of the code given based on presets and plugins available. The flow of babel compilation involves the following 3 parts −" }, { "code": null, "e": 2281, "s": 2273, "text": "pars...
How to Make Beautiful Small Multiple US Maps in R | by Connor Rothschild | Towards Data Science
I recently came across a large dataset of US refugee acceptance over time. It includes data on where refugees come from, as well as which states they are received by. In previous projects, I’ve explored how migration has unfolded across places: where migrants travel, where they go missing, and where their journeys come...
[ { "code": null, "e": 338, "s": 171, "text": "I recently came across a large dataset of US refugee acceptance over time. It includes data on where refugees come from, as well as which states they are received by." }, { "code": null, "e": 508, "s": 338, "text": "In previous project...
Design a Stack With Increment Operation in C++
Suppose we want to design a stack that supports the following operations. CustomStack(int maxSize) This initializes the object with maxSize which is the maximum number of elements in the stack or do nothing if the stack reached the maxSize. CustomStack(int maxSize) This initializes the object with maxSize which is the ...
[ { "code": null, "e": 1136, "s": 1062, "text": "Suppose we want to design a stack that supports the following operations." }, { "code": null, "e": 1303, "s": 1136, "text": "CustomStack(int maxSize) This initializes the object with maxSize which is the maximum number of elements in...
2D Array Interpolation in MATLAB - GeeksforGeeks
06 Aug, 2021 In this article, we are going to discuss “2D Array Interpolation” in MATLAB with the help of two linspace() and interp2() functions. The linspace() function is used for the generation linearly spaced vector. Syntax: linspace(a, b) linspace(a, b, n) Here, linspace(a, b) is used to return a row vector of 10...
[ { "code": null, "e": 24255, "s": 24227, "text": "\n06 Aug, 2021" }, { "code": null, "e": 24389, "s": 24255, "text": "In this article, we are going to discuss “2D Array Interpolation” in MATLAB with the help of two linspace() and interp2() functions. " }, { "code": null, ...
Processing SCADA Alarm Data Offline with ELK | by Patrick Berry | Towards Data Science
This article kicks off a series where we will use open-source Data Science tools to analyse alarm and event logs produced by SCADA systems. But first, what are SCADA systems and why do their alarms need to be analysed? Industrial control systems (ICS, a.k.a SCADA systems) are used to control manufacturing facilities su...
[ { "code": null, "e": 391, "s": 172, "text": "This article kicks off a series where we will use open-source Data Science tools to analyse alarm and event logs produced by SCADA systems. But first, what are SCADA systems and why do their alarms need to be analysed?" }, { "code": null, "e":...
How to use NameValueCollection class in C#?
The NameValueCollection sets more than one value for a single key. Now let us see how to use them in our C# program. Set the collection − static NameValueCollection GetCollection() { NameValueCollection myCollection = new NameValueCollection(); myCollection.Add("Tim", "One"); myCollection.Add("John", "Two"); ...
[ { "code": null, "e": 1179, "s": 1062, "text": "The NameValueCollection sets more than one value for a single key. Now let us see how to use them in our C# program." }, { "code": null, "e": 1200, "s": 1179, "text": "Set the collection −" }, { "code": null, "e": 1446, ...
Set up a Dask Cluster for Distributed Machine Learning | by Aadarsh Vadakattu | Towards Data Science
Collaboratively written by Pablo Salvador Lopez and Aadarsh Vadakattu If you know what Dask is capable of and how it can distribute your machine learning processes, you are in the right place! This article will explain how to create a simple SSH cluster, which you can use as a foundation to implement a Dask environment...
[ { "code": null, "e": 242, "s": 172, "text": "Collaboratively written by Pablo Salvador Lopez and Aadarsh Vadakattu" }, { "code": null, "e": 545, "s": 242, "text": "If you know what Dask is capable of and how it can distribute your machine learning processes, you are in the right ...
How to Download and Extract Tar Files with One Command in Linux
We can download any required file form the web using the linux terminal. But many times it is found that the downloaded file is a zipped file which is in tar format. In this article we will see how to download and extract the file in a single command. The wget command downloads the data form the given URL while the tar...
[ { "code": null, "e": 1314, "s": 1062, "text": "We can download any required file form the web using the linux terminal. But many times it is found that the downloaded file is a zipped file which is in tar format. In this article we will see how to download and extract the file in a single command." ...
All Topological Sorts of a Directed Acyclic Graph - GeeksforGeeks
13 Jul, 2021 Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.Given a DAG, print all topological sorts of the graph. For example,...
[ { "code": null, "e": 37678, "s": 37650, "text": "\n13 Jul, 2021" }, { "code": null, "e": 37973, "s": 37678, "text": "Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering...
How to make custom dialog with rounded corners in android?
This example demonstrate about How to make custom dialog with rounded corners in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"...
[ { "code": null, "e": 1152, "s": 1062, "text": "This example demonstrate about How to make custom dialog with rounded corners in android." }, { "code": null, "e": 1281, "s": 1152, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requi...
How to update the plot title with Matplotlib using animation?
To update the plot title with Matplotlib using animation, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create a new figure or activate an existing figure using figure() method. Create x and y data points using numpy. Get the current axis. Add text to the ...
[ { "code": null, "e": 1154, "s": 1062, "text": "To update the plot title with Matplotlib using animation, we can take the following steps −" }, { "code": null, "e": 1230, "s": 1154, "text": "Set the figure size and adjust the padding between and around the subplots." }, { ...
Python Pandas - Plot a Grouped Horizontal Bar Chart will all the columns
For a grouped Horizontal Bar Chart with all the columns, create a Bar Chart using the barh() and do not set the a and y values. At first, import the required libraries − import pandas as pd import matplotlib.pyplot as plt Create a DataFrame with 3 columns − dataFrame = pd.DataFrame({"Car": ['Bentley', 'Lexus', 'BMW', '...
[ { "code": null, "e": 1190, "s": 1062, "text": "For a grouped Horizontal Bar Chart with all the columns, create a Bar Chart using the barh() and do not set the a and y values." }, { "code": null, "e": 1232, "s": 1190, "text": "At first, import the required libraries −" }, { ...
How to create facets in vertical order using ggplot2 in R?
To create facets in vertical order using ggplot2 in R, we can follow the below steps − First of all, create a data frame. Then, create facetted plot with facet_grid function. After that, create the facetted plot with facet_wrap function. Let's create a data frame as shown below − Live Demo x<-rnorm(20) y<-rnorm(20) Gr...
[ { "code": null, "e": 1149, "s": 1062, "text": "To create facets in vertical order using ggplot2 in R, we can follow the below steps −" }, { "code": null, "e": 1184, "s": 1149, "text": "First of all, create a data frame." }, { "code": null, "e": 1237, "s": 1184, ...
Refinement of Semi-Additive Measures in DAX | by Salvatore Cagliari | Towards Data Science
In my Story, A hard lesson on Filter Context with Power BI and DAX, I explained some details about Semi-Additive Measures and possible side effects. After discussing these solutions with some clients, we discovered some weird consequences of the base Measure. Now I would like to show you how to work around these conseq...
[ { "code": null, "e": 321, "s": 172, "text": "In my Story, A hard lesson on Filter Context with Power BI and DAX, I explained some details about Semi-Additive Measures and possible side effects." }, { "code": null, "e": 562, "s": 321, "text": "After discussing these solutions with...
Creating a Dropdown Menu using Tkinter
Navigation is the most important part of any application, as it improves the user experience in an aesthetic way. Using Tkinter, we can create menus and submenus very efficiently. Tkinter has an inbuilt function to create menus and these can be invoked with another tkinter widget or window. Tkinter.Menu module provides...
[ { "code": null, "e": 1242, "s": 1062, "text": "Navigation is the most important part of any application, as it improves the user\nexperience in an aesthetic way. Using Tkinter, we can create menus and\nsubmenus very efficiently." }, { "code": null, "e": 1538, "s": 1242, "text": "...
SQL - NULL Values
The SQL NULL is the term used to represent a missing value. A NULL value in a table is a value in a field that appears to be blank. A field with a NULL value is a field with no value. It is very important to understand that a NULL value is different than a zero value or a field that contains spaces. The basic syntax of...
[ { "code": null, "e": 2585, "s": 2453, "text": "The SQL NULL is the term used to represent a missing value. A NULL value in a table is a value in a field that appears to be blank." }, { "code": null, "e": 2754, "s": 2585, "text": "A field with a NULL value is a field with no value...
What is Bitwise AND Operator (&) in JavaScript?
It performs a Boolean AND operation on each bit of its integer arguments. You can try to run the following code to learn how to work with Bitwise AND Operator − <html> <body> <script> var a = 2; // Bit presentation 10 var b = 3; // Bit presentation 11 document.write("(a & b) => "); ...
[ { "code": null, "e": 1136, "s": 1062, "text": "It performs a Boolean AND operation on each bit of its integer arguments." }, { "code": null, "e": 1223, "s": 1136, "text": "You can try to run the following code to learn how to work with Bitwise AND Operator −" }, { "code":...
Using String Methods in Pandas. How to apply string methods to columns... | by Luay Matalka | Towards Data Science
Often in a pandas dataframe we have columns that contain string values. Luckily, pandas provides an easy way of applying string methods to whole columns which are just pandas series objects. We can access the values of these series objects (or columns) as strings and apply string methods to them by using the str attrib...
[ { "code": null, "e": 545, "s": 172, "text": "Often in a pandas dataframe we have columns that contain string values. Luckily, pandas provides an easy way of applying string methods to whole columns which are just pandas series objects. We can access the values of these series objects (or columns) as...
JDBC - Result Sets
The SQL statements that read data from a database query, return the data in a result set. The SELECT statement is the standard way to select rows from a database and view them in a result set. The java.sql.ResultSet interface represents the result set of a database query. A ResultSet object maintains a cursor that poin...
[ { "code": null, "e": 2435, "s": 2162, "text": "The SQL statements that read data from a database query, return the data in a result set. The SELECT statement is the standard way to select rows from a database and view them in a result set. The java.sql.ResultSet interface represents the result set o...
Maximum and minimum of an array using minimum number of comparisons in C
We are given with an array of integers. The task is to find the minimum and maximum element of the array in the minimum number of comparisons. Input Arr[] = { 1,2,4,5,-3,91 } Output Maximum element : 91 Minimum Element : -3 Explanation − Here to minimize the number of comparisons, we will initialize the maximum and m...
[ { "code": null, "e": 1205, "s": 1062, "text": "We are given with an array of integers. The task is to find the minimum and maximum element of the array in the minimum number of comparisons." }, { "code": null, "e": 1212, "s": 1205, "text": "Input " }, { "code": null, ...
How to get information of all collections present in MongoDB database using Node.js ? - GeeksforGeeks
12 Feb, 2021 MongoDB, the most popular NoSQL database, we can count the number of documents in MongoDB Collection using the MongoDB collection.countDocuments() function. The mongodb module is used for connecting the MongoDB database as well as used for manipulating the collections and databases in MongoDB. Installing ...
[ { "code": null, "e": 24534, "s": 24506, "text": "\n12 Feb, 2021" }, { "code": null, "e": 24830, "s": 24534, "text": "MongoDB, the most popular NoSQL database, we can count the number of documents in MongoDB Collection using the MongoDB collection.countDocuments() function. The mo...
Check if given four points form a Square
In a 2d plane, four points are given. This algorithm will check whether four points are forming a square or not. Checking for a square we have to match these conditions − All four sides formed by given points are same. All two connecting sides are right-angled. Input: Four points {(20, 10), (10, 20), (20, 20), (10, 10)...
[ { "code": null, "e": 1175, "s": 1062, "text": "In a 2d plane, four points are given. This algorithm will check whether four points are forming a square or not." }, { "code": null, "e": 1233, "s": 1175, "text": "Checking for a square we have to match these conditions −" }, { ...
Database Management Systems | Set 10 - GeeksforGeeks
27 Mar, 2017 Following questions have been asked in GATE CS 2005 exam. 1) Let r be a relation instance with schema R = (A, B, C, D). We define r1 = ‘select A,B,C from r’ and r2 = ‘select A, D from r’. Let s = r1 * r2 where * denotes natural join. Given that the decomposition of r into r1 and r2 is lossy, which one of t...
[ { "code": null, "e": 29624, "s": 29596, "text": "\n27 Mar, 2017" }, { "code": null, "e": 29682, "s": 29624, "text": "Following questions have been asked in GATE CS 2005 exam." }, { "code": null, "e": 30021, "s": 29682, "text": "1) Let r be a relation instance ...
Node.js push() function - GeeksforGeeks
14 Oct, 2021 push() is an array function from Node.js that is used to add element to the end of an array. Syntax: array_name.push(element) Parameter: This function takes parameter that has to be added to the array. It can take multiple elements also. Return type: The function returns the array after adding the element...
[ { "code": null, "e": 24296, "s": 24268, "text": "\n14 Oct, 2021" }, { "code": null, "e": 24389, "s": 24296, "text": "push() is an array function from Node.js that is used to add element to the end of an array." }, { "code": null, "e": 24397, "s": 24389, "text"...
strlwr() function in C - GeeksforGeeks
04 Oct, 2018 The strlwr( ) function is a built-in function in C and is used to convert a given string into lowercase. Syntax: char *strlwr(char *str); Parameter: str: This represents the given string which we want to convert into lowercase. Returns: It returns the modified string obtained after converting the characte...
[ { "code": null, "e": 24207, "s": 24179, "text": "\n04 Oct, 2018" }, { "code": null, "e": 24312, "s": 24207, "text": "The strlwr( ) function is a built-in function in C and is used to convert a given string into lowercase." }, { "code": null, "e": 24320, "s": 24312...
Java Regex Example - Character \n Match
The character \n matches the newline character. The following example shows the usage of character matching. package com.tutorialspoint; import java.util.regex.Matcher; import java.util.regex.Pattern; public class CharactersDemo { private static final String REGEX = "\n"; private static final String INPUT = "ab...
[ { "code": null, "e": 2172, "s": 2124, "text": "The character \\n matches the newline character." }, { "code": null, "e": 2233, "s": 2172, "text": "The following example shows the usage of character matching." }, { "code": null, "e": 2820, "s": 2233, "text": "p...
CSS | shape-outside Property - GeeksforGeeks
21 Nov, 2019 The shape-outside property is used to define the shape that the adjacent inline content may wrap around. It can be used to define complex shapes including images that can be used to wrap text around instead of simple boxes. Syntax: shape-outside: <basic-shape> | <shape-box> | <image> | none | initial | in...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n21 Nov, 2019" }, { "code": null, "e": 25600, "s": 25376, "text": "The shape-outside property is used to define the shape that the adjacent inline content may wrap around. It can be used to define complex shapes including images t...
8085 Program to Divide two 8 Bit numbers
In this program, we will see how to divide two 8-bit numbers using 8085 microprocessor. Write 8085 Assembly language program to divide two 8-bit numbers and store the result at locations 8020H and 8021H. The 8085 has no division operation. To get the result of the division, we should use the repetitive subtraction meth...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this program, we will see how to divide two 8-bit numbers using 8085 microprocessor." }, { "code": null, "e": 1266, "s": 1150, "text": "Write 8085 Assembly language program to divide two 8-bit numbers and store the result at locat...
Java - The TreeMap Class
The TreeMap class implements the Map interface by using a tree. A TreeMap provides an efficient means of storing key/value pairs in sorted order, and allows rapid retrieval. You should note that, unlike a hash map, a tree map guarantees that its elements will be sorted in an ascending key order. Following is the list o...
[ { "code": null, "e": 2551, "s": 2377, "text": "The TreeMap class implements the Map interface by using a tree. A TreeMap provides an efficient means of storing key/value pairs in sorted order, and allows rapid retrieval." }, { "code": null, "e": 2674, "s": 2551, "text": "You shou...
Plotly VS matplotlib: Which is the best library for data visualization in Python? | by Angelica Lo Duca | Towards Data Science
In this short tutorial, I show you how to quickly build a basic line chart using the plotly and matplotlib libraries. Referring to plotly, I will use the Graph Objects, which are plotly classes used to represent parts of a figure. For details regarding the Graph Objects, you can refer to the official plotly documentati...
[ { "code": null, "e": 496, "s": 172, "text": "In this short tutorial, I show you how to quickly build a basic line chart using the plotly and matplotlib libraries. Referring to plotly, I will use the Graph Objects, which are plotly classes used to represent parts of a figure. For details regarding th...
How to draw on the canvas with JavaScript?
Drawing on the HTML canvas is to be done with JavaScript. Use the HTML DOM Method getElementById() and getContext() before drawing on the canvas. For that, follow some steps − You need to use the getElementById() method to find the canvas element. Use the getContext(), which is drawing object for the canvas. It provide...
[ { "code": null, "e": 1208, "s": 1062, "text": "Drawing on the HTML canvas is to be done with JavaScript. Use the HTML DOM Method getElementById() and getContext() before drawing on the canvas." }, { "code": null, "e": 1238, "s": 1208, "text": "For that, follow some steps −" }, ...
Distinct elements in subarray using Mo's Algorithm - GeeksforGeeks
11 Jul, 2019 Given an array ‘a[]’ of size n and number of queries q. Each query can be represented by two integers l and r. Your task is to print the number of distinct integers in the subarray l to r.Given a[i] <= Examples : Input : a[] = {1, 1, 2, 1, 2, 3} q = 3 0 4 1 3 2 5 Output : 2 ...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n11 Jul, 2019" }, { "code": null, "e": 25249, "s": 25036, "text": "Given an array ‘a[]’ of size n and number of queries q. Each query can be represented by two integers l and r. Your task is to print the number of distinct integer...
P-value Explained Simply for Data Scientists | by Rahul Agarwal | Towards Data Science
Recently, I got asked about how to explain p-values in simple terms to a layperson. I found that it is hard to do that. P-Values are always a headache to explain even to someone who knows about them let alone someone who doesn’t understand statistics. I went to Wikipedia to find something and here is the definition: In...
[ { "code": null, "e": 292, "s": 172, "text": "Recently, I got asked about how to explain p-values in simple terms to a layperson. I found that it is hard to do that." }, { "code": null, "e": 424, "s": 292, "text": "P-Values are always a headache to explain even to someone who know...
Generating a SHA-256 hash from the Linux command line
There are plenty of ways to generate a hash on any operating system, but when we talk about generating an almost-unique and fixed size bit hash, then nothing can replace the SHA algorithm. Before making use of the Linux command to generate a SHA-256 hash, we must know what SHA actually is and what it is good for. SHA-2...
[ { "code": null, "e": 1251, "s": 1062, "text": "There are plenty of ways to generate a hash on any operating system, but when we talk about generating an almost-unique and fixed size bit hash, then nothing can replace the SHA algorithm." }, { "code": null, "e": 1377, "s": 1251, "t...
HTML | method Attribute - GeeksforGeeks
14 Dec, 2021 The HTML | method Attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP Methods, which are GET and POST. The method attribute can be used with the <form> element. Attribute Values: GET: It is the default value. In the GET method, after the s...
[ { "code": null, "e": 24615, "s": 24587, "text": "\n14 Dec, 2021" }, { "code": null, "e": 24862, "s": 24615, "text": "The HTML | method Attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP Methods, which are GET and ...
Write a program in C++ to remove duplicates from a given array of prime numbers
Let us suppose we have given an array N size which consists of all the prime numbers. The task is to find the duplicates in the given array and remove them. For example, Input-1 − N = 8 arr[ ] = { 2 ,2 ,2 ,3 ,3 ,3 ,5 ,7 } Output − 2 3 5 7 Explanation − In the given array of prime numbers there are some duplicates of ‘2...
[ { "code": null, "e": 1232, "s": 1062, "text": "Let us suppose we have given an array N size which consists of all the prime numbers. The task is to find the duplicates in the given array and remove them. For example," }, { "code": null, "e": 1242, "s": 1232, "text": "Input-1 −" ...
Crop and Identify Specific Objects in an Image or Video in the Browser using Machine Learning | by Neeraj Krishna | Towards Data Science
Tensorflow.js allows us to train models and run inference entirely client-side in the browser. This unlocks a whole bunch of new opportunities! In this article, we will build a tool which allows the user to crop a specific part of an Image, and run inference on the cropped Image. We will use an Image Classification mod...
[ { "code": null, "e": 316, "s": 172, "text": "Tensorflow.js allows us to train models and run inference entirely client-side in the browser. This unlocks a whole bunch of new opportunities!" }, { "code": null, "e": 595, "s": 316, "text": "In this article, we will build a tool whic...
Match MongoDB documents with field value greater than a specific number and fetch them?
To match, use $match in MongoDB. For values greater than a specific number, use $gt. Let us create a collection with documents − > db.demo730.insertOne({"Name" : "Chris", "Marks" : 33 }); { "acknowledged" : true, "insertedId" : ObjectId("5eac54cd56e85a39df5f6339") } > db.demo730.insertOne({ "Name" : "David", "Mar...
[ { "code": null, "e": 1191, "s": 1062, "text": "To match, use $match in MongoDB. For values greater than a specific number, use $gt. Let us create a collection with documents −" }, { "code": null, "e": 1624, "s": 1191, "text": "> db.demo730.insertOne({\"Name\" : \"Chris\", \"Marks...
Unique Number of Occurrences in Python
Suppose we have an array. We have to check whether each element has unique number of occurrences. If no such element is present then return false, otherwise true. So if the array is like [1, 1, 2, 2, 2, 3, 4, 4, 4, 4], then it will return true as the element 1 is present two times, 2 is present three times, 3 is presen...
[ { "code": null, "e": 1418, "s": 1062, "text": "Suppose we have an array. We have to check whether each element has unique number of occurrences. If no such element is present then return false, otherwise true. So if the array is like [1, 1, 2, 2, 2, 3, 4, 4, 4, 4], then it will return true as the el...
How to save and load cookies using Python Selenium WebDriver?
We can save and load cookies with Selenium webdriver in Python. A cookie is an information saved by the browser about the application. A cookie is stored in a key value pair. It is generally used to hold the credentials of users. It also stores information about the user actions on the browser within the cookie file. W...
[ { "code": null, "e": 1237, "s": 1062, "text": "We can save and load cookies with Selenium webdriver in Python. A cookie is an information saved by the browser about the application. A cookie is stored in a key value pair." }, { "code": null, "e": 1435, "s": 1237, "text": "It is g...
CSS cross-fade Property - GeeksforGeeks
16 Jul, 2020 The cross-fade property is used to form a kind of a blend between two given images. In simple words, it is used to mix to images into one another in terms of percentage. Syntax: cross-fade( <image, <image>, <percentage> ) Property value: It has not property values, instead, it takes two images and a number...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25155, "s": 24985, "text": "The cross-fade property is used to form a kind of a blend between two given images. In simple words, it is used to mix to images into one another in terms of perce...
Difference between res.send and res.json in Express.js
Whenever an Express application server receives an HTTP request, it will provide the developer with an object, commonly referred to as res. For example, app.get('/test', (req, res) => { // use req and res here }) The res object basically refers to the response that'll be sent out as part of this API call. The res.se...
[ { "code": null, "e": 1215, "s": 1062, "text": "Whenever an Express application server receives an HTTP request, it will\nprovide the developer with an object, commonly referred to as res. For\nexample," }, { "code": null, "e": 1278, "s": 1215, "text": "app.get('/test', (req, res)...
Write a Golang program to find duplicate elements in a given array
Input Array = [1, 3, 5, 6, 1] => Duplicate element is 1; Input Array = [1, 3, 5, 6, 7] => return -1 Step 1: Define a method that accepts an array. Step 2: Declare a visited map. Step 3: Iterate the given array. If the element exists in the visited map, then return that element. Step 4: Else, return -1. Live Demo packag...
[ { "code": null, "e": 1119, "s": 1062, "text": "Input Array = [1, 3, 5, 6, 1] => Duplicate element is 1;" }, { "code": null, "e": 1162, "s": 1119, "text": "Input Array = [1, 3, 5, 6, 7] => return -1" }, { "code": null, "e": 1209, "s": 1162, "text": "Step 1: Def...
Best way to store date/time in MongoDB?
There are two different ways by which you can store date/time in MongoDB. In the first approach, you can use Date objects like JavaScript. The Date object is the best way to store date/time in MongoDB. The syntax is as follows: new Date(); In the second approach, you can use ISODate(). The syntax is as follows: new ISO...
[ { "code": null, "e": 1290, "s": 1062, "text": "There are two different ways by which you can store date/time in MongoDB. In the first approach, you can use Date objects like JavaScript. The Date object is the best way to store date/time in MongoDB. The syntax is as follows:" }, { "code": nul...
Amazon RDS - Oracle Features
Oracle is very popular Relational DB which is available in the amazon RDS services with its enterprise edition features. Almost every feature of Oracle can be leveraged in the RDS platform. Below is a brief description on MYSQLs major features in RDS platform. The versions 11.2 and 12.1 are the major versions supported...
[ { "code": null, "e": 2846, "s": 2585, "text": "Oracle is very popular Relational DB which is available in the amazon RDS services with its enterprise edition features. Almost every feature of Oracle can be leveraged in the RDS platform. Below is a brief description on MYSQLs major features in RDS pl...
TypeScript - Array splice()
splice() method changes the content of an array, adding new elements while removing old elements. array.splice(index, howMany, [element1][, ..., elementN]); index − Index at which to start changing the array. index − Index at which to start changing the array. howMany − An integer indicating the number of old array el...
[ { "code": null, "e": 2146, "s": 2048, "text": "splice() method changes the content of an array, adding new elements while removing old elements." }, { "code": null, "e": 2206, "s": 2146, "text": "array.splice(index, howMany, [element1][, ..., elementN]);\n" }, { "code": n...
C++ Queue Library - top() Function
The C++ function std::priority_queue::top() returns a reference to the first element of the priority_queue. This element will be removed after performing pop operation on priority_queue. Following is the declaration for std::priority_queue::top() function form std::queue header. const value_type& top() const; const_re...
[ { "code": null, "e": 2790, "s": 2603, "text": "The C++ function std::priority_queue::top() returns a reference to the first element of the priority_queue. This element will be removed after performing pop operation on priority_queue." }, { "code": null, "e": 2883, "s": 2790, "tex...
Suspense in ReactJS
In this article, we will learn how to show a loader while the component is being lazily loaded. When the components are lazily loaded, it requires a fallback to be shown to indicate that the component is being loaded in the DOM. <Suspense> In this example, we will build a Routing application that lazily loads the compo...
[ { "code": null, "e": 1158, "s": 1062, "text": "In this article, we will learn how to show a loader while the component is being lazily loaded." }, { "code": null, "e": 1291, "s": 1158, "text": "When the components are lazily loaded, it requires a fallback to be shown to indicate ...
5 Cute Features of CatBoost | Towards Data Science
We’ve already discussed 5 boosting algorithms: AdaBoost, Gradient Boosting, XGBoost, LightGBM and CatBoost. Out of them, CatBoost is so special because of its special features that other boosting algorithms don’t have. Generally, there are two main drawbacks of boosting algorithms: Overfitting can easily happen in boos...
[ { "code": null, "e": 280, "s": 172, "text": "We’ve already discussed 5 boosting algorithms: AdaBoost, Gradient Boosting, XGBoost, LightGBM and CatBoost." }, { "code": null, "e": 391, "s": 280, "text": "Out of them, CatBoost is so special because of its special features that other...
How to get synonyms/antonyms from NLTK WordNet in Python? - GeeksforGeeks
22 Oct, 2017 WordNet is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations.WordNet’s structure makes it a useful tool for comput...
[ { "code": null, "e": 24049, "s": 24021, "text": "\n22 Oct, 2017" }, { "code": null, "e": 24409, "s": 24049, "text": "WordNet is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a disti...
Java Program for ShellSort
Shell sort is a sorting technique that is similar to insertion sort, wherein elements are sorted which are at far ends (either ends) of the array. This way, the interval size between the next and the second to last element reduces. This happens for all the elements in the array until the interval distance is reduced to...
[ { "code": null, "e": 1386, "s": 1062, "text": "Shell sort is a sorting technique that is similar to insertion sort, wherein elements are sorted which are at far ends (either ends) of the array. This way, the interval size between the next and the second to last element reduces. This happens for all ...
iptables - Unix, Linux Command
Each chain is a list of rules which can match a set of packets. Each rule specifies what to do with a packet that matches. This is called a ‘target’, which may be a jump to a user-defined chain in the same table. ACCEPT means to let the packet through. DROP means to drop the packet on the floor. QUEUE means to pa...
[ { "code": null, "e": 10794, "s": 10577, "text": "\nEach chain is a list of rules which can match a set of packets. Each\nrule specifies what to do with a packet that matches. This is called\na ‘target’, which may be a jump to a user-defined chain in the same\ntable.\n" }, { "code": null, ...
Top 10 GitHub Repos To Bookmark Right Now | by Semi Koen | Towards Data Science
GitHub is not just a version control service; it is a terrific content resource for all-things-development. From free e-books and tutorials, to interview preparation material and ‘awesome’ listicles, GitHub is the go-to learning hub for Developers eager to up-skill themselves and stay relevant. Besides: Great Developer...
[ { "code": null, "e": 476, "s": 171, "text": "GitHub is not just a version control service; it is a terrific content resource for all-things-development. From free e-books and tutorials, to interview preparation material and ‘awesome’ listicles, GitHub is the go-to learning hub for Developers eager t...
Model Validation in Python. Applying Train/Test Split, KFolds, and... | by Sadrach Pierre, Ph.D. | Towards Data Science
Scikit-learn is an open source machine learning library that provides tools for building, training and testing models. The model selection module has many functions that are useful for model testing and validation. In this post, we will discuss some of the important model selection functions in scikit-learn. Let’s get ...
[ { "code": null, "e": 482, "s": 172, "text": "Scikit-learn is an open source machine learning library that provides tools for building, training and testing models. The model selection module has many functions that are useful for model testing and validation. In this post, we will discuss some of th...
Does Python have a string 'contains' substring method?
No python doesn't have a 'contains' substring method. Instead you could use either of the below 2 methods: Python has a keyword 'in' for finding if a string is a substring of another string. For example, >>> 'ello' in 'hello world' True >>> 'no' in 'hello' False If you also need the first index of the substring, you ca...
[ { "code": null, "e": 1169, "s": 1062, "text": "No python doesn't have a 'contains' substring method. Instead you could use either of the below 2 methods:" }, { "code": null, "e": 1266, "s": 1169, "text": "Python has a keyword 'in' for finding if a string is a substring of another...
Explain the Stroke Width property of 2D shapes in JavaFX
The stroke width property specifies the width of the boundary line of a shape. You can set the width using the setWidth() method of the javafx.scene.shape.Shape class. This method accepts double value as a parameter and draws a boundary of the specified width. If you haven’t passed any value as a parameter to this meth...
[ { "code": null, "e": 1323, "s": 1062, "text": "The stroke width property specifies the width of the boundary line of a shape. You can set the width using the setWidth() method of the javafx.scene.shape.Shape class. This method accepts double value as a parameter and draws a boundary of the specified...
How to call jQuery function with JavaScript function?
To call jQuery function with a JavaScript function, try the following code. Live Demo <!DOCTYPE html> <html> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $.myjQuery = function() { alert("jQuery"); }; $(doc...
[ { "code": null, "e": 1138, "s": 1062, "text": "To call jQuery function with a JavaScript function, try the following code." }, { "code": null, "e": 1149, "s": 1138, "text": " Live Demo" }, { "code": null, "e": 1620, "s": 1149, "text": "<!DOCTYPE html>\n<html>\...
Examination Management System in C - GeeksforGeeks
28 Feb, 2022 Problem Statement: Write C program to build a Software for Examination Management System that can perform the following operations: Add/Delete the Details of the Students Attendance Monitoring of the students Set/Edit Eligibility criteria for exams Check Eligible Students for Exams Print all the records ...
[ { "code": null, "e": 25453, "s": 25425, "text": "\n28 Feb, 2022" }, { "code": null, "e": 25587, "s": 25453, "text": "Problem Statement: Write C program to build a Software for Examination Management System that can perform the following operations: " }, { "code": null, ...
Water Connection Problem - GeeksforGeeks
25 Apr, 2022 Every house in the colony has at most one pipe going into it and at most one pipe going out of it. Tanks and taps are to be installed in a manner such that every house with one outgoing pipe but no incoming pipe gets a tank installed on its roof and every house with only an incoming pipe and no outgoing pi...
[ { "code": null, "e": 25895, "s": 25867, "text": "\n25 Apr, 2022" }, { "code": null, "e": 26217, "s": 25895, "text": "Every house in the colony has at most one pipe going into it and at most one pipe going out of it. Tanks and taps are to be installed in a manner such that every h...
How to Delete Multiple Columns in R DataFrame?
19 Dec, 2021 In this article, we will discuss how to delete multiple columns in R Programming Language. We can delete multiple columns in the R dataframe by assigning null values through the list() function. Syntax: data[ , c(‘column_name1’, ‘column_name2’,...........,’column_nam en)] <- list(NULL) where, data is the i...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Dec, 2021" }, { "code": null, "e": 223, "s": 28, "text": "In this article, we will discuss how to delete multiple columns in R Programming Language. We can delete multiple columns in the R dataframe by assigning null values through t...
Print pyramid of tutorialspoint in PL/SQL
PL/SQL stands for “Procedural Language extension to SQL” . It is the mixture of SQL and Procedural features provided by programming language. It was developed by Oracle Corporation in the late 1980s as procedural extension language for SQL and the Oracle relational database. PL/SQL programs consists of blocks that can ...
[ { "code": null, "e": 1338, "s": 1062, "text": "PL/SQL stands for “Procedural Language extension to SQL” . It is the mixture of SQL and Procedural features provided by programming language. It was developed by Oracle Corporation in the late 1980s as procedural extension language for SQL and the Oracl...
HTML <td> colspan Attribute
The colspan attribute of the <td> element in HTML defines the number of columns a cell should span. Following is the syntax − <td colspan="num"> Above, num is the count of columns a cell should span. Let us now see an example to implement the colspan attribute of the <td> element − Live Demo <!DOCTYPE html> <html> <he...
[ { "code": null, "e": 1162, "s": 1062, "text": "The colspan attribute of the <td> element in HTML defines the number of columns a cell should span." }, { "code": null, "e": 1188, "s": 1162, "text": "Following is the syntax −" }, { "code": null, "e": 1207, "s": 1188...
Program to find total number of edges in a Complete Graph - GeeksforGeeks
14 Apr, 2021 Given N number of vertices of a Graph. The task is to find the total number of edges possible in a complete graph of N vertices.Complete Graph: A Complete Graph is a graph in which every pair of vertices is connected by an edge. Examples: Input : N = 3 Output : Edges = 3 Input : N = 5 Output : Edges = 1...
[ { "code": null, "e": 25241, "s": 25213, "text": "\n14 Apr, 2021" }, { "code": null, "e": 25482, "s": 25241, "text": "Given N number of vertices of a Graph. The task is to find the total number of edges possible in a complete graph of N vertices.Complete Graph: A Complete Graph is...
How to check if an object is an instance of a Class in JavaScript?
Following is the code to check if an object is an instance of a class in 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, Gene...
[ { "code": null, "e": 1148, "s": 1062, "text": "Following is the code to check if an object is an instance of a class in JavaScript −" }, { "code": null, "e": 1159, "s": 1148, "text": " Live Demo" }, { "code": null, "e": 2268, "s": 1159, "text": "<!DOCTYPE html...
Port Scanner using Python - GeeksforGeeks
08 Dec, 2021 Prerequisites: Socket Programming in Python This article is just to provide a sample code to generate a Port Scanner. This Port Scanner will work for both the Web Applications as well as remote Host. This tool has been created to provide the basic functionality of a Port Scanner. The general concept of Soc...
[ { "code": null, "e": 24782, "s": 24754, "text": "\n08 Dec, 2021" }, { "code": null, "e": 24826, "s": 24782, "text": "Prerequisites: Socket Programming in Python" }, { "code": null, "e": 25253, "s": 24826, "text": "This article is just to provide a sample code ...
Compiler Design - Quick Guide
Computers are a balanced mix of software and hardware. Hardware is just a piece of mechanical device and its functions are being controlled by a compatible software. Hardware understands instructions in the form of electronic charge, which is the counterpart of binary language in software programming. Binary language h...
[ { "code": null, "e": 2792, "s": 2193, "text": "Computers are a balanced mix of software and hardware. Hardware is just a piece of mechanical device and its functions are being controlled by a compatible software. Hardware understands instructions in the form of electronic charge, which is the counte...
Swift - Dictionaries
Swift 4 dictionaries are used to store unordered lists of values of the same type. Swift 4 puts strict checking which does not allow you to enter a wrong type in a dictionary even by mistake. Swift 4 dictionaries use unique identifier known as a key to store a value which later can be referenced and looked up through t...
[ { "code": null, "e": 2445, "s": 2253, "text": "Swift 4 dictionaries are used to store unordered lists of values of the same type. Swift 4 puts strict checking which does not allow you to enter a wrong type in a dictionary even by mistake." }, { "code": null, "e": 2750, "s": 2445, ...
Create Virtual Environment using “virtualenv” and add it to Jupyter Notebook | by B. Chen | Towards Data Science
Here is the article outline: Why need Virtual Environment? What is the difference between virtualenv, virtualenvwrapper, penv and venv? Create a Virtual Environment using virtualenv Add Virtual Environment to Juypter Notebook Like other programming language, Python has its own way of downloading, storing and resolving ...
[ { "code": null, "e": 201, "s": 172, "text": "Here is the article outline:" }, { "code": null, "e": 231, "s": 201, "text": "Why need Virtual Environment?" }, { "code": null, "e": 308, "s": 231, "text": "What is the difference between virtualenv, virtualenvwrapp...
CICS - Control Operations
CICS Program Control Program (PCP) manages the flow of application programs. All the application programs must have an entry in the Processing Program Table. Following are the commands which are used for program control services − XCTL Link Load Release Return The application programs which execute under CICS have vari...
[ { "code": null, "e": 2157, "s": 1926, "text": "CICS Program Control Program (PCP) manages the flow of application programs. All the application programs must have an entry in the Processing Program Table. Following are the commands which are used for program control services −" }, { "code": ...
Absolute Values Sum Minimization in JavaScript
Suppose, we are given a sorted array of integers, let us call it arr. We are required to find such an integer x that the value of − abs(a[0] - x) + abs(a[1] - x) + ... + abs(a[a.length - 1] - x) is the smallest possible (here abs denote the absolute value). If there are several possible answers, output the smallest one...
[ { "code": null, "e": 1194, "s": 1062, "text": "Suppose, we are given a sorted array of integers, let us call it arr. We are required to find such an integer x that the value of −" }, { "code": null, "e": 1257, "s": 1194, "text": "abs(a[0] - x) + abs(a[1] - x) + ... + abs(a[a.leng...
A creative C++ program to Zoom digits of an integer - GeeksforGeeks
29 May, 2017 Write a C (or C++) program to ZOOM (magnify) the digits of an integer. It should take an integer from the user and display each digit of the integer in magnified form using some pattern. Examples: Input : 123 Output : @ @@ @ @ @@@@@ ------------------------------- @@@@ @ @ @ @ @@@@ ----------...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n29 May, 2017" }, { "code": null, "e": 24399, "s": 24212, "text": "Write a C (or C++) program to ZOOM (magnify) the digits of an integer. It should take an integer from the user and display each digit of the integer in magnified f...
C# | Dictionary.ContainsKey() Method - GeeksforGeeks
01 Feb, 2019 This method is used to check whether the Dictionary<TKey,TValue> contains the specified key or not. Syntax: public bool ContainsKey (TKey key); Here, the key is the Key which is to be located in the Dictionary. Return Value: This method will return true if the Dictionary contains an element with the speci...
[ { "code": null, "e": 24594, "s": 24566, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24694, "s": 24594, "text": "This method is used to check whether the Dictionary<TKey,TValue> contains the specified key or not." }, { "code": null, "e": 24702, "s": 24694, ...
Count Fibonacci numbers in given range in O(Log n) time and O(1) space in C++
We are given the range having start and end numbers and the task is to calculate the total count of Fibonacci numbers available between the given range in O(Log n) time and O(1) space. Fibonacci numbers are the sequence of numbers known as Fibonacci sequence where every new number is the sum of the last two preceding n...
[ { "code": null, "e": 1247, "s": 1062, "text": "We are given the range having start and end numbers and the task is to calculate the total count of Fibonacci numbers available between the given range in O(Log n) time and O(1) space." }, { "code": null, "e": 1390, "s": 1247, "text"...
Python OpenCV Overlaying or Blending Two Images
Theory of Computation In this article, you will learn how to overlay or blend two images, one over another using Python OpenCV. OpenCV is a free, open source library which is used for computer vision. It provides good support in Machine Learning, Face Recognition, Deep Learning, etc. In the previous articles, we have u...
[ { "code": null, "e": 112, "s": 90, "text": "Theory of Computation" }, { "code": null, "e": 218, "s": 112, "text": "In this article, you will learn how to overlay or blend two images, one over another using Python OpenCV." }, { "code": null, "e": 763, "s": 218, ...
Google Cloud Platform - Filestore - GeeksforGeeks
01 Dec, 2020 GCP’s Filestore is a managed file storage service for applications that require a file system interface and a shared file system for data. It gives the user a native experience for standing up managed network detached storage with their VM in the compute engine and Google Kubernetes Engine. It offers low l...
[ { "code": null, "e": 23837, "s": 23809, "text": "\n01 Dec, 2020" }, { "code": null, "e": 24432, "s": 23837, "text": "GCP’s Filestore is a managed file storage service for applications that require a file system interface and a shared file system for data. It gives the user a nati...
How to plot 3D graphs using Python Matplotlib?
To plot 3D graphs using Python, we can take the following steps − Create a new figure or activate an existing figure using figure() method. Create a new figure or activate an existing figure using figure() method. Get the 3D axes object. Get the 3D axes object. Make x, y, and z lists for data points. Make x, y, and z l...
[ { "code": null, "e": 1128, "s": 1062, "text": "To plot 3D graphs using Python, we can take the following steps −" }, { "code": null, "e": 1202, "s": 1128, "text": "Create a new figure or activate an existing figure using figure() method." }, { "code": null, "e": 1276,...
Clojure - Vectors get
Returns the element at the index position in the vector. Following is the syntax. (get vec index) Parameters − ‘vec’ is the set of elements in the vector. ‘index’ is the element at the index position which needs to be returned. Return Value − The value of the element at the index position. Following is an example of g...
[ { "code": null, "e": 2431, "s": 2374, "text": "Returns the element at the index position in the vector." }, { "code": null, "e": 2456, "s": 2431, "text": "Following is the syntax." }, { "code": null, "e": 2473, "s": 2456, "text": "(get vec index)\n" }, { ...
‘Logit’ of Logistic Regression; Understanding the Fundamentals | by Saptashwa Bhattacharyya | Towards Data Science
At the very beginning of my journey to learn fundamentals of machine learning, I remember spending a lot of time in clearly understanding the basics of logistic regression. Hopefully this meditation will leave you with more answers and correct concepts than confusions related with logistic regression. In this post I wi...
[ { "code": null, "e": 475, "s": 172, "text": "At the very beginning of my journey to learn fundamentals of machine learning, I remember spending a lot of time in clearly understanding the basics of logistic regression. Hopefully this meditation will leave you with more answers and correct concepts th...
WPF - Multimedia
WPF applications support video and audio using MediaElement. It allows you to integrate audio and video into an application. The MediaElement class works in a similar way as Image class. You just point it at the media and it renders it. The main difference is that it will be a moving image, but if you point it to the f...
[ { "code": null, "e": 2456, "s": 2020, "text": "WPF applications support video and audio using MediaElement. It allows you to integrate audio and video into an application. The MediaElement class works in a similar way as Image class. You just point it at the media and it renders it. The main differe...
Servlets - Database Access
This tutorial assumes you have understanding on how JDBC application works. Before starting with database access through a servlet, make sure you have proper JDBC environment setup along with a database. For more detail on how to access database using JDBC and its environment setup you can go through our JDBC Tutorial....
[ { "code": null, "e": 2389, "s": 2185, "text": "This tutorial assumes you have understanding on how JDBC application works. Before starting with database access through a servlet, make sure you have proper JDBC environment setup along with a database." }, { "code": null, "e": 2506, "s...
Comparison of double and float primitive types in Java
If we compare a float and a double value with .5 or .0 or .1235 (ending with 5 or 0), then == operator returns true, otherwise it will return false. See the below example. Live Demo public class Tester { public static void main(String[] args) { double d1 = 2.5; float f1 = 2.5f; System.out.println(d...
[ { "code": null, "e": 1234, "s": 1062, "text": "If we compare a float and a double value with .5 or .0 or .1235 (ending with 5 or 0), then == operator returns true, otherwise it will return false. See the below example." }, { "code": null, "e": 1244, "s": 1234, "text": "Live Demo"...