title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Sum of n numbers in Python using while loop
Theory of Computation In this post, you will learn how to find the sum of n numbers in Python using a while loop. The while loop in Python is used to iterate over a block of code as long as the truth expression (condition) is true. In the given example, we have used the if..else statement in combination with a while lo...
[ { "code": null, "e": 112, "s": 90, "text": "Theory of Computation" }, { "code": null, "e": 322, "s": 112, "text": "In this post, you will learn how to find the sum of n numbers in Python using a while loop. The while loop in Python is used to iterate over a block of code as long ...
How to disable form submit on enter button using jQuery ? - GeeksforGeeks
03 Aug, 2021 There are two methods to submit a form, Using the “enter” key: When the user press the “enter” key from the keyboard then the form submit. This method works only when one (or more) of the elements in the concerned form have focus. Using the “mouse click”: The user clicks on the “submit” form button. Approa...
[ { "code": null, "e": 25387, "s": 25359, "text": "\n03 Aug, 2021" }, { "code": null, "e": 25427, "s": 25387, "text": "There are two methods to submit a form," }, { "code": null, "e": 25618, "s": 25427, "text": "Using the “enter” key: When the user press the “en...
Perl goto Statement
Perl does support a goto statement. There are three forms: goto LABEL, goto EXPR, and goto &NAME. goto LABEL The goto LABEL form jumps to the statement labeled with LABEL and resumes execution from there. goto EXPR The goto EXPR form is just a generalization of goto LABEL. It expects the expression to return a label na...
[ { "code": null, "e": 2318, "s": 2220, "text": "Perl does support a goto statement. There are three forms: goto LABEL, goto EXPR, and goto &NAME." }, { "code": null, "e": 2329, "s": 2318, "text": "goto LABEL" }, { "code": null, "e": 2425, "s": 2329, "text": "Th...
Python | Foreground Extraction in an Image using Grabcut Algorithm - GeeksforGeeks
05 Jan, 2022 Let’s discuss an efficient method of foreground extraction from the background in an image. The idea here is to find the foreground, and remove the background. Foreground extract is any technique which allows an image’s foreground to be extracted for further processing like object recognition, tracking etc...
[ { "code": null, "e": 23927, "s": 23899, "text": "\n05 Jan, 2022" }, { "code": null, "e": 24779, "s": 23927, "text": "Let’s discuss an efficient method of foreground extraction from the background in an image. The idea here is to find the foreground, and remove the background. For...
Angular Material 7 - Toolbar
The <mat-toolbar>, an Angular Directive, is used to create a toolbar to show title, header or any action button. <mat-toolbar> - Represents the main container. <mat-toolbar> - Represents the main container. <mat-toolbar-row> - Add a new row. <mat-toolbar-row> - Add a new row. In this chapter, we will showcase the confi...
[ { "code": null, "e": 2868, "s": 2755, "text": "The <mat-toolbar>, an Angular Directive, is used to create a toolbar to show title, header or any action button." }, { "code": null, "e": 2915, "s": 2868, "text": "<mat-toolbar> - Represents the main container." }, { "code": ...
Python Program to Check if a Number is a Strong Number
Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factorial implies when we find the product of all the numbers below that number including that number and is denoted by ! (Exclamation sign), For example: 5! = 5x4x3x2x1 = 120. When it is required to check if a number is a strong n...
[ { "code": null, "e": 1461, "s": 1062, "text": "Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factorial implies when we find the product of all the numbers below that number including that number and is denoted by ! (Exclamation sign), For example: 5! = 5x4x...
Python Program to Implement Binary Search with Recursion
When it is required to implement binary search using recursion, a method can be defined, that checks if the index 'high' is greater than index 'low. Based on value present at 'mid' variable, the function is called again to search for the element. A list can be used to store heterogeneous values (i.e data of any data ty...
[ { "code": null, "e": 1309, "s": 1062, "text": "When it is required to implement binary search using recursion, a method can be defined, that checks if the index 'high' is greater than index 'low. Based on value present at 'mid' variable, the function is called again to search for the element." }, ...
Python | Introduction to PyQt5 - GeeksforGeeks
26 May, 2019 There are so many options provided by Python to develop GUI application and PyQt5 is one of them. PyQt5 is cross-platform GUI toolkit, a set of python bindings for Qt v5. One can develop an interactive desktop application with so much ease because of the tools and simplicity provided by this library. A GUI...
[ { "code": null, "e": 24101, "s": 24073, "text": "\n26 May, 2019" }, { "code": null, "e": 24403, "s": 24101, "text": "There are so many options provided by Python to develop GUI application and PyQt5 is one of them. PyQt5 is cross-platform GUI toolkit, a set of python bindings for...
Python String center() Method - GeeksforGeeks
05 Aug, 2021 Python String center() method creates and returns a new string that is padded with the specified character. Syntax: string.center(length[, fillchar]) Parameters: length: length of the string after padding with the characters. fillchar: (optional) characters which need to be padded. If it’s not provided, ...
[ { "code": null, "e": 23740, "s": 23712, "text": "\n05 Aug, 2021" }, { "code": null, "e": 23849, "s": 23740, "text": "Python String center() method creates and returns a new string that is padded with the specified character. " }, { "code": null, "e": 23858, "s": 2...
Java program to find the cube root of a given number
Following is an example to find the cube root of a given number. import java.util.Scanner; public class FindingCubeRoot { public static void main(String args[]){ double i, precision = 0.000001; System.out.println("Enter a number ::"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(...
[ { "code": null, "e": 1127, "s": 1062, "text": "Following is an example to find the cube root of a given number." }, { "code": null, "e": 1544, "s": 1127, "text": "import java.util.Scanner;\npublic class FindingCubeRoot {\n public static void main(String args[]){\n double i...
How to add multi-language content in HTML?
The lang attribute in HTML allows you to set content for languages other than English. You can try to run the following code to implement lang attribute. Here, we have added content in French and Spanish as well. <!DOCTYPE html> <html> <body> <h2>English</h2> <p lang="en">This is demo text</p> ...
[ { "code": null, "e": 1216, "s": 1062, "text": "The lang attribute in HTML allows you to set content for languages other than English. You can try to run the following code to implement lang attribute." }, { "code": null, "e": 1275, "s": 1216, "text": "Here, we have added content ...
How to use action up event in android?
This example demonstrate about How use action up event in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:...
[ { "code": null, "e": 1129, "s": 1062, "text": "This example demonstrate about How use action up event in android." }, { "code": null, "e": 1258, "s": 1129, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a...
What are checked exceptions in Java?
A checked exception is an exception that occurs at the time of compilation, these are also called as compile time exceptions. These exceptions cannot simply be ignored at the time of compilation; the programmer should take care of (handle) these exceptions. if you use FileReader class in your program to read data from ...
[ { "code": null, "e": 1320, "s": 1062, "text": "A checked exception is an exception that occurs at the time of compilation, these are also called as compile time exceptions. These exceptions cannot simply be ignored at the time of compilation; the programmer should take care of (handle) these excepti...
JavaScript - Functions
A function is a group of reusable code which can be called anywhere in your program. This eliminates the need of writing the same code again and again. It helps programmers in writing modular codes. Functions allow a programmer to divide a big program into a number of small and manageable functions. Like any other adva...
[ { "code": null, "e": 2767, "s": 2466, "text": "A function is a group of reusable code which can be called anywhere in your program. This eliminates the need of writing the same code again and again. It helps programmers in writing modular codes. Functions allow a programmer to divide a big program i...
Mapping Word Embeddings with Word2vec | by Sam Liebman | Towards Data Science
Natural Language Processing (NLP) is an area of artificial intelligence focused on allowing computers to understand, process, and analyze human language. NLP is widely used in the tech industry, serving as a backbone to search engines, spam filters, language translation and much more. NLP enables computers to transform...
[ { "code": null, "e": 1302, "s": 172, "text": "Natural Language Processing (NLP) is an area of artificial intelligence focused on allowing computers to understand, process, and analyze human language. NLP is widely used in the tech industry, serving as a backbone to search engines, spam filters, lang...
Zend Framework - Installation
To install the Zend Framework, we must first install the Composer and the latest version of PHP as shown in the following steps. Install Composer − Zend uses Composer for managing its dependencies, so make sure you have the Composer installed on your machine. If the Composer is not installed, then visit the official we...
[ { "code": null, "e": 2441, "s": 2312, "text": "To install the Zend Framework, we must first install the Composer and the latest version of PHP as shown in the following steps." }, { "code": null, "e": 2666, "s": 2441, "text": "Install Composer − Zend uses Composer for managing it...
What is event Bubbling and capturing in JavaScript?
Event bubbling is the order in which event handlers are called when one element is nested inside a second element, and both elements have registered a listener for the same event (a click, for example). With bubbling, the event is first captured and handled by the innermost element and then propagated to outer elements...
[ { "code": null, "e": 1384, "s": 1062, "text": "Event bubbling is the order in which event handlers are called when one element is nested inside a second element, and both elements have registered a listener for the same event (a click, for example). With bubbling, the event is first captured and han...
GWT - Tree Widget
The Tree widget represents a standard hierarchical tree widget. The tree contains a hierarchy of TreeItems that the user can open, close, and select. Following is the declaration for com.google.gwt.user.client.ui.Tree class − public class Tree extends Widget implements HasWidgets, SourcesTreeEvents, HasFocus, ...
[ { "code": null, "e": 2173, "s": 2023, "text": "The Tree widget represents a standard hierarchical tree widget. The tree contains a hierarchy of TreeItems that the user can open, close, and select." }, { "code": null, "e": 2249, "s": 2173, "text": "Following is the declaration for...
Ubuntu - Quick Guide
Ubuntu is a Linux-based operating system. It is designed for computers, smartphones, and network servers. The system is developed by a UK based company called Canonical Ltd. All the principles used to develop the Ubuntu software are based on the principles of Open Source software development. Following are some of the ...
[ { "code": null, "e": 2427, "s": 2133, "text": "Ubuntu is a Linux-based operating system. It is designed for computers, smartphones, and network servers. The system is developed by a UK based company called Canonical Ltd. All the principles used to develop the Ubuntu software are based on the princip...
Stop Using CSVs for Storage — Pickle is an 80 Times Faster Alternative | by Dario Radečić | Towards Data Science
Storing data in the cloud can cost you a pretty penny. Naturally, you’ll want to stay away from the most widely known data storage format — CSV — and pick something a little lighter. That is, if you don’t care about viewing and editing data files on the fly. Today you’ll learn about one of the simplest ways to store al...
[ { "code": null, "e": 431, "s": 172, "text": "Storing data in the cloud can cost you a pretty penny. Naturally, you’ll want to stay away from the most widely known data storage format — CSV — and pick something a little lighter. That is, if you don’t care about viewing and editing data files on the f...
HTML - <nobr> Tag
The HTML <nobr> tag is used to instruct the browser not to break the specified text (such as the usual line wrap that occurs at the right edge of the browser window). This is used with the <wbr> tag, <wbr> advises the extended browser when it may insert a line break in an otherwise nonbreakable sequence of text. Unlike...
[ { "code": null, "e": 2541, "s": 2374, "text": "The HTML <nobr> tag is used to instruct the browser not to break the specified text (such as the usual line wrap that occurs at the right edge of the browser window)." }, { "code": null, "e": 2973, "s": 2541, "text": "This is used wi...
Abstract Classes in Dart - GeeksforGeeks
02 Sep, 2020 An Abstract class in Dart is defined for those classes which contain one or more than one abstract method (methods without implementation) in them. Whereas, to declare abstract class we make use of the abstract keyword. So, it must be noted that a class declared abstract may or may not include abstract met...
[ { "code": null, "e": 23970, "s": 23942, "text": "\n02 Sep, 2020" }, { "code": null, "e": 24384, "s": 23970, "text": "An Abstract class in Dart is defined for those classes which contain one or more than one abstract method (methods without implementation) in them. Whereas, to dec...
Java Bitwise Operators
Java defines several bitwise operators, which can be applied to the integer types, long, int, short, char, and byte. Bitwise operator works on bits and performs the bit-by-bit operation. Assume if a = 60 and b = 13; now in binary format they will be as follows − a = 0011 1100 b = 0000 1101 ----------------- a&b = 0000...
[ { "code": null, "e": 1179, "s": 1062, "text": "Java defines several bitwise operators, which can be applied to the integer types, long, int, short, char, and byte." }, { "code": null, "e": 1326, "s": 1179, "text": "Bitwise operator works on bits and performs the bit-by-bit operat...
6 Pandas tricks you should know to speed up your data analysis | by B. Chen | Towards Data Science
In this article, you’ll learn some of the most helpful Pandas tricks to speed up your data analysis. Select columns by data typesConvert strings to numbersDetect and handle missing valuesConvert a continuous numerical feature into a categorical featureCreate a DataFrame from the clipboardBuild a DataFrame from multiple...
[ { "code": null, "e": 273, "s": 172, "text": "In this article, you’ll learn some of the most helpful Pandas tricks to speed up your data analysis." }, { "code": null, "e": 499, "s": 273, "text": "Select columns by data typesConvert strings to numbersDetect and handle missing value...
Reading Tabular Data from Files in Julia - GeeksforGeeks
10 Jun, 2021 Julia is a high level, high performance, dynamic programming language which allows users to load, save, and manipulate data in various types of files for data science, analysis, and machine learning purposes. Tabular data is data that has a structure of a table and it can be easily read from various files ...
[ { "code": null, "e": 24061, "s": 24033, "text": "\n10 Jun, 2021" }, { "code": null, "e": 24397, "s": 24061, "text": "Julia is a high level, high performance, dynamic programming language which allows users to load, save, and manipulate data in various types of files for data scie...
File createTempFile() method in Java with Examples - GeeksforGeeks
20 Jun, 2021 The createTempFile() function creates a temporary file in a given directory ( if directory is not mentioned then a default directory is selected ), the function generates the filename by using the prefix and suffix passed as the parameters . If the suffix is null then the function uses “.tmp” as suffix. Th...
[ { "code": null, "e": 25174, "s": 25146, "text": "\n20 Jun, 2021" }, { "code": null, "e": 25543, "s": 25174, "text": "The createTempFile() function creates a temporary file in a given directory ( if directory is not mentioned then a default directory is selected ), the function ge...
Paragraph Formatting In Python .docx Module - GeeksforGeeks
03 Jan, 2021 Prerequisite: Working with .docx module Word documents contain formatted text wrapped within three object levels. The Lowest level- run objects, middle level- paragraph objects, and highest level- document object. So, we cannot work with these documents using normal text editors. But, we can manipulate the...
[ { "code": null, "e": 24291, "s": 24263, "text": "\n03 Jan, 2021" }, { "code": null, "e": 24331, "s": 24291, "text": "Prerequisite: Working with .docx module" }, { "code": null, "e": 24695, "s": 24331, "text": "Word documents contain formatted text wrapped with...
SAS - Standard Deviation
Standard deviation (SD) is a measure of how varied is the data in a data set. Mathematically it measures how distant or close are each value to the mean value of a data set. A standard deviation value close to 0 indicates that the data points tend to be very close to the mean of the data set and a high standard deviati...
[ { "code": null, "e": 2981, "s": 2583, "text": "Standard deviation (SD) is a measure of how varied is the data in a data set. Mathematically it measures how distant or close are each value to the mean value of a data set. A standard deviation value close to 0 indicates that the data points tend to be...
Intersection of two sorted Linked lists | Practice | GeeksforGeeks
Given two lists sorted in increasing order, create a new list representing the intersection of the two lists. The new list should be made with its own memory — the original lists should not be changed. Note: The list elements are not necessarily distinct. Example 1: Input: L1 = 1->2->3->4->6 L2 = 2->4->6->8 Output: 2 4...
[ { "code": null, "e": 494, "s": 238, "text": "Given two lists sorted in increasing order, create a new list representing the intersection of the two lists. The new list should be made with its own memory — the original lists should not be changed.\nNote: The list elements are not necessarily distinct...
How to minus one column from another in an R matrix?
To minus one column from another in an R matrix, we first need to read the matrix as a data frame using as.data.frame then find minus the columns using minus sign and accessing the column of the data frame. To understand how it can be done look at the steps in below examples. Consider the below data frame − Live Demo ...
[ { "code": null, "e": 1339, "s": 1062, "text": "To minus one column from another in an R matrix, we first need to read the matrix as a data frame using as.data.frame then find minus the columns using minus sign and accessing the column of the data frame. To understand how it can be done look at the s...
Determine if a string has all Unique Characters - GeeksforGeeks
25 Apr, 2022 Given a string, determine if the string has all unique characters. Examples : Input : abcd10jk Output : true Input : hutg9mnd!nk9 Output : false Approach 1 – Brute Force technique: Run 2 loops with variable i and j. Compare str[i] and str[j]. If they become equal at any point, return false. Time Complex...
[ { "code": null, "e": 25634, "s": 25606, "text": "\n25 Apr, 2022" }, { "code": null, "e": 25701, "s": 25634, "text": "Given a string, determine if the string has all unique characters." }, { "code": null, "e": 25714, "s": 25701, "text": "Examples : " }, { ...
Software Testing | Stability Testing - GeeksforGeeks
16 May, 2019 Stability Testing is a type of Software Testing to check the quality and behavior of the software in different environmental parameters. It is defined as the ability of the product to continue to function over time without failure. It is a Non-functional Testing technique that focuses to stress the softwar...
[ { "code": null, "e": 26235, "s": 26207, "text": "\n16 May, 2019" }, { "code": null, "e": 26467, "s": 26235, "text": "Stability Testing is a type of Software Testing to check the quality and behavior of the software in different environmental parameters. It is defined as the abili...
Access Relation Databases with Python - GeeksforGeeks
16 Jul, 2020 Databases are powerful tools for data scientists. DB-API is Python’s standard API used for accessing databases. It allows you to write a single program that works with multiple kinds of relational databases instead of writing a separate program for each one. This is how a typical user accesses databases us...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25935, "s": 25561, "text": "Databases are powerful tools for data scientists. DB-API is Python’s standard API used for accessing databases. It allows you to write a single program that works ...
Clipboard in Android - GeeksforGeeks
20 Nov, 2021 Android’s Clipboard performs copying and pasting on different data types, such as text strings, images, binary stream data, and other complex data types. Clipboard does the copying and pasting operations within the same application and between multiple applications that have implemented the clipboard frame...
[ { "code": null, "e": 26303, "s": 26275, "text": "\n20 Nov, 2021" }, { "code": null, "e": 26889, "s": 26303, "text": "Android’s Clipboard performs copying and pasting on different data types, such as text strings, images, binary stream data, and other complex data types. Clipboard...
error: call of overloaded ‘function(x)’ is ambiguous | Ambiguity in Function overloading in C++ - GeeksforGeeks
11 Jan, 2022 Pre-requisite: Function Overloading in C++ Function overloading is a feature of object-oriented programming where two or more functions can have the same name but different parameters. When a function name is overloaded with different jobs it is called Function Overloading. Two or more functions are said t...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n11 Jan, 2022" }, { "code": null, "e": 25410, "s": 25367, "text": "Pre-requisite: Function Overloading in C++" }, { "code": null, "e": 25730, "s": 25410, "text": "Function overloading is a feature of object-ori...
Convert string to char array in C++ - GeeksforGeeks
06 Jul, 2021 Many of us have encountered error ‘cannot convert std::string to char[] or char* data type’. Examples: Input : string s = "geeksforgeeks" ; Output : char s[] = { 'g', 'e', 'e', 'k', 's', 'f', 'o', 'r', 'g', 'e', 'e', 'k', 's' } ; Input : string s = "coding" ; Output : char s[] = { 'c'...
[ { "code": null, "e": 25933, "s": 25905, "text": "\n06 Jul, 2021" }, { "code": null, "e": 26037, "s": 25933, "text": "Many of us have encountered error ‘cannot convert std::string to char[] or char* data type’. Examples: " }, { "code": null, "e": 26270, "s": 26037,...
Python | Pandas DatetimeIndex.normalize() - GeeksforGeeks
24 Dec, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.normalize() function convert times to midnight. The time component of th...
[ { "code": null, "e": 26121, "s": 26093, "text": "\n24 Dec, 2018" }, { "code": null, "e": 26335, "s": 26121, "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...
Non-Repeating Element - GeeksforGeeks
25 Feb, 2022 Find the first non-repeating element in a given array of integers. Examples: Input : -1 2 -1 3 2 Output : 3 Explanation : The first number that does not repeat is : 3 Input : 9 4 9 6 7 4 Output : 6 A Simple Solution is to use two loops. The outer loop picks elements one by one and inner loop checks if t...
[ { "code": null, "e": 26031, "s": 26003, "text": "\n25 Feb, 2022" }, { "code": null, "e": 26098, "s": 26031, "text": "Find the first non-repeating element in a given array of integers." }, { "code": null, "e": 26108, "s": 26098, "text": "Examples:" }, { ...
How to remove an array element in a foreach loop? - GeeksforGeeks
21 Feb, 2019 Use unset() function to remove array elements in a foreach loop. The unset() function is an inbuilt function in PHP which is used to unset a specified variable. The behavior of this function depends on different things. If the function is called from inside of any user defined function then it unsets the v...
[ { "code": null, "e": 25771, "s": 25743, "text": "\n21 Feb, 2019" }, { "code": null, "e": 26175, "s": 25771, "text": "Use unset() function to remove array elements in a foreach loop. The unset() function is an inbuilt function in PHP which is used to unset a specified variable. Th...
Find n-th term in the series 9, 33, 73,129 ... - GeeksforGeeks
16 Apr, 2021 Given a series 9, 33, 73, 129... Find the n-th term of the series.Examples: Input : n = 4 Output : 129 Input : n = 5 Output : 201 The given series has a pattern which is visible after subtracting it from itself after one shift S = 9 + 33 + 73 + 129 + ... tn-1 + tn S = 9 + 33 + 73 + ... tn-2 + tn...
[ { "code": null, "e": 25962, "s": 25934, "text": "\n16 Apr, 2021" }, { "code": null, "e": 26040, "s": 25962, "text": "Given a series 9, 33, 73, 129... Find the n-th term of the series.Examples: " }, { "code": null, "e": 26096, "s": 26040, "text": "Input : n = ...
Javascript Program for Search an element in a sorted and rotated array - GeeksforGeeks
11 Dec, 2021 An element in a sorted array can be found in O(log n) time via binary search. But suppose we rotate an ascending order sorted array at some pivot unknown to you beforehand. So for instance, 1 2 3 4 5 might become 3 4 5 1 2. Devise a way to find an element in the rotated array in O(log n) time. Example: ...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n11 Dec, 2021" }, { "code": null, "e": 26337, "s": 26041, "text": "An element in a sorted array can be found in O(log n) time via binary search. But suppose we rotate an ascending order sorted array at some pivot unknown to you be...
PyQt5 – Add image icon on a Push button - GeeksforGeeks
22 Apr, 2020 In this article we will see how to add icon to a push button. Here, setting icon not like setting an background image, it is similar to the icon of main window. Icon of button appear at the left side and text is on right size. Below is the representation of pus button without and with icon. In order to do...
[ { "code": null, "e": 25417, "s": 25389, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25644, "s": 25417, "text": "In this article we will see how to add icon to a push button. Here, setting icon not like setting an background image, it is similar to the icon of main window. Ic...
How to play sounds in Python with Tkinter? - GeeksforGeeks
06 Jun, 2021 Python GUI tkinter is very useful when we want to take data from users. User attracts from GUI. GUI is very helpful in day to day life. A graphical user interface helps us to make our daily tasks easier and very productive. If you want to play music with the help of python GUI tkinter, then you come in the...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n06 Jun, 2021" }, { "code": null, "e": 26004, "s": 25561, "text": "Python GUI tkinter is very useful when we want to take data from users. User attracts from GUI. GUI is very helpful in day to day life. A graphical user interface ...
SQL query to find second highest salary? - GeeksforGeeks
02 Nov, 2021 Consider below simple table: Name Salary --------------- abc 100000 bcd 1000000 efg 40000 ghi 500000 How to find the employee whose salary is second highest. For example, in above table, “ghi” has the second highest salary as 500000. Below is simple query to find the employee whose sa...
[ { "code": null, "e": 25979, "s": 25951, "text": "\n02 Nov, 2021" }, { "code": null, "e": 26009, "s": 25979, "text": "Consider below simple table: " }, { "code": null, "e": 26101, "s": 26009, "text": "Name Salary\n---------------\nabc 100000\nbcd 10...
HashMap compute() method in Java with Examples - GeeksforGeeks
25 Oct, 2021 The compute(Key, BiFunction) method of HashMap class allows you to update a value in HashMap. The compute() method tries to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping is found). This method is used to automatically update a value for given k...
[ { "code": null, "e": 24195, "s": 24167, "text": "\n25 Oct, 2021" }, { "code": null, "e": 24517, "s": 24195, "text": "The compute(Key, BiFunction) method of HashMap class allows you to update a value in HashMap. The compute() method tries to compute a mapping for the specified key...
Four Elements | Practice | GeeksforGeeks
Given an array A of N integers. You have to find whether a combination of four elements in the array whose sum is equal to a given value X exists or not. Example 1: Input: N = 6 A[] = {1, 5, 1, 0, 6, 0} X = 7 Output: 1 Explantion: 1, 5, 1, 0 are the four elements which makes sum 7. Your Task: You don't need to ...
[ { "code": null, "e": 394, "s": 238, "text": "Given an array A of N integers. You have to find whether a combination of four elements in the array whose sum is equal to a given value X exists or not.\n " }, { "code": null, "e": 405, "s": 394, "text": "Example 1:" }, { "cod...
C Program For Removing Duplicates From A Sorted Linked List - GeeksforGeeks
13 Dec, 2021 Write a function that takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once. For example if the linked list is 11->11->11->21->43->43->60 then removeDuplicates() should convert the list to 11->21->43->60. Algorithm: Traverse the l...
[ { "code": null, "e": 23895, "s": 23867, "text": "\n13 Dec, 2021" }, { "code": null, "e": 24177, "s": 23895, "text": "Write a function that takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once. For exampl...
How to Build a DCGAN with PyTorch | by Conor Lazarou | Towards Data Science
In this tutorial, we’ll be building a simple DCGAN in PyTorch and training it to generate handwritten digits. As part of this tutorial we’ll be discussing the PyTorch DataLoader and how to use it to feed real image data into a PyTorch neural network for training. PyTorch is the focus of this tutorial, so I’ll be assumi...
[ { "code": null, "e": 531, "s": 172, "text": "In this tutorial, we’ll be building a simple DCGAN in PyTorch and training it to generate handwritten digits. As part of this tutorial we’ll be discussing the PyTorch DataLoader and how to use it to feed real image data into a PyTorch neural network for t...
Batch Script - IPCONFIG
This batch command displays Windows IP Configuration. Shows configuration by connection and the name of that connection. ipconfig @echo off ipconfig The above command will display the Windows IP configuration on the current machine. Following is an example of the output. Windows IP Configuration Wireless LAN adapter...
[ { "code": null, "e": 2290, "s": 2169, "text": "This batch command displays Windows IP Configuration. Shows configuration by connection and the name of that connection." }, { "code": null, "e": 2300, "s": 2290, "text": "ipconfig\n" }, { "code": null, "e": 2320, "s"...
How to add date and time picker using only one tag in HTML ? - GeeksforGeeks
07 Jan, 2022 In this article, we will discuss the overview of the datetime tag in HTML and mainly will focus on the example of datetime picker tag. We can add date and time picker in only one tag without using the two different tags. Let’s discuss it one by one. Syntax: For selecting a date we use the date tag in HTML...
[ { "code": null, "e": 24503, "s": 24475, "text": "\n07 Jan, 2022" }, { "code": null, "e": 24754, "s": 24503, "text": "In this article, we will discuss the overview of the datetime tag in HTML and mainly will focus on the example of datetime picker tag. We can add date and time pic...
How to get only hidden files and folders in PowerShell?
To display only hidden files and folders –hidden parameter is used while using Get-ChildItem. Get-ChildItem D:\Temp\ -Hidden PS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Hidden Directory: D:\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- -a-h-- ...
[ { "code": null, "e": 1156, "s": 1062, "text": "To display only hidden files and folders –hidden parameter is used while using Get-ChildItem." }, { "code": null, "e": 1187, "s": 1156, "text": "Get-ChildItem D:\\Temp\\ -Hidden" }, { "code": null, "e": 1439, "s": 118...
Java Program to change JLabel text after creation
At first, set a text for JLabel − JLabel label; label = new JLabel("First Label"); Now change the above JLabel text using setText() − // changing text label.setText("Updated text"); import java.awt.Font; import javax.swing.*; public class SwingDemo { public static void main(String args[]) { JFrame frame = new ...
[ { "code": null, "e": 1096, "s": 1062, "text": "At first, set a text for JLabel −" }, { "code": null, "e": 1145, "s": 1096, "text": "JLabel label;\nlabel = new JLabel(\"First Label\");" }, { "code": null, "e": 1196, "s": 1145, "text": "Now change the above JLab...
Intro to Recommender Systems with TensorFlow and TFRS | by Dimitris Poulopoulos | Towards Data Science
In his 2004 article entitled “The Long Tail,” Chris Anderson said that we are leaving the information age and entering the age of recommendation. Unless we can filter the information overload we absorb every day and retain only what is important to us, everything reduces to noise. A recommender system aims to predict t...
[ { "code": null, "e": 453, "s": 171, "text": "In his 2004 article entitled “The Long Tail,” Chris Anderson said that we are leaving the information age and entering the age of recommendation. Unless we can filter the information overload we absorb every day and retain only what is important to us, ev...
HTML <output> Tag - GeeksforGeeks
17 Mar, 2022 The <output> tag in HTML is used to represent the result of a calculation performed by the client-side script such as JavaScript. The <output> tag is a new tag in HTML 5, and it requires a starting and ends tag. Syntax: <output> Results... </output> Attributes: The output tag accepts three attributes whi...
[ { "code": null, "e": 22707, "s": 22679, "text": "\n17 Mar, 2022" }, { "code": null, "e": 22920, "s": 22707, "text": "The <output> tag in HTML is used to represent the result of a calculation performed by the client-side script such as JavaScript. The <output> tag is a new tag in ...
A short tutorial on Fuzzy Time Series | by Petrônio Silva | Towards Data Science
Time series analysis and forecasting methods are indispensable on several fields, for instance on engineering, medicine, economy, meteorology, etc. There are several methods of analysis and forecasting, from the traditional and consecrated statistical tools (ARMA, ARIMA, SARIMA, Holt-Winters, etc), to the new computati...
[ { "code": null, "e": 320, "s": 172, "text": "Time series analysis and forecasting methods are indispensable on several fields, for instance on engineering, medicine, economy, meteorology, etc." }, { "code": null, "e": 720, "s": 320, "text": "There are several methods of analysis ...
Java do-while loop example
A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time. Following is the syntax of a do...while loop − do { // Statements }while(Boolean_expression); Notice that the Boolean expression appears at the end of the loop, so the statements in the loop execut...
[ { "code": null, "e": 1182, "s": 1062, "text": "A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time." }, { "code": null, "e": 1229, "s": 1182, "text": "Following is the syntax of a do...while loop −" }, { "...
DAX Filter - VALUES function
Returns a one-column table that contains the distinct values from the specified table or column. In other words, duplicate values are removed and only unique values are returned. VALUES (<TableNameOrColumnName>) TableNameOrColumnName The table or column from which unique values are to be returned. A column of unique ...
[ { "code": null, "e": 2180, "s": 2001, "text": "Returns a one-column table that contains the distinct values from the specified table or column. In other words, duplicate values are removed and only unique values are returned." }, { "code": null, "e": 2215, "s": 2180, "text": "VAL...
How should I validate an e-mail address in Android using Kotlin?.
This example demonstrates how to validate an e-mail address 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"?> <Re...
[ { "code": null, "e": 1147, "s": 1062, "text": "This example demonstrates how to validate an e-mail address in Android using Kotlin." }, { "code": null, "e": 1276, "s": 1147, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required d...
Gii - Generating Module
Let us see how to generate a Module. Step 1 − To generate a module, open the module generation interface and fill in the form. Step 2 − Then, click the “Preview” button and “Generate”. Step 3 − We need to activate the module. Modify the modules application component in the config/web.php file. 'modules' => [ 'admin'...
[ { "code": null, "e": 2870, "s": 2833, "text": "Let us see how to generate a Module." }, { "code": null, "e": 2960, "s": 2870, "text": "Step 1 − To generate a module, open the module generation interface and fill in the form." }, { "code": null, "e": 3018, "s": 296...
Tryit Editor v3.7
Tryit: HTML small text
[]
How to create an S4 object in R?
To create an S4 object, we can use setClass function where we will pass the object name, column names, and the type of the data that will be stored in the columns. For example, if we want to create an S4 with name data and two numerical columns called by x and y then we can use setClass("data",representation(x1="numeri...
[ { "code": null, "e": 1401, "s": 1062, "text": "To create an S4 object, we can use setClass function where we will pass the object name, column names, and the type of the data that will be stored in the columns. For example, if we want to create an S4 with name data and two numerical columns called b...
Reverse an array in C++
The article showcase an array to be reversed in descending order using the C++ coding wherein the highest index is swapped to lowest index consequently by traversing the array in the loop. Live Demo #include <iostream> #include <algorithm> using namespace std; void reverseArray(int arr[], int n){ for (int low = 0, ...
[ { "code": null, "e": 1251, "s": 1062, "text": "The article showcase an array to be reversed in descending order using the C++ coding wherein the highest index is swapped to lowest index consequently by traversing the array in the loop." }, { "code": null, "e": 1262, "s": 1251, "t...
What is strncat() Function in C language?
The C library function char *strncat(char *dest, const char *src, size_t n) appends the string pointed to by src to the end of the string pointed to by dest up to n characters long. An array of characters is called a string. Following is the declaration for an array − char stringname [size]; For example: char string[50...
[ { "code": null, "e": 1244, "s": 1062, "text": "The C library function char *strncat(char *dest, const char *src, size_t n) appends the string pointed to by src to the end of the string pointed to by dest up to n characters long." }, { "code": null, "e": 1287, "s": 1244, "text": "...
Python | os.path.lexists() method - GeeksforGeeks
12 Jun, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in python used for common path name manipulati...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n12 Jun, 2019" }, { "code": null, "e": 24212, "s": 23901, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable...
Interface Arduino with LoRa module
In this article we will see how to interface Arduino with the LoRa module E32. LoRa stands for Long Range. It uses license-free sub-GHz RF bands for operation. These bands are different in different countries. In India, the permissible band is 865-867 MHz. LoRa is very ideal for IoT applications thanks to its long rang...
[ { "code": null, "e": 1523, "s": 1062, "text": "In this article we will see how to interface Arduino with the LoRa module E32. LoRa stands for Long Range. It uses license-free sub-GHz RF bands for operation. These bands are different in different countries. In India, the permissible band is 865-867 M...
Get only digits using regexp in MySQL?
If you want to get only digits using REGEXP, use the following regular expression( ^[0-9]*$) in where clause. Case 1 − If you want only those rows which have exactly 10 digits and all must be only digit, use the below regular expression. SELECT *FROM yourTableName WHERE yourColumnName REGEXP '^[0-9]{10}$'; Case 2 − If ...
[ { "code": null, "e": 1172, "s": 1062, "text": "If you want to get only digits using REGEXP, use the following regular expression( ^[0-9]*$) in where clause." }, { "code": null, "e": 1300, "s": 1172, "text": "Case 1 − If you want only those rows which have exactly 10 digits and al...
How to add an image to a button (action) in JavaFX?
A button controls in user interface applications, in general, on clicking the button it performs the respective action. You can create a Button by instantiating the javafx.scene.control.Button class. You can add a graphic object (node) to a button using the setGraphic() method of the Button class (inherited from javafx...
[ { "code": null, "e": 1262, "s": 1062, "text": "A button controls in user interface applications, in general, on clicking the button it performs the respective action. You can create a Button by instantiating the javafx.scene.control.Button class." }, { "code": null, "e": 1492, "s": 1...
HTML DOM Input Password required property
The HTML DOM input password required property is associated with the required attribute of an <input> element. The required property is used for setting and returning if it is necessary to fill some password field or not before the form is submitted to the server. This allows the form to not submit if a password field ...
[ { "code": null, "e": 1433, "s": 1062, "text": "The HTML DOM input password required property is associated with the required attribute of an <input> element. The required property is used for setting and returning if it is necessary to fill some password field or not before the form is submitted to ...
Find a string in lexicographic order which is in between given two strings - GeeksforGeeks
09 Sep, 2021 Given two strings S and T, find a string of the same length which is lexicographically greater than S and smaller than T. Print “-1” if no such string is formed.(S > T) Note: string S = s1s2... sn is said to be lexicographically smaller than string T = t1t2... tn, if there exists an i, such that s1 = t1, ...
[ { "code": null, "e": 24948, "s": 24920, "text": "\n09 Sep, 2021" }, { "code": null, "e": 25118, "s": 24948, "text": "Given two strings S and T, find a string of the same length which is lexicographically greater than S and smaller than T. Print “-1” if no such string is formed.(S...
MySQL Query to change lower case to upper case?
You can use in-built function UPPER() from MySQL to change a lower case to upper case. The syntax is as follows with select statement. SELECT UPPER(‘yourStringValue’); The following is an example showing string in lower case − mysql> select upper('john'); Here is the output displaying string in upper case − +----------...
[ { "code": null, "e": 1197, "s": 1062, "text": "You can use in-built function UPPER() from MySQL to change a lower case to upper case. The syntax is as follows with select statement." }, { "code": null, "e": 1230, "s": 1197, "text": "SELECT UPPER(‘yourStringValue’);" }, { ...
How to use enums in Python classes?
There is a module name "enum" in python with the hep of which enum is used in python. #import enum import enum # use enum in class class Car(enum.Enum): suzuki = 1 Hyundai = 2 Dezire = 3 print ("All the enum values are : ") for c in (Car): print(c)
[ { "code": null, "e": 1148, "s": 1062, "text": "There is a module name \"enum\" in python with the hep of which enum is used in python." }, { "code": null, "e": 1323, "s": 1148, "text": "#import enum\nimport enum\n# use enum in class\nclass Car(enum.Enum):\n suzuki = 1\n Hyund...
How to convert an Image to blob using JavaScript?
Following is the code to convert an image to blob using JavaScript − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans...
[ { "code": null, "e": 1131, "s": 1062, "text": "Following is the code to convert an image to blob using JavaScript −" }, { "code": null, "e": 1142, "s": 1131, "text": " Live Demo" }, { "code": null, "e": 2271, "s": 1142, "text": "<!DOCTYPE html>\n<html lang=\"e...
314e IT Solutions Interview Experience for Software Engineer Role | On-Campus 2021 - GeeksforGeeks
26 Feb, 2021 Online Test: 10 Quantitative Aptitude Questions: Medium level 3 Coding questions: 2 Medium, 1 Hard Given an equation with a digit represented by x, find the value of x that satisfies the equation.Ex. “1x0 + 5 = 105”, Output: 0 Ex. “75 / x5 = 3”, Output: 2Determine whether a given password satisfies all the...
[ { "code": null, "e": 25054, "s": 25026, "text": "\n26 Feb, 2021" }, { "code": null, "e": 25067, "s": 25054, "text": "Online Test:" }, { "code": null, "e": 25116, "s": 25067, "text": "10 Quantitative Aptitude Questions: Medium level" }, { "code": null, ...
XHTML - Syntax
XHTML syntax is very similar to HTML syntax and almost all the valid HTML elements are valid in XHTML as well. But when you write an XHTML document, you need to pay a bit extra attention to make your HTML document compliant to XHTML. Here are the important points to remember while writing a new XHTML document or conver...
[ { "code": null, "e": 1983, "s": 1749, "text": "XHTML syntax is very similar to HTML syntax and almost all the valid HTML elements are valid in XHTML as well. But when you write an XHTML document, you need to pay a bit extra attention to make your HTML document compliant to XHTML." }, { "code...
LSTM for predictive maintenance of turbofan engines | by Koen Peters | Towards Data Science
<disclaimer I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.> In the last post we developed an MLP with lagged variables for FD002, a datase...
[ { "code": null, "e": 289, "s": 47, "text": "<disclaimer I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.>" }, { ...
How do I write a function that takes an array of values and returns an object JavaScript?
Let’s say, we are required to write a function classifyArray() that takes in an array which contains mixed data types and returns a Map() with the elements grouped by their data types. For example − // if the input array is: const arr = ['class', 2, [7, 8, 9], {"name": "Michael"}, Symbol('foo'), true, false, 'name', 6]...
[ { "code": null, "e": 1247, "s": 1062, "text": "Let’s say, we are required to write a function classifyArray() that takes in an array which\ncontains mixed data types and returns a Map() with the elements grouped by their data types." }, { "code": null, "e": 1261, "s": 1247, "text...
What is run time polymorphism in C#?
Runtime polymorphism has method overriding that is also known as dynamic binding or late binding. It is implemented by abstract classes and virtual functions. Abstract classes contain abstract methods, which are implemented by the derived class. Let us see an example of abstract classes that implements run time polymor...
[ { "code": null, "e": 1221, "s": 1062, "text": "Runtime polymorphism has method overriding that is also known as dynamic binding or late binding. It is implemented by abstract classes and virtual functions." }, { "code": null, "e": 1308, "s": 1221, "text": "Abstract classes contai...
SAS - Concatenate Data Sets
Multiple SAS data sets can be concatenated to give a single data set using the SET statement. The total number of observations in the concatenated data set is the sum of the number of observations in the original data sets. The order of observations is sequential. All observations from the first data set are followed ...
[ { "code": null, "e": 2960, "s": 2583, "text": "Multiple SAS data sets can be concatenated to give a single data set using the SET statement. The total number of observations in the concatenated data set is the sum of the number of observations in the original data sets. The order of observations is...
Visualizing Convolution Neural Networks using Pytorch | by Niranjan Kumar | Towards Data Science
Convolution Neural Network (CNN) is another type of neural network that can be used to enable machines to visualize things and perform tasks such as image classification, image recognition, object detection, instance segmentation etc...But the neural network models are often termed as ‘black box’ models because it is q...
[ { "code": null, "e": 676, "s": 172, "text": "Convolution Neural Network (CNN) is another type of neural network that can be used to enable machines to visualize things and perform tasks such as image classification, image recognition, object detection, instance segmentation etc...But the neural netw...
Perl int Function
This function returns the integer element of EXPR, or $_ if omitted. The int function does not do rounding. If you need to round a value up to an integer, you should use sprintf. Following is the simple syntax for this function − int EXPR int This function returns the integer part of EXPR. Following is the example co...
[ { "code": null, "e": 2399, "s": 2220, "text": "This function returns the integer element of EXPR, or $_ if omitted. The int function does not do rounding. If you need to round a value up to an integer, you should use sprintf." }, { "code": null, "e": 2450, "s": 2399, "text": "Fol...
Angular PrimeNG TieredMenu Component - GeeksforGeeks
08 Sep, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the TieredMenu component in Angular PrimeNG. We will also learn ab...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n08 Sep, 2021" }, { "code": null, "e": 25119, "s": 24718, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp...
Menu Driven Program to implement all the operations of Doubly Circular Linked List - GeeksforGeeks
09 Dec, 2021 Circular Doubly Linked List has properties of both Doubly Linked List and Circular Linked List in which two consecutive elements are linked or connected by previous and next pointer and the last node points to the first node by next pointer and also the first node points to the last node by the previous p...
[ { "code": null, "e": 25008, "s": 24977, "text": " \n09 Dec, 2021\n" }, { "code": null, "e": 25468, "s": 25008, "text": "Circular Doubly Linked List has properties of both Doubly Linked List and Circular Linked List in which two consecutive elements are linked or connected by prev...
Python - AnchorLayout in Kivy
Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is used to develop the Android application, as well as Desktops applications. In this article we will see how to use the anchor layout positioning. Using AnchorLayouts we...
[ { "code": null, "e": 1360, "s": 1062, "text": "Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is used to develop the Android application, as well as Desktops applications. In this article we will s...
Local Function in C# - GeeksforGeeks
18 Jan, 2022 The local function feature is introduced in C# 7.0. It allows you to declare a method inside the body of an already defined method. Or in other words, we can say that a local function is a private function of a function whose scope is limited to that function in which it is created. The type of local funct...
[ { "code": null, "e": 23553, "s": 23525, "text": "\n18 Jan, 2022" }, { "code": null, "e": 24009, "s": 23553, "text": "The local function feature is introduced in C# 7.0. It allows you to declare a method inside the body of an already defined method. Or in other words, we can say t...
A Data Scientist’s Guide to Identify and Resolve Data Quality Issues | by Arunn Thevapalan | Towards Data Science
If you've worked in the AI industry with real-world data, you’d understand the pain. No matter how streamlined the data collection process is, the data we’re about to model is always messy. According to IBM, the 80/20 Rule holds for data science as well. 80% of a data scientist’s valuable time is spent simply finding, ...
[ { "code": null, "e": 362, "s": 172, "text": "If you've worked in the AI industry with real-world data, you’d understand the pain. No matter how streamlined the data collection process is, the data we’re about to model is always messy." }, { "code": null, "e": 583, "s": 362, "text...
jQuery - Selectors
The most important functionality of jQuery is provided by its Selectors. This tutorial will explain jQuery Selectors with simple examples covering all the three standard selectors. jQuery Selectors are used to select HTML element(s) from an HTML document. Consider an HTML document is given and you need to select all th...
[ { "code": null, "e": 2503, "s": 2322, "text": "The most important functionality of jQuery is provided by its Selectors. This tutorial will explain jQuery Selectors with simple examples covering all the three standard selectors." }, { "code": null, "e": 2712, "s": 2503, "text": "j...
How to merge two different array of objects using JavaScript?
Suppose, we have two different array of objects that contains information about the questions answered by some people − const arr1=[ { PersonalID: '11', qusetionNumber: '1', value: 'Something' }, { PersonalID: '12', qusetionNumber: '2', value: 'whatever' }, { PersonalID: '13', qusetionNumber: '3', value: 'anyt...
[ { "code": null, "e": 1182, "s": 1062, "text": "Suppose, we have two different array of objects that contains information about the questions answered by some people −" }, { "code": null, "e": 1758, "s": 1182, "text": "const arr1=[\n { PersonalID: '11', qusetionNumber: '1', valu...
C++ program to overload extraction operator
Suppose we have a Person class with two attributes first_name and the last_name. It also has two methods called get_first_name() and get_last_name() to retrieve or set first name and last name respectively. We shall have to overload the extraction operator (<<) to print the first name and the last name to print them us...
[ { "code": null, "e": 1402, "s": 1062, "text": "Suppose we have a Person class with two attributes first_name and the last_name. It also has two methods called get_first_name() and get_last_name() to retrieve or set first name and last name respectively. We shall have to overload the extraction opera...
Appending One Row at a Time in Empty Pandas DataFrame | Towards Data Science
A very common question in the context of pandas is whether you can actually create an empty DataFrame and then iteratively fill it in by appending -say- one row at a time. However, this approach tends to be quite inefficient and should be avoided at all costs. In today’s article we are going to discuss an alternative a...
[ { "code": null, "e": 433, "s": 172, "text": "A very common question in the context of pandas is whether you can actually create an empty DataFrame and then iteratively fill it in by appending -say- one row at a time. However, this approach tends to be quite inefficient and should be avoided at all c...
Combinatorial Game Theory | Set 3 (Grundy Numbers/Numbers and Mex) - GeeksforGeeks
24 Aug, 2021 We have introduced Combinatorial Game Theory in Set 1 and discussed Game of Nim in Set 2.Grundy Number is a number that defines a state of a game. We can define any impartial game (example : nim game) in terms of Grundy Number. Grundy Numbers or Numbers determine how any Impartial Game (not only the Game o...
[ { "code": null, "e": 24868, "s": 24840, "text": "\n24 Aug, 2021" }, { "code": null, "e": 25096, "s": 24868, "text": "We have introduced Combinatorial Game Theory in Set 1 and discussed Game of Nim in Set 2.Grundy Number is a number that defines a state of a game. We can define an...
KnockoutJS - Declarative Bindings
Declarative binding in KnockoutJS provides a powerful way to connect data to UI. It is important to understand the relationship between bindings and Observables. Technically, these two are different. You can use normal JavaScript object as ViewModel and KnockoutJS can process View's binding correctly. Without Observabl...
[ { "code": null, "e": 1933, "s": 1852, "text": "Declarative binding in KnockoutJS provides a powerful way to connect data to UI." }, { "code": null, "e": 2155, "s": 1933, "text": "It is important to understand the relationship between bindings and Observables. Technically, these t...
Visualizing AI. Deconstructing and Optimizing the SHAP... | by Wai On | Towards Data Science
Now that you understand how the various components of the SHAP Summary Plot work together (part 1), I will provide an example of its use in explaining a black box Machine Learning model. In addition, I will discuss some of the problems with the visualization in the example before offering some ideas for improving it. T...
[ { "code": null, "e": 638, "s": 172, "text": "Now that you understand how the various components of the SHAP Summary Plot work together (part 1), I will provide an example of its use in explaining a black box Machine Learning model. In addition, I will discuss some of the problems with the visualizat...
Singleton Design Pattern | Introduction - GeeksforGeeks
01 Sep, 2021 Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In this article, we are going to take a deeper look into the usage of the Singleton pattern. It is one of the most simple design patterns in terms of the modelling but on the other hand, this is one o...
[ { "code": null, "e": 24460, "s": 24432, "text": "\n01 Sep, 2021" }, { "code": null, "e": 24834, "s": 24460, "text": "Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In this article, we are going to take a deeper look into...
DateSerial() and DateValue() Function in MS Access - GeeksforGeeks
25 Sep, 2020 In this article, we are going to cover DateSerial() and DateValue() Function in MS Access with examples and will cover DateSerial and DateValue query with output. DateSerial() Function :The format of the DateSerial functions contains three parts year, month, and day values. And it returns date in a specifi...
[ { "code": null, "e": 24268, "s": 24240, "text": "\n25 Sep, 2020" }, { "code": null, "e": 24431, "s": 24268, "text": "In this article, we are going to cover DateSerial() and DateValue() Function in MS Access with examples and will cover DateSerial and DateValue query with output."...
How to make multi-index index charts with Plotly | by Nikita Khutorni | Towards Data Science
When working with time series data, raw numbers often provide little insight. If you have multiple variables that vary in magnitude, changes in smaller values are hard to see. There is a simple solution to this problem: Using index charts that index the data. While regular index charts work fine, by using a simple exte...
[ { "code": null, "e": 432, "s": 172, "text": "When working with time series data, raw numbers often provide little insight. If you have multiple variables that vary in magnitude, changes in smaller values are hard to see. There is a simple solution to this problem: Using index charts that index the d...
Probability - GeeksforGeeks
21 Jan, 2014 Solution set: { 6, (1,5), (1,6) ......} i.e. P(6 appeared on first throw) + P(1 appeared on first throw and 5 appeared on second throw) + P(1 appeared on first throw and 6 appeared on second throw) + .................... ...
[ { "code": null, "e": 29617, "s": 29589, "text": "\n21 Jan, 2014" }, { "code": null, "e": 29657, "s": 29617, "text": "Solution set: { 6, (1,5), (1,6) ......}" }, { "code": null, "e": 29711, "s": 29657, "text": " i.e. P(6 appeared on first throw...
How to customize X-axis ticks in Matplotlib?
To customize X-axis ticks in Matplotlib, we can change the ticks length and width. Set the figure size and adjust the padding between and around the subplots. Create lists for height, bars and y_pos data points. Make a bar plot using bar() method. To customize X-axis ticks, we can use tick_params() method, with color=r...
[ { "code": null, "e": 1145, "s": 1062, "text": "To customize X-axis ticks in Matplotlib, we can change the ticks length and width." }, { "code": null, "e": 1221, "s": 1145, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": n...
From PDF to Excel. Using tabula and xlsxwriter | by Ednalyn C. De Dios | Towards Data Science
In the real world, we’ll often encounter data in all sorts of formats. Today, we’ll tackle the task of extracting tabular data from a PDF and exporting it to Excel. The only caveat is, the pdf file must be machine-generated. PDFs of scanned pages do not work. This is one limitation of tabula. With that said, let’s roll...
[ { "code": null, "e": 336, "s": 171, "text": "In the real world, we’ll often encounter data in all sorts of formats. Today, we’ll tackle the task of extracting tabular data from a PDF and exporting it to Excel." }, { "code": null, "e": 465, "s": 336, "text": "The only caveat is, t...
How to Change Background Color of a Div on Mouse Move Over using JavaScript ? - GeeksforGeeks
19 May, 2020 The background color of the div box can be easily changed using HTML, CSS, and Javascript. We will use the querySelector() and addEventListener() method to select the element and then apply some math logic to change its background color. The below sections will guide you on how to create the effect. HTML C...
[ { "code": null, "e": 25070, "s": 25042, "text": "\n19 May, 2020" }, { "code": null, "e": 25371, "s": 25070, "text": "The background color of the div box can be easily changed using HTML, CSS, and Javascript. We will use the querySelector() and addEventListener() method to select ...
How To Set Up and Configure NFS on Ubuntu 16.04
In this article, we will learn how to install NFS on Ubuntu 16.04Network File System (NFS) protocol and a filesystem which allows you to access the shared folders from the remote system or server and also allows you to mount as a remote directory on the servers. This allows you to share the storage space between differ...
[ { "code": null, "e": 1500, "s": 1062, "text": "In this article, we will learn how to install NFS on Ubuntu 16.04Network File System (NFS) protocol and a filesystem which allows you to access the shared folders from the remote system or server and also allows you to mount as a remote directory on the...