title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Hazelcast - Client
Hazelcast clients are the lightweight clients to Hazelcast members. Hazelcast members are responsible to store data and the partitions. They act like the server in the traditional client-server model. Hazelcast clients are created only for accessing data stored with Hazelcast members of the cluster. They are not respon...
[ { "code": null, "e": 2164, "s": 1963, "text": "Hazelcast clients are the lightweight clients to Hazelcast members. Hazelcast members are responsible to store data and the partitions. They act like the server in the traditional client-server model." }, { "code": null, "e": 2348, "s": ...
Neo4j - Remove Clause
The REMOVE clause is used to remove properties and labels from graph elements (Nodes or Relationships). The main difference between Neo4j CQL DELETE and REMOVE commands is − DELETE operation is used to delete nodes and associated relationships. REMOVE operation is used to remove labels and properties. You can remove a ...
[ { "code": null, "e": 2443, "s": 2339, "text": "The REMOVE clause is used to remove properties and labels from graph elements (Nodes or Relationships)." }, { "code": null, "e": 2513, "s": 2443, "text": "The main difference between Neo4j CQL DELETE and REMOVE commands is −" }, ...
C program to display the prime numbers in between two intervals
Enter two numbers at console during runtime. Then, declare the flag variable which is used to check whether the number is prime or not with the help of for loop condition. Whenever, the flag is zero, it prints the prime number and if flag is one, it exists from the loop. Following is the C program to display the prime ...
[ { "code": null, "e": 1234, "s": 1062, "text": "Enter two numbers at console during runtime. Then, declare the flag variable which is used to check whether the number is prime or not with the help of for loop condition." }, { "code": null, "e": 1334, "s": 1234, "text": "Whenever, ...
Top 5 SQL Analytic Functions Every Data Analyst Needs to Know | by Dario Radečić | Towards Data Science
Analytical functions are one of the most popular tools among BI/Data analysts for performing complex data analysis. These functions perform computations over multiple rows and return the multiple rows as well. Today we’ll cover 5 functions I find most useful, with a lot of practical examples. For the uninitiated, the r...
[ { "code": null, "e": 466, "s": 172, "text": "Analytical functions are one of the most popular tools among BI/Data analysts for performing complex data analysis. These functions perform computations over multiple rows and return the multiple rows as well. Today we’ll cover 5 functions I find most use...
Food and Beverage Services - Quick Guide
Food and beverage services sector contributes a great deal to the profits in hospitality industry. With the increase in importance of business meetings, a range of personal and social events, a large number of customers visit catering establishments frequently. The food and beverage professionals tirelessly work to int...
[ { "code": null, "e": 2676, "s": 2304, "text": "Food and beverage services sector contributes a great deal to the profits in hospitality industry. With the increase in importance of business meetings, a range of personal and social events, a large number of customers visit catering establishments fre...
How to use the submit button in HTML forms?
Submit button automatically submits a form on click. Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc. Let’s learn about how to use the submit button in HTM...
[ { "code": null, "e": 1329, "s": 1062, "text": "Submit button automatically submits a form on click. Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit...
Chunking & Information Extraction
Chunking, one of the important processes in natural language processing, is used to identify parts of speech (POS) and short phrases. In other simple words, with chunking, we can get the structure of the sentence. It is also called partial parsing. Chunk patterns are the patterns of part-of-speech (POS) tags that defin...
[ { "code": null, "e": 2633, "s": 2384, "text": "Chunking, one of the important processes in natural language processing, is used to identify parts of speech (POS) and short phrases. In other simple words, with chunking, we can get the structure of the sentence. It is also called partial parsing." }...
Count N-length strings consisting only of vowels sorted lexicographically - GeeksforGeeks
25 Oct, 2021 Given an integer N, the task is to count all possible strings of length N consisting of vowels {a, e, i, o, u} that can be formed such that each string is sorted in lexicographical order. Examples: Input: N = 2Output: 15Explanation: The strings of length 2 which are sorted in lexicographical order are [“aa...
[ { "code": null, "e": 24698, "s": 24670, "text": "\n25 Oct, 2021" }, { "code": null, "e": 24886, "s": 24698, "text": "Given an integer N, the task is to count all possible strings of length N consisting of vowels {a, e, i, o, u} that can be formed such that each string is sorted i...
Collinearity Measures. Metrics and approaches towards... | by ShengJun | Towards Data Science
Feature selection is a process where the predictor variables that contribute most significantly towards the prediction/ classification of the target variable are selected. In feature selection for linear regression models, we are concerned with four aspects regarding the variables. Framed as a mnemonic “LINE”, these ar...
[ { "code": null, "e": 495, "s": 172, "text": "Feature selection is a process where the predictor variables that contribute most significantly towards the prediction/ classification of the target variable are selected. In feature selection for linear regression models, we are concerned with four aspec...
Node.js Stream readable.pipe() Method - GeeksforGeeks
13 May, 2022 The readable.pipe() method in a Readable Stream is used to attach a Writable stream to the readable stream so that it consequently switches into flowing mode and then pushes all the data that it has to the attached Writable. Syntax: readable.pipe( destination, options ) Parameters: This method accept two ...
[ { "code": null, "e": 25809, "s": 25781, "text": "\n13 May, 2022" }, { "code": null, "e": 26035, "s": 25809, "text": "The readable.pipe() method in a Readable Stream is used to attach a Writable stream to the readable stream so that it consequently switches into flowing mode and t...
Python - Database Manager (dbm) package - GeeksforGeeks
14 Aug, 2021 In this article we will learn about dbm, a package in built-in library of python. dbm package in python provides a simple dictionary like interface of the form DBM (DataBase Manager) generally used in Unix operating system. dbm stores data in simple key – value pair form like a dictionary which makes it ea...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n14 Aug, 2021" }, { "code": null, "e": 25997, "s": 25555, "text": "In this article we will learn about dbm, a package in built-in library of python. dbm package in python provides a simple dictionary like interface of the form DBM...
PyQt5 – Set fix window size for height or width - GeeksforGeeks
26 Mar, 2020 When we create a window, by default the window size is resizable although, we can use setFixedSize() method to set the fixed size of the window but if we want to set only fix length of height or width only we cant use this method. We want to set one length fixed and other be variable in order to do so we h...
[ { "code": null, "e": 26209, "s": 26181, "text": "\n26 Mar, 2020" }, { "code": null, "e": 26634, "s": 26209, "text": "When we create a window, by default the window size is resizable although, we can use setFixedSize() method to set the fixed size of the window but if we want to s...
Java.util.GregorianCalendar Class in Java - GeeksforGeeks
30 Nov, 2021 Prerequisites : java.util.Locale, java.util.TimeZone, Calendar.get()GregorianCalendar is a concrete subclass(one which has implementation of all of its inherited members either from interface or abstract class) of a Calendar that implements the most widely used Gregorian Calendar with which we are familiar...
[ { "code": null, "e": 25733, "s": 25705, "text": "\n30 Nov, 2021" }, { "code": null, "e": 26043, "s": 25733, "text": "Prerequisites : java.util.Locale, java.util.TimeZone, Calendar.get()GregorianCalendar is a concrete subclass(one which has implementation of all of its inherited m...
Python program to multiply two matrices - GeeksforGeeks
23 Apr, 2022 Given two matrix the task is that we will have to create a program to multiply two matrices in python. Examples: Input : X = [[1, 7, 3], [3, 5, 6], [6, 8, 9]] Y = [[1, 1, 1, 2], [6, 7, 3, 0], [4, 5, 9, 1]] Output : [55, 65, 49, 5] [57, 68,...
[ { "code": null, "e": 26547, "s": 26519, "text": "\n23 Apr, 2022" }, { "code": null, "e": 26662, "s": 26547, "text": "Given two matrix the task is that we will have to create a program to multiply two matrices in python. Examples: " }, { "code": null, "e": 26891, ...
Different types of Procedures in MySQL
02 Jul, 2019 A procedure is a subroutine (like a subprogram) in a regular scripting language, stored in a database. In the case of MySQL, procedures are written in MySQL and stored in the MySQL database/server. A MySQL procedure has a name, a parameter list, and SQL statement(s). There are four different types of MySQL...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jul, 2019" }, { "code": null, "e": 320, "s": 52, "text": "A procedure is a subroutine (like a subprogram) in a regular scripting language, stored in a database. In the case of MySQL, procedures are written in MySQL and stored in the...
Lodash _.debounce() Method
23 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.debounce() method of Function in lodash is used to create a debounced function which delays the given func until after the stated wait time in milliseconds have ...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Sep, 2020" }, { "code": null, "e": 193, "s": 53, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": null, "e...
Matplotlib.figure.Figure.clear() in Python
30 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Apr, 2020" }, { "code": null, "e": 339, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a...
numpy.logical_or() in Python
29 Nov, 2018 numpy.logical_or(arr1, arr2, out=None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None, ufunc ‘logical_or’) : This is a logical function and it helps user to find out the truth value of arr1 OR arr2 element-wise. Both the arrays must be of same shape. Parameters : arr1 : [array_like]Input ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 295, "s": 28, "text": "numpy.logical_or(arr1, arr2, out=None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None, ufunc ‘logical_or’) : This is a logical function and it helps user to fi...
PHP | imagefill() Function
23 Aug, 2019 The imagefill() function is an inbuilt function in PHP which is used to fill the image with the given color. This function performs a flood fill starting at the given coordinate (top left is 0, 0) with the given color in the image. Syntax: bool imagefill( $image, $x, $y, $color ) Parameters:This function a...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2019" }, { "code": null, "e": 260, "s": 28, "text": "The imagefill() function is an inbuilt function in PHP which is used to fill the image with the given color. This function performs a flood fill starting at the given coordina...
Program to calculate volume of Octahedron
21 Jun, 2022 Given the side of the Octahedron then calculate the volume of Octahedron.Examples: Input : 3 Output : 12.7279 Input : 7 Output : 161.692 A regular Octahedron has eight faces,twelve edges and six vertices. It has eight triangles with edges of equal length and effectively two square pyramids meeting at ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 137, "s": 52, "text": "Given the side of the Octahedron then calculate the volume of Octahedron.Examples: " }, { "code": null, "e": 192, "s": 137, "text": "Input : 3\nOutput : ...
PHP | explode() Function
03 Jan, 2022 explode() is a built in function in PHP used to split a string in different strings. The explode() function splits a string based on a string delimiter, i.e. it splits the string wherever the delimiter character occurs. This functions returns an array containing the strings formed by splitting the original...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jan, 2022" }, { "code": null, "e": 344, "s": 28, "text": "explode() is a built in function in PHP used to split a string in different strings. The explode() function splits a string based on a string delimiter, i.e. it splits the str...
Insert multiple values into multiple tables using a single statement in SQL Server
12 Feb, 2022 The T-SQL function OUTPUT, which was introduced in 2005, can be used to insert multiple values into multiple tables in a single statement. The output values of each row that was part of an INSERT, UPDATE or DELETE operation are returned by the OUTPUT clause. Syntax: INSERT INTO Table1 (Col1, Col2) OUTPUT i...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2022" }, { "code": null, "e": 287, "s": 28, "text": "The T-SQL function OUTPUT, which was introduced in 2005, can be used to insert multiple values into multiple tables in a single statement. The output values of each row that w...
isinf() function in C++
27 Sep, 2018 This function is defined in <cmath.h> .The isinf() function is use to determine whether the given number is infinity or not i.e positive infinity or negative infinity both. This function returns 1 if the given number is infinite otherwise this function returns zero. Syntax: bool isinf( float arg ); or bool...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2018" }, { "code": null, "e": 295, "s": 28, "text": "This function is defined in <cmath.h> .The isinf() function is use to determine whether the given number is infinity or not i.e positive infinity or negative infinity both. Th...
The @SuppressWarnings Annotation in Java
24 Oct, 2021 Annotations are a very important part of Java in modern technologies, Most of the technologies such as Hibernate, Spring, Spring Boot, JPA, and so Many other Libraries are using annotations and making developers’ life a lot easy. In Java, built-in General Annotations are – @Override@Deprecated@FunctionalI...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Oct, 2021" }, { "code": null, "e": 327, "s": 52, "text": "Annotations are a very important part of Java in modern technologies, Most of the technologies such as Hibernate, Spring, Spring Boot, JPA, and so Many other Libraries are us...
Python | Test if String contains Alphabets and Spaces - GeeksforGeeks
17 Dec, 2021 Sometimes, while testing of credibility of string being a part of containing just alphabets, an exception of spaces has to be mentioned explicitly and becomes a problem. This can occur in domains that deal with data. Lets discuss certain ways in which this task can be performed. Method #1 : Using all() + i...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n17 Dec, 2021" }, { "code": null, "e": 24181, "s": 23901, "text": "Sometimes, while testing of credibility of string being a part of containing just alphabets, an exception of spaces has to be mentioned explicitly and becomes a pr...
How to cut only the first character in MySQL string?
To cut only the first character, use the substr() function with UPDATE command. The syntax is as follows. UPDATE yourTableName set yourColumnName=substr(yourColumnName,2); To understand the above syntax, let us first create a table. The query to create a table is as follows. mysql> create table CutStringDemo -> ( -> Va...
[ { "code": null, "e": 1168, "s": 1062, "text": "To cut only the first character, use the substr() function with UPDATE command. The syntax is as follows." }, { "code": null, "e": 1234, "s": 1168, "text": "UPDATE yourTableName set yourColumnName=substr(yourColumnName,2);" }, { ...
Explain union operation in relational algebra (DBMS)?
Query is a question or requesting information. Query language is a language which is used to retrieve information from a database. Query language is divided into two types − Procedural language Procedural language Non-procedural language Non-procedural language Information is retrieved from the database by specifying t...
[ { "code": null, "e": 1193, "s": 1062, "text": "Query is a question or requesting information. Query language is a language which is used to retrieve information from a database." }, { "code": null, "e": 1236, "s": 1193, "text": "Query language is divided into two types −" }, ...
Creating a RESTful Serverless API with Azure Functions and MongoDB | by Will Velida | Towards Data Science
In this tutorial, we’re going to build a Serverless API using HTTP Triggers in Azure Functions that uses a MongoDB Atlas backend. We’re going to build an API for a hypothetical music library that stores information about Albums. We’re going to build this API using C#, so you’d need to at least understand the C# syntax ...
[ { "code": null, "e": 401, "s": 172, "text": "In this tutorial, we’re going to build a Serverless API using HTTP Triggers in Azure Functions that uses a MongoDB Atlas backend. We’re going to build an API for a hypothetical music library that stores information about Albums." }, { "code": null...
MYBATIS - Mapper XML
In the previous chapter, we have seen how to configure MyBatis using an XML file. This chapter discusses the Mapper XML file and various mapped SQL statements provided by it. Before proceeding to mapped statements, assume that the following table named Student exists in the MYSQL database − +----+-------+--------+-----...
[ { "code": null, "e": 2046, "s": 1871, "text": "In the previous chapter, we have seen how to configure MyBatis using an XML file. This chapter discusses the Mapper XML file and various mapped SQL statements provided by it." }, { "code": null, "e": 2163, "s": 2046, "text": "Before ...
How to get the return value from a function in a class in Python?
The following code shows how to get return value from a function in a Python class class Score(): def __init__(self): self.score = 0 self.num_enemies = 5 self.num_lives = 3 def setScore(self, num): self.score = num def getScore(self): return self.score def getEn...
[ { "code": null, "e": 1145, "s": 1062, "text": "The following code shows how to get return value from a function in a Python class" }, { "code": null, "e": 1574, "s": 1145, "text": "class Score():\n def __init__(self):\n self.score = 0\n self.num_enemies = 5\n ...
How to create UI Datepicker using jQuery ? - GeeksforGeeks
27 Apr, 2020 Localization means browser to display data in a different languages as per browser setting or manual setting inside the application. To implement jQuery UI Datepicker to display in different languages as per browser settings follow the steps: Approach: Add the following JavaScript references.<script src= ...
[ { "code": null, "e": 40332, "s": 40304, "text": "\n27 Apr, 2020" }, { "code": null, "e": 40575, "s": 40332, "text": "Localization means browser to display data in a different languages as per browser setting or manual setting inside the application. To implement jQuery UI Datepic...
Counting Inversions using Set in C++ STL - GeeksforGeeks
28 Jun, 2021 Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count is 0. If array is sorted in reverse order that inversion count is the maximum. Two elements a[i] and a[j] form an inversion if a[i] > a[j] and i < j. For sim...
[ { "code": null, "e": 24240, "s": 24212, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24459, "s": 24240, "text": "Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count is 0. If array is sorte...
Difference between Context Free Grammar and Regular Grammar - GeeksforGeeks
31 May, 2021 Noam Chomsky has divided grammar into four types : Type Name 0 1 2 3 Chomsky Hierarchy 1. Context Free Grammar : Language generated by Context Free Grammar is accepted by Pushdown Automata It is a subset of Type 0 and Type 1 grammar and a superset of Type 3 grammar. Also called phase structured grammar. Di...
[ { "code": null, "e": 24376, "s": 24348, "text": "\n31 May, 2021" }, { "code": null, "e": 24427, "s": 24376, "text": "Noam Chomsky has divided grammar into four types :" }, { "code": null, "e": 24432, "s": 24427, "text": "Type" }, { "code": null, "e...
How can we apply AUTO_INCREMENT to a column?
AUTO_INCREMENT means that the column will get the value automatically. To illustrate it we have created a table ‘employees’ as follows − mysql> Show Create Table employees\G *************************** 1. row *************************** Table: employees Create Table: CREATE TABLE `employees` ( `Id` int(11) NOT NUL...
[ { "code": null, "e": 1199, "s": 1062, "text": "AUTO_INCREMENT means that the column will get the value automatically. To illustrate it we have created a table ‘employees’ as follows −" }, { "code": null, "e": 1522, "s": 1199, "text": "mysql> Show Create Table employees\\G\n\n****...
How to import csv file data from Github in R?
If you have a csv file on Github then it can be directly imported in R by using its URL but make sure that you click on Raw option on Github page where the data is stored. Many people do not click on Raw option therefore they read HTML instead of CSV and get confused. Here, I am sharing a public data set that contains ...
[ { "code": null, "e": 1459, "s": 1062, "text": "If you have a csv file on Github then it can be directly imported in R by using its URL but make sure that you click on Raw option on Github page where the data is stored. Many people do not click on Raw option therefore they read HTML instead of CSV an...
Ant - Building Projects
Now that we have learnt about the data types in Ant, it is time to put that knowledge into action. We will build a project in this chapter. The aim of this chapter is to build an Ant file that compiles the java classes and places them in the WEB-INF\classes folder. Consider the following project structure − The databas...
[ { "code": null, "e": 2363, "s": 2097, "text": "Now that we have learnt about the data types in Ant, it is time to put that knowledge into action. We will build a project in this chapter. The aim of this chapter is to build an Ant file that compiles the java classes and places them in the WEB-INF\\cl...
HTML5 - time
A time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601. <!DOCTYPE HTML> <html> <body> <form action = "/cgi-bin/html5.cgi" method = "get"> Time : <input type = "time" name = "newinput" /> <input type = "submit" value = "submit" /> </form> </body> </html> ...
[ { "code": null, "e": 2690, "s": 2608, "text": "A time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601." }, { "code": null, "e": 2927, "s": 2690, "text": "<!DOCTYPE HTML>\n\n<html>\n <body>\n\n <form action = \"/cgi-bin/html5.cgi\" method = \"get\"...
Sentiment Analysis — Comparing 3 Common Approaches: Naive Bayes, LSTM, and VADER | by Kevin C Lee | Towards Data Science
Note: The code for this post can be found here Sentiment Analysis, or Opinion Mining, is a subfield of NLP (Natural Language Processing) that aims to extract attitudes, appraisals, opinions, and emotions from text. Inspired by the rapid migration of customer interactions to digital formats e.g. emails, chat rooms, soci...
[ { "code": null, "e": 219, "s": 172, "text": "Note: The code for this post can be found here" }, { "code": null, "e": 1765, "s": 219, "text": "Sentiment Analysis, or Opinion Mining, is a subfield of NLP (Natural Language Processing) that aims to extract attitudes, appraisals, opin...
Implement Dynamic SQL query inside a MySQL stored procedure?
For dynamic SQL query in a stored procedure, use the concept of PREPARE STATEMENT. Let us first create a table − mysql> create table DemoTable2033 -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Name varchar(20) -> ); Query OK, 0 rows affected (1.61 sec) Insert some records in the table using insert ...
[ { "code": null, "e": 1175, "s": 1062, "text": "For dynamic SQL query in a stored procedure, use the concept of PREPARE STATEMENT. Let us first create a table −" }, { "code": null, "e": 1336, "s": 1175, "text": "mysql> create table DemoTable2033\n -> (\n -> Id int NOT NULL AUT...
How to Deploy Your React Websites on GitHub? - GeeksforGeeks
07 Mar, 2022 Building a web application is always exciting for developers especially when you step into the programming world for the first time. You build the front end of your application after a lot of struggle and you want to showcase your skill, your creativity, and of course your hard work to the world. Some of t...
[ { "code": null, "e": 24682, "s": 24654, "text": "\n07 Mar, 2022" }, { "code": null, "e": 25413, "s": 24682, "text": "Building a web application is always exciting for developers especially when you step into the programming world for the first time. You build the front end of you...
Tryit Editor v3.6 - Show React
import { useState } from "react"; import ReactDOM from "react-dom/client"; import Todos from "./Todos"; const App = () => { const [count, setCount] = useState(0); const [todos, setTodos] = useState(["todo 1", "todo 2"]); const increment = () => { setCount((c) => c + 1); }; return ( <> <Todos ...
[ { "code": null, "e": 554, "s": 0, "text": "\nimport { useState } from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport Todos from \"./Todos\";\n\nconst App = () => {\n const [count, setCount] = useState(0);\n const [todos, setTodos] = useState([\"todo 1\", \"todo 2\"]);\n\n const in...
Check if sum of divisors of two numbers are same in Python
Suppose we have two numbers p and q. We have to check whether the sum of all divisors of these tow numbers are same or not. So, if the input is like p = 559, q = 703, then the output will be True the divisors of 559 is 1, 13, 43 and 703 is 1, 19, 37. The sum of the divisors are 57. To solve this, we will follow these s...
[ { "code": null, "e": 1186, "s": 1062, "text": "Suppose we have two numbers p and q. We have to check whether the sum of all divisors of these tow numbers are same or not." }, { "code": null, "e": 1345, "s": 1186, "text": "So, if the input is like p = 559, q = 703, then the output...
Creating an Asynchronous Multithreaded chat Application in Java - GeeksforGeeks
01 Apr, 2019 Prerequisite: Datagrams in Java In this article, we will learn how to use Datagrams in Java to create an Asynchronous messaging application in java. Asynchronous in this context means that both the server and the client can send each other texts independently without waiting for any kind of response from t...
[ { "code": null, "e": 24510, "s": 24482, "text": "\n01 Apr, 2019" }, { "code": null, "e": 24542, "s": 24510, "text": "Prerequisite: Datagrams in Java" }, { "code": null, "e": 25314, "s": 24542, "text": "In this article, we will learn how to use Datagrams in Jav...
Check if a number is a Pangram or not - GeeksforGeeks
14 May, 2021 Given an integer N, the task is to check whether the given number is a pangram or not. Note: A Pangram Number contains every digit [0- 9] at least once. Examples: Input : N = 10239876540022Output : YesExplanation: N contains all the digits from 0 to 9. Therefore, it is a pangram. Input : N = 234567890Outpu...
[ { "code": null, "e": 25132, "s": 25104, "text": "\n14 May, 2021" }, { "code": null, "e": 25285, "s": 25132, "text": "Given an integer N, the task is to check whether the given number is a pangram or not. Note: A Pangram Number contains every digit [0- 9] at least once." }, { ...
turtle.speed() function in Python - GeeksforGeeks
20 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. The turtle.speed() method is used to change the speed of the turtle by the value of the ar...
[ { "code": null, "e": 25857, "s": 25829, "text": "\n20 Jul, 2020" }, { "code": null, "e": 26074, "s": 25857, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it...
PostgreSQL - STRING_AGG() Function - GeeksforGeeks
01 Jun, 2020 The STRING_AGG() function in PostgreSQL is an aggregate function that is used to concatenate a list of strings and place a separator between them. Syntax: STRING_AGG ( expression, separator [order_by_clause] ) Let’s analyze the above syntax. The above function accepts two arguments and an optional ORDER BY...
[ { "code": null, "e": 25243, "s": 25215, "text": "\n01 Jun, 2020" }, { "code": null, "e": 25390, "s": 25243, "text": "The STRING_AGG() function in PostgreSQL is an aggregate function that is used to concatenate a list of strings and place a separator between them." }, { "c...
How to divide an HTML page into four parts using frames ? - GeeksforGeeks
25 Mar, 2021 In this article, we will learn how to divide a page into four parts using HTML frames. This can be used to represent the header, sidebar, footer, and main content. The frames are created using the <frame> tag. We will have to use four HTML files for each of the portions. Syntax: <frameset> // frame ele...
[ { "code": null, "e": 33028, "s": 33000, "text": "\n25 Mar, 2021" }, { "code": null, "e": 33300, "s": 33028, "text": "In this article, we will learn how to divide a page into four parts using HTML frames. This can be used to represent the header, sidebar, footer, and main content....
Python - Pytorch permute() method - GeeksforGeeks
18 Aug, 2020 PyTorch torch.permute() rearranges the original tensor according to the desired ordering and returns a new multidimensional rotated tensor. The size of the returned tensor remains the same as that of the original. Syntax: torch.permute(*dims) Parameters: dims: sequence of indices in desired ordering of di...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Aug, 2020" }, { "code": null, "e": 25751, "s": 25537, "text": "PyTorch torch.permute() rearranges the original tensor according to the desired ordering and returns a new multidimensional rotated tensor. The size of the returne...
PHP | array_slice() Function - GeeksforGeeks
14 Nov, 2021 The array_slice() is an inbuilt function of PHP and is used to fetch a part of an array by slicing through it, according to the users choice.Syntax: array_slice($array, $start_point, $slicing_range, preserve) Parameters: This function can take four parameters and are described below: $array (mandatory):...
[ { "code": null, "e": 26145, "s": 26117, "text": "\n14 Nov, 2021" }, { "code": null, "e": 26295, "s": 26145, "text": "The array_slice() is an inbuilt function of PHP and is used to fetch a part of an array by slicing through it, according to the users choice.Syntax: " }, { ...
Optional orElseThrow() method in Java with examples - GeeksforGeeks
30 Jul, 2019 The orElseThrow() method of java.util.Optional class in Java is used to get the value of this Optional instance if present. If there is no value present in this Optional instance, then this method throws the exception generated from the specified supplier. Syntax: public <X> T orElseThrow(Supplier<X> exc...
[ { "code": null, "e": 25781, "s": 25753, "text": "\n30 Jul, 2019" }, { "code": null, "e": 26038, "s": 25781, "text": "The orElseThrow() method of java.util.Optional class in Java is used to get the value of this Optional instance if present. If there is no value present in this Op...
numpy.ascontiguousarray() in Python - GeeksforGeeks
16 Nov, 2021 numpy.ascontiguousarray()function is used when we want to return a contiguous array in memory (C order). Syntax : numpy.ascontiguousarray(arr, dtype=None) Parameters :arr : [array_like] Input data, in any form that can be converted to an array. This includes scalars, lists, lists of tuples, tuples, tuples ...
[ { "code": null, "e": 26141, "s": 26113, "text": "\n16 Nov, 2021" }, { "code": null, "e": 26246, "s": 26141, "text": "numpy.ascontiguousarray()function is used when we want to return a contiguous array in memory (C order)." }, { "code": null, "e": 26296, "s": 26246...
How to get the height and width of an Image using ReactJS? - GeeksforGeeks
30 Sep, 2020 In reacting whatever we write that looks like HTML is not pure HTML actually. All the HTML looking stuff are JSX, Behind the scene, they are converted to vanilla JavaScript using babel. These all work in this way to make the developers’ life easier. Since JSX are not HTML that’s why we do have any direct r...
[ { "code": null, "e": 28387, "s": 28359, "text": "\n30 Sep, 2020" }, { "code": null, "e": 29041, "s": 28387, "text": "In reacting whatever we write that looks like HTML is not pure HTML actually. All the HTML looking stuff are JSX, Behind the scene, they are converted to vanilla J...
C# - Indexers Using String as an Index - GeeksforGeeks
30 Aug, 2020 Prerequisite: Properties in C# Indexers allow instances of a class or struct to be indexed just like arrays. By using indexers class will behave like a virtual array. The indexed value can be set or retrieved without explicitly specifying a type or instance member. Indexers resemble properties except that ...
[ { "code": null, "e": 25573, "s": 25545, "text": "\n30 Aug, 2020" }, { "code": null, "e": 25604, "s": 25573, "text": "Prerequisite: Properties in C#" }, { "code": null, "e": 26072, "s": 25604, "text": "Indexers allow instances of a class or struct to be indexed...
Minimum insertions to form a palindrome | DP-28 - GeeksforGeeks
25 Feb, 2022 Given string str, the task is to find the minimum number of characters to be inserted to convert it to a palindrome. Before we go further, let us understand with a few examples: ab: Number of insertions required is 1 i.e. bab aa: Number of insertions required is 0 i.e. aa abcd: Number of insertions requir...
[ { "code": null, "e": 26255, "s": 26227, "text": "\n25 Feb, 2022" }, { "code": null, "e": 26372, "s": 26255, "text": "Given string str, the task is to find the minimum number of characters to be inserted to convert it to a palindrome." }, { "code": null, "e": 26434, ...
Count number of strings (made of R, G and B) using given combination - GeeksforGeeks
08 Jun, 2021 We need to make a string of size n. Each character of the string is either ‘R’, ‘B’ or ‘G’. In the final string there needs to be at least r number of ‘R’, at least b number of ‘B’ and at least g number of ‘G’ (such that r + g + b <= n). We need to find number of such strings possible.Examples: Input : n...
[ { "code": null, "e": 26803, "s": 26775, "text": "\n08 Jun, 2021" }, { "code": null, "e": 27101, "s": 26803, "text": "We need to make a string of size n. Each character of the string is either ‘R’, ‘B’ or ‘G’. In the final string there needs to be at least r number of ‘R’, at leas...
How to Create a Socket at a Specific Port in Java? - GeeksforGeeks
15 Sep, 2021 A socket is one end-point of a two-way communication link between two programs running on the network. Socket classes are used to represent the connection between a client program and a server program. Socket Programming, us basically client-server programming where a socket is used as a link between them....
[ { "code": null, "e": 25225, "s": 25197, "text": "\n15 Sep, 2021" }, { "code": null, "e": 25786, "s": 25225, "text": "A socket is one end-point of a two-way communication link between two programs running on the network. Socket classes are used to represent the connection between ...
Print all prime factors and their powers - GeeksforGeeks
04 Mar, 2022 Given a number N, print all its unique prime factors and their powers in N. Examples: Input: N = 100 Output: Factor Power 2 2 5 2 Input: N = 35 Output: Factor Power 5 1 7 1 A Simple Solution is to first find prime factors of N. Then for every ...
[ { "code": null, "e": 26343, "s": 26315, "text": "\n04 Mar, 2022" }, { "code": null, "e": 26431, "s": 26343, "text": "Given a number N, print all its unique prime factors and their powers in N. Examples: " }, { "code": null, "e": 26580, "s": 26431, "text": "In...
Seating arrangement of N boys sitting around a round table such that two particular boys sit together - GeeksforGeeks
31 Mar, 2021 There are N boys which are to be seated around a round table. The task is to find the number of ways in which N boys can sit around a round table such that two particular boys sit together.Examples: Input: N = 5 Output: 48 2 boy can be arranged in 2! ways and other boys can be arranged in (5 – 1)! (1 is ...
[ { "code": null, "e": 26383, "s": 26355, "text": "\n31 Mar, 2021" }, { "code": null, "e": 26584, "s": 26383, "text": "There are N boys which are to be seated around a round table. The task is to find the number of ways in which N boys can sit around a round table such that two par...
Difference between innerText and innerHTML - GeeksforGeeks
19 Jun, 2019 innerText and innerHTML are both properties of JavaScript. However, there are differences in which the text is handled. Let us check the syntax of the two and then take an example to look at the differences. Syntax:Let us assume that we have a JavaScript variable called x. var x = document.getElementById('...
[ { "code": null, "e": 26053, "s": 26025, "text": "\n19 Jun, 2019" }, { "code": null, "e": 26261, "s": 26053, "text": "innerText and innerHTML are both properties of JavaScript. However, there are differences in which the text is handled. Let us check the syntax of the two and then...
How to Install Dart on MacOS? - GeeksforGeeks
06 Dec, 2021 The dart is an SDK (Software Development Kit) and SDK as you may observe from its name it is mainly a collection of software development tools that facilitate the creation of different applications, some of the tools include compilers debuggers libraries, and perhaps the software framework aiding towards t...
[ { "code": null, "e": 26222, "s": 26194, "text": "\n06 Dec, 2021" }, { "code": null, "e": 26565, "s": 26222, "text": "The dart is an SDK (Software Development Kit) and SDK as you may observe from its name it is mainly a collection of software development tools that facilitate the ...
Node.js Bot.onText() API for Telegram Bot - GeeksforGeeks
30 Sep, 2020 The Bot.onText() method is used in the Node.js Telegram Bot API. This Node.js module to interact with the official Telegram Bot API. This method is used to reply when the users interact with the Telegram BOT. Syntax: TelegramBot.onText(regexp, callback) Parameters: This Method accepts two parameters as men...
[ { "code": null, "e": 26289, "s": 26261, "text": "\n30 Sep, 2020" }, { "code": null, "e": 26498, "s": 26289, "text": "The Bot.onText() method is used in the Node.js Telegram Bot API. This Node.js module to interact with the official Telegram Bot API. This method is used to reply w...
How to Get Size, Minimum, and Maximum Value of Data Types in Java? - GeeksforGeeks
28 Mar, 2021 The size of a data type is given by (name of datatype).SIZE. The maximum value that it can store is given by (Name of data type).MAX_VALUE. The minimum value that it can store is given by (Name of data type).MIN_VALUE. Always write first word of data type in capital. Example: 1. If you want to print the si...
[ { "code": null, "e": 25251, "s": 25223, "text": "\n28 Mar, 2021" }, { "code": null, "e": 25470, "s": 25251, "text": "The size of a data type is given by (name of datatype).SIZE. The maximum value that it can store is given by (Name of data type).MAX_VALUE. The minimum value that ...
Minimum edges to be removed from given undirected graph to remove any existing path between nodes A and B
14 Dec, 2021 Given two integers N and M denoting the number of vertices and edges in the graph and array edges[][] of size M, denoting an edge between edges[i][0] and edges[i][1], the task is to find the minimum edges directly connected with node B that must be removed such that there exist no path between vertex A and...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Dec, 2021" }, { "code": null, "e": 363, "s": 52, "text": "Given two integers N and M denoting the number of vertices and edges in the graph and array edges[][] of size M, denoting an edge between edges[i][0] and edges[i][1], the tas...
Thread isAlive() Method in Java With Examples
09 May, 2022 Thread class in java provides numerous methods that are very essential in order to understand the working of threads as the thread stages are triggered by them. Java multi-threading provides two ways to find with the help of isAlive() and join() method.One thread gets to know when another thread has ended....
[ { "code": null, "e": 53, "s": 25, "text": "\n09 May, 2022" }, { "code": null, "e": 506, "s": 53, "text": "Thread class in java provides numerous methods that are very essential in order to understand the working of threads as the thread stages are triggered by them. Java multi-th...
Longest Common Prefix using Trie
12 Jul, 2019 Given a set of strings, find the longest common prefix. Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : "gee" Input : {"apple", "ape", "april"} Output : "ap" Previous Approaches : Word by Word Matching , Character by Character Matching, Divide and Conquer , Binary Search. In this article,...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Jul, 2019" }, { "code": null, "e": 110, "s": 54, "text": "Given a set of strings, find the longest common prefix." }, { "code": null, "e": 230, "s": 110, "text": "Input : {“geeksforgeeks”, “geeks”, “geek”, “geez...
Display the red, green and blue color planes of a color image in MATLAB
28 Mar, 2019 Prerequisite – RGB image representationA colored image can be represented as a 3 order matrix. The first order is for the rows, the second order is for the columns and the third order is for specifying the color of the corresponding pixel. Here we use the RGB color format, so the third order will take 3 va...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Mar, 2019" }, { "code": null, "e": 472, "s": 54, "text": "Prerequisite – RGB image representationA colored image can be represented as a 3 order matrix. The first order is for the rows, the second order is for the columns and the th...
Set Database From Single User Mode to Multi User in SQL
16 Dec, 2021 A single-user mode specifies that only one user at a time can access the database. If you set the database to single-user mode then all other connections will be closed without warning. If you get disconnected after setting the database into single-user mode, a different user can connect to database, but o...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2021" }, { "code": null, "e": 349, "s": 28, "text": "A single-user mode specifies that only one user at a time can access the database. If you set the database to single-user mode then all other connections will be closed withou...
How to make sure that Apache service keeps running in Ubuntu
03 Jan, 2019 Majority of world’s websites are hosted on are hosted on Apache Web Servers and the majority of those servers run Apache in Linux. Let’s see how to install Apache in Ubuntu: Type the following commands in terminal application on your computer: $ sudo apt-get update $ sudo apt-get install apache2 Now type ...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jan, 2019" }, { "code": null, "e": 228, "s": 54, "text": "Majority of world’s websites are hosted on are hosted on Apache Web Servers and the majority of those servers run Apache in Linux. Let’s see how to install Apache in Ubuntu:"...
PHP | Inserting into MySQL database
21 Mar, 2018 Prerequisites : MySQL introduction, Creating MySQL databaseINSERT INTO statement is used to insert new rows in a database table. Let’s see the syntax how to insert into table, considering database already exists. SYNTAX : INSERT INTO TABLE_NAME (column1, column2, column3, ... columnN) VALUES (value1, valu...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Mar, 2018" }, { "code": null, "e": 265, "s": 52, "text": "Prerequisites : MySQL introduction, Creating MySQL databaseINSERT INTO statement is used to insert new rows in a database table. Let’s see the syntax how to insert into table...
Creating a Receipt Calculator using Python
17 May, 2022 A receipt calculator is generally a slip in which the total invoice along with their names is mentioned. We will use the class PrettyTable inside the prettytable library for making our receipt calculator. It is a class present inside prettytable library which help us to make relational tables in Python. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 May, 2022" }, { "code": null, "e": 257, "s": 52, "text": "A receipt calculator is generally a slip in which the total invoice along with their names is mentioned. We will use the class PrettyTable inside the prettytable library for ...
C++ Program to find Median of Elements where Elements are stored in 2 different arrays
We shall consider a C++ program to find the median of elements where elements are stored in 2 different arrays. Begin Function Median() has Two arrays a1[], a2[] and n = numbers of elements of the array as arguments: Initialize i and j by 0, and n1 and n2 by -1 for c in range 0 to n, do if i = n, then ...
[ { "code": null, "e": 1299, "s": 1187, "text": "We shall consider a C++ program to find the median of elements where elements are stored in 2 different arrays." }, { "code": null, "e": 1874, "s": 1299, "text": "Begin\n Function Median() has Two arrays a1[], a2[] and n = numbers ...
How To Highlight a Time Range in Time Series Plot in Python with Matplotlib?
22 Sep, 2021 A time series plot is a plot which contains data which is being measured over a period of time, for example, a gross domestic product of a country, the population of the world and many other data. Sometimes we want to highlight a specific period of the timeline so that it is easier for the observer to read...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Sep, 2021" }, { "code": null, "e": 225, "s": 28, "text": "A time series plot is a plot which contains data which is being measured over a period of time, for example, a gross domestic product of a country, the population of the world...
Flip and Invert Matrix in Python
Suppose we have a binary matrix mat. We have to select each row in matrix, then reverse the row. After that, flip each bit (0 to 1 and 1 to 0). So, if the input is like then the output will be To solve this, we will follow these steps − track:= 0 for each row in mat, doreverse the rowtracker := 0for each val in row, do...
[ { "code": null, "e": 1331, "s": 1187, "text": "Suppose we have a binary matrix mat. We have to select each row in matrix, then reverse the\nrow. After that, flip each bit (0 to 1 and 1 to 0)." }, { "code": null, "e": 1356, "s": 1331, "text": "So, if the input is like" }, { ...
C# | Func delegate
13 Oct, 2019 When we create a custom delegate we have to follow the following steps: Step 1: Declare a custom delegate with the format which is exactly equal to the method. Step 2: Create the object of custom delegate. Step 3: Invoke the method. By using these steps, we create a custom delegate as shown in the below pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Oct, 2019" }, { "code": null, "e": 124, "s": 52, "text": "When we create a custom delegate we have to follow the following steps:" }, { "code": null, "e": 212, "s": 124, "text": "Step 1: Declare a custom delegate...
Java Program for Counting Sort
13 Jun, 2022 Counting sort is a sorting technique based on keys between a specific range. It works by counting the number of objects having distinct key values (kind of hashing). Then doing some arithmetic to calculate the position of each object in the output sequence. Java // Java implementation of Counting Sortclass...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 310, "s": 52, "text": "Counting sort is a sorting technique based on keys between a specific range. It works by counting the number of objects having distinct key values (kind of hashing). Then doi...
How to Hide/Show BottomNavigationView on Scroll in Android?
23 Dec, 2020 BottomNavigationView is the best option for navigation in android. It makes life easier for a user to switch between multiple activities and fragments. It’s really a pain in the butt to use an android app without having proper navigation. At GFG, we have already shared an article with you on BottomNavigati...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Dec, 2020" }, { "code": null, "e": 527, "s": 54, "text": "BottomNavigationView is the best option for navigation in android. It makes life easier for a user to switch between multiple activities and fragments. It’s really a pain in ...
Print all subsets of given size of a set
24 Nov, 2021 Generate all possible subsets of size r of the given array with distinct elements. Examples: Input : arr[] = {1, 2, 3, 4} r = 2 Output : 1 2 1 3 1 4 2 3 2 4 3 4 Input : arr[] = {10, 20, 30, 40, 50} r = 3 Output : 10 20 30 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Nov, 2021" }, { "code": null, "e": 136, "s": 52, "text": "Generate all possible subsets of size r of the given array with distinct elements. " }, { "code": null, "e": 148, "s": 136, "text": "Examples: " }, {...
Scanner toString() method in Java with Examples
11 Oct, 2018 The toString() method of java.util.Scanner class returns the string representation of this Scanner. The exact format is unspecified. Syntax: public String toString() Return Value: This function returns the string representation of this scanner. Below program illustrates the above function: Program 1: // Ja...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2018" }, { "code": null, "e": 161, "s": 28, "text": "The toString() method of java.util.Scanner class returns the string representation of this Scanner. The exact format is unspecified." }, { "code": null, "e": 169, ...
Compute the outer product of two given vectors using NumPy in Python
29 Aug, 2020 In Python, we can use the outer() function of the NumPy package to find the outer product of two matrices. Syntax : numpy.outer(a, b, out = None) Parameters : a : [array_like] First input vector. Input is flattened if not already 1-dimensional. b : [array_like] Second input vector. Input is flattened if n...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 136, "s": 28, "text": "In Python, we can use the outer() function of the NumPy package to find the outer product of two matrices. " }, { "code": null, "e": 175, "s": 136, "text":...
Java Program to Swap two Strings Without Using any Third Variable
30 Sep, 2021 Given two string variables, a and b, your task is to write a Java Program to swap these variables without using any temporary or third variable. Use of library methods is allowed. Examples: Input: a = "Hello" b = "World" Output: Strings before swap: a = Hello and b = World Strings after swap: a = ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Sep, 2021" }, { "code": null, "e": 232, "s": 52, "text": "Given two string variables, a and b, your task is to write a Java Program to swap these variables without using any temporary or third variable. Use of library methods is all...
Python String Methods ?
Python provides lots of built-in methods which we can use on strings. Below are the list of string methods available in Python 3. >>> mystring = "hello python" >>> print(mystring.capitalize()) Hello python >>> mystring = "hello PYTHON" >>> print(mystring.casefold()) hello python >>> mystring = "Hello" >>> x = mystring....
[ { "code": null, "e": 1257, "s": 1187, "text": "Python provides lots of built-in methods which we can use on strings." }, { "code": null, "e": 1317, "s": 1257, "text": "Below are the list of string methods available in Python 3." }, { "code": null, "e": 1393, "s": ...
p5.js texture() Function
04 Mar, 2021 The texture() function in p5.js is used to provide a texture for geometry objects. This texture can be an p5.Image, p5.MediaElement or p5.Graphics object. Syntax: texture( tex ) Parameters: This function accepts a single parameter as mentioned above and described below. tex: It is a p5.Image, p5.MediaEleme...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Mar, 2021" }, { "code": null, "e": 183, "s": 28, "text": "The texture() function in p5.js is used to provide a texture for geometry objects. This texture can be an p5.Image, p5.MediaElement or p5.Graphics object." }, { "code"...
std::bsearch in C++
07 Aug, 2017 Basics of Binary Search std::bsearch searches for an element in a sorted array. Finds an element equal to element pointed to by key in an array pointed to by ptr.If the array contains several elements that comp would indicate as equal to the element searched for, then it is unspecified which element the fu...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Aug, 2017" }, { "code": null, "e": 78, "s": 54, "text": "Basics of Binary Search" }, { "code": null, "e": 403, "s": 78, "text": "std::bsearch searches for an element in a sorted array. Finds an element equal to e...
What is the use of the VALUE function in a DB2? Explain with the help of an example
The purpose of VALUE function in DB2 is to check for NULL values and it can be used in place of NULL indicator or COALESCE function. The VALUE function replaces the column value with the given argument if it contains a NULL value. For example, if we have an ORDER table and we have to extract ORDER_ID and ORDER_DESCRIPT...
[ { "code": null, "e": 1293, "s": 1062, "text": "The purpose of VALUE function in DB2 is to check for NULL values and it can be used in place of NULL indicator or COALESCE function. The VALUE function replaces the column value with the given argument if it contains a NULL value." }, { "code": ...
SAP BPC - Quick Guide
SAP Business Planning and Consolidation (BPC) tool is used to support all operational and financial activities in an organization. SAP BPC helps in automating and streamlining business forecast, planning, and consolidation activities in your organization. SAP BPC supports two types of migration - SAP NetWeaver and Micr...
[ { "code": null, "e": 2430, "s": 2174, "text": "SAP Business Planning and Consolidation (BPC) tool is used to support all operational and financial activities in an organization. SAP BPC helps in automating and streamlining business forecast, planning, and consolidation activities in your organizatio...
Can we do better than Convolutional Neural Networks? | by Boris Knyazev | Towards Data Science
The British Machine Vision Conference (BMVC), finished about two weeks ago in Cardiff, UK, is one of the top conferences in computer vision & pattern recognition with a competitive acceptance rate of 28%. Compared to others, it’s a small event, so you have plenty of time to walk around posters and talk to presenters on...
[ { "code": null, "e": 529, "s": 172, "text": "The British Machine Vision Conference (BMVC), finished about two weeks ago in Cardiff, UK, is one of the top conferences in computer vision & pattern recognition with a competitive acceptance rate of 28%. Compared to others, it’s a small event, so you hav...
How to create a link to send email with a subject in HTML?
To create a link to send email, use <a> tag, with href attribute. The mail to link is added inside the <a> tag. To add a subject, you need to add ? and then include the subject. All this comes inside the <a> tag. Just keep in mind to add the email address where you want to receive the email in the mail to link. Also, t...
[ { "code": null, "e": 1275, "s": 1062, "text": "To create a link to send email, use <a> tag, with href attribute. The mail to link is added inside the <a> tag. To add a subject, you need to add ? and then include the subject. All this comes inside the <a> tag." }, { "code": null, "e": 152...
How to Determine the Right Number of Clusters (with Code) | by Adam Brownell | Towards Data Science
Clustering is a fundamental skill in your Data Science toolkit. It can solve a huge array of problems — from user segmentation to anomaly detection — and can help your team derive very interesting insights. Determining the right number of clusters for your project is a little more art than science. In this article, I w...
[ { "code": null, "e": 379, "s": 172, "text": "Clustering is a fundamental skill in your Data Science toolkit. It can solve a huge array of problems — from user segmentation to anomaly detection — and can help your team derive very interesting insights." }, { "code": null, "e": 565, "s...
Array findIndex() function in JavaScript
The findIndex() function in JavaScript returns the index of the first element value that satisfy a given condition in an array. Following is the code for the array find() function − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-sca...
[ { "code": null, "e": 1190, "s": 1062, "text": "The findIndex() function in JavaScript returns the index of the first element value that satisfy a given condition in an array." }, { "code": null, "e": 1244, "s": 1190, "text": "Following is the code for the array find() function −"...
Creating custom lists in Python. Exploring OOP basics to experiment with... | by Roman Penza | Towards Data Science
In this article, we will look at the basics of Object-Oriented Programming and how we can use Python classes to create our own custom lists. We will do so without using any packages (no import statements!). Let's say we want to create a new data container type that would act as a list (i.e. we can index and slice it) b...
[ { "code": null, "e": 379, "s": 172, "text": "In this article, we will look at the basics of Object-Oriented Programming and how we can use Python classes to create our own custom lists. We will do so without using any packages (no import statements!)." }, { "code": null, "e": 600, "s...
Java program to calculate student grades
The following program accepts average from the user, calculates the grade and prints it. public class CalculateStudentGrades { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Enter average of your marks (less than 100)::"); int average = sc.nextInt(...
[ { "code": null, "e": 1151, "s": 1062, "text": "The following program accepts average from the user, calculates the grade and prints it." }, { "code": null, "e": 2138, "s": 1151, "text": "public class CalculateStudentGrades {\n public static void main(String args[]) {\n Sca...
C# | Check if two Tuple Objects are equal - GeeksforGeeks
10 May, 2019 A tuple is a data structure which gives you the easiest way to represent a data set. You can also check if the given tuple object is equal to the specified object or not using the Equals Method. This method will return true if the given tuple object is equal to the specified object, otherwise, return false...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n10 May, 2019" }, { "code": null, "e": 24611, "s": 24302, "text": "A tuple is a data structure which gives you the easiest way to represent a data set. You can also check if the given tuple object is equal to the specified object ...
Basics of Kernels and Convolutions with OpenCV | by Thiago Carvalho | Towards Data Science
I’ve been trying to learn computer vision with Python and OpenCV, and I always stumble upon the terms kernel and convolution. At first, I tried to rely on those gifs and some brief explanations, but I often get confused with their use, so I decided to get a better look at it. In this article, I’ll share some of what I ...
[ { "code": null, "e": 298, "s": 172, "text": "I’ve been trying to learn computer vision with Python and OpenCV, and I always stumble upon the terms kernel and convolution." }, { "code": null, "e": 449, "s": 298, "text": "At first, I tried to rely on those gifs and some brief expla...
Generating Indonesian Lyric using Deep Learning - First part | by Haryo Akbarianto Wibowo | Towards Data Science
Hello everyone, I’m really interested in Artificial Intelligence (AI) which is really hype now. I’m also really interested on making something by using it. Currently, it’s one of my hobby creating several AI applications. In my free time, sometimes, I make an AI apps to release my boredom. I want to get used to writing...
[ { "code": null, "e": 462, "s": 171, "text": "Hello everyone, I’m really interested in Artificial Intelligence (AI) which is really hype now. I’m also really interested on making something by using it. Currently, it’s one of my hobby creating several AI applications. In my free time, sometimes, I mak...
How to throw a C++ exception?
Exception handling is used to handle the exceptions. We can use try catch block to protect the code. Exception can be thrown anywhere within the code block. The keyword “throw” is used to throw an exception. Here is an example of throw in C++ language, Live Demo #include <iostream> using namespace std; int display(in...
[ { "code": null, "e": 1270, "s": 1062, "text": "Exception handling is used to handle the exceptions. We can use try catch block to protect the code. Exception can be thrown anywhere within the code block. The keyword “throw” is used to throw an exception." }, { "code": null, "e": 1315, ...
Stochastic Volatility Pricing in Python | by Roman Paolucci | Towards Data Science
There are a variety of methods used to price securities. I would argue that this topic is as much an art as it is a science. This article discusses the advantages of using simulations (mainly in the form of stochastic inputs) for pricing financial instruments. If you are unfamiliar with securities pricing I would sugge...
[ { "code": null, "e": 402, "s": 47, "text": "There are a variety of methods used to price securities. I would argue that this topic is as much an art as it is a science. This article discusses the advantages of using simulations (mainly in the form of stochastic inputs) for pricing financial instrume...
Sum of N-terms of geometric progression for larger values of N | Set 2 (Using recursion)
02 Mar, 2022 A Geometric series is a series with a constant ratio between successive terms. The first term of the series is denoted by a and the common ratio is denoted by r. The series looks like this:- The task is to find the sum of such a series, mod M. Examples: Input: a = 1, r = 2, N = 10000, M = 10000 Output: ...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Mar, 2022" }, { "code": null, "e": 298, "s": 54, "text": "A Geometric series is a series with a constant ratio between successive terms. The first term of the series is denoted by a and the common ratio is denoted by r. The series l...
OpenCV | Motion Blur in Python
26 Aug, 2019 This article explains how to add blur to an image using OpenCV. Motion blur is a specific type of blur used to lend a directed blur effect to images. The Motion Blur FilterApplying motion blur to an image boils down to convolving a filter across the image. Sample 5*5 filter filters are given below. Vertica...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Aug, 2019" }, { "code": null, "e": 178, "s": 28, "text": "This article explains how to add blur to an image using OpenCV. Motion blur is a specific type of blur used to lend a directed blur effect to images." }, { "code": nul...
PyQt5 – How to delete all the items in ComboBox ?
22 Apr, 2020 In this article we will see how we can clear all the items in the combo box. We know we can add items in the combo box with the help of addItem method to add single item and addItems method to add multiple items. In order to delete all the items in the combo box we will use clear method. Syntax : combo_box...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 317, "s": 28, "text": "In this article we will see how we can clear all the items in the combo box. We know we can add items in the combo box with the help of addItem method to add single item and a...
JavaFx | ColorPicker with examples
14 Nov, 2019 ColorPicker is a part of JavaFX. ColorPicker allows the user to choose a color from given set of colors or make their own custom color. An initial Color can be set using the setValue() function or defining it in a constructor and the color selected by the user can be found using the getValue() function.An ...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Nov, 2019" }, { "code": null, "e": 464, "s": 28, "text": "ColorPicker is a part of JavaFX. ColorPicker allows the user to choose a color from given set of colors or make their own custom color. An initial Color can be set using the s...