title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
C# | Double.ToString() Method | Set - 2 - GeeksforGeeks
21 Oct, 2021 Double.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation. There are 4 methods in the overload list of this method as follows: ToString(String) Method ToString() Method ToString(IFormatProvider) Method ToString(String, IFormatProvider) Me...
[ { "code": null, "e": 26047, "s": 26019, "text": "\n21 Oct, 2021" }, { "code": null, "e": 26243, "s": 26047, "text": "Double.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation. There are 4 methods in the overload ...
How to make an image responsive in HTML?
To make an image responsive, you need to set two properties. Add image using the <img> tag and add CSS style for height and max-width to make it responsive. For example, style="height:auto;max-width:100%;" You can try to run the following code to make an image responsive in HTML −Note − To check the responsiveness of a...
[ { "code": null, "e": 1268, "s": 1062, "text": "To make an image responsive, you need to set two properties. Add image using the <img> tag and add CSS style for height and max-width to make it responsive. For example, style=\"height:auto;max-width:100%;\"" }, { "code": null, "e": 1479, ...
Swift - Data Types
While doing programming in any programming language, you need to use different types of variables to store information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable, you reserve some space in memory. You may like to store information of various data typ...
[ { "code": null, "e": 2520, "s": 2253, "text": "While doing programming in any programming language, you need to use different types of variables to store information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable, you reserve some spa...
Convert list of numerical string to list of Integers in Python
For data manipulation using python, we may come across scenario where we have strings containing numbers in a list. To be able to make calculations, we will need to change the strings into numbers. In this article we will see the ways to change the strings into numbers inside a list. The int function can be applied to ...
[ { "code": null, "e": 1347, "s": 1062, "text": "For data manipulation using python, we may come across scenario where we have strings containing numbers in a list. To be able to make calculations, we will need to change the strings into numbers. In this article we will see the ways to change the stri...
Why window function in SQL is so important that you should learn it right now | by WY Fok | Towards Data Science
In my last article, I mentioned that I was asked about how to use a window function many times. And after mastering it, I am sure that I should learn much earlier because it can help me carry out more in-depth analysis through SQL. My last article about using SQL for data analysis towardsdatascience.com Not like group ...
[ { "code": null, "e": 404, "s": 172, "text": "In my last article, I mentioned that I was asked about how to use a window function many times. And after mastering it, I am sure that I should learn much earlier because it can help me carry out more in-depth analysis through SQL." }, { "code": n...
Day of the week | Practice | GeeksforGeeks
Write a program that calculates the day of the week for any particular date in the past or future. Example 1: Input: d = 28, m = 12, y = 1995 Output: Thursday Explanation: 28 December 1995 was a Thursday. Example 2: Input: d = 30, m = 8, y = 2010 Output: Monday Explanation: 30 August 2010 was a Monday. Your Task: You ...
[ { "code": null, "e": 337, "s": 238, "text": "Write a program that calculates the day of the week for any particular date in the past or future." }, { "code": null, "e": 348, "s": 337, "text": "Example 1:" }, { "code": null, "e": 443, "s": 348, "text": "Input:\...
SAS - Variables
In general variables in SAS represent the column names of the data tables it is analysing. But it can also be used for other purpose like using it as a counter in a programming loop. In the current chapter we will see the use of SAS variables as column names of SAS Data Set. SAS has three types of variables as below − ...
[ { "code": null, "e": 2859, "s": 2583, "text": "In general variables in SAS represent the column names of the data tables it is analysing. But it can also be used for other purpose like using it as a counter in a programming loop. In the current chapter we will see the use of SAS variables as column ...
Conversion Functions in R Programming - GeeksforGeeks
01 Jun, 2020 Sometimes to analyze data using R, we need to convert data into another data type. As we know R has the following data types Numeric, Integer, Logical, Character, etc. similarly R has various conversion functions that are used to convert the data type. In R, Conversion Function are of two types: Conversion...
[ { "code": null, "e": 29044, "s": 29016, "text": "\n01 Jun, 2020" }, { "code": null, "e": 29297, "s": 29044, "text": "Sometimes to analyze data using R, we need to convert data into another data type. As we know R has the following data types Numeric, Integer, Logical, Character, ...
Queue Reversal | Practice | GeeksforGeeks
Given a Queue Q containing N elements. The task is to reverse the Queue. Your task is to complete the function rev(), that reverses the N elements of the queue. Example 1: Input: 6 4 3 1 10 2 6 Output: 6 2 10 1 3 4 Explanation: After reversing the given elements of the queue , the resultant queue will be 6 2 10 1 3...
[ { "code": null, "e": 399, "s": 238, "text": "Given a Queue Q containing N elements. The task is to reverse the Queue. Your task is to complete the function rev(), that reverses the N elements of the queue." }, { "code": null, "e": 410, "s": 399, "text": "Example 1:" }, { ...
Write a function that counts the number of times a given int occurs in a Linked List - GeeksforGeeks
05 Apr, 2022 Given a singly linked list and a key, count the number of occurrences of the given key in the linked list. For example, if the given linked list is 1->2->1->2->1->3->1 and the given key is 1, then the output should be 4. Method 1- Without Recursion Algorithm: 1. Initialize count as zero. 2. Loop through...
[ { "code": null, "e": 24232, "s": 24204, "text": "\n05 Apr, 2022" }, { "code": null, "e": 24453, "s": 24232, "text": "Given a singly linked list and a key, count the number of occurrences of the given key in the linked list. For example, if the given linked list is 1->2->1->2->1->...
PySpark ML and XGBoost full integration tested on the Kaggle Titanic dataset | by Bogdan Cojocar | Towards Data Science
In this tutorial we will discuss about integrating PySpark and XGBoost using a standard machine learing pipeline. We will use data from the Titanic: Machine learning from disaster one of the many Kaggle competitions. Before getting started please know that you should be familiar with Apache Spark and Xgboost and Python...
[ { "code": null, "e": 285, "s": 171, "text": "In this tutorial we will discuss about integrating PySpark and XGBoost using a standard machine learing pipeline." }, { "code": null, "e": 388, "s": 285, "text": "We will use data from the Titanic: Machine learning from disaster one of...
How to display a 3D plot of a 3D array isosurface in matplotlib mplot3D or similar?
Let's take an example to see how to display a 3D plot of a 3D array isosurface in matplotlib − import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True x = np.arange(-5, 5, 0.25) y = np.arange(-5, 5,...
[ { "code": null, "e": 1157, "s": 1062, "text": "Let's take an example to see how to display a 3D plot of a 3D array isosurface in matplotlib −" }, { "code": null, "e": 1581, "s": 1157, "text": "import numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import A...
MySQL get hash value for each row?
Get hash value of each row using MD5() function from MySQL. The syntax is as follows − SELECT MD5(CONCAT(yourColumnName1,yourColumnName2,yourColumnName3,.......N)) as anyVariableName FROM yourTableName; To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create tabl...
[ { "code": null, "e": 1149, "s": 1062, "text": "Get hash value of each row using MD5() function from MySQL. The syntax is as follows −" }, { "code": null, "e": 1265, "s": 1149, "text": "SELECT MD5(CONCAT(yourColumnName1,yourColumnName2,yourColumnName3,.......N)) as anyVariableName...
Find elements of array using XOR of consecutive elements in C++
Consider we have to find a list of n elements. But we have the XOR value of two consecutive elements of the actual array. Also the first element of the actual is given. So if the array elements are a, b, c, d, e, f, then the given array will be a^b, b^c, c^d, d^e and e^f. As the first number is given, named a, that can...
[ { "code": null, "e": 1335, "s": 1062, "text": "Consider we have to find a list of n elements. But we have the XOR value of two consecutive elements of the actual array. Also the first element of the actual is given. So if the array elements are a, b, c, d, e, f, then the given array will be a^b, b^c...
AWT BorderLayout Class
The class BorderLayout arranges the components to fit in the five regions: east, west, north, south and center. Each region is can contain only one component and each component in each region is identified by the corresponding constant NORTH, SOUTH, EAST, WEST, and CENTER. Following is the declaration for java.awt.Bord...
[ { "code": null, "e": 2021, "s": 1747, "text": "The class BorderLayout arranges the components to fit in the five regions: east, west, north, south and center. Each region is can contain only one component and each component in each region is identified by the corresponding constant NORTH, SOUTH, EAS...
Program to calculate area and perimeter of equilateral triangle
Tringle is a closed figure with three sides. An equilateral triangle has all sides equal. Area and perimeter of an equilateral triangle can be found using the below formula, Area of equilateral triangle = (√3)/4*a2 Perimeter of equilateral triangle = 3 * a To find the area of an equilateral triangle program uses square...
[ { "code": null, "e": 1236, "s": 1062, "text": "Tringle is a closed figure with three sides. An equilateral triangle has all sides equal. Area and perimeter of an equilateral triangle can be found using the below formula," }, { "code": null, "e": 1277, "s": 1236, "text": "Area of ...
Roll In Animation Effect with CSS
To create a roll in animation effect with CSS, you can try to run the following code − Live Demo <html> <head> <style> .animated { background-image: url(/css/images/logo.png); background-repeat: no-repeat; background-position: left top; padding-top:95px;...
[ { "code": null, "e": 1149, "s": 1062, "text": "To create a roll in animation effect with CSS, you can try to run the following code −" }, { "code": null, "e": 1159, "s": 1149, "text": "Live Demo" }, { "code": null, "e": 2570, "s": 1159, "text": "<html>\n <he...
How to delete element from an array in MongoDB?
To delete element from an array, use $pull. Let us create a collection with documents − > db.demo279.insertOne({id:[101,103,105,110]}); { "acknowledged" : true, "insertedId" : ObjectId("5e490af7dd099650a5401a58") } > db.demo279.insertOne({id:[107,111,110]}); { "acknowledged" : true, "insertedId" : ObjectId(...
[ { "code": null, "e": 1150, "s": 1062, "text": "To delete element from an array, use $pull. Let us create a collection with documents −" }, { "code": null, "e": 1412, "s": 1150, "text": "> db.demo279.insertOne({id:[101,103,105,110]});\n{\n \"acknowledged\" : true,\n \"inserted...
Dashboard KPI essential Template — Hands-on Tableau Data Science | Medium | Towards Data Science
Key Performance Indicators (KPIs) are the bricks of any Dashboard, in any Business domain. A smart way to make those bricks is developing a KPI template, which is a set of expressions and parameters that blend data to explain the Business. Ok, but how can we make a KPI template? In this article, I’m going to explain an...
[ { "code": null, "e": 451, "s": 171, "text": "Key Performance Indicators (KPIs) are the bricks of any Dashboard, in any Business domain. A smart way to make those bricks is developing a KPI template, which is a set of expressions and parameters that blend data to explain the Business. Ok, but how can...
MongoDB – Multiply Operator ($mul)
10 May, 2020 MongoDB provides different types of field update operators to update the values of the fields of the documents and $mul operator is one of them. This operator is used to multiply the value of the field by a number. $mul operator only updates those fields whose value are of numeric type like int, float, etc...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 243, "s": 28, "text": "MongoDB provides different types of field update operators to update the values of the fields of the documents and $mul operator is one of them. This operator is used to multi...
Spy Number (Sum and Products of Digits are same)
01 Mar, 2021 A number is said to be a Spy number if the sum of all the digits is equal to the product of all digits. Examples : Input : 1412 Explanation : sum = (1 + 4 + 1 + 2) = 8 product = (1 * 4 * 1 * 2) = 8 since, sum == product == 8 Output : Spy Number Input : 132 Explanation : sum = (1 + 3 + 2) = 6 product =...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Mar, 2021" }, { "code": null, "e": 145, "s": 28, "text": "A number is said to be a Spy number if the sum of all the digits is equal to the product of all digits. Examples : " }, { "code": null, "e": 399, "s": 145, ...
Files copy() Method in Java with Examples
10 Jun, 2022 The copy() method of java.nio.file.Files Class is used to copy bytes from a file to I/O streams or from I/O streams to a file. I/O Stream means an input source or output destination representing different types of sources e.g. disk files. Methods: Based on the type of arguments passed, the Files class prov...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2022" }, { "code": null, "e": 267, "s": 28, "text": "The copy() method of java.nio.file.Files Class is used to copy bytes from a file to I/O streams or from I/O streams to a file. I/O Stream means an input source or output desti...
Introduction to Solidity
11 May, 2022 Solidity is a brand-new programming language created by the Ethereum which is the second-largest market of cryptocurrency by capitalization, released in the year 2015 led by Christian Reitwiessner. Some key features of solidity are listed below: Solidity is a high-level programming language designed for i...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 May, 2022" }, { "code": null, "e": 300, "s": 53, "text": "Solidity is a brand-new programming language created by the Ethereum which is the second-largest market of cryptocurrency by capitalization, released in the year 2015 led by ...
Python | Sort words of sentence in ascending order
22 Nov, 2019 Given a sentence, sort it alphabetically in ascending order. Examples: Input : to learn programming refer geeksforgeeks Output : geeksforgeeks learn programming refer to Input : geeks for geeks Output : for geeks geeks We will use built in library function to sort the words of the sentence in ascending o...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Nov, 2019" }, { "code": null, "e": 114, "s": 53, "text": "Given a sentence, sort it alphabetically in ascending order." }, { "code": null, "e": 124, "s": 114, "text": "Examples:" }, { "code": null, "e...
Circular Matrix (Construct a matrix with numbers 1 to m*n in spiral way)
11 Jul, 2022 Given two values m and n, fill a matrix of size ‘m*n’ in a spiral (or circular) fashion (clockwise) with natural numbers from 1 to m*n. Examples: Input : m = 4, n = 4 Output : 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 Input : m = 3, n = 4 Output : 1 2 3 4 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Jul, 2022" }, { "code": null, "e": 190, "s": 54, "text": "Given two values m and n, fill a matrix of size ‘m*n’ in a spiral (or circular) fashion (clockwise) with natural numbers from 1 to m*n." }, { "code": null, "e": 2...
QUOTE () function in MySQL - GeeksforGeeks
09 Dec, 2020 QUOTE() :This function in MySQL is used to return a result that can be used as a properly escaped data value in an SQL statement. The string is returned enclosed by single quotation marks and with each instance of backslash (\), single quote (‘), ASCII NULL, and Control+Z preceded by a backslash. If the ar...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n09 Dec, 2020" }, { "code": null, "e": 25914, "s": 25513, "text": "QUOTE() :This function in MySQL is used to return a result that can be used as a properly escaped data value in an SQL statement. The string is returned enclosed b...
Wand local_contrast() function - Python - GeeksforGeeks
07 Jul, 2021 The local_contrast() function is an inbuilt function in the Python Wand ImageMagick library which is used to increase light-dark transitions within the image. Syntax: local_contrast(radius, strength) Parameters: This function accepts two parameters as mentioned above and defined below: radius: This pa...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n07 Jul, 2021" }, { "code": null, "e": 25697, "s": 25537, "text": "The local_contrast() function is an inbuilt function in the Python Wand ImageMagick library which is used to increase light-dark transitions within the image. " ...
Intersection of n sets - GeeksforGeeks
23 Feb, 2022 Given n sets of integers of different sizes. Each set may contain duplicates also. How to find the intersection of all the sets. If an element is present multiple times in all the sets, it should be added that many times in the result.For example, consider there are three sets {1,2,2,3,4} {2,2,3,5,6} {1,3,...
[ { "code": null, "e": 25919, "s": 25891, "text": "\n23 Feb, 2022" }, { "code": null, "e": 26831, "s": 25919, "text": "Given n sets of integers of different sizes. Each set may contain duplicates also. How to find the intersection of all the sets. If an element is present multiple ...
Python Pillow - Blur an Image - GeeksforGeeks
28 Apr, 2022 Blurring an image is a process of reducing the level of noise in the image, and it is one of the important aspects of image processing. In this article, we will learn to blur an image using a pillow library. To blur an image we make use of some methods of ImageFilter class of this library on image objects....
[ { "code": null, "e": 25537, "s": 25509, "text": "\n28 Apr, 2022" }, { "code": null, "e": 25845, "s": 25537, "text": "Blurring an image is a process of reducing the level of noise in the image, and it is one of the important aspects of image processing. In this article, we will le...
Pattern compile(String) method in Java with Examples - GeeksforGeeks
31 Aug, 2021 The compile(String) method of the Pattern class in Java is used to create a pattern from the regular expression passed as parameter to method. Whenever you need to match a text against a regular expression pattern more than one time, create a Pattern instance using the Pattern.compile() method.Syntax: pub...
[ { "code": null, "e": 25645, "s": 25617, "text": "\n31 Aug, 2021" }, { "code": null, "e": 25949, "s": 25645, "text": "The compile(String) method of the Pattern class in Java is used to create a pattern from the regular expression passed as parameter to method. Whenever you need to...
Type Conversion in Python - GeeksforGeeks
13 May, 2022 Python defines type conversion functions to directly convert one data type to another which is useful in day-to-day and competitive programming. This article is aimed at providing information about certain conversion functions. There are two types of Type Conversion in Python: Implicit Type ConversionExpli...
[ { "code": null, "e": 24971, "s": 24943, "text": "\n13 May, 2022" }, { "code": null, "e": 25199, "s": 24971, "text": "Python defines type conversion functions to directly convert one data type to another which is useful in day-to-day and competitive programming. This article is ai...
Make an area plot in Python using Bokeh - GeeksforGeeks
22 Jun, 2020 Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Area plots are defined as the fi...
[ { "code": null, "e": 25565, "s": 25537, "text": "\n22 Jun, 2020" }, { "code": null, "e": 25840, "s": 25565, "text": "Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers ...
Python | Program to implement Jumbled word game - GeeksforGeeks
13 Sep, 2021 Python is a multipurpose language and one can do literally anything with it. Python can also be used for game development. Let’s create a simple Jumbled word game without using any external game libraries like PyGame. Jumbled word game: Jumbled word is given to player, player has to rearrange the character...
[ { "code": null, "e": 25949, "s": 25921, "text": "\n13 Sep, 2021" }, { "code": null, "e": 26167, "s": 25949, "text": "Python is a multipurpose language and one can do literally anything with it. Python can also be used for game development. Let’s create a simple Jumbled word game ...
Node.js process.abort() Method - GeeksforGeeks
10 May, 2021 The process.abort() property is an inbuilt application programming interface of the process module which is used to abort a running NodeJS process immediately. It also generates a core file. Syntax: process.abort() Parameter: This function does not accept any parameter. Return Type: It has a void return ty...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n10 May, 2021" }, { "code": null, "e": 26458, "s": 26267, "text": "The process.abort() property is an inbuilt application programming interface of the process module which is used to abort a running NodeJS process immediately. It ...
What is a use of DSNTIAR? How will you implement it in a COBOLDB2 program?
We use fields of SQLCA to enquire about the status of the most recently executed SQL query. The SQLCODE is one such field which can take the various values and each value indicates specific error code. For example, -180 error code represents incorrect timestamp format. However, in the logs we only get the error code an...
[ { "code": null, "e": 1481, "s": 1062, "text": "We use fields of SQLCA to enquire about the status of the most recently executed SQL query. The SQLCODE is one such field which can take the various values and each value indicates specific error code. For example, -180 error code represents incorrect t...
Can a Machine Learning Model Read Stock Charts and Predict Prices? | by Viraf | Towards Data Science
Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details. Most of the ML model...
[ { "code": null, "e": 471, "s": 171, "text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession...
Bits manipulation (Important tactics) - GeeksforGeeks
07 Feb, 2022 Prerequisites : Bitwise operators in C, Bitwise Hacks for Competitive Programming, Bit Tricks for Competitive Programming Compute XOR from 1 to n (direct method) : Compute XOR from 1 to n (direct method) : CPP Javascript // Direct XOR of all numbers from 1 to nint computeXOR(int n){ if (n % 4 == 0)...
[ { "code": null, "e": 24710, "s": 24682, "text": "\n07 Feb, 2022" }, { "code": null, "e": 24833, "s": 24710, "text": "Prerequisites : Bitwise operators in C, Bitwise Hacks for Competitive Programming, Bit Tricks for Competitive Programming " }, { "code": null, "e": 248...
Check if given string can be made Palindrome by removing only single type of character | Set-2 - GeeksforGeeks
06 Jan, 2022 Given a string S, the task is to whether a string can be made palindrome after removing the occurrences of the same character, any number of times Examples: Input: S = “abczdzacb“Output: YesExplanation: Remove first and second occurrence of character ‘a’. String S becomes “bczdzcb”, which is a palindrome. ...
[ { "code": null, "e": 26250, "s": 26222, "text": "\n06 Jan, 2022" }, { "code": null, "e": 26397, "s": 26250, "text": "Given a string S, the task is to whether a string can be made palindrome after removing the occurrences of the same character, any number of times" }, { "c...
Python - Index Frequency Alphabet List - GeeksforGeeks
11 Sep, 2021 Create a String list with each character repeated as much as its position number. Method #1 : Using ascii_lowercase + ord() + loop In this, task of getting index is done using ord(), and ascii lowercase() is used for extracting alphabets. Loop is used to perform task for each letter. Python3 # Python3 code...
[ { "code": null, "e": 24475, "s": 24447, "text": "\n11 Sep, 2021" }, { "code": null, "e": 24557, "s": 24475, "text": "Create a String list with each character repeated as much as its position number." }, { "code": null, "e": 24606, "s": 24557, "text": "Method #...
Python | Numpy matrix.astype() - GeeksforGeeks
10 Apr, 2019 With the help of Numpy matrix.astype() method, we are able to convert the type of matrix but the problem is data loss if we want to convert float to int then some of the data will loss. This method helps in type conversion of a matrix. Syntax : matrix.astype() Return : Return the matrix after type conversi...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n10 Apr, 2019" }, { "code": null, "e": 25883, "s": 25647, "text": "With the help of Numpy matrix.astype() method, we are able to convert the type of matrix but the problem is data loss if we want to convert float to int then some ...
Tutorial: Google Vision API with Python and Heroku | by Evan Fang | Towards Data Science
As we learned before, Google Vision AI could be divided into two parts, AutoML Vision and Vision API. For the Vision API reference, here is the previous post talking about what could Vision API does, how to create an API key, and then query it with curl. towardsdatascience.com Today, we are going to learn how to use it...
[ { "code": null, "e": 427, "s": 172, "text": "As we learned before, Google Vision AI could be divided into two parts, AutoML Vision and Vision API. For the Vision API reference, here is the previous post talking about what could Vision API does, how to create an API key, and then query it with curl."...
How MySQL LEFT JOIN can be used to simulate the MySQL MINUS query?
Since we cannot use MINUS query in MySQL, we will use LEFT JOIN to simulate the MINUS query. It can be understood with the help of the following example: In this example, we are two tables namely Student_detail and Student_info having the following data − mysql> Select * from Student_detail; +-----------+---------+----...
[ { "code": null, "e": 1216, "s": 1062, "text": "Since we cannot use MINUS query in MySQL, we will use LEFT JOIN to simulate the MINUS query. It can be understood with the help of the following example:" }, { "code": null, "e": 1318, "s": 1216, "text": "In this example, we are two ...
JavaScript - Date getMinutes() Method
Javascript date getMinutes() method returns the minutes in the specified date according to local time. The value returned by getMinutes() is an integer between 0 and 59. Its syntax is as follows − Date.getMinutes() Returns the minutes in the specified date according to local time. Try the following example. <html> ...
[ { "code": null, "e": 2636, "s": 2466, "text": "Javascript date getMinutes() method returns the minutes in the specified date according to local time. The value returned by getMinutes() is an integer between 0 and 59." }, { "code": null, "e": 2663, "s": 2636, "text": "Its syntax i...
How to import other Python files?
To use any package in your code, you must first make it accessible. You have to import it. You can't use anything in Python before it is defined. Some things are built in, for example the basic types (like int, float, etc) can be used whenever you want. But most things you will want to do will need a little more than t...
[ { "code": null, "e": 1516, "s": 1062, "text": "To use any package in your code, you must first make it accessible. You have to import it. You can't use anything in Python before it is defined. Some things are built in, for example the basic types (like int, float, etc) can be used whenever you want....
Feature Engineering Techniques. Mapping raw data to machine learning... | by Samuel Ozechi | Towards Data Science
Feature engineering is one of the key steps in developing machine learning models. This involves any of the processes of selecting, aggregating, or extracting features from raw data with the aim of mapping the raw data to machine learning features. The type of feature engineering process that is applied to a data depen...
[ { "code": null, "e": 421, "s": 172, "text": "Feature engineering is one of the key steps in developing machine learning models. This involves any of the processes of selecting, aggregating, or extracting features from raw data with the aim of mapping the raw data to machine learning features." }, ...
JavaMail API - Sending an HTML Email
Here is an example to send an HTML email from your machine. Here we have used JangoSMPT server via which emails are sent to our destination email address. The setup is explained in the Environment Setup chapter. This example is very similar to sending simple email, except that, here we are using setContent() method to...
[ { "code": null, "e": 2284, "s": 2071, "text": "Here is an example to send an HTML email from your machine. Here we have used JangoSMPT server via which emails are sent to our destination email address. The setup is explained in the Environment Setup chapter." }, { "code": null, "e": 256...
0 - 1 Knapsack Problem | Practice | GeeksforGeeks
You are given weights and values of N items, put these items in a knapsack of capacity W to get the maximum total value in the knapsack. Note that we have only one quantity of each item. In other words, given two integer arrays val[0..N-1] and wt[0..N-1] which represent values and weights associated with N items respec...
[ { "code": null, "e": 832, "s": 238, "text": "You are given weights and values of N items, put these items in a knapsack of capacity W to get the maximum total value in the knapsack. Note that we have only one quantity of each item.\nIn other words, given two integer arrays val[0..N-1] and wt[0..N-1]...
Count changes in Led Lights to display digits one by one - GeeksforGeeks
23 Mar, 2021 Given a number n. Count the number of changes in LED light when display one after another of a given number. (Initially all LED is off). Number is given input in the form of a string. See this image of seven segment display for better understanding.Examples: Input : n = "082" Output : 9 We need 6 LED lig...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n23 Mar, 2021" }, { "code": null, "e": 26358, "s": 26097, "text": "Given a number n. Count the number of changes in LED light when display one after another of a given number. (Initially all LED is off). Number is given input in t...
Plot Live Graphs using Python Dash and Plotly - GeeksforGeeks
16 Jul, 2020 Dash is a Python framework built on top of ReactJS, Plotly and Flask. It is used to create interactive web dashboards using just python. Live graphs are particularly necessary for certain applications such as medical tests, stock data, or basically for any kind of data that changes in a very short amount o...
[ { "code": null, "e": 24727, "s": 24699, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25482, "s": 24727, "text": "Dash is a Python framework built on top of ReactJS, Plotly and Flask. It is used to create interactive web dashboards using just python. Live graphs are particular...
How to change password of superuser in Django? - GeeksforGeeks
04 Jan, 2021 Django provides us Admin Panel for it’s users to look over the database and other activities. If you dont know how to create superuser then you can refer to How to create superuser in Django? How to change password of superuser in Django? For changing password of superuser, first reach the same directory a...
[ { "code": null, "e": 25673, "s": 25645, "text": "\n04 Jan, 2021" }, { "code": null, "e": 25865, "s": 25673, "text": "Django provides us Admin Panel for it’s users to look over the database and other activities. If you dont know how to create superuser then you can refer to How to...
jQuery UI Buttonset enable() Method - GeeksforGeeks
07 Jan, 2022 jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI buttonset widget is used to give a visual grouping for a group of related buttons. The jQuery UI buttonset enable() method is ...
[ { "code": null, "e": 27144, "s": 27116, "text": "\n07 Jan, 2022" }, { "code": null, "e": 27408, "s": 27144, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpag...
How to Convert Hexadecimal to Decimal?
Whereas Hexadecimal number is one of the number systems which has value is 16 and it has only 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and 15 respectively. Whereas Decimal system is most familiar number sy...
[ { "code": null, "e": 1484, "s": 1062, "text": "Whereas Hexadecimal number is one of the number systems which has value is 16 and it has only 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and...
Lambda expression in C++
C++ STL includes useful generic functions like std::for_each. Unfortunately they can also be quite cumbersome to use, particularly if the functor you would like to apply is unique to the particular function. So this function that you'll create will be in that namespace just being used at that one place. The solution to...
[ { "code": null, "e": 1418, "s": 1062, "text": "C++ STL includes useful generic functions like std::for_each. Unfortunately they can also be quite cumbersome to use, particularly if the functor you would like to apply is unique to the particular function. So this function that you'll create will be i...
COVID-19 Data Collection: A Python & API Story. | by Somesh Routray | Towards Data Science
This context will be a brief discussion on the collection of data from an API using python. The agenda for this will be as below. Connect to API using pythonParse the data collected into a CSV formatA little touch of Python Pandas Connect to API using python Parse the data collected into a CSV format A little touch of ...
[ { "code": null, "e": 302, "s": 172, "text": "This context will be a brief discussion on the collection of data from an API using python. The agenda for this will be as below." }, { "code": null, "e": 403, "s": 302, "text": "Connect to API using pythonParse the data collected into...
Impala - Truncate a Table
The Truncate Table Statement of Impala is used to remove all the records from an existing table. You can also use DROP TABLE command to delete a complete table, but it would remove the complete table structure from the database and you would need to re-create this table once again if you wish you store some data. Follo...
[ { "code": null, "e": 2382, "s": 2285, "text": "The Truncate Table Statement of Impala is used to remove all the records from an existing table." }, { "code": null, "e": 2600, "s": 2382, "text": "You can also use DROP TABLE command to delete a complete table, but it would remove t...
Fraud detection with cost-sensitive machine learning | by Roman Moser | Towards Data Science
In traditional two-class classification problems we aim to minimize misclassifications and measure the model performance with metrics like Accuracy, F-score or the AUC-ROC Curve. In certain problems, however, it is for the best to allow more misclassifications at the benefit of lower total costs. If costs associated wi...
[ { "code": null, "e": 643, "s": 172, "text": "In traditional two-class classification problems we aim to minimize misclassifications and measure the model performance with metrics like Accuracy, F-score or the AUC-ROC Curve. In certain problems, however, it is for the best to allow more misclassifica...
Model Evaluation and Parameter Tuning | Towards Data Science
In the previous article, we built an ANN to solve a binary classification problem. If you remember, one question left for homework is why we used [[]] for new customer data. The answer is we need to put a customer data in a horizontal vector, not a vertical vector because all observations in the input data are in lines...
[ { "code": null, "e": 532, "s": 171, "text": "In the previous article, we built an ANN to solve a binary classification problem. If you remember, one question left for homework is why we used [[]] for new customer data. The answer is we need to put a customer data in a horizontal vector, not a vertic...
MATLAB - Bitwise Operations
MATLAB provides various functions for bit-wise operations like 'bitwise and', 'bitwise or' and 'bitwise not' operations, shift operation, etc. The following table shows the commonly used bitwise operations − Create a script file and type the following code − a = 60; % 60 = 0011 1100 b = 13; ...
[ { "code": null, "e": 2284, "s": 2141, "text": "MATLAB provides various functions for bit-wise operations like 'bitwise and', 'bitwise or' and 'bitwise not' operations, shift operation, etc." }, { "code": null, "e": 2349, "s": 2284, "text": "The following table shows the commonly ...
java.net.BindException in Java with Examples - GeeksforGeeks
03 Mar, 2021 The java.net.BindException is an exception that is thrown when there is an error caused in binding when an application tries to bind a socket to a local address and port. Mostly, this may occur due to 2 reasons, either the port is already in use(due to another application) or the address requested just can...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n03 Mar, 2021" }, { "code": null, "e": 24426, "s": 23948, "text": "The java.net.BindException is an exception that is thrown when there is an error caused in binding when an application tries to bind a socket to a local address an...
Data to Text generation with T5; Building a simple yet advanced NLG model | by Mathew Alexander | Towards Data Science
The Data to text generation capability of NLG models is something that I have been exploring since the inception of sequence to sequence models in the field of NLP. The earlier attempts to tackle this problem were not showing any promising results. The non- ML Rule-based approaches like simple NLG did not seem to scale...
[ { "code": null, "e": 769, "s": 172, "text": "The Data to text generation capability of NLG models is something that I have been exploring since the inception of sequence to sequence models in the field of NLP. The earlier attempts to tackle this problem were not showing any promising results. The no...
How to Manipulate a Pandas Dataframe in SQL | by Angelica Lo Duca | Towards Data Science
In this tutorial, I illustrate some tricks to manipulate a Python Pandas Dataframe, using SQL queries. In details, I cover the following topic: Missing Values (removal and replacement) Dataframe Ordering Dropping Duplicates Merge two Dataframe (Union and Intersection) In order to query a Pandas Dataframe through SQL qu...
[ { "code": null, "e": 315, "s": 171, "text": "In this tutorial, I illustrate some tricks to manipulate a Python Pandas Dataframe, using SQL queries. In details, I cover the following topic:" }, { "code": null, "e": 356, "s": 315, "text": "Missing Values (removal and replacement)" ...
Python time sleep() Method
Python time method sleep() suspends execution for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal's catching ...
[ { "code": null, "e": 2406, "s": 2244, "text": "Python time method sleep() suspends execution for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time." }, { "code": null, "e": 2573, "s": 2406, "text": "The actual suspensio...
SQL Tryit Editor v1.6
SELECT COUNT(CustomerID), Country FROM Customers GROUP BY Country ORDER BY COUNT(CustomerID) DESC; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not suppor...
[ { "code": null, "e": 34, "s": 0, "text": "SELECT COUNT(CustomerID), Country" }, { "code": null, "e": 49, "s": 34, "text": "FROM Customers" }, { "code": null, "e": 66, "s": 49, "text": "GROUP BY Country" }, { "code": null, "e": 99, "s": 66, ...
Kotlin list : listOf()
02 Jul, 2021 A list is a generic ordered collection of elements. Kotlin has two types of lists, immutable lists (cannot be modified) and mutable lists (can be modified). Read-only lists are created with listOf() whose elements can not be modified and mutable lists created with mutableListOf() method where we alter or m...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jul, 2021" }, { "code": null, "e": 435, "s": 52, "text": "A list is a generic ordered collection of elements. Kotlin has two types of lists, immutable lists (cannot be modified) and mutable lists (can be modified). Read-only lists a...
PySpark Count Distinct from DataFrame
06 Apr, 2022 In this article, we will discuss how to count distinct values present in the Pyspark DataFrame. In Pyspark, there are two ways to get the count of distinct values. We can use distinct() and count() functions of DataFrame to get the count distinct of PySpark DataFrame. Another way is to use SQL countDistin...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Apr, 2022" }, { "code": null, "e": 125, "s": 28, "text": "In this article, we will discuss how to count distinct values present in the Pyspark DataFrame. " }, { "code": null, "e": 501, "s": 125, "text": "In Pyspar...
Directives in JSP
16 Jun, 2022 JSP directives are the elements of a JSP source code that guide the web container on how to translate the JSP page into it’s respective servlet. Syntax : @ <%@ directive attribute = "value"%> Directives can have a number of attributes which you can list down as key-value pairs and separated by commas. The ...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 208, "s": 52, "text": "JSP directives are the elements of a JSP source code that guide the web container on how to translate the JSP page into it’s respective servlet. Syntax : @" }, { "cod...
Redux – Basic Understanding of the Concepts for Beginners
24 Feb, 2021 Redux is one of the most confusing and probably a difficult topic for someone who is trying to learn it from scratch. But why?? Is the reason is the number of boilerplates or the terminologies in Redux that turned you off from learning it? You are searching for a Redux guide, you read some blogs/tutorials...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Feb, 2021" }, { "code": null, "e": 182, "s": 54, "text": "Redux is one of the most confusing and probably a difficult topic for someone who is trying to learn it from scratch. But why??" }, { "code": null, "e": 295, ...
tag_name element method – Selenium Python
30 Apr, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Apr, 2020" }, { "code": null, "e": 585, "s": 28, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium ...
How to create pie chart in react using material UI and DevExpress ?
19 Jul, 2021 DevExpress: DevExpress is a package for controlling and building the user interface of the Window, Mobile, and other applications. Pie Charts: A pie chart is a circular statistical graphic, which is divided into slices to illustrate numerical proportions. It depicts a special chart that uses “pie slices”, ...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jul, 2021" }, { "code": null, "e": 159, "s": 28, "text": "DevExpress: DevExpress is a package for controlling and building the user interface of the Window, Mobile, and other applications." }, { "code": null, "e": 388, ...
Fakemailer – Send email anonymously in Kali Linux
23 Aug, 2021 Anonymity plays an important role in the life of a cybersecurity researchers and law and enforcement agencies. Sometimes a situation occurs in which you have to send an email anonymously to another security researcher in order to maintain integrity which is a third important part of the CIA model. So here ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 805, "s": 28, "text": "Anonymity plays an important role in the life of a cybersecurity researchers and law and enforcement agencies. Sometimes a situation occurs in which you have to send an email ...
Python | Search elements in a Matrix
30 Dec, 2020 Python supports a list as its list element and hence a matrix can be formed. Sometimes we might have a utility in which we require to perform a search in that list of list i.e matrix and its a very common in all the domains of coding. Let’s discuss certain ways in which this can be performed. Method #1 : U...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2020" }, { "code": null, "e": 322, "s": 28, "text": "Python supports a list as its list element and hence a matrix can be formed. Sometimes we might have a utility in which we require to perform a search in that list of list i.e...
How to get Time Difference in Minutes in PHP ?
26 May, 2021 In this article, we will learn how to get time difference in minutes using PHP. We will be using the built-in function date_diff() to get the time difference in minutes. For this, we will be needed a start date and end date to calculate their time difference in minutes using the date_diff() function. Synt...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2021" }, { "code": null, "e": 109, "s": 28, "text": "In this article, we will learn how to get time difference in minutes using PHP. " }, { "code": null, "e": 331, "s": 109, "text": "We will be using the buil...
Importance of yield() method in Java?
A yield() method is a static method of Thread class and it can stop the currently executing thread and will give a chance to other waiting threads of the same priority. If in case there are no waiting threads or if all the waiting threads have low priority then the same thread will continue its execution. The advantage...
[ { "code": null, "e": 1546, "s": 1062, "text": "A yield() method is a static method of Thread class and it can stop the currently executing thread and will give a chance to other waiting threads of the same priority. If in case there are no waiting threads or if all the waiting threads have low prior...
JavaScript Array reduce() Method
Javascript array reduce() method applies a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value. Its syntax is as follows − array.reduce(callback[, initialValue]); callback − Function to execute on each value in the array. callback − Function to execute on each...
[ { "code": null, "e": 2621, "s": 2466, "text": "Javascript array reduce() method applies a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value." }, { "code": null, "e": 2648, "s": 2621, "text": "Its syntax is as follows −"...
Pascal - Relational Operators
Following table shows all the relational operators supported by Pascal. Assume variable A holds 10 and variable B holds 20, then − Try the following example to understand all the relational operators available in Pascal programming language − program showRelations; var a, b: integer; begin a := 21; b := 10; ...
[ { "code": null, "e": 2214, "s": 2083, "text": "Following table shows all the relational operators supported by Pascal. Assume variable A holds 10 and variable B holds 20, then −" }, { "code": null, "e": 2326, "s": 2214, "text": "Try the following example to understand all the rel...
Code Coverage Tutorial (Branch, Statement, Decision, FSM)
The ultimate goal of any software development company is to provide high-quality software. The software must be properly tested in order to reach this goal. As a result, testing is an important aspect of the software development process. As a result, it's critical that the software generated be evaluated by the develop...
[ { "code": null, "e": 1219, "s": 1062, "text": "The ultimate goal of any software development company is to provide high-quality software. The software must be properly tested in order to reach this goal." }, { "code": null, "e": 1518, "s": 1219, "text": "As a result, testing is a...
Jython - Quick Guide
Jython is the JVM implementation of the Python programming language. It is designed to run on the Java platform. A Jython program can import and use any Java class. Just as Java, Jython program compiles to bytecode. One of the main advantages is that a user interface designed in Python can use GUI elements of AWT, Swin...
[ { "code": null, "e": 2419, "s": 2081, "text": "Jython is the JVM implementation of the Python programming language. It is designed to run on the Java platform. A Jython program can import and use any Java class. Just as Java, Jython program compiles to bytecode. One of the main advantages is that a ...
MySQL query to skip the duplicate and select only one from the duplicated values
The syntax is as follows to skip the duplicate value and select only one from the duplicated values − select min(yourColumnName1),yourColumnName2 from yourTableName group by yourColumnName2; To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create table doNotSelec...
[ { "code": null, "e": 1164, "s": 1062, "text": "The syntax is as follows to skip the duplicate value and select only one from the duplicated values −" }, { "code": null, "e": 1253, "s": 1164, "text": "select min(yourColumnName1),yourColumnName2 from yourTableName group by\nyourCol...
How to delete lines from a Python tkinter canvas?
The Canvas widget has many use-cases in GUI application development. We can use a Canvas widget to draw shapes, creating graphics, images, and many other things. To draw a line in Canvas, we can use create_line(x,y,x1,y1, **options) method. In Tkinter, we can draw two types of lines − simple and dashed. If you want you...
[ { "code": null, "e": 1367, "s": 1062, "text": "The Canvas widget has many use-cases in GUI application development. We can use a Canvas widget to draw shapes, creating graphics, images, and many other things. To draw a line in Canvas, we can use create_line(x,y,x1,y1, **options) method. In Tkinter, ...
The Ubiquitous Binary Search | Set 1
14 Jun, 2022 We all aware of binary search algorithm. Binary search is easiest difficult algorithm to get it right. I present some interesting problems that I collected on binary search. There were some requests on binary search. I request you to honor the code, “I sincerely attempt to solve the problem and ensure ther...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jun, 2022" }, { "code": null, "e": 712, "s": 54, "text": "We all aware of binary search algorithm. Binary search is easiest difficult algorithm to get it right. I present some interesting problems that I collected on binary search. ...
Data Visualization in R
26 Apr, 2022 Data visualization is the technique used to deliver insights in data using visual cues such as graphs, charts, maps, and many others. This is useful as it helps in intuitive and easy understanding of the large quantities of data and thereby make better decisions regarding it. The popular data visualization...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Apr, 2022" }, { "code": null, "e": 305, "s": 28, "text": "Data visualization is the technique used to deliver insights in data using visual cues such as graphs, charts, maps, and many others. This is useful as it helps in intuitive a...
Python OpenCV – waitKey() Function
17 Oct, 2021 waitkey() function of Python OpenCV allows users to display a window for given milliseconds or until any key is pressed. It takes time in milliseconds as a parameter and waits for the given time to destroy the window, if 0 is passed in the argument it waits till any key is pressed. Using waitKey() method ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Oct, 2021" }, { "code": null, "e": 312, "s": 28, "text": "waitkey() function of Python OpenCV allows users to display a window for given milliseconds or until any key is pressed. It takes time in milliseconds as a parameter and waits...
Print Fibonacci Series in reverse order using Recursion
01 Dec, 2021 Given an integer N, the task is to print the first N terms of the Fibonacci series in reverse order using Recursion. Examples: Input: N = 5Output: 3 2 1 1 0Explanation: First five terms are – 0 1 1 2 3. Input: N = 10Output: 34 21 13 8 5 3 2 1 1 0 Approach: The idea is to use recursion in a way that keeps ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Dec, 2021" }, { "code": null, "e": 145, "s": 28, "text": "Given an integer N, the task is to print the first N terms of the Fibonacci series in reverse order using Recursion." }, { "code": null, "e": 155, "s": 145, ...
Maximum length possible by cutting N given woods into at least K pieces
23 Jun, 2022 Given an array wood[] of size N, representing the length of N pieces of wood and an integer K, at least K pieces of the same length need to be cut from the given wooden pieces. The task is to find the maximum possible length of these K wooden pieces that can be obtained. Examples: Input: wood[] = {5, 9, 7}...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 324, "s": 52, "text": "Given an array wood[] of size N, representing the length of N pieces of wood and an integer K, at least K pieces of the same length need to be cut from the given wooden piece...
Python Program to print all permutations of a given string
13 Jan, 2022 A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation. Source: Mathword(http://mathworld.wolfram.com/Permutation.html) Below are the permutations of strin...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jan, 2022" }, { "code": null, "e": 262, "s": 54, "text": "A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string...
List View Search list on typing with filter like keyword search using jQuery?
Let’s the following is our input type, wherein the user will search − <input type="text" class="txtInput" id="searchTheKey" placeholder="Enter the keywords to search....."> Now, use hide() and show() to display only relevant search and hide rest. For example, on typing “Ja”, related keywords like “Java” and “JavaScript...
[ { "code": null, "e": 1257, "s": 1187, "text": "Let’s the following is our input type, wherein the user will search −" }, { "code": null, "e": 1360, "s": 1257, "text": "<input type=\"text\" class=\"txtInput\" id=\"searchTheKey\" placeholder=\"Enter the keywords to search.....\">" ...
How to darken an Image using CSS ?
30 Jul, 2021 Method 1: Using the filter property: The filter property is used to apply various graphical effects to an element. The brightness() function can be used as a value to apply a linear multiplier to make it appear darker or lighter than the original. To make an image darker, any value below 100% could be used...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2021" }, { "code": null, "e": 376, "s": 28, "text": "Method 1: Using the filter property: The filter property is used to apply various graphical effects to an element. The brightness() function can be used as a value to apply a ...
How to extract the last row from list of a data frame in R?
Suppose we have two frames each having 5 columns that are stored in a list in R and we want to extract the last row from each data frame then we can use the lapply function. For example, if we have a list called LIST that contains the data frames described above then we can extract the last row from each data frame usi...
[ { "code": null, "e": 1543, "s": 1187, "text": "Suppose we have two frames each having 5 columns that are stored in a list in R and we want to extract the last row from each data frame then we can use the lapply function. For example, if we have a list called LIST that contains the data frames descri...
Program for N-th term of Geometric Progression series
25 Feb, 2021 Given first term (a), common ratio (r) and a integer N of the Geometric Progression series, the task is to find Nth term of the series.Examples : Input : a = 2 r = 2, N = 4 Output : The 4th term of the series is : 16 Input : a = 2 r = 3, N = 5 Output : The 5th term of the series is : 162 Approach: We ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Feb, 2021" }, { "code": null, "e": 200, "s": 52, "text": "Given first term (a), common ratio (r) and a integer N of the Geometric Progression series, the task is to find Nth term of the series.Examples : " }, { "code": null...
Tailwind CSS Resize
23 Mar, 2022 This class accepts lots of value in tailwind CSS in which all the properties are covered as a class form. This class is used to resize the element according to user requirements. It does not apply to inline elements or to block elements where overflow is visible. In CSS, we do that by using the CSS resize ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 346, "s": 28, "text": "This class accepts lots of value in tailwind CSS in which all the properties are covered as a class form. This class is used to resize the element according to user requiremen...
Regular Expression in Python with Examples | Set 1
08 Jun, 2022 A Regular Expressions (RegEx) is a special sequence of characters that uses a search pattern to find a string or set of strings. It can detect the presence or absence of a text by matching it with a particular pattern, and also can split a pattern into one or more sub-patterns. Python provides a re module ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 550, "s": 54, "text": "A Regular Expressions (RegEx) is a special sequence of characters that uses a search pattern to find a string or set of strings. It can detect the presence or absence of a te...
What is the difference between Python’s Module, Package and Library?
10 Jul, 2020 Module: The module is a simple Python file that contains collections of functions and global variables and with having a .py extension file. It is an executable file and to organize all the modules we have the concept called Package in Python. Example: Save the code in file called demo_module.py def myModu...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Jul, 2020" }, { "code": null, "e": 298, "s": 54, "text": "Module: The module is a simple Python file that contains collections of functions and global variables and with having a .py extension file. It is an executable file and to o...
How to find index of a given element in a Vector in C++
06 Jul, 2022 Given a vector V consisting of N integers and an element K, the task is to find the index of element K in the vector V. If the element does not exist in vector then print -1. Examples: Input: V = {1, 45, 54, 71, 76, 17}, K = 54 Output: 2 Explanation : The index of 54 is 2, hence output is 2.Input: V = {3,...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 227, "s": 52, "text": "Given a vector V consisting of N integers and an element K, the task is to find the index of element K in the vector V. If the element does not exist in vector then print -1....
What is JSON Array ?
27 Dec, 2021 JSON Array is almost same as JavaScript Array. JSON array can store values of type string, array, boolean, number, object, or null. In JSON array, values are separated by commas. Array elements can be accessed using the [] operator. JSON Array is of different types. Let’s understand them with the help of e...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 261, "s": 28, "text": "JSON Array is almost same as JavaScript Array. JSON array can store values of type string, array, boolean, number, object, or null. In JSON array, values are separated by comm...
Min and Max in a List in Java
24 Jun, 2022 Given an unsorted list of integers, find maximum and minimum values in it. Input : list = [10, 4, 3, 2, 1, 20] Output : max = 20, min = 1 Input : list = [10, 400, 3, 2, 1, -1] Output : max = 400, min = -1 Sorting This is least efficient approach but will get the work done. The idea is to sort the list in...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Jun, 2022" }, { "code": null, "e": 128, "s": 53, "text": "Given an unsorted list of integers, find maximum and minimum values in it." }, { "code": null, "e": 260, "s": 128, "text": "Input : list = [10, 4, 3, 2, 1...
Minimum number of Appends needed to make a string palindrome in C++
Given a string, find minimum characters to be appended to make a string palindrome. If string is abcac then we can make string palindrome by appending 2 highlighed characters i.e. abcacba Check if string is already palindrome, if yes then no need to append any characters. One by one remove a character from string and c...
[ { "code": null, "e": 1271, "s": 1187, "text": "Given a string, find minimum characters to be appended to make a string palindrome." }, { "code": null, "e": 1375, "s": 1271, "text": "If string is abcac then we can make string palindrome by appending 2 highlighed characters i.e. ab...
How to push data into firebase Realtime Database using ReactJS ?
17 Jun, 2021 The following approach covers how to push data into firebase’s real-time database using react. We have used the firebase module to achieve so. Creating React Application And Installing Module: Step 1: Create a React-app using the following command: npx create-react-app myapp Step 2: After creating your pro...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Jun, 2021" }, { "code": null, "e": 196, "s": 53, "text": "The following approach covers how to push data into firebase’s real-time database using react. We have used the firebase module to achieve so." }, { "code": null, ...
Introduction To Subnetting
07 Jun, 2022 When a bigger network is divided into smaller networks, to maintain security, then that is known as Subnetting. So, maintenance is easier for smaller networks. Now, let’s talk about dividing a network into two parts: To divide a network into two parts, you need to choose one bit for each Subnet from the ho...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jun, 2022" }, { "code": null, "e": 371, "s": 52, "text": "When a bigger network is divided into smaller networks, to maintain security, then that is known as Subnetting. So, maintenance is easier for smaller networks. Now, let’s tal...
Packages in R Programming - GeeksforGeeks
22 Nov, 2021 The package is an appropriate way to organize the work and share it with others. Typically, a package will include code (not only R code!), documentation for the package and the functions inside, some tests to check everything works as it should, and data sets. Packages in R Programming language are a set...
[ { "code": null, "e": 30315, "s": 30287, "text": "\n22 Nov, 2021" }, { "code": null, "e": 30578, "s": 30315, "text": "The package is an appropriate way to organize the work and share it with others. Typically, a package will include code (not only R code!), documentation for the p...
Visualizing Bubble sort using Python - GeeksforGeeks
11 Oct, 2020 Prerequisites: Introduction to Matplotlib, Introduction to PyQt5, Bubble Sort Learning any algorithm can be difficult, and since you are here at GeekforGeeks, you definitely love to understand and implement various algorithms. It is tough for every one of us to understand algorithms at the first go. We ten...
[ { "code": null, "e": 31547, "s": 31519, "text": "\n11 Oct, 2020" }, { "code": null, "e": 31625, "s": 31547, "text": "Prerequisites: Introduction to Matplotlib, Introduction to PyQt5, Bubble Sort" }, { "code": null, "e": 32113, "s": 31625, "text": "Learning any...