title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Difference between <nav> and <menu> tag in HTML5
27 Apr, 2020 “<nav>” Tag: The <nav> tag is used to specify navigation links either within the same document or any other document which means it provides link to contents which are either on same or different page/document. Example: <!DOCTYPE html><html> <body> <h1>The nav element</h1> <p>The nav element defines...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2020" }, { "code": null, "e": 239, "s": 28, "text": "“<nav>” Tag: The <nav> tag is used to specify navigation links either within the same document or any other document which means it provides link to contents which are either ...
Java Program to Display all the Directories in a Directory
28 Jan, 2022 The directory is the organizing structure of the computer file system which is not only responsible for storing files but also to locate them on the memory. File organization structure is a hierarchical structure involving parent and child relationships just like what is there in tree data structures. It w...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jan, 2022" }, { "code": null, "e": 490, "s": 28, "text": "The directory is the organizing structure of the computer file system which is not only responsible for storing files but also to locate them on the memory. File organization ...
Python – Read CSV Column into List without header
25 Feb, 2021 Prerequisites: Reading and Writing data in CSV CSV files are parsed in python with the help of csv library. The csv library contains objects that are used to read, write and process data from and to CSV files. Sometimes, while working with large amounts of data, we want to omit a few rows or columns, so ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Feb, 2021" }, { "code": null, "e": 76, "s": 28, "text": "Prerequisites: Reading and Writing data in CSV " }, { "code": null, "e": 432, "s": 76, "text": "CSV files are parsed in python with the help of csv library....
Get the full URL in PHP
30 Nov, 2021 In this article, we will see how to get the complete URL of currently running pages using PHP, along with understanding their implementation through the examples. $_SERVER is a super global variable in PHP that contains the details related to the header, paths, and script locations. The status of HTTPS wil...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Nov, 2021" }, { "code": null, "e": 686, "s": 52, "text": "In this article, we will see how to get the complete URL of currently running pages using PHP, along with understanding their implementation through the examples. $_SERVER is...
Simple Calculator using TCP in Java
28 Jun, 2021 Prerequisite: Socket Programming in JavaNetworking just doesn’t conclude with a one-way communication between the client and server. For example consider a time telling server which listens to request of the clients and respond with the current time to the client. Real-time applications usually follow a re...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 401, "s": 54, "text": "Prerequisite: Socket Programming in JavaNetworking just doesn’t conclude with a one-way communication between the client and server. For example consider a time telling serve...
Python | Pandas Series.skew()
05 Feb, 2019 Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.skew() function return unbiased skew...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Feb, 2019" }, { "code": null, "e": 285, "s": 28, "text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index...
JavaFX | Rectangle2D Class
05 Nov, 2019 Rectangle2D class is a part of JavaFX. Rectangle2D class creates a rectangle with the given coordinates of the upper left corner of the rectangle and the width and height or it is defined by a location (minX, minY) and dimension (width x height). Constructors of the class: Rectangle2D(double minX, double m...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Nov, 2019" }, { "code": null, "e": 275, "s": 28, "text": "Rectangle2D class is a part of JavaFX. Rectangle2D class creates a rectangle with the given coordinates of the upper left corner of the rectangle and the width and height or i...
Program to find the next prime number
27 Jul, 2021 Given an integer N. The task is to find the next prime number i.e. the smallest prime number greater than N. Examples: Input: N = 10 Output: 11 11 is the smallest prime number greater than 10. Input: N = 0 Output: 2 Approach: First of all, take a boolean variable found and initialize it to false.Now, u...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Jul, 2021" }, { "code": null, "e": 161, "s": 52, "text": "Given an integer N. The task is to find the next prime number i.e. the smallest prime number greater than N." }, { "code": null, "e": 172, "s": 161, "text...
Smallest integer which has n factors or more
23 Jun, 2022 Given n, find the smallest integer which has n factors or more. It may be assumed that the result is less than 1000001. Examples: Input : n = 3 Output : 4 Explanation: 4 has factors 1, 2 and 4. Input : n = 2 Output : 2 Explanation: 2 has one factor 1 and 2. There are many methods to calculate the numb...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 172, "s": 52, "text": "Given n, find the smallest integer which has n factors or more. It may be assumed that the result is less than 1000001." }, { "code": null, "e": 184, "s": 172...
JavaFX | FileChooser Class
04 Oct, 2021 FileChooser class is a part of JavaFX. It is used to invoke file open dialogs for selecting a single file (showOpenDialog), file open dialogs for selecting multiple files (showOpenMultipleDialog) and file save dialogs (showSaveDialog). FileChooser class inherits Object class. Constructor of the class are :...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Oct, 2021" }, { "code": null, "e": 305, "s": 28, "text": "FileChooser class is a part of JavaFX. It is used to invoke file open dialogs for selecting a single file (showOpenDialog), file open dialogs for selecting multiple files (sho...
Frequency of a substring in a string
09 Dec, 2021 Given an input string and a substring. Find the frequency of occurrences of a substring in a given string. Examples: Input : man (pattern) dhimanman (string) Output : 2 Input : nn (pattern) Banana (String) Output : 0 Input : man (pattern) dhimanman (string) Output : 2 Input : aa...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Dec, 2021" }, { "code": null, "e": 161, "s": 54, "text": "Given an input string and a substring. Find the frequency of occurrences of a substring in a given string." }, { "code": null, "e": 172, "s": 161, "text":...
Simple Chat Room using Python
In this article we will see how to make a server and client chat room system using Socket Programming with Python. The sockets are the endpoints of any communication channel. These are used to connect the server and client. Sockets are Bi-Directional. In this area, we will setup sockets for each end and setup the chatr...
[ { "code": null, "e": 1177, "s": 1062, "text": "In this article we will see how to make a server and client chat room system using Socket Programming with Python." }, { "code": null, "e": 1610, "s": 1177, "text": "The sockets are the endpoints of any communication channel. These a...
Sort an array of strings according to string lengths in C++
Here we will see how to sort a list of strings based on their lengths. So if a string has less number of characters, then that will be placed first, then other longer strings will be placed. Suppose the strings are str_list = {“Hello”, “ABC”, “Programming”, “Length”, “Population”} after sorting, they will be − str_list...
[ { "code": null, "e": 1277, "s": 1062, "text": "Here we will see how to sort a list of strings based on their lengths. So if a string has less number of characters, then that will be placed first, then other longer strings will be placed. Suppose the strings are" }, { "code": null, "e": 1...
How can I get onclick event on webview in Android?
This example demonstrates how do I get onClick event on webView 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"?> <LinearLayo...
[ { "code": null, "e": 1138, "s": 1062, "text": "This example demonstrates how do I get onClick event on webView in android." }, { "code": null, "e": 1267, "s": 1138, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to...
Decorators in Python: Fundamentals for Data Scientists | by Erdem Isbilen | Towards Data Science
Decorators in Python is used to extend the functionality of a callable object without modifying its structure. Basically, decorator functions wrap another function to enhance or modify its behaviour. This post will introduce you to the basics of decorators in Python. Let’s write a Python3 code that contains examples of...
[ { "code": null, "e": 372, "s": 172, "text": "Decorators in Python is used to extend the functionality of a callable object without modifying its structure. Basically, decorator functions wrap another function to enhance or modify its behaviour." }, { "code": null, "e": 440, "s": 372,...
CSS - Fade Out Effect
The image come or cause to come gradually into or out of view, or to merge into another shot. @keyframes fadeOut { 0% {opacity: 1;} 100% {opacity: 0;} } Transform − Transform applies to 2d and 3d transformation to an element. Transform − Transform applies to 2d and 3d transformation to an element. Opacity − Opa...
[ { "code": null, "e": 2720, "s": 2626, "text": "The image come or cause to come gradually into or out of view, or to merge into another shot." }, { "code": null, "e": 2787, "s": 2720, "text": "@keyframes fadeOut {\n 0% {opacity: 1;}\n 100% {opacity: 0;} \n} " }, { "cod...
Debugging Python code using breakpoint() and pdb - GeeksforGeeks
23 Feb, 2019 While developing an application or exploring some features of a language, one might need to debug the code anytime. Therefore, having an idea of debugging the code is quite necessary. Let’s see some basics of debugging using built-in function breakpoint() and pdb module. We know that debugger plays an impo...
[ { "code": null, "e": 24422, "s": 24394, "text": "\n23 Feb, 2019" }, { "code": null, "e": 24694, "s": 24422, "text": "While developing an application or exploring some features of a language, one might need to debug the code anytime. Therefore, having an idea of debugging the code...
Memory leaks in Java
In Java, garbage collection (the work of destructor) is done automatically using garbage collection. But what if there are objects that have references to them in the code? It can’t be de-allocated, i.e their memory can’t be cleared. If such a situation occurs again and again, and the created or referred objects are no...
[ { "code": null, "e": 1458, "s": 1062, "text": "In Java, garbage collection (the work of destructor) is done automatically using garbage collection. But what if there are objects that have references to them in the code? It can’t be de-allocated, i.e their memory can’t be cleared. If such a situation...
Print multiples of Unit Digit of Given Number in C Program
Input number N and fetch the unit digit of a given number and display the multiples of that number. Input − N=326 Output − unit digit is 6 and its multiples are 2 and 3 Note − Unit digit of any number can be fetched by calculating the %10 with that number For example − if your’re given with a number N and you need to f...
[ { "code": null, "e": 1162, "s": 1062, "text": "Input number N and fetch the unit digit of a given number and display the multiples of that number." }, { "code": null, "e": 1176, "s": 1162, "text": "Input − N=326" }, { "code": null, "e": 1231, "s": 1176, "text"...
How to add text to an image using Java OpenCV library?
You can add text to an image using the putText() method of the org.opencv.imgproc.Imgproc class. This method renders the specified text in the given image. It accepts − An empty mat object to store the source image. An empty mat object to store the source image. A string object to specify the desired text. A string obj...
[ { "code": null, "e": 1231, "s": 1062, "text": "You can add text to an image using the putText() method of the org.opencv.imgproc.Imgproc class. This method renders the specified text in the given image. It accepts −" }, { "code": null, "e": 1278, "s": 1231, "text": "An empty mat ...
Tryit Editor v3.6 - Show Python
#if this page is executed with no errors, you have the "mysql.connector" module installed.
[]
Clojure - While Statement
Following is the syntax of the ‘while’ statement. (while(expression) (do codeblock)) The while statement is executed by first evaluating the condition expression (a Boolean value), and if the result is true, then the statements in the while loop are executed. The process is repeated starting from the evaluati...
[ { "code": null, "e": 2424, "s": 2374, "text": "Following is the syntax of the ‘while’ statement." }, { "code": null, "e": 2469, "s": 2424, "text": "(while(expression)\n (do\n codeblock))\n" }, { "code": null, "e": 3002, "s": 2469, "text": "The while sta...
How to draw a hollow circle in SVG?
To draw a hollow circle in SVG, use the <circle> element. For that, use fill=”none” and draw the outline. SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just li...
[ { "code": null, "e": 1168, "s": 1062, "text": "To draw a hollow circle in SVG, use the <circle> element. For that, use fill=”none” and draw the outline." }, { "code": null, "e": 1421, "s": 1168, "text": "SVG stands for Scalable Vector Graphics and is a language for describing 2D-...
\lower - Tex Command
\lower - Used to lower the argument by the amount specified in dimen. { \lower <dimen> #1 } \lower command lowers the argument by the amount specified in dimen. l\lower 2pt {owe} r lower l\lower 2pt {owe} r lower l\lower 2pt {owe} r 14 Lectures 52 mins Ashraf Said 11 Lectures 1 hours ...
[ { "code": null, "e": 8056, "s": 7986, "text": "\\lower - Used to lower the argument by the amount specified in dimen." }, { "code": null, "e": 8078, "s": 8056, "text": "{ \\lower <dimen> #1 }" }, { "code": null, "e": 8147, "s": 8078, "text": "\\lower command l...
Differences between CompletableFuture and Future in Java 9?
CompletableFuture<T> class implements Future<T> interface in Java. CompletableFuture can be used as a Future that has explicitly completed. The Future interface doesn’t provide a lot of features, we need to get the result of asynchronous computation using the get() method, which is blocked, so there is no scope to run ...
[ { "code": null, "e": 1668, "s": 1062, "text": "CompletableFuture<T> class implements Future<T> interface in Java. CompletableFuture can be used as a Future that has explicitly completed. The Future interface doesn’t provide a lot of features, we need to get the result of asynchronous computation usi...
How to get the length of an object in JavaScript?
The length property is only applicable to arrays and strings. So when we call the length property on an object we will get undefined. Live Demo <html> <body> <script> var object = {prop:1, prop:2}; document.write(object.length); </script> </body> </html> undefined Whereas arrays and strings will display their len...
[ { "code": null, "e": 1196, "s": 1062, "text": "The length property is only applicable to arrays and strings. So when we call the length property on an object we will get undefined." }, { "code": null, "e": 1206, "s": 1196, "text": "Live Demo" }, { "code": null, "e": 1...
Python - Processing Unstructured Data
The data that is already present in a row and column format or which can be easily converted to rows and columns so that later it can fit nicely into a database is known as structured data. Examples are CSV, TXT, XLS files etc. These files have a delimiter and either fixed or variable width where the missing values are...
[ { "code": null, "e": 3337, "s": 2529, "text": "The data that is already present in a row and column format or which can be easily converted to rows and columns so that later it can fit nicely into a database is known as structured data. Examples are CSV, TXT, XLS files etc. These files have a delimi...
How to draw profile icon shape in android?
This example demonstrate about How to draw profile icon shape 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"?> <LinearLayout...
[ { "code": null, "e": 1136, "s": 1062, "text": "This example demonstrate about How to draw profile icon shape in android." }, { "code": null, "e": 1265, "s": 1136, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c...
Q-Learning in Python - GeeksforGeeks
09 Nov, 2021 Pre-Requisite : Reinforcement Learning Reinforcement Learning briefly is a paradigm of Learning Process in which a learning agent learns, overtime, to behave optimally in a certain environment by interacting continuously in the environment. The agent during its course of learning experience various differe...
[ { "code": null, "e": 23799, "s": 23771, "text": "\n09 Nov, 2021" }, { "code": null, "e": 23838, "s": 23799, "text": "Pre-Requisite : Reinforcement Learning" }, { "code": null, "e": 24418, "s": 23838, "text": "Reinforcement Learning briefly is a paradigm of Lea...
ARIMA Models with Turing.jl. Using the Probabilistic Programming... | by Saumya Shah | Towards Data Science
Hello! This article is a part of my work done in Julia Season of Contributions (JSoC) 2019. It describes the Julia implementation of ARIMA models using the Probabilistic Programming Language (PPL) Turing.jl, which provides great ease in defining probabilistic models. This aspect of Turing will become more obvious when ...
[ { "code": null, "e": 179, "s": 172, "text": "Hello!" }, { "code": null, "e": 630, "s": 179, "text": "This article is a part of my work done in Julia Season of Contributions (JSoC) 2019. It describes the Julia implementation of ARIMA models using the Probabilistic Programming Lang...
Palindrome Partitioning II in C++
Suppose we have a string s, we have to find the number of cuts needed to divide this string into different substring and each part is a palindrome. So if the string is like “ababba”, then this will take 2 cuts. [aba|bb|a] To solve this, we will follow these steps − n := number of characters in the string s n := number ...
[ { "code": null, "e": 1284, "s": 1062, "text": "Suppose we have a string s, we have to find the number of cuts needed to divide this string into different substring and each part is a palindrome. So if the string is like “ababba”, then this will take 2 cuts. [aba|bb|a]" }, { "code": null, ...
Difference between the shortest and second shortest path in an Unweighted Bidirectional Graph - GeeksforGeeks
26 Oct, 2021 Given an unweighted bidirectional graph containing N nodes and M edges represented by an array arr[][2]. The task is to find the difference in length of the shortest and second shortest paths from node 1 to N. If the second shortest path does not exist, print 0. Note: The graph is connected, does not conta...
[ { "code": null, "e": 25066, "s": 25038, "text": "\n26 Oct, 2021" }, { "code": null, "e": 25329, "s": 25066, "text": "Given an unweighted bidirectional graph containing N nodes and M edges represented by an array arr[][2]. The task is to find the difference in length of the shorte...
JavaFX - Images
You can load and modify images using the classes provided by JavaFX in the package javafx.scene.image. JavaFX supports the image formats like Bmp, Gif, Jpeg, Png. This chapter teaches you how to load images in to JavaFX, how to project an image in multiple views and how to alter the pixels of an image. You can load an ...
[ { "code": null, "e": 2063, "s": 1900, "text": "You can load and modify images using the classes provided by JavaFX in the package javafx.scene.image. JavaFX supports the image formats like Bmp, Gif, Jpeg, Png." }, { "code": null, "e": 2204, "s": 2063, "text": "This chapter teache...
Find number of triplets in array such that a[i]>a[j]>a[k] and i<j<k - GeeksforGeeks
22 Dec, 2021 Given an array arr of size N. The task is to count number of triplets in the array such that a[i]>a[j]>a[k] and i<j<kExamples: Input : arr[] = {10, 8, 3, 1} Output : 4 The triplets are: 1, 3, 8 1, 3, 10 1, 8, 10 3, 8, 10Input : arr[] = {88, 64, 45, 21, 54} Output : 5 Prerequisites: Count inversions App...
[ { "code": null, "e": 25134, "s": 25106, "text": "\n22 Dec, 2021" }, { "code": null, "e": 25263, "s": 25134, "text": "Given an array arr of size N. The task is to count number of triplets in the array such that a[i]>a[j]>a[k] and i<j<kExamples: " }, { "code": null, "e...
GATE CS 2021 Official Important Dates - GeeksforGeeks
03 Jul, 2021 IIT Bombay is organizing GATE 2021. In this year, The GATE authority 2021 has made major changes and has also revised the syllabus of various GATE Papers. They also increase the number of consecutive days from three weeks to two weeks, due to COVID-19 pandemic. Before, it GATE exam was organized in three w...
[ { "code": null, "e": 24256, "s": 24228, "text": "\n03 Jul, 2021" }, { "code": null, "e": 24411, "s": 24256, "text": "IIT Bombay is organizing GATE 2021. In this year, The GATE authority 2021 has made major changes and has also revised the syllabus of various GATE Papers." }, ...
Using AWS Lambda@Edge with CloudFront
Lambda@Edge is an addition to the AWS Lambda compute service which is used to customize the content that cloudfront delivers. The block diagram which shows the working of AWS Lambda with cloudfront from AWS is shown below − There are four ways in which AWS Lambda can be used − Viewer Request − End user makes the reques...
[ { "code": null, "e": 2532, "s": 2406, "text": "Lambda@Edge is an addition to the AWS Lambda compute service which is used to customize the content that cloudfront delivers." }, { "code": null, "e": 2630, "s": 2532, "text": "The block diagram which shows the working of AWS Lambda ...
C program to print string tokens
Suppose we have a string s that contains a sentence with few words. We shall have to print each word into new lines. To do this we can use the strtok() function under the string.h header file. This function takes the string and a delimiter. Here the delimiter is blank space " ". So, if the input is like s = "Let us see...
[ { "code": null, "e": 1342, "s": 1062, "text": "Suppose we have a string s that contains a sentence with few words. We shall have to print each word into new lines. To do this we can use the strtok() function under the string.h header file. This function takes the string and a delimiter. Here the del...
Decimal.Divide() Method in C#
The Decimal.Divide() method in C# is used to divide two specified Decimal values. Following is the syntax − public static decimal Divide (decimal val1, decimal val2); Above, val1 is the dividend, whereas val2 is the divisor. Let us now see an example to implement the Decimal.Divide() method − using System; public class...
[ { "code": null, "e": 1144, "s": 1062, "text": "The Decimal.Divide() method in C# is used to divide two specified Decimal values." }, { "code": null, "e": 1170, "s": 1144, "text": "Following is the syntax −" }, { "code": null, "e": 1229, "s": 1170, "text": "pub...
Understanding basic JavaScript codes. - GeeksforGeeks
30 Apr, 2020 Inserting JavaScript into a webpage is much like inserting any other HTML content. The tags used to add JavaScript in HTML are <script> and </script>. The code surrounded by the <script> and </script> tags is called a script blog.<script> tags can be put between the <head> and </head> tags or between <body...
[ { "code": null, "e": 24444, "s": 24416, "text": "\n30 Apr, 2020" }, { "code": null, "e": 24771, "s": 24444, "text": "Inserting JavaScript into a webpage is much like inserting any other HTML content. The tags used to add JavaScript in HTML are <script> and </script>. The code sur...
Reinforcement Learning with TensorFlow Agents — Tutorial | by Mauricio Fadel Argerich | Towards Data Science
Some weeks ago, I wrote an article naming different frameworks you can use to implement Reinforcement Learning (RL) in your projects, showing the ups and downs of each of them and wondering if any of them would rule them all at some point. Since then, I’ve come to know TF Agents, a library for RL based on TensorFlow an...
[ { "code": null, "e": 672, "s": 171, "text": "Some weeks ago, I wrote an article naming different frameworks you can use to implement Reinforcement Learning (RL) in your projects, showing the ups and downs of each of them and wondering if any of them would rule them all at some point. Since then, I’v...
Build with PyCaret : Deploy on Microsoft Azure Platform | by MA Raza, Ph.D. | Towards Data Science
In this story, I have developed a working tutorial on deploying a model trained with pycaret library on Microsoft's Azure Cloud Platform. In my previous article Build with PyCaret: Deploy on Google Cloud Platform, we had learned how to deploy the model on Google cloud. We will use the same example in this tutorial and ...
[ { "code": null, "e": 538, "s": 172, "text": "In this story, I have developed a working tutorial on deploying a model trained with pycaret library on Microsoft's Azure Cloud Platform. In my previous article Build with PyCaret: Deploy on Google Cloud Platform, we had learned how to deploy the model on...
How to Generate JSON with JsonGenerator in Java?
08 Jun, 2022 The JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is lightweight, flexible, and faster than XML, which is the reason that it is used widely for data interchange between server and client. If you ever work on Java Ent...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2022" }, { "code": null, "e": 577, "s": 28, "text": "The JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is lightweight, flexible, and fast...
Given level order traversal of a Binary Tree, check if the Tree is a Min-Heap
10 Jul, 2022 Given the level order traversal of a Complete Binary Tree, determine whether the Binary Tree is a valid Min-HeapExamples: Input : level = [10, 15, 14, 25, 30] Output : True The tree of the given level order traversal is 10 / \ 15 14 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jul, 2022" }, { "code": null, "e": 176, "s": 52, "text": "Given the level order traversal of a Complete Binary Tree, determine whether the Binary Tree is a valid Min-HeapExamples: " }, { "code": null, "e": 890, "s":...
How to process SQL statements with JDBC explain with an example?
To process an SQL statement, you need to follow the steps given below: Establish the connection. Establish the connection. Create a statement. Create a statement. Execute the statement/query. Execute the statement/query. Process the result. Process the result. Close the connection. Close the connection. To process SQL ...
[ { "code": null, "e": 1258, "s": 1187, "text": "To process an SQL statement, you need to follow the steps given below:" }, { "code": null, "e": 1284, "s": 1258, "text": "Establish the connection." }, { "code": null, "e": 1310, "s": 1284, "text": "Establish the ...
Image Classifier using CNN
29 Jun, 2022 The article is about creating an Image classifier for identifying cat-vs-dogs using TFLearn in Python. The problem is here hosted on kaggle. Machine Learning is now one of the hottest topics around the world. Well, it can even be said as the new electricity in today’s world. But to be precise what is Mach...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jun, 2022" }, { "code": null, "e": 194, "s": 52, "text": "The article is about creating an Image classifier for identifying cat-vs-dogs using TFLearn in Python. The problem is here hosted on kaggle. " }, { "code": null, ...
Reorder the column of dataframe in R using Dplyr
02 Sep, 2021 In this article, we will discuss how to rearrange or reorder the column of the dataframe using dplyr package in R Programming Language. Creating Dataframe for demonstration: R # load the packagelibrary(dplyr) # create the dataframe with three columns# id , department and salary with 8 rowsdata = data.fram...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2021" }, { "code": null, "e": 164, "s": 28, "text": "In this article, we will discuss how to rearrange or reorder the column of the dataframe using dplyr package in R Programming Language." }, { "code": null, "e": 20...
Java Program to Form coils in a matrix
13 Jun, 2022 Given a positive integer n which represents the dimensions of a 4n x 4n matrix with values from 1 to n filled from left to right and top to bottom. Form two coils from the matrix and print the coils. Examples: Input : n = 1; Output : Coil 1 : 10 6 2 3 4 8 12 16 Coil 2 : 7 11 15 14 13 9 5 1 Exp...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jun, 2022" }, { "code": null, "e": 228, "s": 28, "text": "Given a positive integer n which represents the dimensions of a 4n x 4n matrix with values from 1 to n filled from left to right and top to bottom. Form two coils from the mat...
Find all the combinations of the array values in JavaScript
30 Jan, 2020 The task is to get the cartesian product of the arrays(Finding the all combination after concatenating them). Here, 2 approaches are discussed with the help of JavaScript. Approach 1: Get the all arrays in an array. Recursion is used to solve the problem. The base condition is, When the length of the array...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 200, "s": 28, "text": "The task is to get the cartesian product of the arrays(Finding the all combination after concatenating them). Here, 2 approaches are discussed with the help of JavaScript." ...
How to calculate the Size of Folder using C#?
To calculate the size of a folder in C#, use the Directory.EnumerateFiles Method and get the files. To get the sub- directories, use the EnumerateDirectories method. Our folder is set using DirectoryInfo class − DirectoryInfo info = new DirectoryInfo(@"D:/new"); Now find the size − long totalSize = info.EnumerateFiles(...
[ { "code": null, "e": 1287, "s": 1187, "text": "To calculate the size of a folder in C#, use the Directory.EnumerateFiles Method and get the files." }, { "code": null, "e": 1399, "s": 1287, "text": "To get the sub- directories, use the EnumerateDirectories method. Our folder is se...
Cognos - Report Functions
There are various Report functions that can be used in a Cognos report. Some of these different report functions include − This function is used to return a positive or a negative number representing the number of days between the two datetime expressions. If a timestamp_exp1 < timestamp_exp2 then the result will be a ...
[ { "code": null, "e": 2773, "s": 2701, "text": "There are various Report functions that can be used in a Cognos report." }, { "code": null, "e": 2824, "s": 2773, "text": "Some of these different report functions include −" }, { "code": null, "e": 3033, "s": 2824, ...
Getting Unique values from a column in Pandas dataframe
15 Jan, 2019 Let’s see how can we retrieve the unique values from pandas dataframe. Let’s create a dataframe from CSV file. We are using the past data of GDP from different countries. You can get the dataset from here. # import pandas as pdimport pandas as pd gapminder_csv_url ='http://bit.ly/2cLzoxH'# load the data w...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jan, 2019" }, { "code": null, "e": 99, "s": 28, "text": "Let’s see how can we retrieve the unique values from pandas dataframe." }, { "code": null, "e": 234, "s": 99, "text": "Let’s create a dataframe from CSV fil...
How to prevent line breaks in the list of items using CSS?
10 May, 2019 The display:inline-block property is used to show an element in the inline-level block container. It converts the block of elements into an inline element. Use height and width property to set an inline element. The display property is used to prevent a line break of a list of items. Syntax: element { ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2019" }, { "code": null, "e": 313, "s": 28, "text": "The display:inline-block property is used to show an element in the inline-level block container. It converts the block of elements into an inline element. Use height and widt...
Using Selenium in Python to click/select a radio button.
We can select/click the radio button with Selenium. In an html document, each radio button has an attribute type set to a value as radio. In order to select a radio button, we shall first identify it and then apply the click() method to it. Code Implementation. from selenium import webdriver driver = webdriver.Chrome (...
[ { "code": null, "e": 1428, "s": 1187, "text": "We can select/click the radio button with Selenium. In an html document, each radio button has an attribute type set to a value as radio. In order to select a radio button, we shall first identify it and then apply the click() method to it." }, { ...
How to create Hamburger Menu for mobile devices ?
20 Nov, 2020 The hamburger button is the button that placed on the top corner of the web page user interface. The hamburger button toggles the navigation menu bar on the screen. The icon which is associated with this widget, consisting of three horizontal bars, is also known as the collapsed menu icon. We will create: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Nov, 2020" }, { "code": null, "e": 319, "s": 28, "text": "The hamburger button is the button that placed on the top corner of the web page user interface. The hamburger button toggles the navigation menu bar on the screen. The icon w...
Rat in a Maze | Backtracking using Stack
06 May, 2022 Prerequisites – Recursion, Backtracking and Stack Data Structure.A Maze is given as N*M binary matrix of blocks and there is a rat initially at (0, 0) ie. maze[0][0] and the rat wants to eat food which is present at some given block in the maze (fx, fy). In a maze matrix, 0 means that the block is a dead e...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 May, 2022" }, { "code": null, "e": 681, "s": 54, "text": "Prerequisites – Recursion, Backtracking and Stack Data Structure.A Maze is given as N*M binary matrix of blocks and there is a rat initially at (0, 0) ie. maze[0][0] and the ...
randint() Function in Python
25 May, 2022 randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions and one of them being able to generate random numbers, which is randint(). Syntax : randint(start, end) Parameters : (start, end) : Both of them must be integer type values. Return...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2022" }, { "code": null, "e": 264, "s": 54, "text": "randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions and one of them being able to generate random num...
Collection isEmpty() method in Java with Examples
29 Nov, 2018 The isEmpty() of java.util.Collection interface is used to check if the Collection upon which it is called is empty or not. This method does not take any parameter and does not returns any value. Syntax: Collection.isEmpty() Parameters: This method do not accept any parameter Return Value: This method doe...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 224, "s": 28, "text": "The isEmpty() of java.util.Collection interface is used to check if the Collection upon which it is called is empty or not. This method does not take any parameter and does no...
Image Compression using Huffman Coding
21 Nov, 2019 Huffman coding is one of the basic compression methods, that have proven useful in image and video compression standards. When applying Huffman encoding technique on an Image, the source symbols can be either pixel intensities of the Image, or the output of an intensity mapping function. Prerequisites : Hu...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Nov, 2019" }, { "code": null, "e": 343, "s": 54, "text": "Huffman coding is one of the basic compression methods, that have proven useful in image and video compression standards. When applying Huffman encoding technique on an Image...
How to Use Firebase Firestore as a Realtime Database in Android?
20 Jan, 2021 Firebase Firestore is the backend database that is used to add, read, update and delete data from Android. But in Firebase Firestore there is a separate method that is used to read data from Firebase Firestore in Realtime Database. In this article, we will read data from Firebase Firestore in Realtime Data...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jan, 2021" }, { "code": null, "e": 416, "s": 28, "text": "Firebase Firestore is the backend database that is used to add, read, update and delete data from Android. But in Firebase Firestore there is a separate method that is used to...
scipy.rfft() in Python
29 Aug, 2020 With the help of scipy.rfft() method, we can compute the fast fourier transformation for real sequence and return the transformed vector by using this method. Syntax : scipy.fft.rfft(x) Return : Return the transformed vector. Example #1 : In this example we can see that by using scipy.rfft() method, we are...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 187, "s": 28, "text": "With the help of scipy.rfft() method, we can compute the fast fourier transformation for real sequence and return the transformed vector by using this method." }, { "c...
Data Structures | Binary Trees | Question 8
10 Jul, 2018 The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is:(A) n/2(B) (n-1)/3(C) (n-1)/2(D) (2n+1)/3Answer: (D)Explanation: Let L be the number of leaf nodes and I be the number of internal nodes, then following relation holds for above given tree (For details, please se...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Jul, 2018" }, { "code": null, "e": 388, "s": 54, "text": "The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is:(A) n/2(B) (n-1)/3(C) (n-1)/2(D) (2n+1)/3Answer: (D)Explanation: Let L be the n...
Web Search Bar Implementation Using Javascript Conditional Flow
05 Jun, 2020 Given a list of items and the task is to filter through the items and return the best match using the search bar. There are several approaches to implement this but, we will be using a simple if-else statement to implement our search bar. Approach: Create a folder called gfgSearchBar. Open the folder in yo...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 142, "s": 28, "text": "Given a list of items and the task is to filter through the items and return the best match using the search bar." }, { "code": null, "e": 267, "s": 142, "...
Python Set | symmetric_difference()
06 Feb, 2018 This in-built function of Python Set helps us to get the symmetric difference between two sets, which is equal to the elements present in either of the two sets, but not common to both the sets. Let’s look at the Venn diagram of the symmetric_difference between two sets. Symmetric Difference is marked in G...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Feb, 2018" }, { "code": null, "e": 300, "s": 28, "text": "This in-built function of Python Set helps us to get the symmetric difference between two sets, which is equal to the elements present in either of the two sets, but not commo...
Python input() Function
05 Nov, 2021 Python input() function is used to take user input. By default, it returns the user input in form of a string. Syntax input(prompt) Parameter: Prompt: A String, representing a default message (usually screen) before the input. However, it is optional to have a prompt message. Return: input() returns a str...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Nov, 2021" }, { "code": null, "e": 165, "s": 54, "text": "Python input() function is used to take user input. By default, it returns the user input in form of a string." }, { "code": null, "e": 172, "s": 165, "te...
Update multiple rows in same query in PostgreSQL using Pyscopg2-Python
17 Oct, 2021 In this article, we are going to update multiple rows in the same query in PostgreSQL using Pyscopg2in Python. We can update multiple values at once by using the update clause from PostgreSQL. First, we import the psycopg2 package and establish a connection to a PostgreSQL database using the pyscopg2.conne...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Oct, 2021" }, { "code": null, "e": 139, "s": 28, "text": "In this article, we are going to update multiple rows in the same query in PostgreSQL using Pyscopg2in Python." }, { "code": null, "e": 349, "s": 139, "tex...
Print the longest common substring
09 Apr, 2022 Given two strings ‘X’ and ‘Y’, print the length of the longest common substring. If two or more substrings have the same value for the longest common substring, then print any one of them. Examples: Input : X = "GeeksforGeeks", Y = "GeeksQuiz" Output : Geeks Input : X = "zxabcdezy", Y...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Apr, 2022" }, { "code": null, "e": 243, "s": 54, "text": "Given two strings ‘X’ and ‘Y’, print the length of the longest common substring. If two or more substrings have the same value for the longest common substring, then print an...
Number of refills to complete the journey of N km
04 May, 2021 Given a number N which represents the total distance in km to be covered by a car on a single road. There are N petrol pumps at a distance of 1 km each(1, 2, 3, ..N). The capacity of the fuel tank of the car is such that at full tank it goes till a distance of K km. The car has to compulsorily stop at M pe...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 May, 2021" }, { "code": null, "e": 585, "s": 52, "text": "Given a number N which represents the total distance in km to be covered by a car on a single road. There are N petrol pumps at a distance of 1 km each(1, 2, 3, ..N). The cap...
Draw Multiple Time Series in Same Plot in R
26 May, 2022 Time Series in R programming language is used to see how an object behaves over a period of time. In R, it can be easily done by the ts() function with some parameters. Time series takes the data vector and each data is connected with timestamp value as given by the user. First, we create a data vector th...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 May, 2022" }, { "code": null, "e": 328, "s": 54, "text": "Time Series in R programming language is used to see how an object behaves over a period of time. In R, it can be easily done by the ts() function with some parameters. Time ...
numpy.arctan() in Python
29 Nov, 2018 numpy.arctan(x[, out]) = ufunc ‘arctan’) : This mathematical function helps user to calculate inverse tangent for all x(being the array elements). Parameters : array : [array_like]elements are in radians. out : [array_like]array of same shape as x. Note : 2pi Radians = 360 degreesThe convention is to re...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 175, "s": 28, "text": "numpy.arctan(x[, out]) = ufunc ‘arctan’) : This mathematical function helps user to calculate inverse tangent for all x(being the array elements)." }, { "code": null, ...
Python Tweepy – Getting the text of a tweet
18 Jun, 2020 In this article we will see how we can get the text of a status/tweet. A tweet can only have a maximum of 280 characters. The text attribute of the Status object provides us with the text of the status. Identifying the text of the status in the GUI : In the above mentioned status, the text of the status is...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 231, "s": 28, "text": "In this article we will see how we can get the text of a status/tweet. A tweet can only have a maximum of 280 characters. The text attribute of the Status object provides us w...
unordered_multimap equal_range() function in C++ STL
08 Aug, 2018 unordered_multimap::equal_range() is a built-in function in C++ STL which returns the range in which all the element’s key is equal to a key. It returns a pair of iterators where the first is an iterator pointing to the lower bound of the range and second is an iterator pointing to the upper bound of the r...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Aug, 2018" }, { "code": null, "e": 543, "s": 28, "text": "unordered_multimap::equal_range() is a built-in function in C++ STL which returns the range in which all the element’s key is equal to a key. It returns a pair of iterators wh...
lvalues references and rvalues references in C++ with Examples - GeeksforGeeks
02 Sep, 2021 Prerequisites: lvalue and rvalue in C++, References in C++“l-value” refers to a memory location that identifies an object. “r-value” refers to the data value that is stored at some address in memory. References in C++ are nothing but the alternative to the already existing variable. They are declared using...
[ { "code": null, "e": 25918, "s": 25890, "text": "\n02 Sep, 2021" }, { "code": null, "e": 26267, "s": 25918, "text": "Prerequisites: lvalue and rvalue in C++, References in C++“l-value” refers to a memory location that identifies an object. “r-value” refers to the data value that ...
Difference between React.js and Angular.js - GeeksforGeeks
26 Nov, 2021 In this article, we will learn about React js & angular, along with discussing the significant distinction that differentiates Angular from React js. React.js: React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It’s ‘V’ in MVC. ReactJS is an open-source, compon...
[ { "code": null, "e": 25772, "s": 25744, "text": "\n26 Nov, 2021" }, { "code": null, "e": 25922, "s": 25772, "text": "In this article, we will learn about React js & angular, along with discussing the significant distinction that differentiates Angular from React js." }, { ...
Count of matrices (of different orders) with given number of elements - GeeksforGeeks
13 May, 2021 Given a number N denotes the total number of elements in a matrix, the task is to print all possible order of matrix. An order is a pair (m, n) of integers where m is number of rows and n is number of columns. For example, if the number of elements is 8 then all possible orders are: (1, 8), (2, 4), (4, 2),...
[ { "code": null, "e": 25254, "s": 25226, "text": "\n13 May, 2021" }, { "code": null, "e": 25580, "s": 25254, "text": "Given a number N denotes the total number of elements in a matrix, the task is to print all possible order of matrix. An order is a pair (m, n) of integers where m...
Guava - BigIntegerMath Class
BigIntegerMath provides utility methods on BigInteger. Following is the declaration for com.google.common.math.BigIntegerMath class − @GwtCompatible(emulated = true) public final class BigIntegerMath extends Object static BigInteger binomial(int n, int k) Returns n choose k, also known as the binomial coefficient of...
[ { "code": null, "e": 1940, "s": 1885, "text": "BigIntegerMath provides utility methods on BigInteger." }, { "code": null, "e": 2019, "s": 1940, "text": "Following is the declaration for com.google.common.math.BigIntegerMath class −" }, { "code": null, "e": 2103, "...
How to detect orientation change in layout in Android using Kotlin?
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"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app...
[ { "code": null, "e": 1191, "s": 1062, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project." }, { "code": null, "e": 1256, "s": 1191, "text": "Step 2 − Add the following code to res/layout/activit...
Pandas - Cleaning Data
"Wrong data" does not have to be "empty cells" or "wrong format", it can just be wrong, like if someone registered "199" instead of "1.99". Sometimes you can spot wrong data by looking at the data set, because you have an expectation of what it should be. If you take a look at our data set, you can see that in row 7...
[ { "code": null, "e": 142, "s": 0, "text": "\"Wrong data\" does not have to be \"empty cells\" or \"wrong format\", it can \njust be wrong, like if someone registered \"199\" instead of \"1.99\"." }, { "code": null, "e": 259, "s": 142, "text": "Sometimes you can spot wrong data b...
Using Azure Data Factory to incrementally copy files based on URL pattern over HTTP | by Dhyanendra Singh Rathore | Towards Data Science
Copying files using Azure Data Factory is straightforward; however, it gets tricky if the files are being hosted on a third-party web server, and the only way to copy them is by using their URL. In this article, we look at an innovative use of Data factory activities to generate the URLs on the fly to fetch the content...
[ { "code": null, "e": 367, "s": 172, "text": "Copying files using Azure Data Factory is straightforward; however, it gets tricky if the files are being hosted on a third-party web server, and the only way to copy them is by using their URL." }, { "code": null, "e": 563, "s": 367, ...
Implementing Stack in C# - GeeksforGeeks
30 Oct, 2018 Stack is a linear data structure. It follows LIFO(Last In First Out) pattern for Input/output. Following three basic operations are performed in the stack: Push: Adds an item in the stack. If the stack is full, then it is said to be a stack Overflow condition. Pop: Removes an item from the stack. The items...
[ { "code": null, "e": 25745, "s": 25717, "text": "\n30 Oct, 2018" }, { "code": null, "e": 25901, "s": 25745, "text": "Stack is a linear data structure. It follows LIFO(Last In First Out) pattern for Input/output. Following three basic operations are performed in the stack:" }, ...
FLOOR() and CEILING() Function in SQL Server - GeeksforGeeks
29 Sep, 2020 1. FLOOR() Function :The FLOOR() function returns the largest integer value which is less than or equal to a number. Syntax : FLOOR(number) Parameter : Required. A numeric value.number : It is a numeric value.Returns : It returns the integer value. Example-1 :When the argument holds a positive number. SELE...
[ { "code": null, "e": 25303, "s": 25275, "text": "\n29 Sep, 2020" }, { "code": null, "e": 25420, "s": 25303, "text": "1. FLOOR() Function :The FLOOR() function returns the largest integer value which is less than or equal to a number." }, { "code": null, "e": 25429, ...
Deque in C++ Standard Template Library (STL) - GeeksforGeeks
17 Jan, 2022 Double-ended queues are sequence containers with the feature of expansion and contraction on both ends. They are similar to vectors, but are more efficient in case of insertion and deletion of elements. Unlike vectors, contiguous storage allocation may not be guaranteed. Double Ended Queues are basically ...
[ { "code": null, "e": 26960, "s": 26932, "text": "\n17 Jan, 2022" }, { "code": null, "e": 27233, "s": 26960, "text": "Double-ended queues are sequence containers with the feature of expansion and contraction on both ends. They are similar to vectors, but are more efficient in case...
How to edit the CSV file using PowerShell?
To edit the CSV file using PowerShell, you need to use the below commands. We already have the CSV file output.csv, we will import this file first. $csvfile = Import-csv C:\temp\Outfile.csv Below is the output of the CSV file. EMP_Name EMP_ID CITY -------- ------ ---- Charles 2000 New York James...
[ { "code": null, "e": 1137, "s": 1062, "text": "To edit the CSV file using PowerShell, you need to use the below commands." }, { "code": null, "e": 1210, "s": 1137, "text": "We already have the CSV file output.csv, we will import this file first." }, { "code": null, "e...
Pandas DataFrame Group by Consecutive Certain Values | by Christopher Tao | Towards Data Science
It is very common that we want to segment a Pandas DataFrame by consecutive values. However, dealing with consecutive values is almost always not easy in any circumstances such as SQL, so does Pandas. Standard SQL provides a bunch of window functions to facilitate this kind of manipulation, but there are not too many w...
[ { "code": null, "e": 372, "s": 171, "text": "It is very common that we want to segment a Pandas DataFrame by consecutive values. However, dealing with consecutive values is almost always not easy in any circumstances such as SQL, so does Pandas." }, { "code": null, "e": 639, "s": 372...
Python | Numpy np.hypergeometric() method - GeeksforGeeks
18 Oct, 2019 With the help of np.hypergeometric() method, we can get the hypergeometric distribution in the form of an array by using np.hypergeometric() method. Syntax : np.hypergeometric(ngood, nbad, samples, size)Return : Return an array of hypergeometric distribution. Example #1 :In this example we can see that by ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n18 Oct, 2019" }, { "code": null, "e": 24441, "s": 24292, "text": "With the help of np.hypergeometric() method, we can get the hypergeometric distribution in the form of an array by using np.hypergeometric() method." }, { ...
Challenge Handshake Authentication Protocol (CHAP) - GeeksforGeeks
23 Aug, 2021 Challenge Handshake Authentication Protocol (CHAP) is a Point-to-point protocol (PPP) authentication protocol developed by IETF (Internet Engineering Task Force). It is used at the initial startup of the link. Also, it performs periodic checkups to check if the router is still communicating with the same h...
[ { "code": null, "e": 25699, "s": 25671, "text": "\n23 Aug, 2021" }, { "code": null, "e": 26012, "s": 25699, "text": "Challenge Handshake Authentication Protocol (CHAP) is a Point-to-point protocol (PPP) authentication protocol developed by IETF (Internet Engineering Task Force). ...
Python - Channel Drop using Pillow - GeeksforGeeks
17 May, 2020 A channel drop is a method of removing one of the channels of a multichannel image. By removing means turning the color value of a particular channel to 0 (all pixels), i.e. that particular channel doesn’t have any effect on the final image (assuming colors are blended `normally`). Color theory (Color Whee...
[ { "code": null, "e": 25741, "s": 25713, "text": "\n17 May, 2020" }, { "code": null, "e": 26280, "s": 25741, "text": "A channel drop is a method of removing one of the channels of a multichannel image. By removing means turning the color value of a particular channel to 0 (all pix...
How to change spinner text size and text color in Android App using Kotlin?
This example demonstrates how to change spinner text size and text color in Android App using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <RelativeLayout xmlns:an...
[ { "code": null, "e": 1164, "s": 1062, "text": "This example demonstrates how to change spinner text size and text color in Android App using Kotlin." }, { "code": null, "e": 1293, "s": 1164, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fi...
Number of operations required to make all array elements Equal in Python
We have given an array of elements, and we have to make them all equal by incrementing the elements by 1. We are allowed to increment n - 1 element at each step. Our goal is to calculate the total number of operations required to make all the array elements equal. For example, if you take the list [1, 2, 3], it took th...
[ { "code": null, "e": 1327, "s": 1062, "text": "We have given an array of elements, and we have to make them all equal by incrementing the elements by 1. We are allowed to increment n - 1 element at each step. Our goal is to calculate the total number of operations required to make all the array elem...
Python - Maxwell Distribution in Statistics - GeeksforGeeks
31 Dec, 2019 scipy.stats.maxwell() is a Maxwell (Pareto of the second kind) continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution. Parameters : q : lower and upper tail probabilit...
[ { "code": null, "e": 24272, "s": 24244, "text": "\n31 Dec, 2019" }, { "code": null, "e": 24531, "s": 24272, "text": "scipy.stats.maxwell() is a Maxwell (Pareto of the second kind) continuous random variable. It is inherited from the of generic methods as an instance of the rv_con...
Instruction type MOV M, r in 8085 Microprocessor
In 8085 Instruction set, this instruction MOV M, r will copy 8-bit value from the register r to the memory location as pointed by HL register pair.This instruction uses register addressing for specifying the data. As “r” can have any one of the seven values − r = A, B, C, D, E, H, or L Thus there are seven opcodes for...
[ { "code": null, "e": 1276, "s": 1062, "text": "In 8085 Instruction set, this instruction MOV M, r will copy 8-bit value from the register r to the memory location as pointed by HL register pair.This instruction uses register addressing for specifying the data." }, { "code": null, "e": 13...
Program to convert a Vector to List in Java
Let’s say the following is our vector with values − Vector<String> v = new Vector<String>(); v.add("20"); v.add("40"); v.add("60"); v.add("80"); v.add("100"); Now, convert the above Vector to List − List<String>myList = new ArrayList<String>(v); Following is the program to convert a Vector to List in Java − import java...
[ { "code": null, "e": 1114, "s": 1062, "text": "Let’s say the following is our vector with values −" }, { "code": null, "e": 1221, "s": 1114, "text": "Vector<String> v = new Vector<String>();\nv.add(\"20\");\nv.add(\"40\");\nv.add(\"60\");\nv.add(\"80\");\nv.add(\"100\");" }, ...
How to read a file from assets on android?
This example demonstrates how do I read a file from assets 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"?> <RelativeLayout ...
[ { "code": null, "e": 1133, "s": 1062, "text": "This example demonstrates how do I read a file from assets in android." }, { "code": null, "e": 1262, "s": 1133, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to crea...
How to make MySQL table primary key auto increment?
To make MySQL table primary key auto increment, use the below syntax CREATE TABLE yourTableName ( yourColumnName INT(6) ZEROFILL NOT NULL AUTO_INCREMENT, PRIMARY KEY(yourColumnName) ); Let us first create a table and set primary key auto increment − mysql> CREATE TABLE DemoTable ( UserId INT(6) ZEROFI...
[ { "code": null, "e": 1131, "s": 1062, "text": "To make MySQL table primary key auto increment, use the below syntax" }, { "code": null, "e": 1259, "s": 1131, "text": "CREATE TABLE yourTableName\n (\n yourColumnName INT(6) ZEROFILL NOT NULL AUTO_INCREMENT,\n PRIMARY KEY(your...
\rlap - Tex Command
\rlap - Used for right overlap. { \rlap #1 } \rlap command is used for right overlap. It creates a box of width zero; the argument is then placed just to the right of this zero-width box and hence will overlap whatever lies to the right. a\mathrel{\rlap{\;/}{=}}b a/=b a\mathrel{\rlap{\;/}{=}}b a/=b a\mathrel{\r...
[ { "code": null, "e": 8018, "s": 7986, "text": "\\rlap - Used for right overlap." }, { "code": null, "e": 8031, "s": 8018, "text": "{ \\rlap #1 }" }, { "code": null, "e": 8224, "s": 8031, "text": "\\rlap command is used for right overlap. It creates a box of wi...
How to call a stored procedure that accepts input parameters, using JDBC program?
A. Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures. Stored procedures contain IN and OUT parameters or both. They may return result sets in case you use SELECT ...
[ { "code": null, "e": 1274, "s": 1062, "text": "A. Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures." }, { "code": null, "e": 1445...
Web-Scraping and Pre-Processing for NLP | by James Briggs | Towards Data Science
For Natural Language Processing, clean data is important. Even more so when that data is coming from the web. In this article we will go through a real example of web scraping and data pre-processing for a Stoic philosophy text generator. The data we will be using is Epistulae Morales Ad Lucilium (Moral Letters to Luci...
[ { "code": null, "e": 410, "s": 171, "text": "For Natural Language Processing, clean data is important. Even more so when that data is coming from the web. In this article we will go through a real example of web scraping and data pre-processing for a Stoic philosophy text generator." }, { "c...
How to save the summary statistics into a data frame in R?
When we find the summary statistics of a data frame then the output is returned as a table and each of the column records the minimum, first quartile, median, median, third quartile, and maximum with their names. If we want to save this summary as a data frame then it is better to calculate it with apply function and s...
[ { "code": null, "e": 1405, "s": 1062, "text": "When we find the summary statistics of a data frame then the output is returned as a table and each of the column records the minimum, first quartile, median, median, third quartile, and maximum with their names. If we want to save this summary as a dat...
Delete multiple occurrences of key in Linked list using double pointer - GeeksforGeeks
05 Jun, 2018 Given a singly linked list, delete all occurrences of a given key in it. For example, consider the following list. Input: 2 -> 2 -> 4 -> 3 -> 2 Key to delete = 2 Output: 4 -> 3 This is mainly an alternative of this post which deletes multiple occurrences of a given key using separate condition lo...
[ { "code": null, "e": 24567, "s": 24539, "text": "\n05 Jun, 2018" }, { "code": null, "e": 24682, "s": 24567, "text": "Given a singly linked list, delete all occurrences of a given key in it. For example, consider the following list." }, { "code": null, "e": 24754, ...
Read Fixed Width Text File in R
17 Jun, 2021 In this article, we are going to see how to read fixed-width text files in R Programming language. In text files, columns will have fixed widths, specified in characters, which determines the maximum amount of data it can contain. No delimiters are used to separate the fields in the file. Instead, small...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2021" }, { "code": null, "e": 128, "s": 28, "text": "In this article, we are going to see how to read fixed-width text files in R Programming language. " }, { "code": null, "e": 513, "s": 128, "text": "In tex...
Stooge Sort
14 Jun, 2022 Stooge Sort is a recursive sorting algorithm. It is not much efficient but interesting sorting algorithm. It generally divides the array into two overlapping parts (2/3 each). After that it performs sorting in first 2/3 part and then it performs sorting in last 2/3 part. And then, sorting is done on first ...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 404, "s": 52, "text": "Stooge Sort is a recursive sorting algorithm. It is not much efficient but interesting sorting algorithm. It generally divides the array into two overlapping parts (2/3 each)...