title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Exploratory Data Analysis of Well Log Data - Andy McDonald | Towards Data Science
Machine learning and Artificial Intelligence are becoming popular within the geoscience and petrophysics domains. Especially over the past decade. Machine learning is a subdivision of Artificial Intelligence and is the process by which computers can learn and make predictions from data without being explicitly programm...
[ { "code": null, "e": 663, "s": 172, "text": "Machine learning and Artificial Intelligence are becoming popular within the geoscience and petrophysics domains. Especially over the past decade. Machine learning is a subdivision of Artificial Intelligence and is the process by which computers can learn...
Min-Max Range Queries in Array in C++
Given an array Arr[] containing N elements. The goal is to find the minimum and maximum value from indexes of query. According to the query we are given starting index and ending indexes. In − Arr[] = { 1, 2, 3, 4, 5 } QStart = 1 QEnd = 4 Out − Minimum Value : 2 Maximum Value : 5 Explanation −In the above queries the s...
[ { "code": null, "e": 1179, "s": 1062, "text": "Given an array Arr[] containing N elements. The goal is to find the minimum and maximum value from indexes of query." }, { "code": null, "e": 1250, "s": 1179, "text": "According to the query we are given starting index and ending ind...
How to save a Librosa spectrogram plot as a specific sized image?
Librosa is a Python package that helps to analyse audio and music files. This package also helps to create music retrieval information systems. In this article, we will see how to save a Librosa spectrogram plot as an image of specific size. Set the figure size and adjust the padding between and around the subplots.. S...
[ { "code": null, "e": 1304, "s": 1062, "text": "Librosa is a Python package that helps to analyse audio and music files. This package also helps to create music retrieval information systems. In this article, we will see how to save a Librosa spectrogram plot as an image of specific size." }, { ...
Rainfall Time Series Analysis and Forecasting | by Dery Kurniawan | Towards Data Science
A forecast is calculation or estimation of future events, especially for financial trends or coming weather. Until this year, forecasting was very helpful as a foundation to create any action or policy before facing any events. As an example, in the tropics region which several countries only had two seasons in a year ...
[ { "code": null, "e": 885, "s": 172, "text": "A forecast is calculation or estimation of future events, especially for financial trends or coming weather. Until this year, forecasting was very helpful as a foundation to create any action or policy before facing any events. As an example, in the tropi...
Explain Lifetime of a variable in C language.
Storage classes specify the scope, lifetime and binding of variables. To fully define a variable, one needs to mention not only its ‘type’ but also its storage class. A variable name identifies some physical location within computer memory, where a collection of bits are allocated for storing values of variable. Storag...
[ { "code": null, "e": 1132, "s": 1062, "text": "Storage classes specify the scope, lifetime and binding of variables." }, { "code": null, "e": 1229, "s": 1132, "text": "To fully define a variable, one needs to mention not only its ‘type’ but also its storage class." }, { "...
<mat-grid-list> in Angular Material - GeeksforGeeks
24 Sep, 2021 Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. mat-grid-list...
[ { "code": null, "e": 25181, "s": 25150, "text": " \n24 Sep, 2021\n" }, { "code": null, "e": 25539, "s": 25181, "text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to...
How can I show figures separately in Matplotlib?
To show multiple figures in matplotlib, we can take the following Steps − To create a new figure, or activate an existing figure, use the figure() method. (Create two figures namely, Figure1 and Figure2). To create a new figure, or activate an existing figure, use the figure() method. (Create two figures namely, Figure...
[ { "code": null, "e": 1136, "s": 1062, "text": "To show multiple figures in matplotlib, we can take the following Steps −" }, { "code": null, "e": 1267, "s": 1136, "text": "To create a new figure, or activate an existing figure, use the figure() method. (Create two figures namely,...
How to find difference between 2 files in Python?
The Python standard library has a module specifically for the purpose of finding diffs between strings/files. To get a diff using the difflib library, you can simply call the united_diff function on it. For example, Lets say you have 2 files, file1 and file2 with the following content: file1: Hello People of the world ...
[ { "code": null, "e": 1265, "s": 1062, "text": "The Python standard library has a module specifically for the purpose of finding diffs between strings/files. To get a diff using the difflib library, you can simply call the united_diff function on it." }, { "code": null, "e": 1349, "s"...
How to change opacity of every data element on hover in a table using CSS ?
28 May, 2020 There is a Table made by using HTML in which data elements are set to a low opacity. The task is to change the opacity of a particular element when user hover over data elements. To make a table look better, we will use gradient colors to set backgrounds of the table data elements. In this approach, we wil...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2020" }, { "code": null, "e": 207, "s": 28, "text": "There is a Table made by using HTML in which data elements are set to a low opacity. The task is to change the opacity of a particular element when user hover over data elemen...
Find all angles of a triangle in 3D
21 Jul, 2021 Given coordinates of 3 vertices of a triangle in 3D i.e. A(x1, y1, z1), B(x2, y2, z2), C(x3, y3, z3). The task is to find out all the angles of the triangle formed by above coordinates.Examples: Input: x1 = -1, y1 = 3, z1 = 2 x2 = 2, y2 = 3, z2 = 5 x3 = 3, y3 = 5, z3 = -2 Output: angle A = 90.0 degree...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2021" }, { "code": null, "e": 225, "s": 28, "text": "Given coordinates of 3 vertices of a triangle in 3D i.e. A(x1, y1, z1), B(x2, y2, z2), C(x3, y3, z3). The task is to find out all the angles of the triangle formed by above co...
SHA3 in Python
14 Sep, 2021 A cryptographic hash function is an exceptional class of hash function that has certain properties that make it appropriate for use in cryptography. It is a numerical algorithm that maps information of self-assertive size to a piece line of a fixed size (a hash function) which is intended to likewise be a ...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Sep, 2021" }, { "code": null, "e": 437, "s": 54, "text": "A cryptographic hash function is an exceptional class of hash function that has certain properties that make it appropriate for use in cryptography. It is a numerical algorit...
ByteBuffer toString() method in Java with Examples
06 Aug, 2021 The toString() method of ByteBuffer class is the inbuilt method used to returns a string representing the data contained by ByteBuffer Object. A new String object is created and initialized to get the character sequence from this ByteBuffer object and then String is returned by toString(). Subsequent chang...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Aug, 2021" }, { "code": null, "e": 425, "s": 28, "text": "The toString() method of ByteBuffer class is the inbuilt method used to returns a string representing the data contained by ByteBuffer Object. A new String object is created a...
Python | math.ceil() function
11 Mar, 2019 In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.ceil() function returns the smallest integral value greater than the number. If number is already integer, same number is returned. Syntax: math.ceil(x) Parameter: x: This is a nume...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Mar, 2019" }, { "code": null, "e": 285, "s": 28, "text": "In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.ceil() function returns the smallest integral valu...
Subtract 1 without arithmetic operators
24 Jun, 2022 Write a program to subtract one from a given number. The use of operators like ‘+’, ‘-‘, ‘*’, ‘/’, ‘++’, ‘–‘ ...etc are not allowed. Examples: Input: 12 Output: 11 Input: 6 Output: 5 Method 1 To subtract 1 from a number x (say 0011001000), flip all the bits after the rightmost 1 bit (we get 0011001111...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 186, "s": 52, "text": "Write a program to subtract one from a given number. The use of operators like ‘+’, ‘-‘, ‘*’, ‘/’, ‘++’, ‘–‘ ...etc are not allowed. " }, { "code": null, "e": 197...
Python | Pandas dataframe.melt()
09 Dec, 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.melt() function unpivots a DataFrame from wide format to long format, option...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Dec, 2021" }, { "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...
Text Detection and Extraction using OpenCV and OCR
16 Sep, 2021 OpenCV (Open source computer vision) is a library of programming functions mainly aimed at real-time computer vision. OpenCV in python helps to process an image and apply various functions like resizing image, pixel manipulations, object detection, etc. In this article, we will learn how to use contours to...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Sep, 2021" }, { "code": null, "e": 440, "s": 52, "text": "OpenCV (Open source computer vision) is a library of programming functions mainly aimed at real-time computer vision. OpenCV in python helps to process an image and apply var...
Formatting Dates in Python
06 Feb, 2020 In different regions of the world, different types of date formats are used and for that reason usually, programming languages provide a number of date formats for the developed to deal with. In Python, it is dealt with by using liberty called datetime. It consists of class and methods that can be used to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Feb, 2020" }, { "code": null, "e": 367, "s": 28, "text": "In different regions of the world, different types of date formats are used and for that reason usually, programming languages provide a number of date formats for the develop...
PyQt5 - Tri-state Check Box - GeeksforGeeks
22 Apr, 2020 When we create a check box, by default there are two state which are either checked i.e True and other is False. But we can add third state to it which is neither True or False with the help of setTristate method. Below is how all three states looks like. Syntax : checkbox.setTristate(True) Argument : It t...
[ { "code": null, "e": 25739, "s": 25711, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25953, "s": 25739, "text": "When we create a check box, by default there are two state which are either checked i.e True and other is False. But we can add third state to it which is neither ...
Difference between a Static Queue and a Singly Linked List - GeeksforGeeks
27 May, 2021 Static Queue: A queue is an ordered list of elements. It always works in first in first out(FIFO) fashion. All the elements get inserted at the REAR and removed from the FRONT of the queue. In implementation of the static Queue, an array will be used so all operation of queue are index based which makes it...
[ { "code": null, "e": 26203, "s": 26175, "text": "\n27 May, 2021" }, { "code": null, "e": 26713, "s": 26203, "text": "Static Queue: A queue is an ordered list of elements. It always works in first in first out(FIFO) fashion. All the elements get inserted at the REAR and removed fr...
Build A Simple "PhotoShop" Using Python | Towards Data Science
When we want to edit a piece of photo, we usually come up with some professional tools such as PhotoShop. Even though there are a lot of much easier for use tools having a fair amount of features that could satisfy most of our needs, we still usually need to download, install and spend a little bit of time to learn how...
[ { "code": null, "e": 506, "s": 172, "text": "When we want to edit a piece of photo, we usually come up with some professional tools such as PhotoShop. Even though there are a lot of much easier for use tools having a fair amount of features that could satisfy most of our needs, we still usually need...
Pandas vs SQL in 5 Examples. A comparison of the merge in Pandas and... | by Soner Yıldırım | Towards Data Science
Recently, I have written several articles that focus on the comparison of tools and frameworks used in the data science ecosystem such as Pandas vs dplyr, SQL vs NoSQL, Pandas vs SQL, Seaborn vs ggplot2, Seaborn vs Altair, and so on. In these articles, I focus on how a given task can be accomplished with different tool...
[ { "code": null, "e": 405, "s": 171, "text": "Recently, I have written several articles that focus on the comparison of tools and frameworks used in the data science ecosystem such as Pandas vs dplyr, SQL vs NoSQL, Pandas vs SQL, Seaborn vs ggplot2, Seaborn vs Altair, and so on." }, { "code":...
Bresenham’s Line Generation Algorithm - GeeksforGeeks
10 Mar, 2022 Given coordinate of two points A(x1, y1) and B(x2, y2). The task to find all the intermediate points required for drawing line AB on the computer screen of pixels. Note that every pixel has integer coordinates.Examples: Input : A(0,0), B(4,4) Output : (0,0), (1,1), (2,2), (3,3), (4,4) Input : A(0,0), ...
[ { "code": null, "e": 25961, "s": 25933, "text": "\n10 Mar, 2022" }, { "code": null, "e": 26183, "s": 25961, "text": "Given coordinate of two points A(x1, y1) and B(x2, y2). The task to find all the intermediate points required for drawing line AB on the computer screen of pixels....
Design a Keylogger in Python
Here we are going to develop a keylogger using python. But before that, what is a keylogger? Keylogger is a program with which we monitor keystrokes. These keystrokes will be stored in a log file. We can record sensitive information like username and password using this keystroke. To create a keylogger we are going to ...
[ { "code": null, "e": 1344, "s": 1062, "text": "Here we are going to develop a keylogger using python. But before that, what is a keylogger? Keylogger is a program with which we monitor keystrokes. These keystrokes will be stored in a log file. We can record sensitive information like username and pa...
Django - Ajax
Ajax essentially is a combination of technologies that are integrated together to reduce the number of page loads. We generally use Ajax to ease end-user experience. Using Ajax in Django can be done by directly using an Ajax library like JQuery or others. Let's say you want to use JQuery, then you need to download and ...
[ { "code": null, "e": 2522, "s": 2045, "text": "Ajax essentially is a combination of technologies that are integrated together to reduce the number of page loads. We generally use Ajax to ease end-user experience. Using Ajax in Django can be done by directly using an Ajax library like JQuery or other...
float keyword in C# - GeeksforGeeks
22 Jun, 2020 Keywords are the words in a language that are used for some internal process or represent some predefined actions. float is a keyword that is used to declare a variable which can store a floating point value from the range of ±1.5 x 10-45 to ±3.4 x 1038. It is an alias of System.Single. Syntax: float varia...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n22 Jun, 2020" }, { "code": null, "e": 25945, "s": 25657, "text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. float is a keyword that is used to declare a var...
AngularJS | angular.equals() Function - GeeksforGeeks
16 Apr, 2019 The angular.equals() Function in AngularJS is used to compare two objects or two values whether these are same or not. If the two values are same, it returns TRUE else it will return FALSE. Syntax: angular.equals(val1, val2) Where val1 and val2 are the values or the objects to be compared.Return Value: Ret...
[ { "code": null, "e": 29626, "s": 29598, "text": "\n16 Apr, 2019" }, { "code": null, "e": 29816, "s": 29626, "text": "The angular.equals() Function in AngularJS is used to compare two objects or two values whether these are same or not. If the two values are same, it returns TRUE ...
How to Draw a Semi-Circle using HTML and CSS ? - GeeksforGeeks
30 Jul, 2021 A Semi-Circle or a Half-Circle shape can be easily created using HTML and CSS. We will use the border-radius property to draw the desired output. HTML Code: In this section we will create a simple “div” element using the <div> tag. HTML <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <...
[ { "code": null, "e": 26803, "s": 26775, "text": "\n30 Jul, 2021" }, { "code": null, "e": 26949, "s": 26803, "text": "A Semi-Circle or a Half-Circle shape can be easily created using HTML and CSS. We will use the border-radius property to draw the desired output." }, { "co...
SQL Query to Display Nth Record from Employee Table
13 Apr, 2021 Here. we are going to see how to retrieve and display Nth records from a Microsoft SQL Server’s database table using an SQL query. We will first create a database called “geeks” and then create “Employee” table in this database and will execute our query on that table. Use the below SQL statement to create...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Apr, 2021" }, { "code": null, "e": 324, "s": 54, "text": "Here. we are going to see how to retrieve and display Nth records from a Microsoft SQL Server’s database table using an SQL query. We will first create a database called “gee...
Transitive closure of a graph
20 Jun, 2022 Given a directed graph, find out if a vertex j is reachable from another vertex i for all vertex pairs (i, j) in the given graph. Here reachable mean that there is a path from vertex i to j. The reach-ability matrix is called the transitive closure of a graph. For example, consider below graph Transitive c...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jun, 2022" }, { "code": null, "e": 315, "s": 54, "text": "Given a directed graph, find out if a vertex j is reachable from another vertex i for all vertex pairs (i, j) in the given graph. Here reachable mean that there is a path fro...
Python | Merging two strings with Suffix and Prefix
25 Nov, 2019 Given two strings A and B and these strings contain lower case letters. The task is to tell the length of the merged strings. For example, given A is “abcde” and B is “cdefg”, then merging the two strings results in “abcdefg”. The merge operation is performed in such a manner that the joining characters ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Nov, 2019" }, { "code": null, "e": 448, "s": 28, "text": "Given two strings A and B and these strings contain lower case letters. The task is to tell the length of the merged strings. For example, given A is “abcde” and B is “cdefg”,...
Working with Excel Files in R Programming
12 Jan, 2022 Excel files are of extension .xls, .xlsx and .csv(comma-separated values). To start working with excel files in R Programming Language, we need to first import excel files in RStudio or any other R supporting IDE(Integrated development environment). First, install readxl package in R to load excel files. V...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 278, "s": 28, "text": "Excel files are of extension .xls, .xlsx and .csv(comma-separated values). To start working with excel files in R Programming Language, we need to first import excel files in ...
Bank of America Interview Experience | On-Campus 2021
12 Oct, 2021 Bank of America visited our campus on 9th September for various profiles testing, analysis, and development. The whole interview process was done virtually. It consists of 3 rounds. Online AssessmentHR RoundTechnical Round and Managerial Round Online Assessment HR Round Technical Round and Managerial Round...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 137, "s": 28, "text": "Bank of America visited our campus on 9th September for various profiles testing, analysis, and development." }, { "code": null, "e": 210, "s": 137, "text"...
Media.net Interview Experience 2021
06 Aug, 2021 Online Assessment: Given a tree rooted at 1 with n nodes, q queries are given. In each query, d, e are given as input. You need to find the maximum value of e^x where x is one of the ancestors of d or d itself in the tree.n<=10^5 q<=3*10^5 e<=3*10^5 1<=d<=nA bus stops at n bus stops, each bus stop having a...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Aug, 2021" }, { "code": null, "e": 73, "s": 54, "text": "Online Assessment:" }, { "code": null, "e": 1956, "s": 73, "text": "Given a tree rooted at 1 with n nodes, q queries are given. In each query, d, e are giv...
How to get the current Date and Time in PHP ?
14 Jan, 2021 The purpose of the article is to get the current Date and Time in PHP. It is performed by using a simple in-built PHP function date(). The Date is an inbuilt function used to format the timestamp. The computer stores date and time in UNIX timestamp. This time is measured as a number of seconds since Jan 1,...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jan, 2021" }, { "code": null, "e": 488, "s": 28, "text": "The purpose of the article is to get the current Date and Time in PHP. It is performed by using a simple in-built PHP function date(). The Date is an inbuilt function used to ...
ListField in serializers – Django REST Framework
29 Jul, 2021 In Django REST Framework the very concept of Serializing is to convert DB data to a datatype that can be used by javascript. Every serializer comes with some fields (entries) which are going to be processed. For example if you have a class with name Employee and its fields as Employee_id, Employee_name, is...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jul, 2021" }, { "code": null, "e": 644, "s": 28, "text": "In Django REST Framework the very concept of Serializing is to convert DB data to a datatype that can be used by javascript. Every serializer comes with some fields (entries) ...
Pair in Kotlin
02 Aug, 2019 In programming, we call functions to perform a particular task. The best thing about function is that we can call it any number of times and it return some value after computation i.e. if we are having add() function then it always returns the sum of both the numbers entered. But, functions has some limita...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Aug, 2019" }, { "code": null, "e": 305, "s": 28, "text": "In programming, we call functions to perform a particular task. The best thing about function is that we can call it any number of times and it return some value after computa...
Save Files in ElectronJS
28 May, 2020 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. Any nat...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2020" }, { "code": null, "e": 328, "s": 28, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable ...
Create Subsets of a Data frame in R Programming – subset() Function
22 Nov, 2021 subset() function in R Programming Language is used to create subsets of a Data frame. This can also be used to drop columns from a data frame. Syntax: subset(df, expr) Parameters: df: Data frame used expr: Condition for subset Here we will make subsets of dataframe using subset() methods in R language. R...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2021" }, { "code": null, "e": 172, "s": 28, "text": "subset() function in R Programming Language is used to create subsets of a Data frame. This can also be used to drop columns from a data frame." }, { "code": null, ...
How to pass PHP Variables by reference ?
20 Dec, 2018 By default, PHP variables are passed by value as the function arguments in PHP. When variables in PHP is passed by value, the scope of the variable defined at function level bound within the scope of function. Changing either of the variables doesn’t have any effect on either of the variables. Example: <?p...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Dec, 2018" }, { "code": null, "e": 323, "s": 28, "text": "By default, PHP variables are passed by value as the function arguments in PHP. When variables in PHP is passed by value, the scope of the variable defined at function level b...
map find() function in C++ STL
In this article we will be discussing the working, syntax and examples of map::find() function in C++ STL. Maps are the associative container, which facilitates to store the elements formed by a combination on key value and mapped value in a specific order. In a map container the data is internally always sorted with t...
[ { "code": null, "e": 1294, "s": 1187, "text": "In this article we will be discussing the working, syntax and examples of map::find() function in C++ STL." }, { "code": null, "e": 1599, "s": 1294, "text": "Maps are the associative container, which facilitates to store the elements...
Divide and Conquer | Set 5 (Strassen’s Matrix Multiplication)
23 Jun, 2022 Given two square matrices A and B of size n x n each, find their multiplication matrix. Naive Method: Following is a simple way to multiply two matrices. C++ C Java Python3 C# Javascript void multiply(int A[][N], int B[][N], int C[][N]){ for (int i = 0; i < N; i++) { for (int j = 0; j < N; j...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 143, "s": 54, "text": "Given two square matrices A and B of size n x n each, find their multiplication matrix. " }, { "code": null, "e": 210, "s": 143, "text": "Naive Method: Fo...
What is the benefit of zerofill in MySQL?
ZEROFILL pads the displayed value of the field with zeros up to the display width set in the column definition. Let us understand the role of zero fill in MySQL using an example. Creating a table with two columns, one has zerofill and the second one does not. The query to create a table. mysql> create table ZeroFillDem...
[ { "code": null, "e": 1351, "s": 1062, "text": "ZEROFILL pads the displayed value of the field with zeros up to the display width set in the column definition. Let us understand the role of zero fill in MySQL using an example. Creating a table with two columns, one has zerofill and the second one doe...
Amazon Interview experience | Set 324 (For SDE2) - GeeksforGeeks
08 Jul, 2019 I got a call from an consultant for recruitment drive in Delhi. First round (1 hour 30 minutes): online writtenIt was online written round on a platform called Stockroom.io. Two string a haystack and needle is given find at what all indexes needle occurs in haystack as an anagram(0 based indexing)INPUT: st...
[ { "code": null, "e": 26477, "s": 26449, "text": "\n08 Jul, 2019" }, { "code": null, "e": 26541, "s": 26477, "text": "I got a call from an consultant for recruitment drive in Delhi." }, { "code": null, "e": 26651, "s": 26541, "text": "First round (1 hour 30 min...
How to Build a Book Library App using Google Books API in Android? - GeeksforGeeks
21 Jan, 2021 If you are looking for building a book library app and you want to load a huge data of books then for adding this feature, you have to use a simple API which is provided by Google, and of course, it’s free. In this article, we will take a look at the implementation of this API in our Android App. We will ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n21 Jan, 2021" }, { "code": null, "e": 26680, "s": 26381, "text": "If you are looking for building a book library app and you want to load a huge data of books then for adding this feature, you have to use a simple API which is pr...
How to add Custom Events in Pygame? - GeeksforGeeks
17 Jun, 2021 In this article, we will see how to add custom events in PyGame. PyGame library can be installed using the below command: pip install pygame Although PyGame comes with a set of events (Eg: KEYDOWN and KEYUP), it allows us to create our own additional custom events according to the requirements of our game...
[ { "code": null, "e": 25581, "s": 25553, "text": "\n17 Jun, 2021" }, { "code": null, "e": 25647, "s": 25581, "text": "In this article, we will see how to add custom events in PyGame. " }, { "code": null, "e": 25704, "s": 25647, "text": "PyGame library can be in...
Program to Print Pyramid Pattern using numbers - GeeksforGeeks
22 Apr, 2021 Given a number N denoting the number of rows. The task is to print the zigzag pattern with N rows as shown in the below examples.Examples: Input : 2 Output : 1 2 3 Input : 5 Output : 1 2 6 3 7 10 4...
[ { "code": null, "e": 25616, "s": 25588, "text": "\n22 Apr, 2021" }, { "code": null, "e": 25757, "s": 25616, "text": "Given a number N denoting the number of rows. The task is to print the zigzag pattern with N rows as shown in the below examples.Examples: " }, { "code": ...
Packages in Perl - GeeksforGeeks
11 Feb, 2019 A Perl package is a collection of code which resides in its own namespace. Perl module is a package defined in a file having the same name as that of the package and having extension .pm. Two different modules may contain a variable or a function of the same name. Any variable which is not contained in any...
[ { "code": null, "e": 26525, "s": 26497, "text": "\n11 Feb, 2019" }, { "code": null, "e": 27075, "s": 26525, "text": "A Perl package is a collection of code which resides in its own namespace. Perl module is a package defined in a file having the same name as that of the package a...
How to display a PySpark DataFrame in table format ? - GeeksforGeeks
27 Jul, 2021 In this article, we are going to display the data of the PySpark dataframe in table format. We are going to use show() function and toPandas function to display the dataframe in the required format. show(): Used to display the dataframe. Syntax: dataframe.show( n, vertical = True, truncate = n) where, data...
[ { "code": null, "e": 25421, "s": 25393, "text": "\n27 Jul, 2021" }, { "code": null, "e": 25620, "s": 25421, "text": "In this article, we are going to display the data of the PySpark dataframe in table format. We are going to use show() function and toPandas function to display th...
Perl | File Locking - GeeksforGeeks
26 Jan, 2019 File locking, or locking in general, is just one of the various solutions proposed to deal with problems associated with resource sharing.File locking is a method to preserving the security and integrity of any document. The main motive of file locking is allowing people to commit changes to the document w...
[ { "code": null, "e": 25339, "s": 25311, "text": "\n26 Jan, 2019" }, { "code": null, "e": 25771, "s": 25339, "text": "File locking, or locking in general, is just one of the various solutions proposed to deal with problems associated with resource sharing.File locking is a method ...
Convert Text file to JSON in Python - GeeksforGeeks
29 Dec, 2020 JSON (JavaScript Object Notation) is a data-interchange format that is human-readable text and is used to transmit data, especially between web applications and servers. The JSON files will be like nested dictionaries in Python. To convert a text file into JSON, there is a json module in Python. This modul...
[ { "code": null, "e": 25543, "s": 25515, "text": "\n29 Dec, 2020" }, { "code": null, "e": 25943, "s": 25543, "text": "JSON (JavaScript Object Notation) is a data-interchange format that is human-readable text and is used to transmit data, especially between web applications and se...
CSS Styling Images - GeeksforGeeks
11 Oct, 2021 Styling images in CSS works exactly the same way as styling any element using the Box Model of padding, borders, and margins for the content. There are many ways to set style in images which are listed below: Thumbnail images Rounded images Responsive Images Transparent Image Center an Image We will discus...
[ { "code": null, "e": 24917, "s": 24889, "text": "\n11 Oct, 2021" }, { "code": null, "e": 25126, "s": 24917, "text": "Styling images in CSS works exactly the same way as styling any element using the Box Model of padding, borders, and margins for the content. There are many ways t...
matplotlib.pyplot.prism() in Python - GeeksforGeeks
22 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. The prism() function in pyplot module of matplotlib library is used to set the colormap to “prism”. Syntax: matp...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25732, "s": 25537, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which pr...
What is the difference between Array.slice() and Array.splice() in JavaScript ? - GeeksforGeeks
19 Feb, 2020 Javascript arrays are variables that can hold more than one value. There are many methods associated with these arrays. The methods slice() and splice() are widely used methods for array manipulations. There are various differences between them which are listed in the table below. Syntax: slice():array_nam...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n19 Feb, 2020" }, { "code": null, "e": 25977, "s": 25695, "text": "Javascript arrays are variables that can hold more than one value. There are many methods associated with these arrays. The methods slice() and splice() are widely...
Find two numbers from their sum and XOR - GeeksforGeeks
09 Nov, 2020 Given the sum and xor of two numbers X and Y s.t. sum and xor , we need to find the numbers minimizing the value of X. Examples : Input : S = 17 X = 13 Output : a = 2 b = 15 Input : S = 1870807699 X = 259801747 Output : a = 805502976 b = 1065304723 Input : S = 1639 ...
[ { "code": null, "e": 26219, "s": 26191, "text": "\n09 Nov, 2020" }, { "code": null, "e": 26338, "s": 26219, "text": "Given the sum and xor of two numbers X and Y s.t. sum and xor , we need to find the numbers minimizing the value of X." }, { "code": null, "e": 26349, ...
Matplotlib.pyplot.connect() in Python - GeeksforGeeks
03 May, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. This method is used to connect an event with string s to a function. Syntax: matplotlib.pyplot.connect(s, func) ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n03 May, 2020" }, { "code": null, "e": 25732, "s": 25537, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which pr...
Flutter - Snackbar - GeeksforGeeks
15 May, 2022 Snackbar is a widget provided by flutter to display a dismissible pop-up message on your application. It is used to show users if certain actions take place in our applications. For example, if the user login process fails due to some reason, so to inform the user to try again we can use snackbar. It pops ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n15 May, 2022" }, { "code": null, "e": 27109, "s": 26381, "text": "Snackbar is a widget provided by flutter to display a dismissible pop-up message on your application. It is used to show users if certain actions take place in our...
How to Iterate over Dataframe Groups in Python-Pandas? - GeeksforGeeks
18 Aug, 2020 In this article, we’ll see how we can iterate over the groups in which a dataframe is divided. So, let’s see different ways to do this task. First, Let’s create a dataframe: Code: Python3 # import pandas libraryimport pandas as pd # dictionarydict = {'X': ['A', 'B', 'A', 'B'], 'Y': [1, 4, 3, 2]} #...
[ { "code": null, "e": 26317, "s": 26289, "text": "\n18 Aug, 2020" }, { "code": null, "e": 26458, "s": 26317, "text": "In this article, we’ll see how we can iterate over the groups in which a dataframe is divided. So, let’s see different ways to do this task." }, { "code": ...
How to convert XML file into array in PHP? - GeeksforGeeks
02 Jul, 2019 Given an XML document and the task is to convert an XML file into PHP array. To convert the XML document into PHP array, some PHP functions are used which are listed below: file_get_contents() function: The file_get_contents() function is used to read a file as string. This function uses memory mapping tec...
[ { "code": null, "e": 26181, "s": 26153, "text": "\n02 Jul, 2019" }, { "code": null, "e": 26354, "s": 26181, "text": "Given an XML document and the task is to convert an XML file into PHP array. To convert the XML document into PHP array, some PHP functions are used which are list...
Maximum jumps to reach end of Array with condition that index i can make arr[i] jumps - GeeksforGeeks
22 Jul, 2021 Given an integer N and an array arr[ ] of size N, the task is to find the maximum jumps to reach the end of the array given the constraint that from index i can make arr[i] jumps and reach the position i+arr[i]. Examples: Input: N = 5, arr[] = {2, 3, 5, 7, 9}Output: 12 Explanation:At index 0 make 2 jumps a...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n22 Jul, 2021" }, { "code": null, "e": 26279, "s": 26067, "text": "Given an integer N and an array arr[ ] of size N, the task is to find the maximum jumps to reach the end of the array given the constraint that from index i can ma...
Python SQLite - Insert Data - GeeksforGeeks
30 Apr, 2021 In this article, we will discuss how can we insert data in a table in the SQLite database from Python using the sqlite3 module. The SQL INSERT INTO statement of SQL is used to insert a new row in a table. There are two ways of using the INSERT INTO statement for inserting rows: Only values: The first metho...
[ { "code": null, "e": 25799, "s": 25771, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26078, "s": 25799, "text": "In this article, we will discuss how can we insert data in a table in the SQLite database from Python using the sqlite3 module. The SQL INSERT INTO statement of SQ...
Taking password as input in C++ - GeeksforGeeks
21 Aug, 2021 There are two methods in which input can be taken in a more secure way: Do not display any content. Display a special character such as an asterisk instead of actual content. In this method, input content will be invisible. This can be implemented in two ways: Program 1: Below is the program where console ...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n21 Aug, 2021" }, { "code": null, "e": 25439, "s": 25367, "text": "There are two methods in which input can be taken in a more secure way:" }, { "code": null, "e": 25467, "s": 25439, "text": "Do not display any...
Custom Hooks in ReactJS
In this article, we are going to learn how to define custom hooks in ReactJS. All the rules and usage guidelines are the same as that of the predefined ReactJS hooks like − Call Hooks at the Top Level Call Hooks at the Top Level Call Hooks from React Functions only Call Hooks from React Functions only In this example, ...
[ { "code": null, "e": 1140, "s": 1062, "text": "In this article, we are going to learn how to define custom hooks in ReactJS." }, { "code": null, "e": 1235, "s": 1140, "text": "All the rules and usage guidelines are the same as that of the predefined ReactJS hooks like −" }, {...
Find initial integral solution of Linear Diophantine equation if finite solution exists - GeeksforGeeks
22 Dec, 2021 Given three integers a, b, and c representing a linear equation of the form: ax + by = c. The task is to find the initial integral solution of the given equation if a finite solution exists. A Linear Diophantine equation (LDE) is an equation with 2 or more integer unknowns and the integer unknowns are each...
[ { "code": null, "e": 24620, "s": 24592, "text": "\n22 Dec, 2021" }, { "code": null, "e": 24811, "s": 24620, "text": "Given three integers a, b, and c representing a linear equation of the form: ax + by = c. The task is to find the initial integral solution of the given equation i...
Find the safe position | Practice | GeeksforGeeks
There was a group of Jewish soldiers who were surrounded by Roman Army in a circular fence. They decided not to get captured by the brutal Roman Army. So, they made a plan. They planned to kill each other. The soldier would kill the fellow soldier next to him on left. They would do so till only one soldier is left and ...
[ { "code": null, "e": 923, "s": 226, "text": "There was a group of Jewish soldiers who were surrounded by Roman Army in a circular fence. They decided not to get captured by the brutal Roman Army. So, they made a plan.\nThey planned to kill each other. The soldier would kill the fellow soldier next t...
Python - Compare Dictionaries on certain Keys - GeeksforGeeks
04 May, 2020 Sometimes, while working with Python dictionaries, we can have a problem in which we need to compare dictionaries for equality on bases in selected keys. This kind of problem is common and has application in many domains. Lets discuss certain ways in which this task can be performed. Method #1 : Using loop...
[ { "code": null, "e": 26341, "s": 26313, "text": "\n04 May, 2020" }, { "code": null, "e": 26626, "s": 26341, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to compare dictionaries for equality on bases in selected keys. This kind...
Number System: Cyclicity of Numbers - GeeksforGeeks
21 Oct, 2021 Number System is a method of representing numbers on the number line with the help of a set of symbols and rules. These symbols range from 0-9 and are termed digits. The Number System is used to perform mathematical computations ranging from great scientific calculations to calculations like counting the n...
[ { "code": null, "e": 24470, "s": 24442, "text": "\n21 Oct, 2021" }, { "code": null, "e": 24932, "s": 24470, "text": "Number System is a method of representing numbers on the number line with the help of a set of symbols and rules. These symbols range from 0-9 and are termed digit...
Red-Black Tree | Set 3 (Delete) - GeeksforGeeks
23 Dec, 2021 We have discussed the following topics on the Red-Black tree in previous posts. We strongly recommend referring following post as a prerequisite of this post.Red-Black Tree Introduction Red Black Tree InsertInsertion Vs Deletion: Like Insertion, recoloring and rotations are used to maintain the Red-Black p...
[ { "code": null, "e": 26143, "s": 26115, "text": "\n23 Dec, 2021" }, { "code": null, "e": 27954, "s": 26143, "text": "We have discussed the following topics on the Red-Black tree in previous posts. We strongly recommend referring following post as a prerequisite of this post.Red-B...
Bitwise AND of all unordered pairs from a given array - GeeksforGeeks
26 Jul, 2021 Given an array arr[] of size N, the task is to find the bitwise AND of all possible unordered pairs present in the given array. Examples: Input: arr[] = {1, 5, 3, 7}Output: 1 Explanation: All possible unordered pairs are (1, 5), (1, 3), (1, 7), (5, 3), (5, 7), (3, 7). Bitwise AND of all possible pairs = (...
[ { "code": null, "e": 26993, "s": 26962, "text": " \n26 Jul, 2021\n" }, { "code": null, "e": 27121, "s": 26993, "text": "Given an array arr[] of size N, the task is to find the bitwise AND of all possible unordered pairs present in the given array." }, { "code": null, ...
How to Calculate the Code Execution Time in C#? - GeeksforGeeks
23 Nov, 2021 The execution time of a task is defined as the time taken by the system to execute that task. The execution time of a program is equal to the sum of the execution time of its statements. There are numerous ways to calculate the execution time of a program in C#. In this article, we will see three ways to m...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n23 Nov, 2021" }, { "code": null, "e": 25993, "s": 25657, "text": "The execution time of a task is defined as the time taken by the system to execute that task. The execution time of a program is equal to the sum of the execution ...
How to Exclude Columns in Pandas? - GeeksforGeeks
19 Dec, 2021 In this article, we will discuss how to exclude columns in pandas dataframe. Let’s create a dataframe with four columns in python. Python3 # import pandas moduleimport pandas as pd # create food dataframedata = pd.DataFrame({'food_id': [1, 2, 3, 4], 'name': ['idly', 'dosa', 'poori', 'c...
[ { "code": null, "e": 26088, "s": 26060, "text": "\n19 Dec, 2021" }, { "code": null, "e": 26165, "s": 26088, "text": "In this article, we will discuss how to exclude columns in pandas dataframe." }, { "code": null, "e": 26219, "s": 26165, "text": "Let’s create ...
C program to find Highest Common Factor (HCF) and Least Common Multiple (LCM)
First, let us learn how to find Highest Common Factor (HCF). The greatest number divides each of the two or more numbers is called HCF or Highest Common Factor. It is also called as Greatest Common Measure(GCM) and Greatest Common Divisor(GCD). For example, What is the HCF of 12 and 16? Factors of 12 = 1, 2, 3, 4, 6,12...
[ { "code": null, "e": 1123, "s": 1062, "text": "First, let us learn how to find Highest Common Factor (HCF)." }, { "code": null, "e": 1307, "s": 1123, "text": "The greatest number divides each of the two or more numbers is called HCF or Highest Common Factor. It is also called as ...
GATE | GATE-CS-2014-(Set-3) | Question 65 - GeeksforGeeks
20 Sep, 2021 Let X denote the Exclusive OR (XOR) operation. Let ‘1’ and ‘0’ denote the binary constants. Consider the following Boolean expression for F over two variables P and Q: F(P, Q) = ( ( 1 X P) X (P X Q) ) X ( (P X Q) X (Q X 0) ) The equivalent expression for F is(A) P + Q(B) (P + Q)’(C) P X Q(D) (P X Q)’Answe...
[ { "code": null, "e": 25649, "s": 25621, "text": "\n20 Sep, 2021" }, { "code": null, "e": 25817, "s": 25649, "text": "Let X denote the Exclusive OR (XOR) operation. Let ‘1’ and ‘0’ denote the binary constants. Consider the following Boolean expression for F over two variables P an...
Statistical - NORM.S.INV Function
The NORMS.S.INV function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one. NORM.S.INV (probability) If probability is nonnumeric, NORMS.INV returns the #VALUE! error value. If probability is nonnumeric, NORMS.INV returns the #VALUE!...
[ { "code": null, "e": 2016, "s": 1854, "text": "The NORMS.S.INV function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one." }, { "code": null, "e": 2042, "s": 2016, "text": "NORM.S.INV (probabil...
Swing Examples - Show Confirm Dialog with custom buttons
Following example showcase how to show confirm dialog with customized button texts in swing based application. We are using the following APIs. JOptionPane − To create a standard dialog box. JOptionPane − To create a standard dialog box. JOptionPane.showOptionDialog() − To show the message alert with multiple options. ...
[ { "code": null, "e": 2150, "s": 2039, "text": "Following example showcase how to show confirm dialog with customized button texts in swing based application." }, { "code": null, "e": 2183, "s": 2150, "text": "We are using the following APIs." }, { "code": null, "e": 2...
Five Advanced Plots in Python — Matplotlib | by Rashida Nasrin Sucky | Towards Data Science
Data visualization is probably the most widely used feature in data science for obvious reasons. Visualization is the best way to present and understand data. So, it is a good idea to have a lot of visualization tools in hand. Because different kind of visualization is appropriate in a different situation. In this arti...
[ { "code": null, "e": 562, "s": 172, "text": "Data visualization is probably the most widely used feature in data science for obvious reasons. Visualization is the best way to present and understand data. So, it is a good idea to have a lot of visualization tools in hand. Because different kind of vi...
Filter null from an array in JavaScript?
To filter null from an array and display only non-null values instead, use filter(). Following is the code − var names=[null,"John",null,"David","","Mike",null,undefined,"Bob","Adam",null,null]; console.log("Before filter null="); console.log(names); var filterNull=[]; filterNullValues=names.filter(obj=>obj); console.l...
[ { "code": null, "e": 1171, "s": 1062, "text": "To filter null from an array and display only non-null values instead, use filter(). Following is the\ncode −" }, { "code": null, "e": 1453, "s": 1171, "text": "var\nnames=[null,\"John\",null,\"David\",\"\",\"Mike\",null,undefined,\"...
C++ Program to Implement Trie
Here we shall discuss a C++ Program to implement Trie. It is a tree based data structure, used for efficient retrieval of a key in a large data-set of strings. Begin function insert() : If key not present, inserts key into trie. If the key is prefix of trie node, just mark leaf node. End Begin function deleteNode() ...
[ { "code": null, "e": 1222, "s": 1062, "text": "Here we shall discuss a C++ Program to implement Trie. It is a tree based data structure, used for efficient retrieval of a key in a large data-set of strings." }, { "code": null, "e": 1866, "s": 1222, "text": "Begin\nfunction insert...
Java 8 - Method References
Method references help to point to methods by their names. A method reference is described using "::" symbol. A method reference can be used to point the following types of methods − Static methods Instance methods Constructors using new operator (TreeSet::new) Create the following Java program using any editor of your...
[ { "code": null, "e": 2057, "s": 1874, "text": "Method references help to point to methods by their names. A method reference is described using \"::\" symbol. A method reference can be used to point the following types of methods −" }, { "code": null, "e": 2072, "s": 2057, "text"...
Minimum element in a max heap - GeeksforGeeks
10 May, 2021 Given a max heap, find the minimum element present in the heap. Examples: Input : 100 / \ 75 50 / \ / \ 55 10 2 40 Output : 2 Input : 20 / \ 4 18 Output : 4 Brute force approach: We can check all the nodes in the ma...
[ { "code": null, "e": 25380, "s": 25352, "text": "\n10 May, 2021" }, { "code": null, "e": 25444, "s": 25380, "text": "Given a max heap, find the minimum element present in the heap." }, { "code": null, "e": 25456, "s": 25444, "text": "Examples: " }, { ...
What is the difference between Read(), ReadKey() and ReadLine() methods in C#?
The Read() reads the next characters from the standard input stream. If a key is pressed on the console, then it would close. int az = Console.Read() Console.WriteLine(z); It reads only a single charactare from the standard input stream. Reads the next line of characters from the standard input stream. Live Demo using...
[ { "code": null, "e": 1188, "s": 1062, "text": "The Read() reads the next characters from the standard input stream. If a key is pressed on the console, then it would close." }, { "code": null, "e": 1234, "s": 1188, "text": "int az = Console.Read()\nConsole.WriteLine(z);" }, {...
Express.js req.path Property - GeeksforGeeks
08 Jul, 2020 The req.path property contains the path of the request URL. This property is widely used to get the path part of the incoming request URL. Syntax: req.path Parameter: No parameters. Return Value: String Installation of express module: You can visit the link to Install express module. You can install this p...
[ { "code": null, "e": 26377, "s": 26349, "text": "\n08 Jul, 2020" }, { "code": null, "e": 26516, "s": 26377, "text": "The req.path property contains the path of the request URL. This property is widely used to get the path part of the incoming request URL." }, { "code": nu...
Vector capacity() Method in Java - GeeksforGeeks
17 Aug, 2018 The Java.util.Vector.capacity() method in Java is used to get the capacity of the Vector or the length of the array present in the Vector. Syntax: Vector.capacity() Parameters: The method does not take any parameter. Return Value: The method returns the capacity or the internal data array’s length present ...
[ { "code": null, "e": 25065, "s": 25037, "text": "\n17 Aug, 2018" }, { "code": null, "e": 25204, "s": 25065, "text": "The Java.util.Vector.capacity() method in Java is used to get the capacity of the Vector or the length of the array present in the Vector." }, { "code": nu...
Parallel Array - GeeksforGeeks
22 Jun, 2021 Parallel Array: Also known as structure an array (SoA), multiple arrays of the same size such that i-th element of each array is closely related and all i-th elements together represent an object or entity. An example parallel array is two arrays that represent x and y co-ordinates of n points. Below is an...
[ { "code": null, "e": 26385, "s": 26357, "text": "\n22 Jun, 2021" }, { "code": null, "e": 26799, "s": 26385, "text": "Parallel Array: Also known as structure an array (SoA), multiple arrays of the same size such that i-th element of each array is closely related and all i-th eleme...
Introduction to ADO.NET - GeeksforGeeks
23 Jun, 2021 The .NET Framework includes its own data access technology i.e. ADO.NET. ADO.NET is the latest implementation of Microsoft’s Universal Data Access strategy. ADO.NET consists of managed classes that allows .NET applications to connect to data sources such as Microsoft SQL Server, Microsoft Access, Oracle, X...
[ { "code": null, "e": 26261, "s": 26233, "text": "\n23 Jun, 2021" }, { "code": null, "e": 26627, "s": 26261, "text": "The .NET Framework includes its own data access technology i.e. ADO.NET. ADO.NET is the latest implementation of Microsoft’s Universal Data Access strategy. ADO.NE...
HTML 5 <summary> Tag - GeeksforGeeks
25 Jan, 2022 The <summary> tag in HTML is used to define a summary for the <details> element. The <summary> element is used along with the <details> element and provides a summary visible to the user. When the summary is clicked by the user, the content placed inside the <details> element becomes visible which was pre...
[ { "code": null, "e": 24644, "s": 24616, "text": "\n25 Jan, 2022" }, { "code": null, "e": 24726, "s": 24644, "text": "The <summary> tag in HTML is used to define a summary for the <details> element. " }, { "code": null, "e": 24833, "s": 24726, "text": "The <sum...
StringTokenizer hasMoreElements() Method in Java with Examples - GeeksforGeeks
28 Jan, 2019 The hasMoreElements() method of StringTokenizer class also checks whether there are any more tokens available with this StringTokenizer. It is similar to the hasMoreTokens(). The method exists exclusively so that the Enumeration interface of this class can be implemented. Syntax: public boolean hasMoreElem...
[ { "code": null, "e": 25916, "s": 25888, "text": "\n28 Jan, 2019" }, { "code": null, "e": 26189, "s": 25916, "text": "The hasMoreElements() method of StringTokenizer class also checks whether there are any more tokens available with this StringTokenizer. It is similar to the hasMo...
Create a Registration Form using PyWebIO Module in Python - GeeksforGeeks
06 Jun, 2021 In this article, we are going to create a registration form using the PyWebIO module. This is a Python module mostly used to create simple and interactive interfaces on the local web using Python Programming. This form will take username, name, password, email, website link as input. Talking about passwor...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n06 Jun, 2021" }, { "code": null, "e": 25747, "s": 25537, "text": "In this article, we are going to create a registration form using the PyWebIO module. This is a Python module mostly used to create simple and interactive interfac...
Sum of the series 1^1 + 2^2 + 3^3 + ..... + n^n using recursion - GeeksforGeeks
17 Mar, 2021 Given an integer n, the task is to find the sum of the series 11 + 22 + 33 + ..... + nn using recursion.Examples: Input: n = 2 Output: 5 11 + 22 = 1 + 4 = 5 Input: n = 3 Output: 32 11 + 22 + 33 = 1 + 4 + 27 = 32 Approach: Starting from n, start adding all the terms of the series one by one with the v...
[ { "code": null, "e": 26281, "s": 26253, "text": "\n17 Mar, 2021" }, { "code": null, "e": 26397, "s": 26281, "text": "Given an integer n, the task is to find the sum of the series 11 + 22 + 33 + ..... + nn using recursion.Examples: " }, { "code": null, "e": 26497, ...
C# Program to find whether a no is power of two - GeeksforGeeks
19 Jul, 2021 Given a positive integer, write a function to find if it is a power of two or not.Examples : Input : n = 4 Output : Yes 22 = 4 Input : n = 7 Output : No Input : n = 32 Output : Yes 25 = 32 1. A simple method for this is to simply take the log of the number on base 2 and if you get an integer then numbe...
[ { "code": null, "e": 26579, "s": 26551, "text": "\n19 Jul, 2021" }, { "code": null, "e": 26674, "s": 26579, "text": "Given a positive integer, write a function to find if it is a power of two or not.Examples : " }, { "code": null, "e": 26772, "s": 26674, "tex...
Spacing in Bootstrap with Examples - GeeksforGeeks
28 Sep, 2021 Bootstrap has many facility of classes to easily style elements in HTML. It includes various responsive padding and margin classes for modification of the appearance of element. Spacing utilities have no breakpoints symbols to apply to the breakpoints.Following Syntax are used in the Various Classes for ad...
[ { "code": null, "e": 25395, "s": 25367, "text": "\n28 Sep, 2021" }, { "code": null, "e": 25717, "s": 25395, "text": "Bootstrap has many facility of classes to easily style elements in HTML. It includes various responsive padding and margin classes for modification of the appearan...
How to set the color of TextView span in Android using Kotlin?
This example demonstrates how to set the color of TextView span 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"?...
[ { "code": null, "e": 1151, "s": 1062, "text": "This example demonstrates how to set the color of TextView span in Android using Kotlin." }, { "code": null, "e": 1280, "s": 1151, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requir...
How to navigate back to current page from Frame in selenium webdriver?
We can navigate back to the current page from frame with Selenium webdriver. A frame is defined with <iframe>, <frame> or <frameset> tag in html code. A frame is used to embed an HTML document within another HTML document. Selenium by default has access to the main browser driver. In order to access a frame element, th...
[ { "code": null, "e": 1285, "s": 1062, "text": "We can navigate back to the current page from frame with Selenium webdriver. A frame is defined with <iframe>, <frame> or <frameset> tag in html code. A frame is used to embed an HTML document within another HTML document." }, { "code": null, ...
Scope resolution operator in C++
The :: (scope resolution) operator is used to get hidden names due to variable scopes so that you can still use them. The scope resolution operator can be used as both unary and binary. You can use the unary scope operator if a namespace scope or global scope name is hidden by a particular declaration of an equivalent ...
[ { "code": null, "e": 1582, "s": 1062, "text": "The :: (scope resolution) operator is used to get hidden names due to variable scopes so that you can still use them. The scope resolution operator can be used as both unary and binary. You can use the unary scope operator if a namespace scope or global...
Python | Use of __slots__ - GeeksforGeeks
27 Dec, 2019 When we create objects for classes, it requires memory and the attribute are stored in the form of a dictionary. In case if we need to allocate thousands of objects, it will take a lot of memory space.slots provide a special mechanism to reduce the size of objects.It is a concept of memory optimisation on ...
[ { "code": null, "e": 24415, "s": 24387, "text": "\n27 Dec, 2019" }, { "code": null, "e": 24731, "s": 24415, "text": "When we create objects for classes, it requires memory and the attribute are stored in the form of a dictionary. In case if we need to allocate thousands of object...
IMS DB - SSA
SSA stands for Segment Search Arguments. SSA is used to identify the segment occurrence being accessed. It is an optional parameter. We can include any number of SSAs depending on the requirement. There are two types of SSAs − Unqualified SSA Qualified SSA An unqualified SSA provides the name of the segment being used ...
[ { "code": null, "e": 2173, "s": 1946, "text": "SSA stands for Segment Search Arguments. SSA is used to identify the segment occurrence being accessed. It is an optional parameter. We can include any number of SSAs depending on the requirement. There are two types of SSAs −" }, { "code": null...
How to clear Python shell?
Python provides a python shell which is used to execute a single Python command and display the result. It is also called REPL. REPL stands for Read, Evaluate, Print and Loop. The command is read, then evaluated, afterwards the result is printed and looped back to read the next command. Sometimes after executing so man...
[ { "code": null, "e": 1350, "s": 1062, "text": "Python provides a python shell which is used to execute a single Python command and display the result. It is also called REPL. REPL stands for Read, Evaluate, Print and Loop. The command is read, then evaluated, afterwards the result is printed and loo...
How to delete one or more rows in excel using Openpyxl? - GeeksforGeeks
24 Jan, 2021 Openpyxl is a Python library to manipulate xlsx/xlsm/xltx/xltm files. With Openpyxl you can create a new Excel file or a sheet and can also be used on an existing Excel file or sheet. This module does not come built-in with Python. To install this type the below command in the terminal. pip3 install openpy...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n24 Jan, 2021" }, { "code": null, "e": 24085, "s": 23901, "text": "Openpyxl is a Python library to manipulate xlsx/xlsm/xltx/xltm files. With Openpyxl you can create a new Excel file or a sheet and can also be used on an existing ...
Core arguments in serializer fields - Django REST Framework - GeeksforGeeks
03 Dec, 2021 Serializer fields in Django are same as Django Form fields and Django model fields and thus require certain arguments to manipulate the behaviour of those Fields. In Django REST Framework the very concept of Serializing is to convert DB data to a datatype that can be used by javascript. This article revolv...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n03 Dec, 2021" }, { "code": null, "e": 24328, "s": 23901, "text": "Serializer fields in Django are same as Django Form fields and Django model fields and thus require certain arguments to manipulate the behaviour of those Fields. ...
D3.js curveCardinal() Method - GeeksforGeeks
09 Sep, 2020 The curveCardinal() method produces a cubic cardinal spline. The curve is also based on these cubic cardinal splines. Syntax: d3.curveCardinal() Parameters: This method does not accept any parameters. Return Value: This method does not return any value. Example 1: HTML <!DOCTYPE html><html><meta charset="...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n09 Sep, 2020" }, { "code": null, "e": 25418, "s": 25300, "text": "The curveCardinal() method produces a cubic cardinal spline. The curve is also based on these cubic cardinal splines." }, { "code": null, "e": 25426, ...
Python | Check whether two lists are circularly identical - GeeksforGeeks
11 May, 2020 Given two lists, check if they are circularly identical or not. Examples: Input : list1 = [10, 10, 0, 0, 10] list2 = [10, 10, 10, 0, 0] Output : Yes Explanation: yes they are circularly identical as when we write the list1 last index to second last index, then we find it is circularly ...
[ { "code": null, "e": 23925, "s": 23897, "text": "\n11 May, 2020" }, { "code": null, "e": 23989, "s": 23925, "text": "Given two lists, check if they are circularly identical or not." }, { "code": null, "e": 23999, "s": 23989, "text": "Examples:" }, { "c...