title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Entity Framework - Validation
In this chapter let us learn about the validation techniques that can be used in ADO.NET Entity Framework to validate the model data. Entity Framework provides a great variety of validation features that can be implemented to a user interface for client-side validation or can be used for server-side validation. In Enti...
[ { "code": null, "e": 3345, "s": 3032, "text": "In this chapter let us learn about the validation techniques that can be used in ADO.NET Entity Framework to validate the model data. Entity Framework provides a great variety of validation features that can be implemented to a user interface for client...
Refresh page after clearing all form fields in jQuery?
To refresh page, use the location.reload() in JavaScript. The sample JavaScript code is as follows − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initialscale=1.0"> <title>Document</title> </head> <link rel="stylesheet" href="//code.jquery....
[ { "code": null, "e": 1163, "s": 1062, "text": "To refresh page, use the location.reload() in JavaScript. The sample JavaScript code is as follows −" }, { "code": null, "e": 1174, "s": 1163, "text": " Live Demo" }, { "code": null, "e": 1885, "s": 1174, "text": ...
Python | Check if element exists in list of lists
20 Mar, 2019 Given a list of lists, the task is to determine whether the given element exists in any sublist or not. Given below are a few methods to solve the given task.Method #1: Using any() any() method return true whenever a particular element is present in a given iterator. # Python code to demonstrate# finding w...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Mar, 2019" }, { "code": null, "e": 234, "s": 53, "text": "Given a list of lists, the task is to determine whether the given element exists in any sublist or not. Given below are a few methods to solve the given task.Method #1: Using...
Virtual base class in C++
14 Mar, 2019 Virtual base classes are used in virtual inheritance in a way of preventing multiple “instances” of a given class appearing in an inheritance hierarchy when using multiple inheritances. Need for Virtual Base Classes:Consider the situation where we have one class A .This class is A is inherited by two other...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Mar, 2019" }, { "code": null, "e": 240, "s": 54, "text": "Virtual base classes are used in virtual inheritance in a way of preventing multiple “instances” of a given class appearing in an inheritance hierarchy when using multiple in...
Kotlin - Collections
Collections are a common concept for most programming languages. A collection usually contains a number of objects of the same type and Objects in a collection are called elements or items. The Kotlin Standard Library provides a comprehensive set of tools for managing collections. The following collection types are rel...
[ { "code": null, "e": 2615, "s": 2425, "text": "Collections are a common concept for most programming languages. A collection usually contains a number of objects of the same type and Objects in a collection are called elements or items." }, { "code": null, "e": 2763, "s": 2615, "...
Pascal - if-then Statement
The if-then statement is the simplest form of control statement, frequently used in decision making and changing the control flow of the program execution. Syntax for if-then statement is − if condition then S Where condition is a Boolean or relational condition and S is a simple or compound statement. Example of an i...
[ { "code": null, "e": 2239, "s": 2083, "text": "The if-then statement is the simplest form of control statement, frequently used in decision making and changing the control flow of the program execution." }, { "code": null, "e": 2273, "s": 2239, "text": "Syntax for if-then stateme...
How to plot a wav file using Matplotlib?
To plot a .wav file using matplotlib, we can take following the steps − To read a .wav file, we can use the read() method. To read a .wav file, we can use the read() method. After reading the .wav file, we will get a tuple. At the 0 th index, rate would be there and at the 1st index, array sample data. After reading th...
[ { "code": null, "e": 1134, "s": 1062, "text": "To plot a .wav file using matplotlib, we can take following the steps −" }, { "code": null, "e": 1185, "s": 1134, "text": "To read a .wav file, we can use the read() method." }, { "code": null, "e": 1236, "s": 1185, ...
ML | Handling Imbalanced Data with SMOTE and Near Miss Algorithm in Python - GeeksforGeeks
13 Dec, 2021 In Machine Learning and Data Science we often come across a term called Imbalanced Data Distribution, generally happens when observations in one of the class are much higher or lower than the other classes. As Machine Learning algorithms tend to increase accuracy by reducing the error, they do not consider...
[ { "code": null, "e": 24744, "s": 24716, "text": "\n13 Dec, 2021" }, { "code": null, "e": 25182, "s": 24744, "text": "In Machine Learning and Data Science we often come across a term called Imbalanced Data Distribution, generally happens when observations in one of the class are m...
Count Hexadecimal Number in C++
We are given a range having start and end and the task is to calculate the count of hexadecimal numbers or alphabets present in the given range. In computer terms, hexadecimal numbers are those numbers that are having base 16 which means the binary digit can be represented in 16-bit. It consists of integer numbers star...
[ { "code": null, "e": 1207, "s": 1062, "text": "We are given a range having start and end and the task is to calculate the count of\nhexadecimal numbers or alphabets present in the given range." }, { "code": null, "e": 1476, "s": 1207, "text": "In computer terms, hexadecimal numbe...
An AI agent learns to play tic-tac-toe (part 3): training a Q-learning RL agent | by Paul Hiemstra | Towards Data Science
This article is part of a series that lets a computer play tic-tac-toe using reinforcement learning. You can find all the articles here. The goal is to provide a complete implementation that you can really pick apart and learn reinforcement learning from. It is probably best to read the articles in order. The article i...
[ { "code": null, "e": 538, "s": 172, "text": "This article is part of a series that lets a computer play tic-tac-toe using reinforcement learning. You can find all the articles here. The goal is to provide a complete implementation that you can really pick apart and learn reinforcement learning from....
React useState Hook
The React useState Hook allows us to track state in a function component. State generally refers to data or properties that need to be tracking in an application. To use the useState Hook, we first need to import it into our component. At the top of your component, import the useState Hook. import { useState } from "re...
[ { "code": null, "e": 74, "s": 0, "text": "The React useState Hook allows us to track state in a function component." }, { "code": null, "e": 163, "s": 74, "text": "State generally refers to data or properties that need to be tracking in an application." }, { "code": null,...
Console.SetError() Method in C# - GeeksforGeeks
11 Mar, 2019 The Console.SetError(TextWriter) Method sets the Error property of the specified StreamWriter i.e., it redirects the standard error stream to a file. As the console is set with this StreamWriter object, the WriteLine() method can be called to write the error into the file. Syntax: public static void SetErr...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n11 Mar, 2019" }, { "code": null, "e": 25821, "s": 25547, "text": "The Console.SetError(TextWriter) Method sets the Error property of the specified StreamWriter i.e., it redirects the standard error stream to a file. As the consol...
Flutter - Dark Theme - GeeksforGeeks
17 Feb, 2021 Nowadays almost all the mobile application uses a dark theme, for example, Instagram, Whatsapp, Youtube, etc. It’s easy to implement in Flutter, Just a few lines of code require to achieve this. But before doing that let’s explore some important concept in flutter which are used to achieve the dark theme T...
[ { "code": null, "e": 25287, "s": 25259, "text": "\n17 Feb, 2021" }, { "code": null, "e": 25593, "s": 25287, "text": "Nowadays almost all the mobile application uses a dark theme, for example, Instagram, Whatsapp, Youtube, etc. It’s easy to implement in Flutter, Just a few lines o...
PYGLET – Media Player - GeeksforGeeks
27 Aug, 2021 In this article we will see how we can create a simple media player in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear as...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n27 Aug, 2021" }, { "code": null, "e": 26448, "s": 25537, "text": "In this article we will see how we can create a simple media player in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually ...
Save Pages as HTML in ElectronJS - GeeksforGeeks
06 Jan, 2022 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. All Chr...
[ { "code": null, "e": 26905, "s": 26877, "text": "\n06 Jan, 2022" }, { "code": null, "e": 27205, "s": 26905, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ...
What is the meaning of invalid literal for int() with base = ' '? - GeeksforGeeks
20 Aug, 2020 ValueError is encountered when we pass an inappropriate argument type. Here, we are talking about the ValueError caused by passing an incorrect argument to the int() function. When we pass a string representation of a float or any string representation other than that of int, it gives a ValueError. Example...
[ { "code": null, "e": 25587, "s": 25559, "text": "\n20 Aug, 2020" }, { "code": null, "e": 25887, "s": 25587, "text": "ValueError is encountered when we pass an inappropriate argument type. Here, we are talking about the ValueError caused by passing an incorrect argument to the int...
Python Program to Find and Print Address of Variable - GeeksforGeeks
31 Aug, 2021 In this article, we are going to see how to find and print the address of the Python variable. It can be done in these ways: Using id() function Using addressof() function Using hex() function We can get an address using id() function, id() function gives the address of the particular object. Syntax: id(o...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n31 Aug, 2021" }, { "code": null, "e": 25658, "s": 25562, "text": "In this article, we are going to see how to find and print the address of the Python variable. " }, { "code": null, "e": 25688, "s": 25658, "te...
Count number of bits to be flipped to convert A to B - GeeksforGeeks
07 Sep, 2021 Given two numbers ‘a’ and b’. Write a program to count number of bits needed to be flipped to convert ‘a’ to ‘b’. Example : Input : a = 10, b = 20 Output : 4 Binary representation of a is 00001010 Binary representation of b is 00010100 We need to flip highlighted four bits in a to make it b. Input : a =...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n07 Sep, 2021" }, { "code": null, "e": 26671, "s": 26545, "text": "Given two numbers ‘a’ and b’. Write a program to count number of bits needed to be flipped to convert ‘a’ to ‘b’. Example : " }, { "code": null, "e": ...
ListMap in Scala - GeeksforGeeks
04 Aug, 2021 Immutable maps Implemented by using a list-based data structure. The Scala List class holds a sequenced, linear list of items. We must import scala.collection.mutable.ListMap for ListMap. ListMap collection used only for a small number of elements.Syntax: var listMapName = ListMap("k1"->"v1", "k2"->"v2",...
[ { "code": null, "e": 25213, "s": 25185, "text": "\n04 Aug, 2021" }, { "code": null, "e": 25471, "s": 25213, "text": "Immutable maps Implemented by using a list-based data structure. The Scala List class holds a sequenced, linear list of items. We must import scala.collection.muta...
Collectors collectingAndThen() method in Java with Examples - GeeksforGeeks
08 Jan, 2019 The collectingAndThen(Collector downstream, Function finisher) method of class collectors in Java, which adopts Collector so that we can perform an additional finishing transformation. Syntax : public static <T, A, R, RR> Collector <T, A, RR> collectingAndThen(Collector <T, A, R> downstream...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n08 Jan, 2019" }, { "code": null, "e": 25748, "s": 25563, "text": "The collectingAndThen(Collector downstream, Function finisher) method of class collectors in Java, which adopts Collector so that we can perform an additional fini...
Iterate through list of dictionaries in Python - GeeksforGeeks
22 Nov, 2021 In this article, we will learn how to iterate through a list of dictionaries. List of dictionaries in use: [{‘Python’: ‘Machine Learning’, ‘R’: ‘Machine learning’}, {‘Python’: ‘Web development’, ‘Java Script’: ‘Web Development’, ‘HTML’: ‘Web Development’}, {‘C++’: ‘Game Development’, ‘Python’: ‘Game Dev...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Nov, 2021" }, { "code": null, "e": 25616, "s": 25537, "text": "In this article, we will learn how to iterate through a list of dictionaries. " }, { "code": null, "e": 25645, "s": 25616, "text": "List of dic...
Count number of pairs (A <= N, B <= N) such that gcd (A , B) is B - GeeksforGeeks
09 Mar, 2021 Given a number n. We need find the number of ordered pairs of a and b such gcd(a, b) is b itselfExamples : Input : n = 2 Output : 3 (1, 1) (2, 2) and (2, 1) Input : n = 3 Output : 5 (1, 1) (2, 2) (3, 3) (2, 1) and (3, 1) Naive approach : gcd(a, b) = b means b is a factor of a. So total number of pair...
[ { "code": null, "e": 26231, "s": 26203, "text": "\n09 Mar, 2021" }, { "code": null, "e": 26340, "s": 26231, "text": "Given a number n. We need find the number of ordered pairs of a and b such gcd(a, b) is b itselfExamples : " }, { "code": null, "e": 26456, "s": 2...
How to create a matrix with random values in R? - GeeksforGeeks
16 May, 2021 In this article, we will discuss hw to create a matrix with random values in the R programming language. The functions which are used to generate the random values are: rnorm() runif() rexp() rpois() rbinom() sample() We will use all these functions one by one to create the matrix with random values. Metho...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n16 May, 2021" }, { "code": null, "e": 26592, "s": 26487, "text": "In this article, we will discuss hw to create a matrix with random values in the R programming language." }, { "code": null, "e": 26656, "s": 26592...
Python | Extract length of longest string in list - GeeksforGeeks
29 Nov, 2019 Sometimes, while working with a lot of data, we can have a problem in which we need to extract the maximum length of all the strings in list. This kind of problem can have application in many domains. Let’s discuss certain ways in which this task can be performed. Method #1 : Using max() + generator expres...
[ { "code": null, "e": 26069, "s": 26041, "text": "\n29 Nov, 2019" }, { "code": null, "e": 26334, "s": 26069, "text": "Sometimes, while working with a lot of data, we can have a problem in which we need to extract the maximum length of all the strings in list. This kind of problem ...
H2 Database - Alter
ALTER is a command used to change the table structure by adding different clauses to the alter command. Based on the scenario, we need to add respective clause to the alter command. In this chapter, we will discuss various scenarios of alter command. Alter Table Add is a command used to add a new column to a table alon...
[ { "code": null, "e": 2358, "s": 2107, "text": "ALTER is a command used to change the table structure by adding different clauses to the alter command. Based on the scenario, we need to add respective clause to the alter command. In this chapter, we will discuss various scenarios of alter command." ...
Convert Decimal to the equivalent 64-bit unsigned integer in C#
To convert the value of the specified Decimal to the equivalent 64-bit unsigned integer, the code is as follows − Live Demo using System; public class Demo { public static void Main() { Decimal val = 99.29m; Console.WriteLine("Decimal value = "+val); ulong res = Decimal.ToUInt64(val); Consol...
[ { "code": null, "e": 1176, "s": 1062, "text": "To convert the value of the specified Decimal to the equivalent 64-bit unsigned integer, the code is as follows −" }, { "code": null, "e": 1187, "s": 1176, "text": " Live Demo" }, { "code": null, "e": 1436, "s": 1187,...
What is Bitwise XOR Operator (^) in JavaScript?
It performs a Boolean exclusive OR operation on each bit of its integer arguments. Exclusive OR means that either operand one is true or operand two is true, but not both. You can try to run the following code to learn how to work with Bitwise XOR Operator Live Demo <html> <body> <script> <!-- ...
[ { "code": null, "e": 1234, "s": 1062, "text": "It performs a Boolean exclusive OR operation on each bit of its integer arguments. Exclusive OR means that either operand one is true or operand two is true, but not both." }, { "code": null, "e": 1319, "s": 1234, "text": "You can tr...
How to Build Amazing AI Use Cases under 10 Mins using GPT-3? | by Sharan Kumar Ravindran | Towards Data Science
Do you think that building an NLP based AI application such as a chatbot or a Translator requires a lot of data science skills and would take a lot of time? It is not always true, this article will help you better understand. I am going to show how to use GPT-3 to build some amazing NLP based AI applications with minim...
[ { "code": null, "e": 646, "s": 172, "text": "Do you think that building an NLP based AI application such as a chatbot or a Translator requires a lot of data science skills and would take a lot of time? It is not always true, this article will help you better understand. I am going to show how to use...
BigQuery: 3 simple ways to Audit and Monitor your Database. | by David Martins | Towards Data Science
Google BigQuery is a managed, highly scalable, serverless data warehouse, capable of querying terabytes of data in seconds. It‘s a great tool, easily accessible for Data Analysts & Scientists. Because GCP made it fully managed, you don’t have to overthink about database administration. For years, I’ve been working with...
[ { "code": null, "e": 459, "s": 172, "text": "Google BigQuery is a managed, highly scalable, serverless data warehouse, capable of querying terabytes of data in seconds. It‘s a great tool, easily accessible for Data Analysts & Scientists. Because GCP made it fully managed, you don’t have to overthink...
How to Create a Text File Using the Command Line in Linux - GeeksforGeeks
17 Jun, 2021 There are a couple of quick ways to create a text file from the Linux Command Line or Terminal. Some of them have been explained in the following article. This is the most standard command to quickly create an empty text file. The command is quite simple to type and makes it quite easier to create several...
[ { "code": null, "e": 24428, "s": 24397, "text": " \n17 Jun, 2021\n" }, { "code": null, "e": 24583, "s": 24428, "text": "There are a couple of quick ways to create a text file from the Linux Command Line or Terminal. Some of them have been explained in the following article." },...
How to convert Unix timestamp to time in JavaScript? - GeeksforGeeks
18 Jul, 2019 UNIX timestamps can be converted to time using 2 approaches: Method 1: Using the toUTCString() method:As JavaScript works in milliseconds, it is necessary to convert the time into milliseconds by multiplying it by 1000 before converting it. This value is then given to the Date() function to create a new Da...
[ { "code": null, "e": 24720, "s": 24692, "text": "\n18 Jul, 2019" }, { "code": null, "e": 24781, "s": 24720, "text": "UNIX timestamps can be converted to time using 2 approaches:" }, { "code": null, "e": 25038, "s": 24781, "text": "Method 1: Using the toUTCStri...
Console Class in C#
14 Mar, 2019 A console is an operating system window through which a user can communicate with the operating system or we can say a console is an application in which we can give text as an input from the keyboard and get the text as an output from the computer end. The command prompt is an example of a console in the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Mar, 2019" }, { "code": null, "e": 829, "s": 28, "text": "A console is an operating system window through which a user can communicate with the operating system or we can say a console is an application in which we can give text as a...
Flutter – Concept of Key in Widgets
28 Jul, 2021 In this article, we will study Keys and when and where to use them. So you may ask what are keys? Well, Keys are the ones to preserve state when widgets move around the widget tree. It is used to preserve the user scroll location or keeping state when modifying a collection. Key’s aren’t needed if the ent...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2021" }, { "code": null, "e": 407, "s": 28, "text": "In this article, we will study Keys and when and where to use them. So you may ask what are keys? Well, Keys are the ones to preserve state when widgets move around the widget...
Stack firstElement() method in Java with Example
24 Dec, 2018 The Java.util.Stack.firstElement() method in Java is used to retrieve or fetch the first element of the Stack. It returns the element present at the 0th index of the Stack Syntax: Stack.firstElement() Parameters: The method does not take any parameter. Return Value: The method returns the first element pre...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Dec, 2018" }, { "code": null, "e": 200, "s": 28, "text": "The Java.util.Stack.firstElement() method in Java is used to retrieve or fetch the first element of the Stack. It returns the element present at the 0th index of the Stack" ...
Material Design Components Progress Indicator in Android
27 Sep, 2021 Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android applications. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android appl...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 627, "s": 28, "text": "Material Design Components (MDC Android) offers designers and developers a way to implement Material Design in their Android applications. Developed by a core team of engineer...
What is Has-A-Relation in Java?
19 Jan, 2021 Association is the relation between two separate classes which establishes through their Objects. Composition and Aggregation are the two forms of association. In Java, a Has-A relationship is otherwise called composition. It is additionally utilized for code reusability in Java. In Java, a Has-A relations...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jan, 2021" }, { "code": null, "e": 723, "s": 52, "text": "Association is the relation between two separate classes which establishes through their Objects. Composition and Aggregation are the two forms of association. In Java, a Has...
MoviePy – Resizing Video File
29 Dec, 2021 In this article, we will see how we can resize video file clips in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GIF’s. Resizing video files means. Image/frame interpolation occurs when you resize or distort your frame of video from one-pixel gr...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Dec, 2021" }, { "code": null, "e": 561, "s": 53, "text": "In this article, we will see how we can resize video file clips in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and...
ML | Dummy classifiers using sklearn
28 Nov, 2019 A dummy classifier is a type of classifier which does not generate any insight about the data and classifies the given data using only simple rules. The classifier’s behavior is completely independent of the training data as the trends in the training data are completely ignored and instead uses one of the...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2019" }, { "code": null, "e": 725, "s": 28, "text": "A dummy classifier is a type of classifier which does not generate any insight about the data and classifies the given data using only simple rules. The classifier’s behavior ...
How to make a placeholder for a ‘select’ box?
04 Jan, 2022 There is no placeholder attribute in ‘select’ tag but it can make the placeholder for a ‘select’ box. There are many ways to create the placeholder for a ‘select’ box. Example 1: html <!DOCTYPE html><html> <head> <title>make placeholder</title> <style> body { bord...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jan, 2022" }, { "code": null, "e": 222, "s": 54, "text": "There is no placeholder attribute in ‘select’ tag but it can make the placeholder for a ‘select’ box. There are many ways to create the placeholder for a ‘select’ box." }, ...
How to get HTML content of an iFrame using JavaScript ?
05 Jun, 2020 The <iframe> tag specifies an inline frame. It allows us to load a separate HTML file into an existing document. Code snippet: function getIframeContent(frameId) { var frameObj = document.getElementById(frameId); var frameContent = frameObj. contentWindow.document.body.innerHTML; ...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Jun, 2020" }, { "code": null, "e": 167, "s": 54, "text": "The <iframe> tag specifies an inline frame. It allows us to load a separate HTML file into an existing document." }, { "code": null, "e": 181, "s": 167, "...
How to remove all leading zeros in a string in PHP ?
20 Sep, 2019 Given a number in string format and the task is to remove all leading zeros from the given string in PHP. Examples: Input : str = 00006665555 Output : 6665555 Input : str = 00775505 Output : 775505 Method 1: Using ltrim() function: The ltrim() function is used to remove whitespaces or other characters (i...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Sep, 2019" }, { "code": null, "e": 134, "s": 28, "text": "Given a number in string format and the task is to remove all leading zeros from the given string in PHP." }, { "code": null, "e": 144, "s": 134, "text": "...
Trapping Rain Water
06 Jul, 2022 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. Examples: Chapters descriptions off, selected captions settings, opens captions settings dialog captions off, selected English This is a modal window. Beg...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 203, "s": 52, "text": "Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining." }, { "code": n...
NumberFormat getPercentInstance() method in Java with Examples - GeeksforGeeks
01 Apr, 2019 The getPercentInstance() method is a built-in method of the java.text.NumberFormat returns a percentage format for the current default FORMAT locale.Syntax:public static final NumberFormat getPercentInstance()Parameters: The function does not accepts any parameter.Return Value: The function returns the Num...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n01 Apr, 2019" }, { "code": null, "e": 28219, "s": 25225, "text": "The getPercentInstance() method is a built-in method of the java.text.NumberFormat returns a percentage format for the current default FORMAT locale.Syntax:public ...
CSS ::before selector - GeeksforGeeks
02 Nov, 2021 The ::before selector CSS pseudo-element, is used to add the same content multiple times before the content of other elements. This selector is the same as ::after selector. It helps to create the pseudo-element that represents the first child of the selected element & is generally used for adding decorati...
[ { "code": null, "e": 24341, "s": 24313, "text": "\n02 Nov, 2021" }, { "code": null, "e": 24730, "s": 24341, "text": "The ::before selector CSS pseudo-element, is used to add the same content multiple times before the content of other elements. This selector is the same as ::after...
How to clear the content of a div using JavaScript? - GeeksforGeeks
04 Apr, 2019 JavaScript provides the functionality of clearing the content of div. There are two methods to perform this function, one by using innerHTML property and other by using firstChild property and removeChild() method. Method 1: Using innerHTML Property: The DOM innerHTML property is used to set or return the ...
[ { "code": null, "e": 26297, "s": 26269, "text": "\n04 Apr, 2019" }, { "code": null, "e": 26512, "s": 26297, "text": "JavaScript provides the functionality of clearing the content of div. There are two methods to perform this function, one by using innerHTML property and other by ...
vars() function in Python - GeeksforGeeks
13 Feb, 2022 This is an inbuilt function in Python. The vars() method takes only one parameter and that too is optional. It takes an object as a parameter which may be can a module, a class, an instance, or any object having __dict__ attribute. Syntax: vars(object) The method returns the __dict__ attribute for a modu...
[ { "code": null, "e": 25715, "s": 25687, "text": "\n13 Feb, 2022" }, { "code": null, "e": 25957, "s": 25715, "text": "This is an inbuilt function in Python. The vars() method takes only one parameter and that too is optional. It takes an object as a parameter which may be can a mo...
BufferedWriter flush() method in Java with Examples - GeeksforGeeks
28 May, 2020 The flush() method of BufferedWriter class in Java is used to flush the characters from the buffered writer stream. Syntax: public void flush() throws IOException Specified By: This method is specified by the flush() method of Flushable interface. Overrides: This method overrides the flush() m...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n28 May, 2020" }, { "code": null, "e": 23673, "s": 23557, "text": "The flush() method of BufferedWriter class in Java is used to flush the characters from the buffered writer stream." }, { "code": null, "e": 23681, ...
Move all negative elements to end | Practice | GeeksforGeeks
Given an unsorted array arr[] of size N having both negative and positive integers. The task is place all negative element at the end of array without changing the order of positive element and negative element. Example 1: Input : N = 8 arr[] = {1, -1, 3, 2, -7, -5, 11, 6 } Output : 1 3 2 11 6 -1 -7 -5 Exam...
[ { "code": null, "e": 450, "s": 238, "text": "Given an unsorted array arr[] of size N having both negative and positive integers. The task is place all negative element at the end of array without changing the order of positive element and negative element." }, { "code": null, "e": 463, ...
Count no. of characters and words in a string in PL/SQL - GeeksforGeeks
05 Jul, 2018 Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations. Given a string and the task is to count the number of character...
[ { "code": null, "e": 25808, "s": 25780, "text": "\n05 Jul, 2018" }, { "code": null, "e": 26052, "s": 25808, "text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,...
Targeting Users In Specific Area Using Geofence API | by Himanshu Verma | Towards Data Science
Google Geofence API is used when you want to notify users if they are near the specific area in the world (such as Shopping Malls, Airport, Restaurants etc.). For example, the customer has installed an online shopping app and if they are near one of the stores that the app has a tie up with, then store could generate a...
[ { "code": null, "e": 641, "s": 172, "text": "Google Geofence API is used when you want to notify users if they are near the specific area in the world (such as Shopping Malls, Airport, Restaurants etc.). For example, the customer has installed an online shopping app and if they are near one of the s...
FastText sentiment analysis for tweets: A straightforward guide | by Charles Malafosse | Towards Data Science
In this post, we present fastText library, how it achieves faster speed and similar accuracy than some deep neural networks for text classification. Next, we show how to train a sentiment analysis model thanks to data generated with AWS Comprehend. In another article, we show how to use AWS Elastic Beanstalk to create ...
[ { "code": null, "e": 539, "s": 172, "text": "In this post, we present fastText library, how it achieves faster speed and similar accuracy than some deep neural networks for text classification. Next, we show how to train a sentiment analysis model thanks to data generated with AWS Comprehend. In ano...
Aggregate functions in SQL - GeeksforGeeks
20 Aug, 2019 In database management an aggregate function is a function where the values of multiple rows are grouped together as input on certain criteria to form a single value of more significant meaning. Various Aggregate Functions 1) Count() 2) Sum() 3) Avg() 4) Min() 5) Max() Now let us understand each Aggreg...
[ { "code": null, "e": 24036, "s": 24008, "text": "\n20 Aug, 2019" }, { "code": null, "e": 24231, "s": 24036, "text": "In database management an aggregate function is a function where the values of multiple rows are grouped together as input on certain criteria to form a single val...
Python | Pandas DatetimeIndex.time - 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.time attribute outputs an Index object containing the time values presen...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n24 Dec, 2018" }, { "code": null, "e": 25879, "s": 25665, "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...
Advanced C++ | Virtual Copy Constructor - GeeksforGeeks
24 Feb, 2022 In the virtual constructor idiom we have seen the way to construct an object whose type is not determined until runtime. Is it possible to create an object without knowing it’s exact class type? The virtual copy constructor address this question.Sometimes we may need to construct an object from another exi...
[ { "code": null, "e": 25813, "s": 25785, "text": "\n24 Feb, 2022" }, { "code": null, "e": 26455, "s": 25813, "text": "In the virtual constructor idiom we have seen the way to construct an object whose type is not determined until runtime. Is it possible to create an object without...
Code and Techniques for Exploratory Data Analysis | Towards Data Science
Disclaimer: you are reading Part 1 “Exploratory Data Analysis Framework”. Part 2 shows how to build a baseline model based on the insights of the analysis below. It is a very common situation when you need to show the value of the data to your clients by generating insights and building a first baseline model. As a Dat...
[ { "code": null, "e": 333, "s": 171, "text": "Disclaimer: you are reading Part 1 “Exploratory Data Analysis Framework”. Part 2 shows how to build a baseline model based on the insights of the analysis below." }, { "code": null, "e": 865, "s": 333, "text": "It is a very common situ...
Next Greater Frequency Element - GeeksforGeeks
16 Nov, 2021 Given an array, for each element find the value of the nearest element to the right which is having a frequency greater than as that of the current element. If there does not exist an answer for a position, then make the value ‘-1’. Examples: Input : a[] = [1, 1, 2, 3, 4, 2, 1] Output : [-1, -1, 1, 2, 2,...
[ { "code": null, "e": 25132, "s": 25104, "text": "\n16 Nov, 2021" }, { "code": null, "e": 25365, "s": 25132, "text": "Given an array, for each element find the value of the nearest element to the right which is having a frequency greater than as that of the current element. If the...
Java signum() method with Examples - GeeksforGeeks
09 Apr, 2018 The java.lang.Math.signum() returns the Sign function of a value passed to it as argument. The signum() function returns the following values depending on the argument passed to it: If the argument passed is greater than zero, then the signum() function will return 1.0. If the argument passed is equal to z...
[ { "code": null, "e": 24840, "s": 24812, "text": "\n09 Apr, 2018" }, { "code": null, "e": 25022, "s": 24840, "text": "The java.lang.Math.signum() returns the Sign function of a value passed to it as argument. The signum() function returns the following values depending on the argu...
C program to copy the contents of one file to another file?
C Files I/O − Create, Open, Read, Write and Close a File A File can be used to store a large volume of persistent data. Like many other languages 'C' provides the following file management functions, Creation of a file Opening a file Reading a file Writing to a file Closing a file Following are the most important file ...
[ { "code": null, "e": 1119, "s": 1062, "text": "C Files I/O − Create, Open, Read, Write and Close a File" }, { "code": null, "e": 1262, "s": 1119, "text": "A File can be used to store a large volume of persistent data. Like many other languages 'C' provides the following file mana...
How to handle Assertion Error in Java?
In order to handle the assertion error, we need to declare the assertion statement in the try block and catch the assertion error in the catch block. Let us see a program on how to handle Assertion Error in Java − public class Example { public static void main(String[] args) throws Exception { try { a...
[ { "code": null, "e": 1212, "s": 1062, "text": "In order to handle the assertion error, we need to declare the assertion statement in the try block and catch the assertion error in the catch block." }, { "code": null, "e": 1276, "s": 1212, "text": "Let us see a program on how to h...
Bootstrap regression in R. Estimation of regression coefficients... | by Serafim Petrov | Towards Data Science
Bootstrap is a method of random sampling with replacement. Among its other applications such as hypothesis testing, it is a simple yet powerful approach for checking the stability of regression coefficients. In our previous article, we explored the permutation test, which is a related concept but executed without repla...
[ { "code": null, "e": 500, "s": 172, "text": "Bootstrap is a method of random sampling with replacement. Among its other applications such as hypothesis testing, it is a simple yet powerful approach for checking the stability of regression coefficients. In our previous article, we explored the permut...
A Complete Guide to Python Lists. Use Python Lists Like a Pro | by Erdem Isbilen | Towards Data Science
In this article, I will try to explain Python lists, along with exploring why and when to use them, meanwhile giving you some hints about the correct usage of the list methods. Let’s understand the Python list data structure in detail with step by step explanations and examples. Lists are one of the most frequently use...
[ { "code": null, "e": 349, "s": 172, "text": "In this article, I will try to explain Python lists, along with exploring why and when to use them, meanwhile giving you some hints about the correct usage of the list methods." }, { "code": null, "e": 452, "s": 349, "text": "Let’s und...
Angular Material - Switches
The md-switch, an Angular directive, is used to show a switch. The following table lists out the parameters and description of the different attributes of md-switch. * ng-model The assignable angular expression to data-bind to. name The property name of the form under which the control is published. ng-true-value The v...
[ { "code": null, "e": 2253, "s": 2190, "text": "The md-switch, an Angular directive, is used to show a switch." }, { "code": null, "e": 2356, "s": 2253, "text": "The following table lists out the parameters and description of the different attributes of md-switch." }, { "c...
Python | Numpy matrix.min() - GeeksforGeeks
15 Apr, 2019 With the help of Numpy matrix.min() method, we can get the minimum value from given matrix. Syntax : matrix.min() Return : Return minimum value from given matrix Example #1 :In this example we can see that we are able to get the minimum value from a given matrix with the help of method matrix.min(). # impo...
[ { "code": null, "e": 24664, "s": 24636, "text": "\n15 Apr, 2019" }, { "code": null, "e": 24756, "s": 24664, "text": "With the help of Numpy matrix.min() method, we can get the minimum value from given matrix." }, { "code": null, "e": 24778, "s": 24756, "text":...
Python os.chflags() Method
The method chflags() sets the flags of path to the numeric flags. The flags may take a combination (bitwise OR) of the various values described below. Note − This method is available Python version 2.6 onwards. Most of the flags can be changed by super-user only. Following is the syntax for chflags() method − os.chflag...
[ { "code": null, "e": 2395, "s": 2244, "text": "The method chflags() sets the flags of path to the numeric flags. The flags may take a combination (bitwise OR) of the various values described below." }, { "code": null, "e": 2508, "s": 2395, "text": "Note − This method is available...
C++ Library - <typeinfo>
It contains type information and stores information about a type. It can be used to compare two types or to retrieve information identifying a type. Following is the declaration for std::type_info. class type_info; class type_info; It contains type information. It throws exception on failure to dynamic cast. It throws ...
[ { "code": null, "e": 2752, "s": 2603, "text": "It contains type information and stores information about a type. It can be used to compare two types or to retrieve information identifying a type." }, { "code": null, "e": 2801, "s": 2752, "text": "Following is the declaration for ...
Angular Material - Progress Bars
The md-progress-circular and md-progress-linear are Angular progress directives, and are used to show loading content message in application. The following table lists out the parameters and description of the different attributes of md-progress-circular. * md-mode Select from one of the two modes: 'determinate' and 'i...
[ { "code": null, "e": 2332, "s": 2190, "text": "The md-progress-circular and md-progress-linear are Angular progress directives, and are used to show loading content message in application." }, { "code": null, "e": 2446, "s": 2332, "text": "The following table lists out the parame...
GRE Algebra | Coordinate Geometry | Set 2 - GeeksforGeeks
21 Jan, 2021 Prerequisite – GRE Algebra | Coordinate Geometry Geometry is the branch of mathematics that is concerned with property and relation between points, lines, solids, surfaces, and high dimensional objects. Coordinate geometry is the branch of mathematics that deals with two-dimensional figures i.e. x-axis and...
[ { "code": null, "e": 24740, "s": 24712, "text": "\n21 Jan, 2021" }, { "code": null, "e": 24789, "s": 24740, "text": "Prerequisite – GRE Algebra | Coordinate Geometry" }, { "code": null, "e": 24943, "s": 24789, "text": "Geometry is the branch of mathematics tha...
C++11 reverse range-based for-loop
To get the reversed range-based for loop, we have used boost library. This boost library is vepy popular and it has some strong functionalities. Here we can use some array or containers, then by using boost::adaptors::reverse() we can use the range base for loop in reverse order. #include <list;> #include <iostream> #i...
[ { "code": null, "e": 1207, "s": 1062, "text": "To get the reversed range-based for loop, we have used boost library. This boost library is vepy popular and it has some strong functionalities." }, { "code": null, "e": 1343, "s": 1207, "text": "Here we can use some array or contain...
How to check which packages are loaded in R?
We can do this by using sessionInfo(). > sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363) Matrix products: default Random number generation: RNG: Mersenne-Twister Normal: Inversion Sample: Rounding locale: [1] LC_COLLATE=English_India.1252 ...
[ { "code": null, "e": 1101, "s": 1062, "text": "We can do this by using sessionInfo()." }, { "code": null, "e": 1962, "s": 1101, "text": "> sessionInfo()\nR version 3.6.1 (2019-07-05)\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\nRunning under: Windows 10 x64 (build 18363)\nMatrix p...
Area of circle inscribed in a Isosceles Trapezoid - GeeksforGeeks
22 Feb, 2022 Given two bases of the isosceles trapezoid ABCD as a and b, the task is to find the area of circle inscribed in this trapezoid Examples: Input: a = 10, b = 30 Output: Area = 235.57 Input: a = 20, b = 36 Output: Area = 565.38 Derivation: Given a circle inscribed in trapezium ABCD (sides AB = n and CD ...
[ { "code": null, "e": 24599, "s": 24571, "text": "\n22 Feb, 2022" }, { "code": null, "e": 24727, "s": 24599, "text": "Given two bases of the isosceles trapezoid ABCD as a and b, the task is to find the area of circle inscribed in this trapezoid " }, { "code": null, "e"...
Java AWT | GridLayout Class - GeeksforGeeks
21 Aug, 2018 GridLayout class represents a layout manager with a specified number of rows and columns in a rectangular grid. The GridLayout container is divided into an equal-sized of rectangles, and one of the components is placed in each rectangle. Every rectangle cell has the same size therefore, they contain a comp...
[ { "code": null, "e": 25699, "s": 25671, "text": "\n21 Aug, 2018" }, { "code": null, "e": 26151, "s": 25699, "text": "GridLayout class represents a layout manager with a specified number of rows and columns in a rectangular grid. The GridLayout container is divided into an equal-s...
Maximum count of Equilateral Triangles that can be formed within given Equilateral Triangle - GeeksforGeeks
23 Mar, 2021 Given two integers N and K where N denotes the unit size of a bigger Equilateral Triangle, the task is to find the number of an equilateral triangle of size K that are present in the bigger triangle of side N. Examples: Input: N = 4, K = 3 Output: 3Explanation:There are 3 equilateral triangles of 3 unit si...
[ { "code": null, "e": 26259, "s": 26231, "text": "\n23 Mar, 2021" }, { "code": null, "e": 26469, "s": 26259, "text": "Given two integers N and K where N denotes the unit size of a bigger Equilateral Triangle, the task is to find the number of an equilateral triangle of size K that...
LRU Cache Implementation - 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...
MongoDB - Map Reduce - GeeksforGeeks
05 Feb, 2021 In MongoDB, map-reduce is a data processing programming model that helps to perform operations on large data sets and produce aggregated results. MongoDB provides the mapReduce() function to perform the map-reduce operations. This function has two main functions, i.e., map function and reduce function. The...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n05 Feb, 2021" }, { "code": null, "e": 26459, "s": 25517, "text": "In MongoDB, map-reduce is a data processing programming model that helps to perform operations on large data sets and produce aggregated results. MongoDB provides ...
Projection Perspective in Machine Learning - GeeksforGeeks
30 May, 2021 Before getting into projection perspective, let us first understand a technique known as PCA, what is the need for it and where it is used. Principal Component Analysis: It is an adaptive data analysis technique used for reducing the dimensionality of large datasets, increasing interpretability while min...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n30 May, 2021" }, { "code": null, "e": 25730, "s": 25589, "text": "Before getting into projection perspective, let us first understand a technique known as PCA, what is the need for it and where it is used. " }, { "code": ...
Flutter - Asset Image - GeeksforGeeks
08 Dec, 2020 Flutter is an open-source, cross-platform UI development kit developed by Google. It is gaining popularity these days, as the app made in flutter can run on various devices regardless of their platform. It is majorly used to develop applications for Android and iOS, as a single app made in flutter can work...
[ { "code": null, "e": 25159, "s": 25131, "text": "\n08 Dec, 2020" }, { "code": null, "e": 25499, "s": 25159, "text": "Flutter is an open-source, cross-platform UI development kit developed by Google. It is gaining popularity these days, as the app made in flutter can run on variou...
Python | simpy.nextprime() method - GeeksforGeeks
03 Aug, 2021 In simpy module, we can get the next prime number for a given number n using sympy.nextprime() function. For n < 2^64 the answer is definitive; larger n values have a small probability of actually being pseudoprimes. Syntax: sympy.nextprime() Parameter: n; number to be tested Return: next prime value ...
[ { "code": null, "e": 26311, "s": 26283, "text": "\n03 Aug, 2021" }, { "code": null, "e": 26530, "s": 26311, "text": "In simpy module, we can get the next prime number for a given number n using sympy.nextprime() function. For n < 2^64 the answer is definitive; larger n values hav...
import command in Linux with Examples - GeeksforGeeks
22 May, 2019 import command in Linux system is used for capturing a screenshot for any of the active pages we have and it gives the output as an image file. You can capture a single window if you want or you can take the entire screen or you can take a screenshot of any rectangular portion of the screen. Syntax: import...
[ { "code": null, "e": 25329, "s": 25301, "text": "\n22 May, 2019" }, { "code": null, "e": 25622, "s": 25329, "text": "import command in Linux system is used for capturing a screenshot for any of the active pages we have and it gives the output as an image file. You can capture a s...
Python Program for Find sum of odd factors of a number - GeeksforGeeks
17 Feb, 2018 Given a number n, the task is to find the odd factor sum. Examples: Input : n = 30 Output : 24 Odd dividers sum 1 + 3 + 5 + 15 = 24 Input : 18 Output : 13 Odd dividers sum 1 + 3 + 9 = 13 Let p1, p2, ... pk be prime factors of n. Let a1, a2, .. ak be highest powers of p1, p2, .. pk respectively that divi...
[ { "code": null, "e": 26027, "s": 25999, "text": "\n17 Feb, 2018" }, { "code": null, "e": 26085, "s": 26027, "text": "Given a number n, the task is to find the odd factor sum." }, { "code": null, "e": 26095, "s": 26085, "text": "Examples:" }, { "code": ...
finalize() Method in Java and How to Override it? - GeeksforGeeks
21 Dec, 2021 The Java finalize() method of Object class is a method that the Garbage Collector always calls just before the deletion/destroying the object which is eligible for Garbage Collection to perform clean-up activity. Clean-up activity means closing the resources associated with that object like Database Connec...
[ { "code": null, "e": 25514, "s": 25486, "text": "\n21 Dec, 2021" }, { "code": null, "e": 26016, "s": 25514, "text": "The Java finalize() method of Object class is a method that the Garbage Collector always calls just before the deletion/destroying the object which is eligible for...
Difference between JSON and XML - GeeksforGeeks
19 Feb, 2019 Prerequisite: JSON XML | Basics JSON (JavaScript Object Notation) is a lightweight data-interchange format and it completely language independent. It is based on the JavaScript programming language and easy to understand and generate.Example : {"Geeks":[ { "firstName":"Vivek", "lastName":"Kothari" }, ...
[ { "code": null, "e": 25331, "s": 25303, "text": "\n19 Feb, 2019" }, { "code": null, "e": 25345, "s": 25331, "text": "Prerequisite:" }, { "code": null, "e": 25350, "s": 25345, "text": "JSON" }, { "code": null, "e": 25363, "s": 25350, "text":...
Building a Movie Recommender using Python | by Behic Guven | Towards Data Science
In this post, I will show you how to build a movie recommender program using Python. This will be a simple project where we will be able to see how machine learning can be used in our daily life. If you check my other articles, you will see that I like to demonstrate hands-on projects. I think this is the best way to p...
[ { "code": null, "e": 726, "s": 172, "text": "In this post, I will show you how to build a movie recommender program using Python. This will be a simple project where we will be able to see how machine learning can be used in our daily life. If you check my other articles, you will see that I like to...
Convex Hull using Divide and Conquer Algorithm in C++
In this tutorial, we will be discussing a program to find the convex hull of a given set of points. Convex hull is the smallest polygon convex figure containing all the given points either on the boundary on inside the figure. In this program, we will use brute force to divide the given points into smaller segments and...
[ { "code": null, "e": 1162, "s": 1062, "text": "In this tutorial, we will be discussing a program to find the convex hull of a given set of points." }, { "code": null, "e": 1289, "s": 1162, "text": "Convex hull is the smallest polygon convex figure containing all the given points ...
What are Assignment Operators in JavaScript?
Using Assignment Operators, you can assign a value to a variable. JavaScript supports the following assignment operators − Try the following code to implement assignment operator in JavaScript − Live Demo <html> <body> <script> <!-- var a = 33; var b = 10; var lineb...
[ { "code": null, "e": 1185, "s": 1062, "text": "Using Assignment Operators, you can assign a value to a variable. JavaScript supports the following assignment operators −" }, { "code": null, "e": 1257, "s": 1185, "text": "Try the following code to implement assignment operator in ...
PHP - Form Introduction
The Websites provide the functionalities that can use to store, update, retrieve, and delete the data in a database. A Document that containing black fields, that the user can fill the data or user can select the data.Casually the data will store in the data base Below example shows the form with some specific actions ...
[ { "code": null, "e": 2874, "s": 2757, "text": "The Websites provide the functionalities that can use to store, update, retrieve, and delete the data in a database." }, { "code": null, "e": 3021, "s": 2874, "text": "A Document that containing black fields, that the user can fill t...
Building Blog CMS (Content Management System) with Django - GeeksforGeeks
06 Aug, 2021 Django is a python based web application framework which is helpful for building a variety of web application. Django also includes an extensible Django-Admin interface, Default SQLIte3 database, which is also extensible to PostgreSQL, MySQL databases, and few other components to build efficient web apps. ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n06 Aug, 2021" }, { "code": null, "e": 24208, "s": 23901, "text": "Django is a python based web application framework which is helpful for building a variety of web application. Django also includes an extensible Django-Admin inte...
VBA - Events
VBA, an event-driven programming can be triggered when you change a cell or range of cell values manually. Change event may make things easier, but you can very quickly end a page full of formatting. There are two kinds of events. Worksheet Events Workbook Events Worksheet Events are triggered when there is a change in...
[ { "code": null, "e": 2166, "s": 1935, "text": "VBA, an event-driven programming can be triggered when you change a cell or range of cell values manually. Change event may make things easier, but you can very quickly end a page full of formatting. There are two kinds of events." }, { "code": ...
DOM - XMLHttpRequest Object
XMLHttpRequest object establishes a medium between a web page's client-side and server-side that can be used by the many scripting languages like JavaScript, JScript, VBScript and other web browser to transfer and manipulate the XML data. With the XMLHttpRequest object it is possible to update the part of a web page wi...
[ { "code": null, "e": 2527, "s": 2288, "text": "XMLHttpRequest object establishes a medium between a web page's client-side and server-side that can be used by the many scripting languages like JavaScript, JScript, VBScript and other web browser to transfer and manipulate the XML data." }, { ...
How to insert a record into a table in a database using JDBC API?
A. You can insert records in to a table using the INSERT query. INSERT INTO TABLE_NAME (column1, column2, column3,...columnN) VALUES (value1, value2, value3,...valueN); Or, INSERT INTO TABLE_NAME VALUES (value1, value2, value3,...valueN); To insert a record into a table in a database using JDBC API you need to: Registe...
[ { "code": null, "e": 1126, "s": 1062, "text": "A. You can insert records in to a table using the INSERT query." }, { "code": null, "e": 1301, "s": 1126, "text": "INSERT INTO TABLE_NAME (column1, column2, column3,...columnN)\nVALUES (value1, value2, value3,...valueN);\nOr,\nINSERT...
Using mlr for Machine Learning in R: A Step By Step Approach for Decision Trees | by Asel Mendis | Towards Data Science
I personally like to use mlr to conduct my machine learning tasks but you could just as well use any other library to your liking. First let’s load the relevant libraries: mlr for the machine learning algorithms FSelector for Feature Selection. (Again you can use any Feature Selection library you wish) rpart.plot becau...
[ { "code": null, "e": 302, "s": 171, "text": "I personally like to use mlr to conduct my machine learning tasks but you could just as well use any other library to your liking." }, { "code": null, "e": 343, "s": 302, "text": "First let’s load the relevant libraries:" }, { ...
Matplotlib.axis.Axis.set_minor_formatter() function in Python - GeeksforGeeks
03 Jun, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. The Axis.set_minor_formatter() function in axis module of matplotlib library is used ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n03 Jun, 2020" }, { "code": null, "e": 24123, "s": 23901, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of ...
How to get the entire document HTML as a string in JavaScript?
To get the entire document HTML as a string, use the concept of innerHTML, like − document.documentElement.innerHTML; Following is the code − <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <li...
[ { "code": null, "e": 1144, "s": 1062, "text": "To get the entire document HTML as a string, use the concept of innerHTML, like −" }, { "code": null, "e": 1180, "s": 1144, "text": "document.documentElement.innerHTML;" }, { "code": null, "e": 1204, "s": 1180, "t...
Using useContext in React.js
useContext hook allows passing data to children elements without using redux. useContext is a named export in react so we can importin functional components like below − import {useContext} from ‘react’; It’s an easy alternative to Redux if we just need to pass the data to the children elements. import React, { createC...
[ { "code": null, "e": 1140, "s": 1062, "text": "useContext hook allows passing data to children elements without using redux." }, { "code": null, "e": 1232, "s": 1140, "text": "useContext is a named export in react so we can importin functional components like below −" }, { ...
MathML - Fractions
<mfrac> tag is used to draw fractions. Here is the simple syntax to use this tag − <mfrac> numerator denominator </mfrac> Here is the description of all the parameters of this tag − numerator − numerator of the fraction. numerator − numerator of the fraction. denominator − denominator of the fraction. denominator − de...
[ { "code": null, "e": 2296, "s": 2257, "text": "<mfrac> tag is used to draw fractions." }, { "code": null, "e": 2340, "s": 2296, "text": "Here is the simple syntax to use this tag −" }, { "code": null, "e": 2380, "s": 2340, "text": "<mfrac> numerator denominato...
Ask a user to select a folder to read the files in Python
If you have ever wondered how the dialogboxes work in a Python application, then you probably end up hearing the filedialog module in Tkinter. The filedialog module contains a number of built-in functions which can be used to display various types of dialogs for dealing with files in the system. In most cases, we use t...
[ { "code": null, "e": 1359, "s": 1062, "text": "If you have ever wondered how the dialogboxes work in a Python application, then you probably end up hearing the filedialog module in Tkinter. The filedialog module contains a number of built-in functions which can be used to display various types of di...
Elasticsearch - Cat APIs
Usually the results from various Elasticsearch APIs are displayed in JSON format. But JSON is not easy to read always. So cat APIs feature is available in Elasticsearch helps in taking care of giving an easier to read and comprehend printing format of the results. There are various parameters used in cat API which serv...
[ { "code": null, "e": 2974, "s": 2581, "text": "Usually the results from various Elasticsearch APIs are displayed in JSON format. But JSON is not easy to read always. So cat APIs feature is available in Elasticsearch helps in taking\ncare of giving an easier to read and comprehend printing format of ...
How to make use of Join with LINQ and Lambda in C#?
Inner join returns only those records or rows that match or exists in both the tables. We can also apply to join on multiple tables based on conditions as shown below. Make use of anonymous types if we need to apply to join on multiple conditions. In the below example we have written 2 ways that can be used to join in ...
[ { "code": null, "e": 1310, "s": 1062, "text": "Inner join returns only those records or rows that match or exists in both the tables. We can also apply to join on multiple tables based on conditions as shown below.\nMake use of anonymous types if we need to apply to join on multiple conditions." }...
Functional Components Vs. Class Components in ReactJS
Functional Components or stateless components are the most widely used type of components with a basic syntax of JavaScript Functions that return the JSX code or the HTML code. They are called as stateless components because they accept the data and display it accordingly and are mainly responsible for the rendering of...
[ { "code": null, "e": 1239, "s": 1062, "text": "Functional Components or stateless components are the most widely used type of components with a basic syntax of JavaScript Functions that return the JSX code or the HTML code." }, { "code": null, "e": 1391, "s": 1239, "text": "They ...
What does parenthesis mean in MySQL SELECT (COLNAME)?
The SELECT(COLNAME) means, we are creating an alias for that column. Let us see an example and create a table − mysql> create table DemoTable865( FirstName varchar(100), LastName varchar(100) ); Query OK, 0 rows affected (0.77 sec) Insert some records in the table using insert command − mysql> insert into DemoTab...
[ { "code": null, "e": 1174, "s": 1062, "text": "The SELECT(COLNAME) means, we are creating an alias for that column. Let us see an example and create a table −" }, { "code": null, "e": 1300, "s": 1174, "text": "mysql> create table DemoTable865(\n FirstName varchar(100),\n Last...
MySQL Error - #1046 - No database selected
The error-#1046 can occur when we are creating a table, but forget to select the database. Let us say we have started MySQL as shown below − After giving the correct password, the above window will open. Now create a table without choosing any database. This will show an error − mysql> CREATE table TblUni -> ( -> id in...
[ { "code": null, "e": 1203, "s": 1062, "text": "The error-#1046 can occur when we are creating a table, but forget to select the database. Let\nus say we have started MySQL as shown below −" }, { "code": null, "e": 1342, "s": 1203, "text": "After giving the correct password, the a...