title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
CSS Tutorial
CSS is used to control the style of a web document in a simple and easy way. CSS is the acronym for "Cascading Style Sheet". This tutorial covers both the versions CSS1,CSS2 and CSS3, and gives a complete understanding of CSS, starting from its basics to advanced concepts. Cascading Style Sheets, fondly referred to as ...
[ { "code": null, "e": 2703, "s": 2626, "text": "CSS is used to control the style of a web document in a simple and easy way." }, { "code": null, "e": 2900, "s": 2703, "text": "CSS is the acronym for \"Cascading Style Sheet\". This tutorial covers both the versions CSS1,CSS2 and CS...
How to disable ScrollView Programmatically in Android?
This example demonstrates how to do I disable ScrollView 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. <?xml version="1.0" encoding="utf-8"?> <...
[ { "code": null, "e": 1148, "s": 1062, "text": "This example demonstrates how to do I disable ScrollView programmatically in android." }, { "code": null, "e": 1277, "s": 1148, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required ...
Advanced Excel Statistical - STEYX Function
The STEYX function returns the standard error of the predicted y-value for each x in the regression. The standard error is a measure of the amount of error in the prediction of y for an individual x. STEYX (known_y's, known_x's) The equation for the standard error of the predicted y is βˆ’ $$\sqrt{\frac{1}{2}\left [ \su...
[ { "code": null, "e": 2054, "s": 1854, "text": "The STEYX function returns the standard error of the predicted y-value for each x in the regression. The standard error is a measure of the amount of error in the prediction of y for an individual x." }, { "code": null, "e": 2084, "s": 2...
Check if a number can be expressed as a sum of consecutive numbers in C++
Here we will see if one number can be represented as sum of two or more consecutive numbers or not. Suppose a number is 12. This can be represented as 3+4+5. There is a direct and easiest method to solve this problem. If a number is power of 2, then it cannot be expressed as sum of some consecutive numbers. There are t...
[ { "code": null, "e": 1220, "s": 1062, "text": "Here we will see if one number can be represented as sum of two or more consecutive numbers or not. Suppose a number is 12. This can be represented as 3+4+5." }, { "code": null, "e": 1421, "s": 1220, "text": "There is a direct and ea...
Jackson Annotations - @JsonRawValue
@JsonRawValue allows to serialize a text without escaping or without any decoration. import java.io.IOException; import com.fasterxml.jackson.databind.ObjectMapper; public class JacksonTester { public static void main(String args[]){ ObjectMapper mapper = new ObjectMapper(); try { Student stu...
[ { "code": null, "e": 2560, "s": 2475, "text": "@JsonRawValue allows to serialize a text without escaping or without any decoration." }, { "code": null, "e": 3511, "s": 2560, "text": "import java.io.IOException; \nimport com.fasterxml.jackson.databind.ObjectMapper; \n\npublic clas...
Compare two linked lists | Practice | GeeksforGeeks
Given two string, represented as linked lists (every character is a node->data in the linked list). Write a function compare() that works similar to strcmp(), i.e., it returns 0 if both strings are same, 1 if first linked list is lexicographically greater, and -1 if second is lexicographically greater. Input: First lin...
[ { "code": null, "e": 530, "s": 226, "text": "Given two string, represented as linked lists (every character is a node->data in the linked list). Write a function compare() that works similar to strcmp(), i.e., it returns 0 if both strings are same, 1 if first linked list is lexicographically greater...
1 to n bit numbers with no consecutive 1s in binary representation. - GeeksforGeeks
08 Apr, 2022 Given a number n, our task is to find all 1 to n bit numbers with no consecutive 1s in their binary representation. Examples: Input : n = 4 Output : 1 2 4 5 8 9 10 These are numbers with 1 to 4 bits and no consecutive ones in binary representation. Input : n = 3 Output : 1 2 4 5 We add bits one by one...
[ { "code": null, "e": 25124, "s": 25096, "text": "\n08 Apr, 2022" }, { "code": null, "e": 25252, "s": 25124, "text": "Given a number n, our task is to find all 1 to n bit numbers with no consecutive 1s in their binary representation. Examples: " }, { "code": null, "e"...
Predicting Used Car Prices with Machine Learning | by Soner YΔ±ldΔ±rΔ±m | Towards Data Science
I’m planning to sell my car which is a 4-year-old wolkswagen polo. Used cars are usually sold on a website called β€œsahibinden” in Turkey. β€œSahibinden” means β€œfrom the owner” although there are many dealers using this website to sell or buy used cars. The most critical part of selling a used car is to determine the opti...
[ { "code": null, "e": 1269, "s": 172, "text": "I’m planning to sell my car which is a 4-year-old wolkswagen polo. Used cars are usually sold on a website called β€œsahibinden” in Turkey. β€œSahibinden” means β€œfrom the owner” although there are many dealers using this website to sell or buy used cars. The...
Deploy a Dockerized FastAPI App to Google Cloud Platform | by Edward Krueger | Towards Data Science
By: Edward Krueger and Douglas Franklin. In this article, we will show how to deploy a FastAPI application to GCP Cloud Run. We'll use Docker, GCP Cloud Build and GCP Container Registry (GCR) in our deployment Pipeline. In an earlier article, we developed the application which we'll deploy. It should serve as a good te...
[ { "code": null, "e": 213, "s": 172, "text": "By: Edward Krueger and Douglas Franklin." }, { "code": null, "e": 392, "s": 213, "text": "In this article, we will show how to deploy a FastAPI application to GCP Cloud Run. We'll use Docker, GCP Cloud Build and GCP Container Registry ...
NLP: Detecting Spam Messages with TensorFlow (Part I) | by Michael Grogan | Towards Data Science
Here is an example of how a recurrent neural network can be used to detect spam messages. The dataset used in this example is sourced from Kaggle (original authors Almeida and Hidalgo, 2011). In the training set, certain messages are marked as β€œspam” (this has been replaced with a 1 for this purpose). Non-spam messages...
[ { "code": null, "e": 364, "s": 172, "text": "Here is an example of how a recurrent neural network can be used to detect spam messages. The dataset used in this example is sourced from Kaggle (original authors Almeida and Hidalgo, 2011)." }, { "code": null, "e": 551, "s": 364, "te...
editable=False - Django Built-in Field Validation - GeeksforGeeks
13 Feb, 2020 Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. editable=Fal...
[ { "code": null, "e": 24239, "s": 24211, "text": "\n13 Feb, 2020" }, { "code": null, "e": 24783, "s": 24239, "text": "Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Djan...
JSF - Managed Beans
Managed Bean is a regular Java Bean class registered with JSF. In other words, Managed Beans is a Java bean managed by JSF framework. Managed bean contains the getter and setter methods, business logic, or even a backing bean (a bean contains all the HTML form value). Managed beans works as Model for UI component. Mana...
[ { "code": null, "e": 2221, "s": 1952, "text": "Managed Bean is a regular Java Bean class registered with JSF. In other words, Managed Beans is a Java bean managed by JSF framework. Managed bean contains the getter and setter methods, business logic, or even a backing bean (a bean contains all the HT...
Double ended priority queue in C++ Program
In this tutorial, we are going to create a double-ended priority queue using the set in c++. Let's see the steps to create a double-ended queue. Create a struct with a name as you wish. Create a struct with a name as you wish. Create a variable for the queue using the set. Create a variable for the queue using the set....
[ { "code": null, "e": 1155, "s": 1062, "text": "In this tutorial, we are going to create a double-ended priority queue using the set in c++." }, { "code": null, "e": 1207, "s": 1155, "text": "Let's see the steps to create a double-ended queue." }, { "code": null, "e": ...
Sed Command in Linux/Unix with examples
21 Dec, 2021 SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion. Though most common use of SED command in UNIX is for substitution or for find and replace. By using SED you can edit files even without opening them, which is m...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Dec, 2021" }, { "code": null, "e": 478, "s": 52, "text": "SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion. Though most common use of S...
Python - Search Tree
A Binary Search Tree (BST) is a tree in which all the nodes follow the below-mentioned properties.The left sub-tree of a node has a key less than or equal to its parent node's key.The right sub-tree of a node has a key greater than to its parent node's key.Thus, BST divides all its sub-trees into two segments; the left...
[ { "code": null, "e": 2814, "s": 2461, "text": "A Binary Search Tree (BST) is a tree in which all the nodes follow the below-mentioned properties.The left sub-tree of a node has a key less than or equal to its parent node's key.The right sub-tree of a node has a key greater than to its parent node's ...
Detect Cycle in a Directed Graph using BFS
28 Dec, 2021 Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false. For example, the following graph contains two cycles 0->1->2->3->0 and 2->4->2, so your function must return true. We have discussed a...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Dec, 2021" }, { "code": null, "e": 342, "s": 54, "text": "Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false. F...
Iterable forEach() method in Java with Examples
22 May, 2019 It has been Quite a while since Java 8 released. With the release, they have improved some of the existing APIs and added few new features. One of them is forEach Method in java.lang.Iterable Interface. Whenever we need to traverse over a collection we have to create an Iterator to iterate over the collect...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 May, 2019" }, { "code": null, "e": 256, "s": 53, "text": "It has been Quite a while since Java 8 released. With the release, they have improved some of the existing APIs and added few new features. One of them is forEach Method in j...
Remove an Entry using value from HashMap while Iterating over it
11 Dec, 2018 Given a HashMap and a value in Java, the task is to remove an entry from this HashMap using the value, while iterating over it. Examples: Input: HashMap: {1=Geeks, 2=ForGeeks, 3=GeeksForGeeks}, value = β€œForGeeks”Output: {1=Geeks, 3=GeeksForGeeks} Input: HashMap: {1=G, 2=e, 3=e, 4=k, 5=s}, value = kOutput: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2018" }, { "code": null, "e": 156, "s": 28, "text": "Given a HashMap and a value in Java, the task is to remove an entry from this HashMap using the value, while iterating over it." }, { "code": null, "e": 166, "...
How to Define an Auto Increment Primary Key in PostgreSQL using Python?
11 Dec, 2020 Prerequisite: PostgreSQL Python has various database drivers for PostgreSQL. Currently, most used version is psycopg2 because it fully implements the Python DB-API 2.0 specification. The psycopg2 provides many useful features such as client-side and server-side cursors, asynchronous notification and commu...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2020" }, { "code": null, "e": 53, "s": 28, "text": "Prerequisite: PostgreSQL" }, { "code": null, "e": 372, "s": 53, "text": "Python has various database drivers for PostgreSQL. Currently, most used version is...
What is Reflection in C#?
28 Aug, 2019 Reflection is the process of describing the metadata of types, methods and fields in a code. The namespace System.Reflection enables you to obtain data about the loaded assemblies, the elements within them like classes, methods and value types. Some of the commonly used classes of System.Reflection are: No...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2019" }, { "code": null, "e": 333, "s": 28, "text": "Reflection is the process of describing the metadata of types, methods and fields in a code. The namespace System.Reflection enables you to obtain data about the loaded assemb...
What is the size_t data type in C?
17 Jul, 2020 size_t is an unsigned integral data type which is defined in various header files such as: <stddef.h>, <stdio.h>, <stdlib.h>, <string.h>, <time.h>, <wchar.h> It’s a type which is used to represent the size of objects in bytes and is therefore used as the return type by the sizeof operator. It is guarante...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jul, 2020" }, { "code": null, "e": 147, "s": 54, "text": "size_t is an unsigned integral data type which is defined in various header files such as: " }, { "code": "<stddef.h>, <stdio.h>, <stdlib.h>, <string.h>, <time.h>, <...
Manipulate Date and Time with the Datetime Module in Python
12 May, 2021 Have you ever wondered about working with Date and Time with Python? If you have then you must have noticed that Python does not provide any built-in method to work with either Date or Time. But thanks to the DateTime module that comes pre-loaded with Python’s standard utility modules we can easily manipul...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2021" }, { "code": null, "e": 492, "s": 28, "text": "Have you ever wondered about working with Date and Time with Python? If you have then you must have noticed that Python does not provide any built-in method to work with eithe...
Python – 68-95-99.7 rule in Statistics
01 Sep, 2021 The Empirical Rule(also called the 68-95-99.7 Rule or the Three Sigma Rule) states that for any normal distribution, we have the following observations : 68% of the observed values lie between 1 standard deviation around the mean : 95% of the observed values lie between 2 standard deviations around the me...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Sep, 2021" }, { "code": null, "e": 182, "s": 28, "text": "The Empirical Rule(also called the 68-95-99.7 Rule or the Three Sigma Rule) states that for any normal distribution, we have the following observations :" }, { "code":...
Python | Pandas Index.duplicated()
16 Dec, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.duplicated() function Indicate duplicate index values. Duplicated values are ind...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
Structure vs class in C++
23 Jun, 2022 In C++, a structure works the same way as a class, except for just two small differences. The most important of them is hiding implementation details. A structure will by default not hide its implementation details from whomever uses it in code, while a class by default hides all its implementation details...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 501, "s": 52, "text": "In C++, a structure works the same way as a class, except for just two small differences. The most important of them is hiding implementation details. A structure will by def...
numpy.count() in Python
10 Oct, 2019 numpy.core.defchararray.count(arr, substring, start=0, end=None): Counts for the non-overlapping occurrence of sub-string in the specified range. Parameters:arr : array-like or string to be searched.substring : substring to search for.start, end : [int, optional] Range to search in. Returns : An integer ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Oct, 2019" }, { "code": null, "e": 174, "s": 28, "text": "numpy.core.defchararray.count(arr, substring, start=0, end=None): Counts for the non-overlapping occurrence of sub-string in the specified range." }, { "code": null, ...
Flask - Jinja Templates Example - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Flask templates can do much more than replaci...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Program to find uncommon elements in two arrays - JavaScript
Let’s say, we have two arrays of numbers βˆ’ const arr1 = [12, 54, 2, 4, 6, 34, 3]; const arr2 = [54, 2, 5, 12, 4, 1, 3, 34]; We are required to write a JavaScript function that takes in two such arrays and returns the element from arrays that are not common to both. Let’s write the code for this function βˆ’ Following is ...
[ { "code": null, "e": 1105, "s": 1062, "text": "Let’s say, we have two arrays of numbers βˆ’" }, { "code": null, "e": 1186, "s": 1105, "text": "const arr1 = [12, 54, 2, 4, 6, 34, 3];\nconst arr2 = [54, 2, 5, 12, 4, 1, 3, 34];" }, { "code": null, "e": 1328, "s": 1186,...
Automatic data registration for Azure Machine Learning workspaces | by Iulia Feroli | Towards Data Science
Azure Machine Learning (AML) workspaces are a great platform in which data scientists and data engineers can collaborate and work on different projects. It brings together notebook coding environments, compute targets to power your code, datasets & datastores to keep references of your data sources, and a way to track ...
[ { "code": null, "e": 510, "s": 172, "text": "Azure Machine Learning (AML) workspaces are a great platform in which data scientists and data engineers can collaborate and work on different projects. It brings together notebook coding environments, compute targets to power your code, datasets & datast...
How to Change Text Color of Toolbar Title in an Android App? - GeeksforGeeks
23 Feb, 2021 In an Android app, the toolbar title present at the upper part of the application. Below is a sample image that shows you where the toolbar title is present. In the above image, you may see that the color of the Toolbar Title is white which is by default. So in this article, you will learn how to change th...
[ { "code": null, "e": 25116, "s": 25088, "text": "\n23 Feb, 2021" }, { "code": null, "e": 25274, "s": 25116, "text": "In an Android app, the toolbar title present at the upper part of the application. Below is a sample image that shows you where the toolbar title is present." },...
Remove Leading Zeros From String in Java
There are many approaches to remove leading zeroes from a string in Java. Here we will use some basic functions of String and Arrays class which to remove leading zeroes from a string. So this approach proceed as first convert string to a character array so that evaluation of each character in string becomes simpler. N...
[ { "code": null, "e": 1247, "s": 1062, "text": "There are many approaches to remove leading zeroes from a string in Java. Here we will use some basic functions of String and Arrays class which to remove leading zeroes from a string." }, { "code": null, "e": 1642, "s": 1247, "text"...
Python | Pandas dataframe.replace() - GeeksforGeeks
19 Feb, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas dataframe.replace() function is used to replace a string, regex, list, dictionary, ser...
[ { "code": null, "e": 24910, "s": 24882, "text": "\n19 Feb, 2021" }, { "code": null, "e": 25124, "s": 24910, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Building an Automated Machine Learning Pipeline: Part Four | by Ceren Iyim | Towards Data Science
Part 1: Understand, clean, explore, process data Part 2: Set metric and baseline, select and tune model Part 3: Train, evaluate and interpret model Part 4: Automate your pipeline using Docker and Luigi (you are reading now) Disclaimer: This article series is not a tutorial about Docker and Luigi. It is the last article...
[ { "code": null, "e": 220, "s": 171, "text": "Part 1: Understand, clean, explore, process data" }, { "code": null, "e": 275, "s": 220, "text": "Part 2: Set metric and baseline, select and tune model" }, { "code": null, "e": 319, "s": 275, "text": "Part 3: Train...
How to set the left padding of an element with JavaScript?
Use the paddingLeft property in JavaScript to set the left padding. You can try to run the following code to return the left padding of an element with JavaScript βˆ’ <!DOCTYPE html> <html> <head> <style> #box { border: 2px solid #FF0000; width: 150px; height: 70px; ...
[ { "code": null, "e": 1227, "s": 1062, "text": "Use the paddingLeft property in JavaScript to set the left padding. You can try to run the following code to return the left padding of an element with JavaScript βˆ’" }, { "code": null, "e": 1728, "s": 1227, "text": "<!DOCTYPE html>\n...
Java Examples - Use Enumeration to display HashTable
How to use enumeration to display contents of HashTable ? Following example uses hasMoreElements & nestElement Methods of Enumeration Class to display the contents of the HashTable. import java.util.Enumeration; import java.util.Hashtable; public class Main { public static void main(String[] args) { Hashtable...
[ { "code": null, "e": 2126, "s": 2068, "text": "How to use enumeration to display contents of HashTable ?" }, { "code": null, "e": 2250, "s": 2126, "text": "Following example uses hasMoreElements & nestElement Methods of Enumeration Class to display the contents of the HashTable."...
Scala Collections - HashSet
Scala Set is a collection of pairwise different elements of the same type. In other words, a Set is a collection that contains no duplicate elements. HashSet implements immutable sets and uses hash table. Elements insertion order is not preserved. The following is the syntax for declaring an HashSet variable. var z : H...
[ { "code": null, "e": 3130, "s": 2882, "text": "Scala Set is a collection of pairwise different elements of the same type. In other words, a Set is a collection that contains no duplicate elements. HashSet implements immutable sets and uses hash table. Elements insertion order is not preserved." },...
How to Install Scikit-Learn in Windows? - GeeksforGeeks
21 Sep, 2021 Scikit Learn is an open-source Python library that implements a range of machine learning, preprocessing, cross-validation, and visualization algorithms using a unified interface. In this article, we will look into how to install the Scikit-Learn library in Windows. The only thing that you need for install...
[ { "code": null, "e": 24812, "s": 24784, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24992, "s": 24812, "text": "Scikit Learn is an open-source Python library that implements a range of machine learning, preprocessing, cross-validation, and visualization algorithms using a un...
C library function - log()
The C library function double log(double x) returns the natural logarithm (base-e logarithm) of x. Following is the declaration for log() function. double log(double x) x βˆ’ This is the floating point value. x βˆ’ This is the floating point value. This function returns natural logarithm of x. The following example shows t...
[ { "code": null, "e": 2106, "s": 2007, "text": "The C library function double log(double x) returns the natural logarithm (base-e logarithm) of x." }, { "code": null, "e": 2155, "s": 2106, "text": "Following is the declaration for log() function." }, { "code": null, "e...
Spring Batch - Environment
In this chapter, we will explain how to set Spring Batch environment in Eclipse IDE. Before proceeding with the installation, ensure that you have installed Eclipse in your system. If not, download and install Eclipse in your system. For more information on Eclipse, please refer our Eclipse Tutorial. Follow the steps g...
[ { "code": null, "e": 2162, "s": 1928, "text": "In this chapter, we will explain how to set Spring Batch environment in Eclipse IDE. Before proceeding with the installation, ensure that you have installed Eclipse in your system. If not, download and install Eclipse in your system." }, { "code...
How to integrate Quickbooks with Python | by hotglue | Towards Data Science
If you’re a B2B developer building a product, one of the earliest product development phases is creating a data integration pipeline to import customer data. In this article, I’ll show you how to leverage Singer’s tap-quickbooks to extract data from Quickbooks. From there I’ll walk you through how to parse the JSON out...
[ { "code": null, "e": 329, "s": 171, "text": "If you’re a B2B developer building a product, one of the earliest product development phases is creating a data integration pipeline to import customer data." }, { "code": null, "e": 578, "s": 329, "text": "In this article, I’ll show y...
BabylonJS - Create ScreenShot
To capture the screen on which you are presently working, it is not possible to take screenshot with high resolution using the print screen keypress. BabylonJS provides createscreenshot APIwhich helps to do so. It saves the file as png format and the quality of the image is not sacrified. To take screenshot of the scre...
[ { "code": null, "e": 2473, "s": 2183, "text": "To capture the screen on which you are presently working, it is not possible to take screenshot with high resolution using the print screen keypress. BabylonJS provides createscreenshot APIwhich helps to do so. It saves the file as png format and the qu...
C Program for Iterative Merge Sort - GeeksforGeeks
06 Dec, 2018 Following is a typical recursive implementation of Merge Sort that uses last element as pivot. /* Recursive C program for merge sort */#include <stdio.h>#include <stdlib.h> /* Function to merge the two haves arr[l..m] and arr[m+1..r] of array arr[] */void merge(int arr[], int l, int m, int r); /* l is fo...
[ { "code": null, "e": 24617, "s": 24589, "text": "\n06 Dec, 2018" }, { "code": null, "e": 24712, "s": 24617, "text": "Following is a typical recursive implementation of Merge Sort that uses last element as pivot." }, { "code": "/* Recursive C program for merge sort */#incl...
D3.js timer.restart() Function - GeeksforGeeks
29 Jul, 2020 The timer.restart() function in D3.js is used to restart a timer with the given function and delay. The timer.restart() function is used when one wants to reset the timer and start again. Syntax: timer.restart(callback, delay); Parameters: It takes two parameters as mentioned above and described below: ca...
[ { "code": null, "e": 24533, "s": 24505, "text": "\n29 Jul, 2020" }, { "code": null, "e": 24721, "s": 24533, "text": "The timer.restart() function in D3.js is used to restart a timer with the given function and delay. The timer.restart() function is used when one wants to reset th...
How Address Resolution Protocol (ARP) works? - GeeksforGeeks
22 Oct, 2021 Most of the computer programs/applications use logical address (IP address) to send/receive messages, however, the actual communication happens over the physical address (MAC address) i.e from layer 2 of the OSI model. So our mission is to get the destination MAC address which helps in communicating with o...
[ { "code": null, "e": 36592, "s": 36564, "text": "\n22 Oct, 2021" }, { "code": null, "e": 37025, "s": 36592, "text": "Most of the computer programs/applications use logical address (IP address) to send/receive messages, however, the actual communication happens over the physical a...
Tryit Editor v3.7
Tryit: Video autoplay and muted
[]
Lazy loading of images in table view using Swift
To load an image in table view cell we’ll go through a series of steps. Create a table view, table view cell and add an Image view to it. Assign a custom class to the cell we created. In the cell for row at method write the following lines of code. let cell = tblView.dequeueReusableCell(withIdentifier: "CustomCell") as...
[ { "code": null, "e": 1134, "s": 1062, "text": "To load an image in table view cell we’ll go through a series of steps." }, { "code": null, "e": 1200, "s": 1134, "text": "Create a table view, table view cell and add an Image view to it." }, { "code": null, "e": 1246, ...
C++ Relational and Equality Operators
In C Programming, the values hold on in 2 variables will be compared exploitation following operators and relation between them will be determined. These operators are called relational operators. Various C++ relational operators available are- You can use these operators for checking the relationship between the opera...
[ { "code": null, "e": 1307, "s": 1062, "text": "In C Programming, the values hold on in 2 variables will be compared exploitation following operators and relation between them will be determined. These operators are called relational operators. Various C++ relational operators available are-" }, ...
PL/SQL - Date & Time
In this chapter, we will discuss the Date and Time in PL/SQL. There are two classes of date and time related data types in PL/SQL βˆ’ Datetime data types Interval data types The Datetime data types are βˆ’ DATE TIMESTAMP TIMESTAMP WITH TIME ZONE TIMESTAMP WITH LOCAL TIME ZONE The Interval data types are βˆ’ INTERVAL YEAR TO ...
[ { "code": null, "e": 2197, "s": 2065, "text": "In this chapter, we will discuss the Date and Time in PL/SQL. There are two classes of date and time related data types in PL/SQL βˆ’" }, { "code": null, "e": 2217, "s": 2197, "text": "Datetime data types" }, { "code": null, ...
Apex - Interfaces
An interface is like an Apex class in which none of the methods have been implemented. It only contains the method signatures, but the body of each method is empty. To use an interface, another class must implement it by providing a body for all of the methods contained in the interface. Interfaces are used mainly for ...
[ { "code": null, "e": 2341, "s": 2052, "text": "An interface is like an Apex class in which none of the methods have been implemented. It only contains the method signatures, but the body of each method is empty. To use an interface, another class must implement it by providing a body for all of the ...
Data Visualization Using Chartjs and Django - GeeksforGeeks
23 Jan, 2020 Prerequisite : django installationWith the growth of data, data visualization in become a import part here we will implement chart for our data in our web apps using chartjs with django. Django is a high-level Python Web framework based web framework and chartjs is an easy way to include animated, interact...
[ { "code": null, "e": 24344, "s": 24316, "text": "\n23 Jan, 2020" }, { "code": null, "e": 24663, "s": 24344, "text": "Prerequisite : django installationWith the growth of data, data visualization in become a import part here we will implement chart for our data in our web apps usi...
Python Pandas - Get the week of the year on the given Period
To get the week of the year on the given Period, use the period.weekofyear property. At first, import the required libraries βˆ’ import pandas as pd The pandas.Period represents a period of time. Creating two Period objects period1 = pd.Period("2020-09-23") period2 = pd.Period(freq="D", year = 2021, month = 4, day = 16, ...
[ { "code": null, "e": 1189, "s": 1062, "text": "To get the week of the year on the given Period, use the period.weekofyear property. At first, import the required libraries βˆ’" }, { "code": null, "e": 1209, "s": 1189, "text": "import pandas as pd" }, { "code": null, "e"...
Demystify Mortgage Loan By Building a Python Simulator | by Bee Guan Teo | Towards Data Science
A mortgage loan is more than just a monthly repayment based on an agreed amount within a stipulated payment tenure. A mortgage loan can easily jeopardize our finance if without a good understanding of its repayment mechanism and its potential risks. Here we are going to walk through a step by step practical guide to de...
[ { "code": null, "e": 422, "s": 172, "text": "A mortgage loan is more than just a monthly repayment based on an agreed amount within a stipulated payment tenure. A mortgage loan can easily jeopardize our finance if without a good understanding of its repayment mechanism and its potential risks." },...
Determining the position and length of the match Java regex
The start() method of the java.util.regex.Matcher class returns the starting position of the match (if a match occurred). Similarly, the end() method of the Matcher class returns the ending position of the match. Therefore, return value of the start() method will be the starting position of the match and the difference...
[ { "code": null, "e": 1184, "s": 1062, "text": "The start() method of the java.util.regex.Matcher class returns the starting position of the match (if a match occurred)." }, { "code": null, "e": 1275, "s": 1184, "text": "Similarly, the end() method of the Matcher class returns the...
What is Exploratory Spatial Data Analysis (ESDA)? | by Abdishakur | Towards Data Science
What do you do when you want to explore patterns from data based on locations. How do you know that your location data is not random? Is it enough to use the Correlation? Or are there any other statistical methods used for this kind of exploratory data analysis. In this tutorial, I show you how you can perform Explorat...
[ { "code": null, "e": 434, "s": 171, "text": "What do you do when you want to explore patterns from data based on locations. How do you know that your location data is not random? Is it enough to use the Correlation? Or are there any other statistical methods used for this kind of exploratory data an...
Descending Order in Map and Multimap of C++ STL - GeeksforGeeks
07 Jan, 2022 We have discussed map in C++ STL and multimap in C++ STL. The default behavior of these data structures is to store elements in ascending order. How to store elements in reverse order or descending order when inserting in map and multimap? We can use the third parameter, that is std::greater along with map...
[ { "code": null, "e": 24181, "s": 24153, "text": "\n07 Jan, 2022" }, { "code": null, "e": 24421, "s": 24181, "text": "We have discussed map in C++ STL and multimap in C++ STL. The default behavior of these data structures is to store elements in ascending order. How to store eleme...
How to convert array to SimpleXML in PHP - GeeksforGeeks
22 Nov, 2018 Many times need to store the data as a XML format into the database or into the file for later use. To fulfill this requirement need to convert data to XML and save XML file. The SimpleXML extension functions provides the tool set to convert XML to an object. Those objects deals with normal property select...
[ { "code": null, "e": 24461, "s": 24433, "text": "\n22 Nov, 2018" }, { "code": null, "e": 24636, "s": 24461, "text": "Many times need to store the data as a XML format into the database or into the file for later use. To fulfill this requirement need to convert data to XML and sav...
Passing a vector to constructor in C++
This is a simple C++ program to pass a vector to a constructor. Begin Declare a class named as vector. Declare vec of vector type. Declare a constructor of vector class. Pass a vector object v as a parameter to the constructor. Initialize vec = v. Declare a function show() to d...
[ { "code": null, "e": 1126, "s": 1062, "text": "This is a simple C++ program to pass a vector to a constructor." }, { "code": null, "e": 1803, "s": 1126, "text": "Begin\n Declare a class named as vector.\n Declare vec of vector type.\n Declare a constructor of vector c...
Can we have a try block without a catch block in Java?
Yes, It is possible to have a try block without a catch block by using a final block. As we know, a final block will always execute even there is an exception occurred in a try block, except System.exit() it will execute always. public class TryBlockWithoutCatch { public static void main(String[] args) { try {...
[ { "code": null, "e": 1148, "s": 1062, "text": "Yes, It is possible to have a try block without a catch block by using a final block." }, { "code": null, "e": 1291, "s": 1148, "text": "As we know, a final block will always execute even there is an exception occurred in a try block...
Enum Classes in C++ and Their Advantage over Enum DataType - GeeksforGeeks
22 Nov, 2020 Enums or Enumerated type (enumeration) is a user-defined data type that can be assigned some limited values. These values are defined by the programmer at the time of declaring the enumerated type. Need for Enum Class over Enum Type: Below are some of the reasons as to what are the limitations of Enum Type...
[ { "code": null, "e": 24491, "s": 24463, "text": "\n22 Nov, 2020" }, { "code": null, "e": 24689, "s": 24491, "text": "Enums or Enumerated type (enumeration) is a user-defined data type that can be assigned some limited values. These values are defined by the programmer at the time...
jsoup - Parsing String
Following example will showcase parsing an HTML String into a Document object. Document document = Jsoup.parse(html); Where document βˆ’ document object represents the HTML DOM. document βˆ’ document object represents the HTML DOM. Jsoup βˆ’ main class to parse the given HTML String. Jsoup βˆ’ main class to parse the given HT...
[ { "code": null, "e": 2109, "s": 2030, "text": "Following example will showcase parsing an HTML String into a Document object." }, { "code": null, "e": 2149, "s": 2109, "text": "Document document = Jsoup.parse(html);\n" }, { "code": null, "e": 2155, "s": 2149, ...
Mahotas - Hit & Miss transform - GeeksforGeeks
10 Jul, 2020 In this article we will see how we can perform hit and miss transform in mahotas. In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements. In order to do this...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24189, "s": 23901, "text": "In this article we will see how we can perform hit and miss transform in mahotas. In mathematical morphology, hit-or-miss transform is an operation that detects a ...
VBA - IsArray Function
The IsArray Function returns a boolean value that indicates whether or NOT the specified input variable is an array variable. IsArray(variablename) Add a button and add the following function. Private Sub Constant_demo_Click() Dim a,b as Variant a = array("Red","Blue","Yellow") b = "12345" msgbox("The I...
[ { "code": null, "e": 2061, "s": 1935, "text": "The IsArray Function returns a boolean value that indicates whether or NOT the specified input variable is an array variable." }, { "code": null, "e": 2084, "s": 2061, "text": "IsArray(variablename)\n" }, { "code": null, ...
Interfacing Stepper Motor with 8051Microcontroller
In this section, we will see how to connect a stepper motor with Intel 8051 Microcontroller. Before discussing the interfacing techniques, we will see what are the stepper motors and how they work. Stepper motors are used to translate electrical pulses into mechanical movements. In some disk drives, dot matrix printers...
[ { "code": null, "e": 1260, "s": 1062, "text": "In this section, we will see how to connect a stepper motor with Intel 8051 Microcontroller. Before discussing the interfacing techniques, we will see what are the stepper motors and how they work." }, { "code": null, "e": 1615, "s": 126...
Difference between Scanner and BufferReader Class in Java
Scanner and BufferReader both classes are used to read input from external system. Scanner is normally used when we know input is of type string or of primitive types and BufferReader is used to read text from character streams while buffering the characters for efficient reading of characters. Following are the import...
[ { "code": null, "e": 1446, "s": 1062, "text": "Scanner and BufferReader both classes are used to read input from external system. Scanner is normally used when we know input is of type string or of primitive types and BufferReader is used to read text from character streams while buffering the chara...
Pytorch model in Deep Java Library | by Shantanu Bhattacharyya | Towards Data Science
PyTorch is a fast growing and very popular open source Machine Learning framework. Its imperative design combined with β€œnumpy” like workflow makes it a compelling first choice for beginners and professionals alike. However, serving these model in production is not straightforward and things are particularly difficult i...
[ { "code": null, "e": 537, "s": 171, "text": "PyTorch is a fast growing and very popular open source Machine Learning framework. Its imperative design combined with β€œnumpy” like workflow makes it a compelling first choice for beginners and professionals alike. However, serving these model in producti...
Find the count of unique group combinations in an R data frame.
To find the count of unique group combinations in an R data frame, we can use count function of dplyr package along with ungroup function. For Example, if we have a data frame called df that contains three grouping columns say G1, G2, and G3 then we can count the unique group combinations in df by using the below given...
[ { "code": null, "e": 1201, "s": 1062, "text": "To find the count of unique group combinations in an R data frame, we can use count\nfunction of dplyr package along with ungroup function." }, { "code": null, "e": 1393, "s": 1201, "text": "For Example, if we have a data frame calle...
Error 1046 No database Selected, how to resolve?
The 1046 error occurs if you forget to select any database before creating a table. Let us see how and why this error occurs. We will try to create a table without selecting a database βˆ’ mysql> CREATE table MyTable1 -> ( -> id int -> ); ERROR 1046 (3D000): No database selected Or mysql> INSERT into sample valu...
[ { "code": null, "e": 1249, "s": 1062, "text": "The 1046 error occurs if you forget to select any database before creating a table.\nLet us see how and why this error occurs. We will try to create a table without selecting a\ndatabase βˆ’" }, { "code": null, "e": 1431, "s": 1249, "t...
How to display a value when select a JList item in Java?
A JList is a subclass of JComponent class that allows the user to choose either a single or multiple selections of items. A JList can generate a ListSelectiionListener interface and it includes one abstract method valueChanged(). We can display a value when an item is selected from a JList by implementing MouseListener...
[ { "code": null, "e": 1529, "s": 1062, "text": "A JList is a subclass of JComponent class that allows the user to choose either a single or multiple selections of items. A JList can generate a ListSelectiionListener interface and it includes one abstract method valueChanged(). We can display a value ...
A Quick, Easy Way to Unpivot Data in Python | by Nik Piepenbreier | Towards Data Science
In a previous post, we took a look at doing three common Excel tasks in Python. Today we’ll take a look a function that, while possible in Excel, is pretty well hidden and kind of clunky. I’m talking about β€œun-pivoting” data in Excel. Python and Excel make it incredibly easy to analyze data and to present that analysis...
[ { "code": null, "e": 407, "s": 172, "text": "In a previous post, we took a look at doing three common Excel tasks in Python. Today we’ll take a look a function that, while possible in Excel, is pretty well hidden and kind of clunky. I’m talking about β€œun-pivoting” data in Excel." }, { "code"...
How to filter data using where Clause, β€œBETWEEN” and β€œAND” in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you d...
[ { "code": null, "e": 1457, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the re...
How to create an increment of 10 value once you click a button in JavaScript?
For this, use click() along with parseInt(). Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initialscale=1.0"> <title>Document</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://c...
[ { "code": null, "e": 1107, "s": 1062, "text": "For this, use click() along with parseInt()." }, { "code": null, "e": 1118, "s": 1107, "text": " Live Demo" }, { "code": null, "e": 1978, "s": 1118, "text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta char...
Unraveling Spline Regression in R | by Trisha Chandra | Towards Data Science
When we talk about regression, the first things that come to our mind are linear or logistic regression and somewhere in the distant back of the mind polynomial regression. Linear and logistic regression are 2 of the most popular types of regression methods. However, there are many different types of regression methods...
[ { "code": null, "e": 614, "s": 172, "text": "When we talk about regression, the first things that come to our mind are linear or logistic regression and somewhere in the distant back of the mind polynomial regression. Linear and logistic regression are 2 of the most popular types of regression metho...
Classifying fashion apparel- Getting started with Computer Vision | by Navendu Pottekkat | Towards Data Science
In this guide, you will be training a neural network model to classify images of clothing like shirts, coats, sneakers etc. Whew! That sounds a lot for a beginner tutorial, I mean we are just getting started right? Not to worry! Don’t get overwhelmed, it’s okay if you don’t understand all the details. You would learn a...
[ { "code": null, "e": 171, "s": 47, "text": "In this guide, you will be training a neural network model to classify images of clothing like shirts, coats, sneakers etc." }, { "code": null, "e": 262, "s": 171, "text": "Whew! That sounds a lot for a beginner tutorial, I mean we are ...
Bayesian Hyper-Parameter Optimization: Neural Networks, TensorFlow, Facies Prediction Example | by Ryan A. Mardani | Towards Data Science
The purpose of this work is to optimize the neural network model hyper-parameters to estimate facies classes from well logs. I will include some codes in this paper but for a full jupyter notebook file, you can visit my Github. note: if you are new in TensorFlow, its installation elaborated by Jeff Heaton. In machine l...
[ { "code": null, "e": 399, "s": 171, "text": "The purpose of this work is to optimize the neural network model hyper-parameters to estimate facies classes from well logs. I will include some codes in this paper but for a full jupyter notebook file, you can visit my Github." }, { "code": null,...
TELNET and SSH on Adaptive Security Appliance (ASA) - GeeksforGeeks
22 Nov, 2021 Prerequisite – Adaptive security appliance (ASA) A user can take management access of a device through a console or remote access by using telnet or SSH. In the same way, ASA (Adaptive Security Appliance) CLI access can take through a console or by using Telnet or SSH and GUI access can be taken through (A...
[ { "code": null, "e": 24309, "s": 24281, "text": "\n22 Nov, 2021" }, { "code": null, "e": 24630, "s": 24309, "text": "Prerequisite – Adaptive security appliance (ASA) A user can take management access of a device through a console or remote access by using telnet or SSH. In the sa...
How to Install Golang in VScode? - GeeksforGeeks
30 Sep, 2021 GO is a compiled programming language developed by Robert Griesemer, Rob Pike, and Ken Thompson at Google. It was introduced in 2009 and is also known as golang. In this article, we are going to see how you can set up Visual Code Studio for Go language Development. We are going to install the necessary to...
[ { "code": null, "e": 24952, "s": 24924, "text": "\n30 Sep, 2021" }, { "code": null, "e": 25271, "s": 24952, "text": "GO is a compiled programming language developed by Robert Griesemer, Rob Pike, and Ken Thompson at Google. It was introduced in 2009 and is also known as golang. ...
Simple Substitution Cipher
Simple substitution cipher is the most commonly used cipher and includes an algorithm of substituting every plain text character for every cipher text character. In this process, alphabets are jumbled in comparison with Caesar cipher algorithm. Keys for a simple substitution cipher usually consists of 26 letters. An ex...
[ { "code": null, "e": 2537, "s": 2292, "text": "Simple substitution cipher is the most commonly used cipher and includes an algorithm of substituting every plain text character for every cipher text character. In this process, alphabets are jumbled in comparison with Caesar cipher algorithm." }, ...
AWT MouseMotionAdapter Class
The class MouseMotionAdapter is an abstract (adapter) class for receiving mouse motion events. All methods of this class are empty. This class is convenience class for creating listener objects. Following is the declaration for java.awt.event.MouseMotionAdapter class: public abstract class MouseMotionAdapter extends...
[ { "code": null, "e": 1942, "s": 1747, "text": "The class MouseMotionAdapter is an abstract (adapter) class for receiving mouse motion events. All methods of this class are empty. This class is convenience class for creating listener objects." }, { "code": null, "e": 2016, "s": 1942, ...
Interpret Linear Regression in 10 mins (Non-Technical) | by Anish Mahapatra | Towards Data Science
When there are so many great articles and interpretations of the most common algorithm out there, why take the effort to write this? How does an executive or a non-technical person interpret linear regression? All of the articles are heavy on the technicality. I like to understand things for what they are minus the ext...
[ { "code": null, "e": 433, "s": 172, "text": "When there are so many great articles and interpretations of the most common algorithm out there, why take the effort to write this? How does an executive or a non-technical person interpret linear regression? All of the articles are heavy on the technica...
Calculate pressure of a real gas using Van der Waal's Equation - GeeksforGeeks
21 Apr, 2021 Given integers V, T, and n representing the volume, temperature and the number of moles of a real gas, the task is to calculate the pressure P of the gas using Van der Waal’s Equation for real gas. Van der Waal’s Equation for Real Gas:( P + a * n2 / V2 ) * (V – n * b) = n R T) where, average attraction bet...
[ { "code": null, "e": 24420, "s": 24392, "text": "\n21 Apr, 2021" }, { "code": null, "e": 24618, "s": 24420, "text": "Given integers V, T, and n representing the volume, temperature and the number of moles of a real gas, the task is to calculate the pressure P of the gas using Van...
Python – Ascending Order Sort grouped Pandas dataframe by group size?
To group Pandas dataframe, we use groupby(). To sort grouped dataframe in ascending order, use sort_values(). The size() method is used to get the dataframe size. For ascending order sort, use the following in sort_values() βˆ’ ascending=True At first, create a pandas dataframe βˆ’ dataFrame = pd.DataFrame( { "Car...
[ { "code": null, "e": 1225, "s": 1062, "text": "To group Pandas dataframe, we use groupby(). To sort grouped dataframe in ascending order, use sort_values(). The size() method is used to get the dataframe size." }, { "code": null, "e": 1288, "s": 1225, "text": "For ascending order...
How to find time difference using Python?
It is very easy to do date and time maths in Python using time delta objects. Whenever you want to add or subtract to a date/time, use a DateTime.datetime(), then add or subtract date time.time delta() instances. A time delta object represents a duration, the difference between two dates or times. The time delta constr...
[ { "code": null, "e": 1425, "s": 1062, "text": "It is very easy to do date and time maths in Python using time delta objects. Whenever you want to add or subtract to a date/time, use a DateTime.datetime(), then add or subtract date time.time delta() instances. A time delta object represents a duratio...
Get the item that appears the most times in an array JavaScript
Let’s say, we are required to write a function that takes in an array of string / number literals and returns the index of the item that appears for the most number of times. We will iterate over the array and prepare a frequencyMap and from that map we will return the index that makes most appearances. The code for do...
[ { "code": null, "e": 1367, "s": 1062, "text": "Let’s say, we are required to write a function that takes in an array of string / number literals and\nreturns the index of the item that appears for the most number of times. We will iterate over the\narray and prepare a frequencyMap and from that map ...
How to create a histogram using weights in R?
A histogram using weights represent the weighted distribution of the values. In R, we can use weighted.hist function of plotrix package to create this type of histogram and we just need the values and weights corresponding to each value. Since plotrix is not frequently used, we must make sure that we install this packa...
[ { "code": null, "e": 1450, "s": 1062, "text": "A histogram using weights represent the weighted distribution of the values. In R, we can use weighted.hist function of plotrix package to create this type of histogram and we just need the values and weights corresponding to each value. Since plotrix i...
How to visualise massive 3D point clouds in Python | Towards Data Science
Data visualisation is a big enchilada 🌢️: by making a graphical representation of information using visual elements, we can best present and understand trends, outliers, and patterns in data. And you guessed it: with 3D point cloud datasets representing real-world shapes, it is mandatory πŸ™‚. However, when collected fr...
[ { "code": null, "e": 464, "s": 172, "text": "Data visualisation is a big enchilada 🌢️: by making a graphical representation of information using visual elements, we can best present and understand trends, outliers, and patterns in data. And you guessed it: with 3D point cloud datasets representing ...
How to Extend an Array After Initialisation in Java? - GeeksforGeeks
05 Aug, 2021 In java, the arrays are immutable i.e if the array is once assigned or instantiated the memory allocated for the array can’t be decreased or increased. But there is one form of a solution in which we can extend the array. Extending an array after initialization: As we can’t modify the array size after the ...
[ { "code": null, "e": 24647, "s": 24619, "text": "\n05 Aug, 2021" }, { "code": null, "e": 24869, "s": 24647, "text": "In java, the arrays are immutable i.e if the array is once assigned or instantiated the memory allocated for the array can’t be decreased or increased. But there i...
GATE | GATE CS 2012 | Question 51 - GeeksforGeeks
28 Jun, 2021 Table A Id Name Age ---------------- 12 Arun 60 15 Shreya 24 99 Rohit 11 Table B Id Name Age ---------------- 15 Shreya 24 25 Hari 40 98 Rohit 20 99 Rohit 11 Table C Id Phone Area ----------------- 10 2200 02 99 2100 01 Consider the above tables A, B an...
[ { "code": null, "e": 24352, "s": 24324, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24626, "s": 24352, "text": "Table A\nId Name Age\n----------------\n12 Arun 60\n15 Shreya 24\n99 Rohit 11\n\n\nTable B\nId Name Age\n----------------\n15 Shreya 24\n25...
PHP date_create() Function
The date_create() function is an alias of the DateTime::__construct, a constructor of the DateTime class. Where, a DateTime class represents date and time in PHP. The date_create() function accepts a date time string and time zone (optional) as parameters and, creates a DateTime object accordingly. By default, this fun...
[ { "code": null, "e": 3057, "s": 2757, "text": "The date_create() function is an alias of the DateTime::__construct, a constructor of the DateTime class. Where, a DateTime class represents date and time in PHP. The date_create() function accepts a date time string and time zone (optional) as paramete...
4-bit binary Adder-Subtractor - GeeksforGeeks
21 Oct, 2021 In Digital Circuits, A Binary Adder-Subtractor is one which is capable of both addition and subtraction of binary numbers in one circuit itself. The operation being performed depends upon the binary value the control signal holds. It is one of the components of the ALU (Arithmetic Logic Unit). This Circui...
[ { "code": null, "e": 23970, "s": 23942, "text": "\n21 Oct, 2021" }, { "code": null, "e": 24266, "s": 23970, "text": "In Digital Circuits, A Binary Adder-Subtractor is one which is capable of both addition and subtraction of binary numbers in one circuit itself. The operation bein...
How do we compare two dictionaries in Python?
dicts in python are also classes. These have the __eq__method overridden, so you can use the == operator to check if 2 dictionaries are equal or not. a = {'foo': 10, 'bar': 150} b = {'foo': 10, 'bar': 150} print(a == b) This will give the output βˆ’ True If you want a list of shared items in the 2 dictionaries, you can ...
[ { "code": null, "e": 1213, "s": 1062, "text": "dicts in python are also classes. These have the __eq__method overridden, so you can use the == operator to check if 2 dictionaries are equal or not. " }, { "code": null, "e": 1283, "s": 1213, "text": "a = {'foo': 10, 'bar': 150}\nb ...
Difference between Static Constructor and Instance Constructor in C#
A static constructor is a constructor declared using static modifier. It is the first block of code executed in a class. With that, a static constructor executes only once in the life cycle of class. Instance constructor initializes instance data. Instance constructor is called when an object of class is created. The f...
[ { "code": null, "e": 1262, "s": 1062, "text": "A static constructor is a constructor declared using static modifier. It is the first block of code executed in a class. With that, a static constructor executes only once in the life cycle of class." }, { "code": null, "e": 1377, "s": 1...
Program for Bisection Method
06 Apr, 2021 Given a function f(x) on floating number x and two numbers β€˜a’ and β€˜b’ such that f(a)*f(b) < 0 and f(x) is continuous in [a, b]. Here f(x) represents algebraic or transcendental equation. Find root of function in interval [a, b] (Or find a value of x such that f(x) is 0). Example: Input: A function of x,...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Apr, 2021" }, { "code": null, "e": 338, "s": 54, "text": "Given a function f(x) on floating number x and two numbers β€˜a’ and β€˜b’ such that f(a)*f(b) < 0 and f(x) is continuous in [a, b]. Here f(x) represents algebraic or transcenden...
How to change font size depending on width of container?
03 Aug, 2021 There are various ways of putting some text in a container and having some size to fill that container.There are different methods such as using CSS and jQuery which are explained below. Using CSS property (Viewport width): The vw is a CSS property, to create responsive typography in the HTML file. The vie...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Aug, 2021" }, { "code": null, "e": 240, "s": 53, "text": "There are various ways of putting some text in a container and having some size to fill that container.There are different methods such as using CSS and jQuery which are expl...
Python | Tensorflow nn.tanh()
11 Jan, 2022 Tensorflow is an open-source machine learning library developed by Google. One of its applications is to develop deep neural networks. The module tensorflow.nn provides support for many basic neural network operations. One of the many activation functions is the hyperbolic tangent function (also known as ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jan, 2022" }, { "code": null, "e": 164, "s": 28, "text": "Tensorflow is an open-source machine learning library developed by Google. One of its applications is to develop deep neural networks. " }, { "code": null, "e": 24...
Python | Pandas.apply()
03 Jul, 2018 Pandas.apply allow the users to pass a function and apply it on every single value of the Pandas series. It comes as a huge improvement for the pandas library as this function helps to segregate data according to the conditions required due to which it is efficiently used in data science and machine learni...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jul, 2018" }, { "code": null, "e": 365, "s": 54, "text": "Pandas.apply allow the users to pass a function and apply it on every single value of the Pandas series. It comes as a huge improvement for the pandas library as this functio...
random.gauss() function in Python
26 May, 2020 random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these randomly generated numbers can be determined. gauss() is an inbuilt method of the random module. It is used to return a random floating point numbe...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2020" }, { "code": null, "e": 234, "s": 28, "text": "random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these randomly genera...
HTML Background Images - GeeksforGeeks
17 Aug, 2021 HTML stands for HyperText Markup Language. It is used to design or create web pages using a markup language. It is a combination of Hypertext and Markup language. Here, hypertext defines the link between the web pages whereas markup language is used to define the text document within tag which defines the ...
[ { "code": null, "e": 24073, "s": 24045, "text": "\n17 Aug, 2021" }, { "code": null, "e": 24579, "s": 24073, "text": "HTML stands for HyperText Markup Language. It is used to design or create web pages using a markup language. It is a combination of Hypertext and Markup language. ...
How to use a custom png image marker in a plot (Matplotlib)?
To use custome png or jpg i.e an image as a marker in a plot, we can take the following steps βˆ’ Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Make a paths list to store the directories of images. Make a paths list ...
[ { "code": null, "e": 1158, "s": 1062, "text": "To use custome png or jpg i.e an image as a marker in a plot, we can take the following steps βˆ’" }, { "code": null, "e": 1234, "s": 1158, "text": "Set the figure size and adjust the padding between and around the subplots." }, { ...
Perl seek Function
This function moves to a specified position in a file. You can move relative to the beginning of the file (WHENCE = 0), the current position (WHENCE = 1), or the end of the file (WHENCE = 2). This function is mainly used with fixed length records to randomly access specific records of the file. For WHENCE you may use t...
[ { "code": null, "e": 2516, "s": 2220, "text": "This function moves to a specified position in a file. You can move relative to the beginning of the file (WHENCE = 0), the current position (WHENCE = 1), or the end of the file (WHENCE = 2). This function is mainly used with fixed length records to ran...
Deploying a Trained ML Model using Flask | by Harshit Tyagi | Towards Data Science
Continuing from my last post on End-to-End Machine Learning Project Tutorial where we discussed major tasks of building a robust ML model, this post offers you a simple and fast solution to deploying your ML model on the web. This is the last task in our End-to-End ML fuel consumption project which we started here. In ...
[ { "code": null, "e": 398, "s": 172, "text": "Continuing from my last post on End-to-End Machine Learning Project Tutorial where we discussed major tasks of building a robust ML model, this post offers you a simple and fast solution to deploying your ML model on the web." }, { "code": null, ...