title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
SAP ABAP - Report Programming
A report is a presentation of data in an organized structure. Many database management systems include a report writer that enables you to design and generate reports. SAP applications support report creation. A classical report is created by using the output data in the WRITE statement inside a loop. They do not conta...
[ { "code": null, "e": 3242, "s": 3032, "text": "A report is a presentation of data in an organized structure. Many database management systems include a report writer that enables you to design and generate reports. SAP applications support report creation." }, { "code": null, "e": 3529, ...
Polybius Square Cipher
24 Jul, 2018 A Polybius Square is a table that allows someone to convert letters into numbers. To make the encryption little harder, this table can be randomized and shared with the recipient. In order to fit the 26 letters of the alphabet into the 25 cells created by the table, the letters β€˜i’ and β€˜j’ are usually comb...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jul, 2018" }, { "code": null, "e": 472, "s": 52, "text": "A Polybius Square is a table that allows someone to convert letters into numbers. To make the encryption little harder, this table can be randomized and shared with the recip...
MongoDB - PHP
To use MongoDB with PHP, you need to use MongoDB PHP driver. Download the driver from the url Download PHP Driver. Make sure to download the latest release of it. Now unzip the archive and put php_mongo.dll in your PHP extension directory ("ext" by default) and add the following line to your php.ini file βˆ’ extension = ...
[ { "code": null, "e": 2995, "s": 2687, "text": "To use MongoDB with PHP, you need to use MongoDB PHP driver. Download the driver from the url Download PHP Driver. Make sure to download the latest release of it. Now unzip the archive and put php_mongo.dll in your PHP extension directory (\"ext\" by de...
How to add a header to a CSV file in Python?
11 Dec, 2020 A CSV file contains a tabular sort of data where each row contains comma-separated values. The columns may contain values belonging to different data structures. Python provides a wide range of methods and modules to carry out the interconversion of the CSV file to a pandas data frame and vice versa. A hea...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2020" }, { "code": null, "e": 620, "s": 28, "text": "A CSV file contains a tabular sort of data where each row contains comma-separated values. The columns may contain values belonging to different data structures. Python provid...
fmt.Printf() Function in Golang With Examples
05 Mar, 2021 In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Printf() function in Go language formats according to a format specifier and writes to standard output. Moreover, this function is defined under the fmt package. Here, you need to imp...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Mar, 2021" }, { "code": null, "e": 390, "s": 28, "text": "In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Printf() function in Go language formats according ...
Difference Between set, multiset, unordered_set, unordered_multiset in C++
28 Apr, 2022 In C++ Standard Template Library, set, multiset, unordered_set, unordered_multiset are used to store elements. Although they are similar but differ from each other in some functionalities. The differences are discussed below: 1. Set: They are associative containers that store unique elements following a sp...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Apr, 2022" }, { "code": null, "e": 278, "s": 52, "text": "In C++ Standard Template Library, set, multiset, unordered_set, unordered_multiset are used to store elements. Although they are similar but differ from each other in some fu...
Automated software testing with Python
07 Jul, 2022 Software testing is the process in which a developer ensures that the actual output of the software matches with the desired output by providing some test inputs to the software. Software testing is an important step because if performed properly, it can help the developer to find bugs in the software in v...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2022" }, { "code": null, "e": 360, "s": 28, "text": "Software testing is the process in which a developer ensures that the actual output of the software matches with the desired output by providing some test inputs to the softwa...
Python | Pandas Series.isna()
12 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.isna() function detect missing value...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 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...
Singleton Method – Python Design Patterns
08 Jul, 2022 Prerequisite: Singleton Design pattern | Introduction Singleton Method is a type of Creational Design pattern and is one of the simplest design patterns00 available to us. It is a way to provide one and only one object of a particular type. It involves only one class to create methods and specify the objec...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Jul, 2022" }, { "code": null, "e": 107, "s": 53, "text": "Prerequisite: Singleton Design pattern | Introduction" }, { "code": null, "e": 743, "s": 107, "text": "Singleton Method is a type of Creational Design pat...
How to convert CSV into array in R?
02 Jul, 2021 In this article, we are going to see how to convert CSV into an array in R Programming Language. If we load this file into any environment like python, R language .etc, the data will be displayed in rows and columns format, let us convert CSV file into an array. Each and every column in the CSV will be con...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jul, 2021" }, { "code": null, "e": 377, "s": 28, "text": "In this article, we are going to see how to convert CSV into an array in R Programming Language. If we load this file into any environment like python, R language .etc, the da...
Get Time Zone of a Given Location using Python
17 May, 2022 In this article, we are going to see how to get the time zone from a given location. The Timezonefinder module is able to find the timezone of any point on earth (coordinates) offline. Before starting we need to install this module. timezonefinder: This module does not built in with Python. To install this...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 May, 2022" }, { "code": null, "e": 261, "s": 28, "text": "In this article, we are going to see how to get the time zone from a given location. The Timezonefinder module is able to find the timezone of any point on earth (coordinates)...
Program to check if a matrix is symmetric
30 Apr, 2021 A square matrix is said to be symmetric matrix if the transpose of the matrix is same as the given matrix. Symmetric matrix can be obtain by changing row to column and column to row. Examples: Input : 1 2 3 2 1 4 3 4 3 Output : Yes Input : 3 5 8 3 4 7 8 5 3 Output : No A S...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Apr, 2021" }, { "code": null, "e": 235, "s": 52, "text": "A square matrix is said to be symmetric matrix if the transpose of the matrix is same as the given matrix. Symmetric matrix can be obtain by changing row to column and column...
NLP | Chunking and chinking with RegEx
27 Sep, 2021 Chunk extraction or partial parsing is a process of meaningful extracting short phrases from the sentence (tagged with Part-of-Speech). Chunks are made up of words and the kinds of words are defined using the part-of-speech tags. One can even define a pattern or words that can’t be a part of chuck and such...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 450, "s": 28, "text": "Chunk extraction or partial parsing is a process of meaningful extracting short phrases from the sentence (tagged with Part-of-Speech). Chunks are made up of words and the kin...
Python | Keys with Maximum value
23 Jan, 2020 Many times, we may have problem in which we require to find not just the value, but the corresponding keys to the maximum value in the entire dictionary. Let’s discuss certain ways in which this task can be performed. Method #1 : Using max() + list comprehension + values()The combination of above functions...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jan, 2020" }, { "code": null, "e": 246, "s": 28, "text": "Many times, we may have problem in which we require to find not just the value, but the corresponding keys to the maximum value in the entire dictionary. Let’s discuss certain...
How to share data between controllers in AngularJS ?
30 Jan, 2020 The task is to share data variable between two or more controllers by using AngularJS. There are many procedures to achieve this. Here we will discuss the most popular ones. Approach: To share data between the controllers in AngularJS we have two main cases: Share data between parent and child: Here, the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 202, "s": 28, "text": "The task is to share data variable between two or more controllers by using AngularJS. There are many procedures to achieve this. Here we will discuss the most popular ones." ...
Python | functools.wraps() function
23 Sep, 2021 functools is a standard Python module for higher-order functions (functions that act on or return other functions). wraps() is a decorator that is applied to the wrapper function of a decorator. It updates the wrapper function to look like wrapped function by copying attributes such as __name__, __doc__ (t...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Sep, 2021" }, { "code": null, "e": 380, "s": 52, "text": "functools is a standard Python module for higher-order functions (functions that act on or return other functions). wraps() is a decorator that is applied to the wrapper func...
How to Do a vLookup in Python using pandas
06 Aug, 2021 Vlookup is essentially used for vertically arranged data. Vlookup is an operation used to merge 2 different data tables based on some condition where there must be at least 1 common attribute(column) between the two tables. After performing this operation we get a table consisting of all the data from both...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Aug, 2021" }, { "code": null, "e": 615, "s": 28, "text": "Vlookup is essentially used for vertically arranged data. Vlookup is an operation used to merge 2 different data tables based on some condition where there must be at least 1 ...
Find the position of the given Prime Number
21 Nov, 2021 Given a number N which is a prime number, the task is to find the position of the given prime number in the series of Prime Numbers.Examples : Input: N = 11 Output: 5 Explanation: The prime numbers are 2, 3, 5, 7, 11, 13, 17, .... Therefore, the position of 11 in this series is 5.Input: N = 13 Output: 6 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Nov, 2021" }, { "code": null, "e": 199, "s": 54, "text": "Given a number N which is a prime number, the task is to find the position of the given prime number in the series of Prime Numbers.Examples : " }, { "code": null, ...
SQL | Intersect & Except clause
30 Jun, 2022 1. INTERSECT clause : As the name suggests, the intersect clause is used to provide the result of the intersection of two select statements. This implies the result contains all the rows which are common to both the SELECT statements. Syntax : SELECT column-1, column-2 ...... FROM table 1 WHERE..... INTE...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Jun, 2022" }, { "code": null, "e": 297, "s": 53, "text": "1. INTERSECT clause : As the name suggests, the intersect clause is used to provide the result of the intersection of two select statements. This implies the result contains ...
C# | Boolean.CompareTo(Boolean) Method
06 Jan, 2022 Boolean.CompareTo(Boolean) Method is used to compare the current instance to a specified Boolean object and returns an indication of their relative values. Syntax: public int CompareTo (bool value); Here, the value is a Boolean object to compare to the current instance. Return Value: This method returns a ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jan, 2022" }, { "code": null, "e": 184, "s": 28, "text": "Boolean.CompareTo(Boolean) Method is used to compare the current instance to a specified Boolean object and returns an indication of their relative values." }, { "code...
Python | Select dictionary with condition given key greater than k
29 May, 2019 In Python, sometimes we require to get only some of the dictionary required to solve the problem. This problem is quite common in web development that we require to get only the selective dictionary satisfying some given criteria. Let’s discuss certain ways in which this problem can be solved. Method #1: U...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 May, 2019" }, { "code": null, "e": 323, "s": 28, "text": "In Python, sometimes we require to get only some of the dictionary required to solve the problem. This problem is quite common in web development that we require to get only t...
askopenfile() function in Python Tkinter
Instead of hard coding the path to a file to be used by a python program, we can allow the user to browse the os folder structure using a GUI and let the user select the file. This is achieved using the tkinter module in which we define a canvas and put a button on it to browse the files. In the below program, we defin...
[ { "code": null, "e": 1477, "s": 1187, "text": "Instead of hard coding the path to a file to be used by a python program, we can allow the user to browse the os folder structure using a GUI and let the user select the file. This is achieved using the tkinter module in which we define a canvas and put...
MFC - Dialog Boxes
In this chapter, we will be covering the Dialog boxes. Applications for Windows frequently communicate with the user through dialog boxes. CDialog class provides an interface for managing dialog boxes. The Visual C++ dialog editor makes it easy to design dialog boxes and create their dialog-template resources. Creating...
[ { "code": null, "e": 2379, "s": 2067, "text": "In this chapter, we will be covering the Dialog boxes. Applications for Windows frequently communicate with the user through dialog boxes. CDialog class provides an interface for managing dialog boxes. The Visual C++ dialog editor makes it easy to desig...
Difference between Test-Path and Resolve-Path in PowerShell?
Test-Path command checks if the particular path exists or not and returns the Boolean output (True or False) while Resolve-Path command displays the particular directory if exists otherwise throws an exception. For example, For the path to exist, PS C:\> Test-Path C:\Temp\ True PS C:\> Resolve-Path C:\Temp\ Path ---- C...
[ { "code": null, "e": 1286, "s": 1062, "text": "Test-Path command checks if the particular path exists or not and returns the Boolean output (True or False) while Resolve-Path command displays the particular directory if exists otherwise throws an exception. For example," }, { "code": null, ...
How to get file last modified time in Java?
He class named File of the java.io package represents a file or directory (path names) in the system. This class provides various methods to perform various operations on files/directories. The lastModified() method of the File class returns the last modified time of the file/directory represented by the current File o...
[ { "code": null, "e": 1252, "s": 1062, "text": "He class named File of the java.io package represents a file or directory (path names) in the system. This class provides various methods to perform various operations on files/directories." }, { "code": null, "e": 1464, "s": 1252, "...
Early and late binding in C# - GeeksforGeeks
23 Jan, 2019 When an object is assigned to an object variable of the specific type, then the C# compiler performs the binding with the help of .NET Framework. C# performs two different types of bindings which are: Early Binding or Static Binding Late Binding or Dynamic Binding It recognizes and checks the methods, or p...
[ { "code": null, "e": 24342, "s": 24314, "text": "\n23 Jan, 2019" }, { "code": null, "e": 24543, "s": 24342, "text": "When an object is assigned to an object variable of the specific type, then the C# compiler performs the binding with the help of .NET Framework. C# performs two d...
How to limit the values in a Number JSpinner Component with Java?
To limit the values in a number JSpinner component, use the SpinnerNumberModel that allows to set the min, max, step size and even the initial value βˆ’ value βˆ’ current value of the model min βˆ’ first number in the sequence max βˆ’ last number in the sequence stepSize βˆ’ difference between elements of the sequence Let us set...
[ { "code": null, "e": 1213, "s": 1062, "text": "To limit the values in a number JSpinner component, use the SpinnerNumberModel that allows to set the min, max, step size and even the initial value βˆ’" }, { "code": null, "e": 1372, "s": 1213, "text": "value βˆ’ current value of the mo...
Rearrange Array Alternately | Practice | GeeksforGeeks
Given a sorted array of positive integers. Your task is to rearrange the array elements alternatively i.e first element should be max value, second should be min value, third should be second max, fourth should be second min and so on. Example 1: Input: N = 6 arr[] = {1,2,3,4,5,6} Output: 6 1 5 2 4 3 Explanation: Max ...
[ { "code": null, "e": 527, "s": 290, "text": "Given a sorted array of positive integers. Your task is to rearrange the array elements alternatively i.e first element should be max value, second should be min value, third should be second max, fourth should be second min and so on." }, { "cod...
Jump Search
Jump search technique also works for ordered lists. It creates a block and tries to find the element in that block. If the item is not in the block, it shifts the entire block. The block size is based on the size of the list. If the size of the list is n then block size will be √n. After finding a correct block it find...
[ { "code": null, "e": 1517, "s": 1062, "text": "Jump search technique also works for ordered lists. It creates a block and tries to find the element in that block. If the item is not in the block, it shifts the entire block. The block size is based on the size of the list. If the size of the list is ...
R - Packages
R packages are a collection of R functions, complied code and sample data. They are stored under a directory called "library" in the R environment. By default, R installs a set of packages during installation. More packages are added later, when they are needed for some specific purpose. When we start the R console, on...
[ { "code": null, "e": 2899, "s": 2402, "text": "R packages are a collection of R functions, complied code and sample data. They are stored under a directory called \"library\" in the R environment. By default, R installs a set of packages during installation. More packages are added later, when they ...
Draw Color Filled Shapes in Turtle - Python - GeeksforGeeks
10 Feb, 2020 Prerequisite: Python Turtle Basics turtle is an inbuilt module in python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle. To move turtle, there are some functions i.e forward(), backward(), etc. To fill the colors in the shapes d...
[ { "code": null, "e": 24526, "s": 24498, "text": "\n10 Feb, 2020" }, { "code": null, "e": 24561, "s": 24526, "text": "Prerequisite: Python Turtle Basics" }, { "code": null, "e": 24799, "s": 24561, "text": "turtle is an inbuilt module in python. It provides draw...
How to display the app version in Angular? - GeeksforGeeks
02 Nov, 2020 Angular is a client-side TypeScript based, front-end web framework by Google. Angular 8 is a great, reusable UI (User Interface) framework for the developers which help in building Single Page Applications. Generally, all the angular 2+ projects or applications are referred to as Angular applications. The ...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n02 Nov, 2020" }, { "code": null, "e": 25154, "s": 24718, "text": "Angular is a client-side TypeScript based, front-end web framework by Google. Angular 8 is a great, reusable UI (User Interface) framework for the developers which...
Python Program to Count number of binary strings without consecutive 1’
In this article, we will learn about the solution to the problem statement given below. Problem statement βˆ’ We are given a positive integer N, we need to count all possible distinct binary strings available with length N such that no consecutive 1’s exist in the string. Now let’s observe the solution in the implementat...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1333, "s": 1150, "text": "Problem statement βˆ’ We are given a positive integer N, we need to count all possible distinct ...
How I Write Meaningful Tests for AWS Lambda Functions | by Paul Singman | Towards Data Science
If you are going to write meaningless unit tests that are more likely to mask errors than expose them, you are better off skipping the exercise altogether. There, I said it. Your time is precious and could be spent on better things than achieving a hollow coverage percentage. Effective testing of code has long been a c...
[ { "code": null, "e": 328, "s": 172, "text": "If you are going to write meaningless unit tests that are more likely to mask errors than expose them, you are better off skipping the exercise altogether." }, { "code": null, "e": 346, "s": 328, "text": "There, I said it." }, { ...
Disconnecting Inactive SSH Connections in Linux - GeeksforGeeks
19 Feb, 2021 SSH or Secure Shell is a cryptographic network protocol that establishes a secure connection between systems remotely. Any user can use this protocol to manage the system remotely but mainly system administrators use it because it transmits data over encrypted channels, which increases its security at a hi...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n19 Feb, 2021" }, { "code": null, "e": 24609, "s": 24015, "text": "SSH or Secure Shell is a cryptographic network protocol that establishes a secure connection between systems remotely. Any user can use this protocol to manage the...
Circular array - GeeksforGeeks
CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+...
[ { "code": null, "e": 419, "s": 0, "text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc...
SWING - Component Class
The class Component is the abstract base class for the non menu user-interface controls of AWT. Component represents an object with graphical representation. Following is the declaration for java.awt.Component class βˆ’ public abstract class Component extends Object implements ImageObserver, MenuContainer, Seria...
[ { "code": null, "e": 1921, "s": 1763, "text": "The class Component is the abstract base class for the non menu user-interface controls of AWT. Component represents an object with graphical representation." }, { "code": null, "e": 1981, "s": 1921, "text": "Following is the declara...
How to loop through an array in Java?
To process array elements, we often use either for loop or for each loop because all of the elements in an array are of the same type and the size of the array is known. Suppose we have an array of 5 elements we can print all the elements of this array as βˆ’ Live Demo public class ProcessingArrays { public static voi...
[ { "code": null, "e": 1320, "s": 1062, "text": "To process array elements, we often use either for loop or for each loop because all of the elements in an array are of the same type and the size of the array is known. Suppose we have an array of 5 elements we can print all the elements of this array ...
Generating random numbers in C#
To generate random numbers, use Random class. Create an object βˆ’ Random r = new Random(); Now, use the Next() method to get random numbers in between a range βˆ’ r.Next(10,50); The following is the complete code βˆ’ Live Demo using System; public class Program { public static void Main() { Random r = new Random()...
[ { "code": null, "e": 1108, "s": 1062, "text": "To generate random numbers, use Random class." }, { "code": null, "e": 1127, "s": 1108, "text": "Create an object βˆ’" }, { "code": null, "e": 1152, "s": 1127, "text": "Random r = new Random();" }, { "code":...
Fuzzy String Match With Python on Large Datasets and Why You Should Not Use FuzzyWuzzy | by Alina Zhang | Towards Data Science
Languages are ambiguous. The text referring to the same thing could be written slightly differently, or even misspelled. Assuming that you are trying to join two tables by the column of addresses, the same location shows in table A as β€œ520 Xavier Ave, California City” while β€œ520 Xavier Avenue, CA” in table B. How would...
[ { "code": null, "e": 516, "s": 172, "text": "Languages are ambiguous. The text referring to the same thing could be written slightly differently, or even misspelled. Assuming that you are trying to join two tables by the column of addresses, the same location shows in table A as β€œ520 Xavier Ave, Cal...
Angular 8 - Web Workers
Web workers enables JavaScript application to run the CPU-intensive in the background so that the application main thread concentrate on the smooth operation of UI. Angular provides support for including Web workers in the application. Let us write a simple Angular application and try to use web workers. Create a new A...
[ { "code": null, "e": 2694, "s": 2388, "text": "Web workers enables JavaScript application to run the CPU-intensive in the background so that the application main thread concentrate on the smooth operation of UI. Angular provides support for including Web workers in the application. Let us write a si...
Selecting Optimal Parameters for XGBoost Model Training | by Andrej Baranovskij | Towards Data Science
There is always a bit of luck involved when selecting parameters for Machine Learning model training. Lately, I work with gradient boosted trees and XGBoost in particular. We are using XGBoost in the enterprise to automate repetitive human tasks. While training ML models with XGBoost, I created a pattern to choose para...
[ { "code": null, "e": 613, "s": 172, "text": "There is always a bit of luck involved when selecting parameters for Machine Learning model training. Lately, I work with gradient boosted trees and XGBoost in particular. We are using XGBoost in the enterprise to automate repetitive human tasks. While tr...
D3.js count() method - GeeksforGeeks
14 Sep, 2020 With the help of d3.count() method, we can get the count of valid values in the specified iterable data structure. Syntax: d3.count(iterable[, accessor]) Return value: It returns the count of valid values. Note: To execute the below examples you have to install the d3 library by using the command prompt f...
[ { "code": null, "e": 25169, "s": 25141, "text": "\n14 Sep, 2020" }, { "code": null, "e": 25284, "s": 25169, "text": "With the help of d3.count() method, we can get the count of valid values in the specified iterable data structure." }, { "code": null, "e": 25292, ...
Enumeration of Binary Trees
26 Oct, 2021 A Binary Tree is labeled if every node is assigned a label and a Binary Tree is unlabelled if nodes are not assigned any label. Below two are considered same unlabelled trees o o / \ / \ o o o o Below two are considered different labelled trees...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Oct, 2021" }, { "code": null, "e": 183, "s": 54, "text": "A Binary Tree is labeled if every node is assigned a label and a Binary Tree is unlabelled if nodes are not assigned any label. " }, { "code": null, "e": 438, ...
JavaScript Program to print Fibonacci Series
09 Jul, 2022 Suppose in a Class, the Teacher asked students of roll number 1 to write 0 and roll number 2 to write 1 on the blackboard and asked for the rest of the students, to write the summation of your previous two students’. The series written on the board will look like 0,1,1,2,3,5,8,.......... The teacher then t...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jul, 2022" }, { "code": null, "e": 317, "s": 28, "text": "Suppose in a Class, the Teacher asked students of roll number 1 to write 0 and roll number 2 to write 1 on the blackboard and asked for the rest of the students, to write the ...
Triplet Sum in Array | Practice | GeeksforGeeks
Given an array arr of size n and an integer X. Find if there's a triplet in the array which sums up to the given integer X. Example 1: Input: n = 6, X = 13 arr[] = [1 4 45 6 10 8] Output: 1 Explanation: The triplet {1, 4, 8} in the array sums up to 13. Example 2: Input: n = 5, X = 10 arr[] = [1 2 4 3 6] Output: 1 Ex...
[ { "code": null, "e": 363, "s": 238, "text": "Given an array arr of size n and an integer X. Find if there's a triplet in the array which sums up to the given integer X. " }, { "code": null, "e": 375, "s": 363, "text": "\nExample 1:" }, { "code": null, "e": 494, "s...
Program to implement Logic Gates - GeeksforGeeks
31 Oct, 2019 A Logic gate is an elementary building block of any digital circuits. It takes one or two inputs and produces output based on those inputs. Outputs may be high (1) or low (0). Logic gates are implemented using diodes or transistors. It can also be constructed using vacuum tubes, electromagnetic elements li...
[ { "code": null, "e": 24423, "s": 24395, "text": "\n31 Oct, 2019" }, { "code": null, "e": 24987, "s": 24423, "text": "A Logic gate is an elementary building block of any digital circuits. It takes one or two inputs and produces output based on those inputs. Outputs may be high (1)...
Legality of Web Scraping
With Python, we can scrape any website or particular elements of a web page but do you have any idea whether it is legal or not? Before scraping any website we must have to know about the legality of web scraping. This chapter will explain the concepts related to legality of web scraping. Generally, if you are going to...
[ { "code": null, "e": 2202, "s": 1912, "text": "With Python, we can scrape any website or particular elements of a web page but do you have any idea whether it is legal or not? Before scraping any website we must have to know about the legality of web scraping. This chapter will explain the concepts ...
Concatenate two columns when one of such column values is null in MySQL
To avoid any issues while running a query, use IFNULL(). Let us first create a table βˆ’ mysql> create table DemoTable1793 ( StudentFirstName varchar(20), StudentLastName varchar(20) ); Query OK, 0 rows affected (0.00 sec) Insert some records in the table using insert command βˆ’ mysql> insert into Demo...
[ { "code": null, "e": 1149, "s": 1062, "text": "To avoid any issues while running a query, use IFNULL(). Let us first create a table βˆ’" }, { "code": null, "e": 1303, "s": 1149, "text": "mysql> create table DemoTable1793\n (\n StudentFirstName varchar(20),\n StudentLast...
Java - acos() Method
The method returns the arccosine of the specified double value. double acos(double d) Here is the detail of parameters βˆ’ d βˆ’ A double data type. d βˆ’ A double data type. This method returns the arccosine of the specified double value. This method returns the arccosine of the specified double value. public class Test { ...
[ { "code": null, "e": 2441, "s": 2377, "text": "The method returns the arccosine of the specified double value." }, { "code": null, "e": 2464, "s": 2441, "text": "double acos(double d)\n" }, { "code": null, "e": 2499, "s": 2464, "text": "Here is the detail of p...
Pandas query method saves double handling of variables | by Alexis Lucattini | Towards Data Science
Standard methods to retrieve rows with certain conditions in a pandas DataFrame object requires β€˜double handling’; it’s not particularly elegant. For example, we want to retrieve rows where column A is greater than 1, this is the standard way to do it using the .loc attribute. ## Setup ### Import pandasimport pandas as...
[ { "code": null, "e": 318, "s": 172, "text": "Standard methods to retrieve rows with certain conditions in a pandas DataFrame object requires β€˜double handling’; it’s not particularly elegant." }, { "code": null, "e": 450, "s": 318, "text": "For example, we want to retrieve rows wh...
Iterative Depth First Traversal of Graph - GeeksforGeeks
26 Nov, 2021 Depth First Traversal (or Search) for a graph is similar to Depth First Traversal (DFS) of a tree. The only catch here is, unlike trees, graphs may contain cycles, so a node might be visited twice. To avoid processing a node more than once, use a boolean visited array. Example: Input: n = 4, e = 6 0 -> ...
[ { "code": null, "e": 24587, "s": 24559, "text": "\n26 Nov, 2021" }, { "code": null, "e": 24858, "s": 24587, "text": "Depth First Traversal (or Search) for a graph is similar to Depth First Traversal (DFS) of a tree. The only catch here is, unlike trees, graphs may contain cycles,...
Data Visualization in Pandas. Quick data visualization using only... | by C K | Towards Data Science
In this article, I will demonstrate how to visualize data using only Pandas. It is not as flexible as Matplotlib or Seaborn, but it is very convenient for quick data exploration. First, let’s import pandas and load Iris dataset as an example. import pandas as pdimport seaborndf=seaborn.load_dataset('iris') and check th...
[ { "code": null, "e": 351, "s": 172, "text": "In this article, I will demonstrate how to visualize data using only Pandas. It is not as flexible as Matplotlib or Seaborn, but it is very convenient for quick data exploration." }, { "code": null, "e": 415, "s": 351, "text": "First, ...
Getting current time from NTP Servers
In IoT devices, the timestamp becomes an important attribute of the packet exchanged between the device and the server. Therefore, it is necessary to have the correct time on your device at all times. One way is to use an RTC (Real Time Clock) interfaced with your ESP32. You can even use ESP32's internal RTC. Once give...
[ { "code": null, "e": 2966, "s": 2183, "text": "In IoT devices, the timestamp becomes an important attribute of the packet exchanged between the device and the server. Therefore, it is necessary to have the correct time on your device at all times. One way is to use an RTC (Real Time Clock) interface...
Use of _SYS_REPO in SAP HANA database
In SAP HANA system _SYS_REPO user is required to create run time objects that are saved in HANA database under _SYS_BIC schema. When you activate modeling views in HANA, SYS REPO provides the read access to users on these modeling views. That is why it is required to grant _SYS_REPO with SELECT with GRANT privilege to ...
[ { "code": null, "e": 1396, "s": 1062, "text": "In SAP HANA system _SYS_REPO user is required to create run time objects that are saved in HANA database under _SYS_BIC schema. When you activate modeling views in HANA, SYS REPO provides the read access to users on these modeling views. That is why it ...
Special Stack | Practice | GeeksforGeeks
Design a data-structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. Your task is to complete all the functions, using stack data-Structure. Example 1: Input: Stack: 18 19 29 1...
[ { "code": null, "e": 522, "s": 238, "text": "Design a data-structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. Your task is to complete all the functions,...
How to pass an object from one Activity to another in Android?
This example demonstrates how do I pass an object from one Activity to another in android. Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required details to create a new project. Step 2 βˆ’ Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8...
[ { "code": null, "e": 1153, "s": 1062, "text": "This example demonstrates how do I pass an object from one Activity to another in android." }, { "code": null, "e": 1282, "s": 1153, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all requ...
How to convert BLOB to Byte Array in java?
You can contents of a blob into a byte array using the getBytes() method. import java.awt.Image; import java.awt.image.BufferedImage; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Arrays; public class BlobToByteArr...
[ { "code": null, "e": 1136, "s": 1062, "text": "You can contents of a blob into a byte array using the getBytes() method." }, { "code": null, "e": 2417, "s": 1136, "text": "import java.awt.Image;\nimport java.awt.image.BufferedImage;\nimport java.sql.Blob;\nimport java.sql.Connect...
What are different ways of defining functions in JavaScript?
The following are some of the ways of defining functions in JavaScript βˆ’ The most common way to define a function in JavaScript is by using the function keyword, followed by a unique function name, a list of parameters (that might be empty), and a statement block surrounded by curly braces. Here’s an example showing no...
[ { "code": null, "e": 1135, "s": 1062, "text": "The following are some of the ways of defining functions in JavaScript βˆ’" }, { "code": null, "e": 1354, "s": 1135, "text": "The most common way to define a function in JavaScript is by using the function keyword, followed by a unique...
Python Data Preprocessing Using Pandas DataFrame, Spark DataFrame, and Koalas DataFrame | by Yuefeng Zhang, PhD | Towards Data Science
With widespread use in data preprocessing, data analytics, and machine learning, Pandas, in conjunction with Numpy, Scikit-Learn, and Matplotlib, becomes a de facto data science stack in Python. However, one of the major limitations of Pandas is that Pandas was designed for small datasets that can be handled on a singl...
[ { "code": null, "e": 367, "s": 172, "text": "With widespread use in data preprocessing, data analytics, and machine learning, Pandas, in conjunction with Numpy, Scikit-Learn, and Matplotlib, becomes a de facto data science stack in Python." }, { "code": null, "e": 938, "s": 367, ...
Sentiment Analysis using ALBERT. Let’s fine-tune Google’s latest NLP... | by Gagandeep Singh | Towards Data Science
Every researcher or NLP practitioner is well aware of BERT which came in 2018. Since then the NLP industry has transformed by a much larger extent. Albert which is A Lite BERT was made in focus to make it as light as possible by reducing parameter size. The great advantage of Deep Learning for Sentiment Analysis Task i...
[ { "code": null, "e": 319, "s": 171, "text": "Every researcher or NLP practitioner is well aware of BERT which came in 2018. Since then the NLP industry has transformed by a much larger extent." }, { "code": null, "e": 425, "s": 319, "text": "Albert which is A Lite BERT was made i...
JavaScript - Animation
You can use JavaScript to create a complex animation having, but not limited to, the following elements βˆ’ Fireworks Fade Effect Roll-in or Roll-out Page-in or Page-out Object movements You might be interested in existing JavaScript based animation library: Script.Aculo.us. This tutorial provides a basic understanding o...
[ { "code": null, "e": 2572, "s": 2466, "text": "You can use JavaScript to create a complex animation having, but not limited to, the following elements βˆ’" }, { "code": null, "e": 2582, "s": 2572, "text": "Fireworks" }, { "code": null, "e": 2594, "s": 2582, "tex...
ARIMA Forecasting in Python. Manual and automatic ARIMA quickly up... | by Daniel Holmberg | Towards Data Science
I will use the weekly Spotify global top 200 list as a timeseries for experimenting with ARIMA models. The data ranges from 2017 to 2019 and the whole jupyter notebook is available here. Here is a subset of the data we are doing the forecasting on: feature_mean.head() ARIMA stands for Autoregressive Integrated Moving A...
[ { "code": null, "e": 359, "s": 172, "text": "I will use the weekly Spotify global top 200 list as a timeseries for experimenting with ARIMA models. The data ranges from 2017 to 2019 and the whole jupyter notebook is available here." }, { "code": null, "e": 421, "s": 359, "text": ...
Redis - Java
Before you start using Redis in your Java programs, you need to make sure that you have Redis Java driver and Java set up on the machine. You can check our Java tutorial for Java installation on your machine. Now, let us see how to set up Redis Java driver. You need to download the jar from the path Download jedis.jar....
[ { "code": null, "e": 2254, "s": 2045, "text": "Before you start using Redis in your Java programs, you need to make sure that you have Redis Java driver and Java set up on the machine. You can check our Java tutorial for Java installation on your machine." }, { "code": null, "e": 2303, ...
How to Dockerize an Existing Flask Application | by Mahbub Zaman | Towards Data Science
In this post, I’ll explain how to Dockerize an existing Flask application. I’m going to use one of my Python projects for demonstration purposes. By using a Dockerized Flask application, other developers can easily run the project without any environment management, which is great for saving time and effort. Moreover, ...
[ { "code": null, "e": 615, "s": 172, "text": "In this post, I’ll explain how to Dockerize an existing Flask application. I’m going to use one of my Python projects for demonstration purposes. By using a Dockerized Flask application, other developers can easily run the project without any environment ...
Python | Summation of tuples in list - GeeksforGeeks
25 Aug, 2021 Sometimes, while working with records, we can have a problem in which we need to find the cumulative sum of all the values that are present in tuples. This can have application in cases in which we deal with a lot of records data. Let’s discuss certain ways in which this problem can be solved.Method #1 : U...
[ { "code": null, "e": 24468, "s": 24440, "text": "\n25 Aug, 2021" }, { "code": null, "e": 25019, "s": 24468, "text": "Sometimes, while working with records, we can have a problem in which we need to find the cumulative sum of all the values that are present in tuples. This can hav...
Kotlin Functions
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. Functions are used to perform certain actions, and they are also known as methods. So it turns out you already know what a function is. You have been using it the whole time through this tutorial! ...
[ { "code": null, "e": 65, "s": 0, "text": "A function is a block of code which only runs when it is called." }, { "code": null, "e": 122, "s": 65, "text": "You can pass data, known as parameters, into a function." }, { "code": null, "e": 205, "s": 122, "text": ...
HTML - Button Tag
The HTML <button> tag is used for creating a button within HTML form. You can also use <input> tag to create similar buttons. <!DOCTYPE html> <html> <head> <title>HTML Button Tag</title> </head> <body> <form> <button name = "button" value = "OK" type = "button">Click Me</button> </...
[ { "code": null, "e": 2500, "s": 2374, "text": "The HTML <button> tag is used for creating a button within HTML form. You can also use <input> tag to create similar buttons." }, { "code": null, "e": 2720, "s": 2500, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML ...
VBScript Len Function
The Len Function returns the length of the given input string including the blank spaces. Len(String) <!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> var1 = "Microsoft VBScript" document.write("Length of var1 is : " & Len(var1) & "<br />") var2 =...
[ { "code": null, "e": 2170, "s": 2080, "text": "The Len Function returns the length of the given input string including the blank spaces." }, { "code": null, "e": 2183, "s": 2170, "text": "Len(String)\n" }, { "code": null, "e": 2529, "s": 2183, "text": "<!DOCTY...
Loading large datasets in Pandas. Effectively using Chunking and SQL for... | by Parul Pandey | Towards Data Science
The pandas’ library is a vital member of the Data Science ecosystem. However, the fact that it is unable to analyze datasets larger than memory makes it a little tricky for big data. Consider a situation when we want to analyze a large dataset by using only pandas. What kind of problems can we run into? For instance, l...
[ { "code": null, "e": 749, "s": 172, "text": "The pandas’ library is a vital member of the Data Science ecosystem. However, the fact that it is unable to analyze datasets larger than memory makes it a little tricky for big data. Consider a situation when we want to analyze a large dataset by using on...
CSS justify-content Property - GeeksforGeeks
14 Feb, 2022 The justify-content property in CSS is used to describe the alignment of the flexible box container. It contains the space between and around content items along the main axis of a flex container which is distributed in a browser. Note: This property cannot be used to describe items or containers along the...
[ { "code": null, "e": 23590, "s": 23562, "text": "\n14 Feb, 2022" }, { "code": null, "e": 23821, "s": 23590, "text": "The justify-content property in CSS is used to describe the alignment of the flexible box container. It contains the space between and around content items along t...
Full Deployment of Jupyter Notebooks on a Server including TLS/SSL with Let’s Encrypt | by Nikolai Janakiev | Towards Data Science
Jupyter Notebook is a powerful tool, but how can you use it in all its glory on a server? In this tutorial, you will see how to set up Jupyter notebook on a server like Digital Ocean, Hetzner, AWS or most other hosting providers available. Additionally, you will see how to use Jupyter notebooks over SSH tunneling or TL...
[ { "code": null, "e": 562, "s": 172, "text": "Jupyter Notebook is a powerful tool, but how can you use it in all its glory on a server? In this tutorial, you will see how to set up Jupyter notebook on a server like Digital Ocean, Hetzner, AWS or most other hosting providers available. Additionally, y...
C++ Program for the Common Divisors of Two Numbers?
The common divisor of two numbers are the numbers that are divisors of both of them. For example, The divisors of 12 are 1, 2, 3, 4, 6, 12. The divisors of 18are 1, 2, 3, 6, 9, 18. Thus, the common divisors of 12 and 18 are 1, 2, 3, 6. The greatest among these is, perhaps unsurprisingly, called the greatest common divi...
[ { "code": null, "e": 1147, "s": 1062, "text": "The common divisor of two numbers are the numbers that are divisors of both of them." }, { "code": null, "e": 1160, "s": 1147, "text": "For example," }, { "code": null, "e": 1202, "s": 1160, "text": "The divisors ...
Estimating the number of dimensions with Exploratory Graph Analysis | by Rafael Valdece Sousa Bastos | Towards Data Science
In psychology, education, and behavioral sciences we use scales/instruments to measure a given construct (e.g., Anxiety; Happiness). For that, we usually have a questionnaire with an X number of items and wish to know the number of latent factors that arise from these items. This is usually made with Exploratory Factor...
[ { "code": null, "e": 870, "s": 172, "text": "In psychology, education, and behavioral sciences we use scales/instruments to measure a given construct (e.g., Anxiety; Happiness). For that, we usually have a questionnaire with an X number of items and wish to know the number of latent factors that ari...
Keras - Quick Guide
Deep learning is one of the major subfield of machine learning framework. Machine learning is the study of design of algorithms, inspired from the model of human brain. Deep learning is becoming more popular in data science fields like robotics, artificial intelligence(AI), audio & video recognition and image recogniti...
[ { "code": null, "e": 2729, "s": 2051, "text": "Deep learning is one of the major subfield of machine learning framework. Machine learning is the study of design of algorithms, inspired from the model of human brain. Deep learning is becoming more popular in data science fields like robotics, artific...
Tryit Editor v3.7
Tryit: Text shadow with blur effect
[]
basic_string c_str function in C++ STL - GeeksforGeeks
17 Jul, 2018 The basic_string::c_str() is a builtin function in C++ which returns a pointer to an array that contains a null-terminated sequence of characters representing the current value of the basic_string object. This array includes the same sequence of characters that make up the value of the basic_string object ...
[ { "code": null, "e": 25919, "s": 25891, "text": "\n17 Jul, 2018" }, { "code": null, "e": 26284, "s": 25919, "text": "The basic_string::c_str() is a builtin function in C++ which returns a pointer to an array that contains a null-terminated sequence of characters representing the ...
Python | Pandas Index.dropna() - GeeksforGeeks
12 Jan, 2022 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.dropna() function return Index without NA/NaN values. All the missing values are...
[ { "code": null, "e": 24786, "s": 24758, "text": "\n12 Jan, 2022" }, { "code": null, "e": 25000, "s": 24786, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
C++ | Inheritance | Question 1 - GeeksforGeeks
28 Jun, 2021 #include<iostream> using namespace std;class Base1 { public: Base1() { cout << " Base1's constructor called" << endl; }}; class Base2 { public: Base2() { cout << "Base2's constructor called" << endl; }}; class Derived: public Base1, public Base2 { public: Derived() { cout...
[ { "code": null, "e": 25597, "s": 25569, "text": "\n28 Jun, 2021" }, { "code": "#include<iostream> using namespace std;class Base1 { public: Base1() { cout << \" Base1's constructor called\" << endl; }}; class Base2 { public: Base2() { cout << \"Base2's constructor called...
Lex program to find the Length of a String
30 Apr, 2019 Problem: Write a Lex program to find the Length of a String Explanation:FLEX (Fast Lexical Analyzer Generator) is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Apr, 2019" }, { "code": null, "e": 113, "s": 53, "text": "Problem: Write a Lex program to find the Length of a String" }, { "code": null, "e": 402, "s": 113, "text": "Explanation:FLEX (Fast Lexical Analyzer Gener...
Lodash _.difference() Function
12 May, 2021 The _.difference() function is used to remove a single element or the array of elements from the original array. This function works pretty much same as the core function of JavaScript i.e filter. Syntax : _.difference(array, [values]); Parameters: This function accept two parameters as mentioned above and...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2021" }, { "code": null, "e": 225, "s": 28, "text": "The _.difference() function is used to remove a single element or the array of elements from the original array. This function works pretty much same as the core function of J...
Nested printf (printf inside printf) in C
13 Dec, 2018 Predict the output of the following C program with a printf inside printf. #include<stdio.h> int main(){ int x = 1987; printf("%d", printf("%d", printf("%d", x))); return(0);} Output : 198741 Explanation :1. Firstly, the innermost printf is executed which results in printing 1987 2. This printf re...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Dec, 2018" }, { "code": null, "e": 127, "s": 52, "text": "Predict the output of the following C program with a printf inside printf." }, { "code": "#include<stdio.h> int main(){ int x = 1987; printf(\"%d\", printf(\"%d...
Building Tooltip using CSS
02 Jan, 2019 A Tooltip is used to provide interactive textual hints that gives the user an idea about the element when mouse pointer moves over. For Example, in the below image GeeksForGeeks is a button and when user hovers over it, the additional information β€œA computer Science Portal” pops-up. Positions of Tooltip: D...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jan, 2019" }, { "code": null, "e": 338, "s": 54, "text": "A Tooltip is used to provide interactive textual hints that gives the user an idea about the element when mouse pointer moves over. For Example, in the below image GeeksForGe...
SimpleDateFormat(β€œhh:mm:ss a”) in Java
The following format displays time from βˆ’ hh:mm:ss The following format displays time with AM/ PM marker βˆ’ hh:mm:ss a Here, we are using the SimpleDateFormat class to display date and time. Let us set it for the format we want i.e time and AM/PM Marker βˆ’ Format f = new SimpleDateFormat("hh:mm:ss a"); String strResult =...
[ { "code": null, "e": 1229, "s": 1187, "text": "The following format displays time from βˆ’" }, { "code": null, "e": 1238, "s": 1229, "text": "hh:mm:ss" }, { "code": null, "e": 1294, "s": 1238, "text": "The following format displays time with AM/ PM marker βˆ’" }...
Initialize Matrix in Python
In this article, we will learn about how we can initialize matrix using two dimensional list in Python 3.x. Or earlier. Let’s see the intuitive way to initialize a matrix that only python language offers. Here we take advantage of List comprehension. we initialise the inner list and then extend to multiple rows using t...
[ { "code": null, "e": 1307, "s": 1187, "text": "In this article, we will learn about how we can initialize matrix using two dimensional list in Python 3.x. Or earlier." }, { "code": null, "e": 1530, "s": 1307, "text": "Let’s see the intuitive way to initialize a matrix that only p...
PHP program to fetch data from localhost server database using XAMPP
06 Jun, 2022 In this article, we will see how we can display the records by fetching them from the MySQL database using PHP. Approach: Make sure you have a XAMPP server or WAMP server installed on your machine. In this article, we will be using the XAMPP server. XAMPP is a free and open-source cross-platform web serve...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jun, 2022" }, { "code": null, "e": 165, "s": 52, "text": "In this article, we will see how we can display the records by fetching them from the MySQL database using PHP. " }, { "code": null, "e": 303, "s": 165, "...
Perl | Operators | Set – 2
14 Jan, 2022 Operators are the main building block of any programming language. Operators allow the programmer to perform different kinds of operations on operands. In Perl, operators symbols will be different for different kind of operands(like scalars and string). Some of the operators already discussed in Perl Opera...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jan, 2022" }, { "code": null, "e": 429, "s": 52, "text": "Operators are the main building block of any programming language. Operators allow the programmer to perform different kinds of operations on operands. In Perl, operators sym...
Sum of k smallest elements in BST
06 Jul, 2022 Given Binary Search Tree. The task is to find sum of all elements smaller than and equal to Kth smallest element. Examples: Input : K = 3 8 / \ 7 10 / / \ 2 9 13 Output : 17 Explanation : Kth smallest element is 8 so sum of all ...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Jul, 2022" }, { "code": null, "e": 168, "s": 54, "text": "Given Binary Search Tree. The task is to find sum of all elements smaller than and equal to Kth smallest element." }, { "code": null, "e": 179, "s": 168, ...
Java Stream | Collectors toCollection() in Java
06 Dec, 2018 Collectors toCollection(Supplier<C> collectionFactory) method in Java is used to create a Collection using Collector. It returns a Collector that accumulates the input elements into a new Collection, in the order in which they are passed. Syntax: public static <T, C extends Collection<T>> Collector<T, ?, C...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2018" }, { "code": null, "e": 267, "s": 28, "text": "Collectors toCollection(Supplier<C> collectionFactory) method in Java is used to create a Collection using Collector. It returns a Collector that accumulates the input element...
Creating and updating PowerPoint Presentations in Python using python – pptx
18 Aug, 2020 python-pptx is library used to create/edit a PowerPoint (.pptx) files. This won’t work on MS office 2003 and previous versions. We can add shapes, paragraphs, texts and slides and much more thing using this library. Installation: Open the command prompt on your system and write given below command: pip in...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Aug, 2020" }, { "code": null, "e": 245, "s": 28, "text": "python-pptx is library used to create/edit a PowerPoint (.pptx) files. This won’t work on MS office 2003 and previous versions. We can add shapes, paragraphs, texts and slide...
PHP | Sum of digits of a number
09 Mar, 2018 This is a simple PHP program where we need to calculate the sum of all digits of a number.Examples: Input : 711 Output : 9 Input : 14785 Output : 25 In this program, we will try to accept a number in the form of a string and then iterate through the length of the string. While iterating we will extract ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Mar, 2018" }, { "code": null, "e": 128, "s": 28, "text": "This is a simple PHP program where we need to calculate the sum of all digits of a number.Examples:" }, { "code": null, "e": 180, "s": 128, "text": "Input ...
Python Program for Topological Sorting
23 Feb, 2022 Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.For example, a topological sorting of the following graph is β€œ5 4 2 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Feb, 2022" }, { "code": null, "e": 625, "s": 52, "text": "Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topologic...
Merge two Pandas DataFrames on certain columns
12 Oct, 2021 We can merge two Pandas DataFrames on certain columns using the merge function by simply specifying the certain columns for merge. Syntax: DataFrame.merge(right, how=’inner’, on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, copy=True, indicator=False, validate=None) E...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Oct, 2021" }, { "code": null, "e": 184, "s": 52, "text": "We can merge two Pandas DataFrames on certain columns using the merge function by simply specifying the certain columns for merge. " }, { "code": null, "e": 358, ...
ProcessPoolExecutor Class in Python
08 Oct, 2021 Prerequisite – Multiprocessing It allows parallelism of code and the Python language has two ways to achieve its 1st is via multiprocessing module and 2nd is via multithreading module. From Python 3.2 onwards a new class called ProcessPoolExecutor was introduced in python in concurrent. The futures module ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Oct, 2021" }, { "code": null, "e": 59, "s": 28, "text": "Prerequisite – Multiprocessing" }, { "code": null, "e": 506, "s": 59, "text": "It allows parallelism of code and the Python language has two ways to achieve...
Talking to Python from Javascript: Flask and the fetch API | by Daniel Ellis | Towards Data Science
Within the field of data science, it is common to be required to use a selection of tools, each specific to their job. A role requiring visualisation using a web interface, but processing of a Python script, it is often better to build a bespoke visualisation in d3 or THREE.js to display it and then fetch data as requi...
[ { "code": null, "e": 612, "s": 172, "text": "Within the field of data science, it is common to be required to use a selection of tools, each specific to their job. A role requiring visualisation using a web interface, but processing of a Python script, it is often better to build a bespoke visualisa...
The One PyTorch Trick Which You Should Know | by Tivadar Danka | Towards Data Science
If you have ever used deep learning before, you know that debugging a model can be really hard sometimes. Tensor shape mismatches, exploding gradients, and countless other issues can surprise you. Solving these require looking at the model under the microscope. The most basic methods include littering the forward() met...
[ { "code": null, "e": 678, "s": 172, "text": "If you have ever used deep learning before, you know that debugging a model can be really hard sometimes. Tensor shape mismatches, exploding gradients, and countless other issues can surprise you. Solving these require looking at the model under the micro...
Animate Bootstrap progress bar
Follow the below given steps to create an animated progress bar: Add a <div> with a class of .progress and .progress-striped. Also, add class .active to .progress-striped. Next, inside the above <div>, add an empty <div> with a class of .progress-bar. Add a style attribute with the width expressed as a percentage. Say ...
[ { "code": null, "e": 1127, "s": 1062, "text": "Follow the below given steps to create an animated progress bar:" }, { "code": null, "e": 1234, "s": 1127, "text": "Add a <div> with a class of .progress and .progress-striped. Also, add class .active to .progress-striped." }, { ...
C-SCAN Disk Scheduling Algorithm - GeeksforGeeks
24 Dec, 2021 Prerequisite: Disk Scheduling Algorithms and SCAN Disk Scheduling Algorithm Given an array of disk track numbers and initial head position, our task is to find the total number of seek operations done to access all the requested tracks if a C-SCAN disk scheduling algorithm is used. The circular SCAN (C-SCA...
[ { "code": null, "e": 27731, "s": 27703, "text": "\n24 Dec, 2021" }, { "code": null, "e": 27807, "s": 27731, "text": "Prerequisite: Disk Scheduling Algorithms and SCAN Disk Scheduling Algorithm" }, { "code": null, "e": 28014, "s": 27807, "text": "Given an array...
Difference between the Constructors and Methods - GeeksforGeeks
14 May, 2019 Java is a pure OOPS concept based programming language. Hence in Java, all the variables, data and the statements must be present in classes. These classes consist of both constructors and methods. Methods and Constructors are different from each other in a lot of ways. Constructors:Constructors are used t...
[ { "code": null, "e": 24676, "s": 24648, "text": "\n14 May, 2019" }, { "code": null, "e": 24947, "s": 24676, "text": "Java is a pure OOPS concept based programming language. Hence in Java, all the variables, data and the statements must be present in classes. These classes consist...
Time Intelligence calculations in R | by Hamza Rafiq | Towards Data Science
Time intelligence is simply doing calculations over periods of date or time. For example, a common request you could get is to get total sales aggregated by month for a year or to calculate total sales for products YTD and sales, same period last year to compare and calculate growth. Learning from my own practical expe...
[ { "code": null, "e": 620, "s": 172, "text": "Time intelligence is simply doing calculations over periods of date or time. For example, a common request you could get is to get total sales aggregated by month for a year or to calculate total sales for products YTD and sales, same period last year to ...