title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python program to find GSoC organisations that use a Particular Programming Language - GeeksforGeeks | 19 Feb, 2020
Currently, it’s not possible to sort GSoC participating organizations by the programming languages they use in their code. This results in students spending a lot of time going through each organization’s page and manually sorting through them.
This article introduces a way for students to write their own ... | [
{
"code": null,
"e": 23927,
"s": 23899,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 24172,
"s": 23927,
"text": "Currently, it’s not possible to sort GSoC participating organizations by the programming languages they use in their code. This results in students spending a lot ... |
KNN in Python. You will learn about a very simple yet... | by Czako Zoltan | Towards Data Science | In this article you will learn about a very simple yet powerful algorithm called KNN or K-Nearest Neighbor. The first sections will contain a detailed yet clear explanation of this algorithm. At the end of this article you can find an example using KNN (implemented in python).
KNN is a very popular algorithm, it is one... | [
{
"code": null,
"e": 450,
"s": 172,
"text": "In this article you will learn about a very simple yet powerful algorithm called KNN or K-Nearest Neighbor. The first sections will contain a detailed yet clear explanation of this algorithm. At the end of this article you can find an example using KNN (i... |
What is a Variational Autoencoder? | by Roman Paolucci | Towards Data Science | Generative machine learning can be helpful in a variety of contexts. One, for example, is when some closed-form or quasi-closed-form solution is available but computationally expensive. In this case, a neural network may provide a timely solution with an acceptable degree of accuracy. Nevertheless, to train such a netw... | [
{
"code": null,
"e": 717,
"s": 171,
"text": "Generative machine learning can be helpful in a variety of contexts. One, for example, is when some closed-form or quasi-closed-form solution is available but computationally expensive. In this case, a neural network may provide a timely solution with an ... |
Area of the circle that has a square and a circle inscribed in it - GeeksforGeeks | 24 Feb, 2022
Given the side of a square a which is kept inside a circle. It keeps expanding until all four of its vertices touch the circumference of the circle. Another smaller circle is kept inside the square now and it keeps expanding until its circumference touches all the four sides of the square. The outer and th... | [
{
"code": null,
"e": 25232,
"s": 25204,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 25632,
"s": 25232,
"text": "Given the side of a square a which is kept inside a circle. It keeps expanding until all four of its vertices touch the circumference of the circle. Another smalle... |
Inverse Projection Transformation | by Daryl Tan | Towards Data Science | When an image of a scene is captured by a camera, we lose depth information as objects and points in 3D space are mapped onto a 2D image plane. This is also known as a projective transformation, in which points in the world are converted to pixels on a 2d plane.
However, what if we want to do the inverse? That is, we w... | [
{
"code": null,
"e": 435,
"s": 172,
"text": "When an image of a scene is captured by a camera, we lose depth information as objects and points in 3D space are mapped onto a 2D image plane. This is also known as a projective transformation, in which points in the world are converted to pixels on a 2d... |
Machine Learning Techniques applied to Stock Price Prediction | by Yibin Ng | Towards Data Science | Machine learning has many applications, one of which is to forecast time series. One of the most interesting (or perhaps most profitable) time series to predict are, arguably, stock prices.
Recently I read a blog post applying machine learning techniques to stock price prediction. You can read it here. It is a well-wri... | [
{
"code": null,
"e": 237,
"s": 47,
"text": "Machine learning has many applications, one of which is to forecast time series. One of the most interesting (or perhaps most profitable) time series to predict are, arguably, stock prices."
},
{
"code": null,
"e": 895,
"s": 237,
"text"... |
Sort collection by multiple fields in Kotlin | A Collection is an object where developers can group different types of related objects in one place. There are different kinds of collections present in Kotlin library such as List, Array, etc.
In this article, we will see how we can sort a collection by different properties present inside that collection. In order to... | [
{
"code": null,
"e": 1257,
"s": 1062,
"text": "A Collection is an object where developers can group different types of related objects in one place. There are different kinds of collections present in Kotlin library such as List, Array, etc."
},
{
"code": null,
"e": 1482,
"s": 1257,
... |
C++ decision making statements | Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.
Follo... | [
{
"code": null,
"e": 2633,
"s": 2318,
"text": "Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statemen... |
Image Processing with Python — Applying Homography for Image Warping | by Tonichi Edeza | Towards Data Science | Rotating images is nothing new, most individuals who have done even basic photo editing have had to do this at some point. In this article we shall tackle ways to adjust an image to make it seems that it had been taken at a different angle.
Let’s get started!
As always, begin by importing the required Python libraries.... | [
{
"code": null,
"e": 288,
"s": 47,
"text": "Rotating images is nothing new, most individuals who have done even basic photo editing have had to do this at some point. In this article we shall tackle ways to adjust an image to make it seems that it had been taken at a different angle."
},
{
"... |
Scope of Variables in Python | All variables in a program may not be accessible at all locations in that program. This depends on where you have declared a variable.
The scope of a variable determines the portion of the program where you can access a particular identifier. There are two basic scopes of variables in Python −
Global variables
Local va... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "All variables in a program may not be accessible at all locations in that program. This depends on where you have declared a variable."
},
{
"code": null,
"e": 1357,
"s": 1197,
"text": "The scope of a variable determines the portion ... |
PLSQL | DECOMPOSE Function - GeeksforGeeks | 20 Sep, 2019
The DECOMPOSE Function in PLSQL is used for accepting a string and returning its Unicode string.The DECOMPOSE Function is generally the opposite of the COMPOSE function.The DECOMPOSE function is valid only for Unicode characters and it returns a Unicode string after decomposition in the same character set ... | [
{
"code": null,
"e": 23877,
"s": 23849,
"text": "\n20 Sep, 2019"
},
{
"code": null,
"e": 24298,
"s": 23877,
"text": "The DECOMPOSE Function in PLSQL is used for accepting a string and returning its Unicode string.The DECOMPOSE Function is generally the opposite of the COMPOSE fun... |
Recursive function to check if a string is palindrome in C++ | We are given a string Str as input. The goal is to find if the input string is a palindrome word or not using a recursive function.
Palindrome strings are those strings that when read from front or end form the same word. The strings of length 0 are considered as palindromes. Reversing the palindromes character wise fo... | [
{
"code": null,
"e": 1420,
"s": 1062,
"text": "We are given a string Str as input. The goal is to find if the input string is a palindrome word or not using a recursive function.\nPalindrome strings are those strings that when read from front or end form the same word. The strings of length 0 are co... |
source command in Linux with Examples - GeeksforGeeks | 31 Jan, 2021
source is a shell built-in command which is used to read and execute the content of a file(generally set of commands), passed as an argument in the current shell script. The command after taking the content of the specified files passes it to the TCL interpreter as a text script which then gets executed. I... | [
{
"code": null,
"e": 23786,
"s": 23758,
"text": "\n31 Jan, 2021"
},
{
"code": null,
"e": 24479,
"s": 23786,
"text": "source is a shell built-in command which is used to read and execute the content of a file(generally set of commands), passed as an argument in the current shell s... |
MongoDB Query for boolean field as “not true” | You can use $ne(not equal) operator for this. The syntax is as follows −
db.yourCollectionName.find({yourFieldName: {$ne: true}}).pretty();
To understand the above syntax, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.queryForBooleanFieldsDemo.insert... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "You can use $ne(not equal) operator for this. The syntax is as follows −"
},
{
"code": null,
"e": 1202,
"s": 1135,
"text": "db.yourCollectionName.find({yourFieldName: {$ne: true}}).pretty();"
},
{
"code": null,
"e": 1345,... |
Customer Segmentation with K Means Clustering | by Allison Kelly | Towards Data Science | Not all customers are created equal. — Me (and many other people, too)
You would never speak to your parents the way you speak to your partner, nor would you speak to your children the way you speak to your manager. So why is your marketing team using a one-size-fits-all language in your marketing materials?
Leveraging... | [
{
"code": null,
"e": 243,
"s": 172,
"text": "Not all customers are created equal. — Me (and many other people, too)"
},
{
"code": null,
"e": 482,
"s": 243,
"text": "You would never speak to your parents the way you speak to your partner, nor would you speak to your children the w... |
How to save Pandas data into Excel multiple sheets? | To save Pandas DataFrames into multiple excel sheets, we can use the pd.ExcelWriter() method. Make sure you have the openpyxl package installed before using ExcelWriter().
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df1.
Print the input DataFrame, df1.
Create another DataFrame, df2, ... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "To save Pandas DataFrames into multiple excel sheets, we can use the pd.ExcelWriter() method. Make sure you have the openpyxl package installed before using ExcelWriter()."
},
{
"code": null,
"e": 1319,
"s": 1234,
"text": "Create a t... |
Split a sentence into words in C++ | 16 Jun, 2022
Give a sentence, print different words present in it. Words are separated by space.
Examples:
Input : str = "Geeks for Geeks"
Output : Geeks
for
Geeks
Explanation : All space separated words
are printed line by line.
Input : str = "a computer science portal"
Output : a
comp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 137,
"s": 52,
"text": "Give a sentence, print different words present in it. Words are separated by space. "
},
{
"code": null,
"e": 148,
"s": 137,
"text": "Examples: "
},
{... |
Breadth First Search (BFS) for a Graph | The Breadth First Search (BFS) traversal is an algorithm, which is used to visit all of the nodes of a given graph. In this traversal algorithm one node is selected and then all of the adjacent nodes are visited one by one. After completing all of the adjacent vertices, it moves further to check another vertex and chec... | [
{
"code": null,
"e": 1539,
"s": 1187,
"text": "The Breadth First Search (BFS) traversal is an algorithm, which is used to visit all of the nodes of a given graph. In this traversal algorithm one node is selected and then all of the adjacent nodes are visited one by one. After completing all of the a... |
Python: Convert Speech to text and text to Speech | 07 Mar, 2022
Speech Recognition is an important feature in several applications used such as home automation, artificial intelligence, etc. This article aims to provide an introduction on how to make use of the SpeechRecognition and pyttsx3 library of Python.Installation required:
Python Speech Recognition module:
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 325,
"s": 54,
"text": "Speech Recognition is an important feature in several applications used such as home automation, artificial intelligence, etc. This article aims to provide an introduction on... |
What is the purpose of self executing function in JavaScript? | 30 May, 2019
The self-executing anonymous function is a special function which is invoked right after it is defined. There is no need to call this function anywhere in the script. This type of function has no name and hence it is called an anonymous function. The function has a trailing set of parenthesis. The paramete... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2019"
},
{
"code": null,
"e": 392,
"s": 28,
"text": "The self-executing anonymous function is a special function which is invoked right after it is defined. There is no need to call this function anywhere in the script. This typ... |
TypeScript | Array some() Method | 03 Mar, 2021
The Array.some() is an inbuilt TypeScript function which is used to check for some element in the array passes the test implemented by the provided function.Syntax:
array.some(callback[, thisObject])
Parameter: This method accept two parameter as mentioned above and described below:
callback : This paramet... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 193,
"s": 28,
"text": "The Array.some() is an inbuilt TypeScript function which is used to check for some element in the array passes the test implemented by the provided function.Syntax:"
},
{
... |
Interesting Facts in C Programming | 06 Jan, 2019
Below are some interesting facts about C programming:
1) The case labels of a switch statement can occur inside if-else statements.
#include <stdio.h> int main(){ int a = 2, b = 2; switch(a) { case 1: ; if (b==5) { case 2: printf("GeeksforGeeks"); ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jan, 2019"
},
{
"code": null,
"e": 106,
"s": 52,
"text": "Below are some interesting facts about C programming:"
},
{
"code": null,
"e": 184,
"s": 106,
"text": "1) The case labels of a switch statement can occur ... |
How to trim a slice of bytes in Golang? | 26 Aug, 2019
In Go language slice is more powerful, flexible, convenient than an array, and is a lightweight data structure. The slice is a variable-length sequence which stores elements of a similar type, you are not allowed to store different type of elements in the same slice.In the Go slice of bytes, you are allowe... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Aug, 2019"
},
{
"code": null,
"e": 865,
"s": 28,
"text": "In Go language slice is more powerful, flexible, convenient than an array, and is a lightweight data structure. The slice is a variable-length sequence which stores elements o... |
PLSQL | REPLACE Function | 25 Sep, 2019
The PLSQL REPLACE function is used for replacing a sequence of characters in a string with another set of characters. The REPLACE function accepts three parameters which are input_string, string_to_replace and replacement_string.
The REPLACE function returns input_string with every occurrence of string_to_... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Sep, 2019"
},
{
"code": null,
"e": 258,
"s": 28,
"text": "The PLSQL REPLACE function is used for replacing a sequence of characters in a string with another set of characters. The REPLACE function accepts three parameters which are i... |
Program to Emulate N Dice Roller | 29 Jul, 2021
In this article, we emulate N Dice roller. Given N, the task is to create a Java program which outputs N random numbers where each number is in the range 1 to 6 inclusive. Such type of emulation can be used in games and apart from that some similar variations of the problem statement can be used in several... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 356,
"s": 28,
"text": "In this article, we emulate N Dice roller. Given N, the task is to create a Java program which outputs N random numbers where each number is in the range 1 to 6 inclusive. Suc... |
Underscore.js _.compact() Function | 24 Nov, 2021
The _.compact() function is an inbuilt function in Underscore.js library of JavaScript which is used to return an array after removing all the false values. The false values in JavaScript are NaN, undefined, false, 0, null or an empty string. It’s output is an array containing all the even values like the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 401,
"s": 28,
"text": "The _.compact() function is an inbuilt function in Underscore.js library of JavaScript which is used to return an array after removing all the false values. The false values i... |
Smallest greater elements in whole array | Difficulty Level :
Medium
An array is given of n length, and we need to calculate the next greater element for each element in the given array. If the next greater element is not available in the given array then we need to fill ‘_’ at that index place.
Examples :
Input : 6 3 9 8 10 2 1 15 7
Output : 7 6 10 9 15 3 2... | [
{
"code": null,
"e": 26,
"s": 0,
"text": "Difficulty Level :\nMedium"
},
{
"code": null,
"e": 254,
"s": 26,
"text": "An array is given of n length, and we need to calculate the next greater element for each element in the given array. If the next greater element is not available ... |
PyQt5 QScrollBar – Getting Style Sheet | 31 Jul, 2020
In this article we will see how we can set style sheet to the QScrollBar. QScrollBar is a control that enables the user to access parts of a document that is larger than the widget used to display it. Slider is the scroll-able object inside the bar. Style sheet is the properties which are used to make the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Jul, 2020"
},
{
"code": null,
"e": 441,
"s": 28,
"text": "In this article we will see how we can set style sheet to the QScrollBar. QScrollBar is a control that enables the user to access parts of a document that is larger than the w... |
Generate original array from difference between every two consecutive elements | 09 Jun, 2022
Given N – 1 differences between two consecutive elements of an array containing N numbers which are in range of 1 to N. The task is to determine the original array using the given differences. If possible print the array, else print -1.Examples:
Input: diff[] = {2, -3, 2} Output: arr[] = {2, 4, 1, 3} 4 –... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 300,
"s": 52,
"text": "Given N – 1 differences between two consecutive elements of an array containing N numbers which are in range of 1 to N. The task is to determine the original array using the ... |
Linked List | Set 1 (Introduction) | 06 Jul, 2022
Like arrays, Linked List is a linear data structure. Unlike arrays, linked list elements are not stored at a contiguous location; the elements are linked using pointers. They includes a series of connected nodes. Here, each node stores the data and the address of the next node.
Arrays can be used to store... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 332,
"s": 52,
"text": "Like arrays, Linked List is a linear data structure. Unlike arrays, linked list elements are not stored at a contiguous location; the elements are linked using pointers. They... |
Collect.js pull() Method | 30 Nov, 2020
The pull() method is used to remove an element from collection by given key and return the pulled element.
Syntax:
collect(array).pull(key)
Parameters: The collect() method takes one argument that is converted into the collection and then pull() method is applied on it. The pull() method holds the key as p... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Nov, 2020"
},
{
"code": null,
"e": 135,
"s": 28,
"text": "The pull() method is used to remove an element from collection by given key and return the pulled element."
},
{
"code": null,
"e": 143,
"s": 135,
"text": ... |
Find minimum time to finish all jobs with given constraints | 10 May, 2021
Given an array of jobs with different time requirements. There are K identical assignees available and we are also given how much time an assignee takes to do one unit of the job. Find the minimum time to finish all jobs with following constraints.
An assignee can be assigned only contiguous jobs. For exa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 302,
"s": 52,
"text": "Given an array of jobs with different time requirements. There are K identical assignees available and we are also given how much time an assignee takes to do one unit of the... |
Find the maximum element in an array which is first increasing and then decreasing | 17 Jun, 2022
Given an array of integers which is initially increasing and then decreasing, find the maximum value in the array. Examples :
Input: arr[] = {8, 10, 20, 80, 100, 200, 400, 500, 3, 2, 1}
Output: 500
Input: arr[] = {1, 3, 50, 10, 9, 7, 6}
Output: 50
Corner case (No decreasing part)
Input: arr[] = {10, 20,... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 179,
"s": 52,
"text": "Given an array of integers which is initially increasing and then decreasing, find the maximum value in the array. Examples : "
},
{
"code": null,
"e": 466,
"... |
Sum of bit differences among all pairs
| 28 Jun, 2022
Given an integer array of n integers, find sum of bit differences in all pairs that can be formed from array elements. Bit difference of a pair (x, y) is count of different bits at same positions in binary representations of x and y.
For example, bit difference for 2 and 7 is 2. Binary representation of ... | [
{
"code": null,
"e": 57,
"s": 26,
"text": " \n28 Jun, 2022\n"
},
{
"code": null,
"e": 292,
"s": 57,
"text": "Given an integer array of n integers, find sum of bit differences in all pairs that can be formed from array elements. Bit difference of a pair (x, y) is count of differen... |
Deserializing a JSON into a JavaScript object | 05 Jul, 2021
To Deserialize a JSON into a JavaScript object, here we will use a common method JSON.parse() method.
JavaScript Object Notation is used to exchange data to or from a web server or RESTFull API. The data received from a web server is always a string. In order to use that data you need to parse the data wit... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "To Deserialize a JSON into a JavaScript object, here we will use a common method JSON.parse() method."
},
{
"code": null,
"e": 410,
"s": 130,
"text": "Java... |
Convert String from Uppercase to Lowercase in R programming – tolower() method | 10 May, 2020
tolower() method in R programming is used to convert the uppercase letters of string to lowercase string.
Syntax: tolower(s)
Return: Returns the lowercase string.
Example 1:
# R program to convert string# from uppercase to lowercasegfg <- "GeEks FoR GeeKs" # Using tolower() methodanswer <- tolower(gfg) p... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 134,
"s": 28,
"text": "tolower() method in R programming is used to convert the uppercase letters of string to lowercase string."
},
{
"code": null,
"e": 153,
"s": 134,
"text": "... |
Python | asksaveasfile() function in Tkinter | 29 Nov, 2021
Python provides a variety of modules with the help of which one may develop GUI (Graphical User Interface) applications. Tkinter is one of the easiest and fastest way to develop GUI applications.
While working with files one may need to open files, do operations on files and after that to save file. asksav... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 248,
"s": 52,
"text": "Python provides a variety of modules with the help of which one may develop GUI (Graphical User Interface) applications. Tkinter is one of the easiest and fastest way to deve... |
Python Program to find the Larger String without Using Built-in Functions | 26 Nov, 2020
Given two strings. The task is to find the larger string without using built-in functions.
Examples:
Input:
GeeksforGeeks
Geeks
Output:
GeeksforGeeks
Input:
GeeksForFeeks is an good Computer Coding Website
It offers several topics
Output:
GeeksForFeeks is an good Computer Coding Website
Step-by-step Appr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 144,
"s": 53,
"text": "Given two strings. The task is to find the larger string without using built-in functions."
},
{
"code": null,
"e": 154,
"s": 144,
"text": "Examples:"
}... |
Python | Split by repeating substring | 22 Apr, 2020
Sometimes, while working with Python strings, we can have a problem in which we need to perform splitting. This can be of custom nature. In this, we can have a split in which we need to split by all the repetitions. This can have application in many domains. Lets discuss certain ways in which this task can... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 350,
"s": 28,
"text": "Sometimes, while working with Python strings, we can have a problem in which we need to perform splitting. This can be of custom nature. In this, we can have a split in which ... |
Tuples in Julia | 23 Jan, 2022
Tuples in Julia are an immutable collection of distinct values of same or different datatypes separated by commas. Tuples are more like arrays in Julia except that arrays only take values of similar datatypes. The values of a tuple can not be changed because tuples are immutable. Tuples are a heterogeneous... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jan, 2022"
},
{
"code": null,
"e": 694,
"s": 28,
"text": "Tuples in Julia are an immutable collection of distinct values of same or different datatypes separated by commas. Tuples are more like arrays in Julia except that arrays only... |
Solidity - Events | Event is an inheritable member of a contract. An event is emitted, it stores the arguments passed in transaction logs. These logs are stored on blockchain and are accessible using address of the contract till the contract is present on the blockchain. An event generated is not accessible from within contracts, not even... | [
{
"code": null,
"e": 2921,
"s": 2555,
"text": "Event is an inheritable member of a contract. An event is emitted, it stores the arguments passed in transaction logs. These logs are stored on blockchain and are accessible using address of the contract till the contract is present on the blockchain. A... |
Spring Boot - Build Systems | In Spring Boot, choosing a build system is an important task. We recommend Maven or Gradle as they provide a good support for dependency management. Spring does not support well other build systems.
Spring Boot team provides a list of dependencies to support the Spring Boot version for its every release. You do not nee... | [
{
"code": null,
"e": 3224,
"s": 3025,
"text": "In Spring Boot, choosing a build system is an important task. We recommend Maven or Gradle as they provide a good support for dependency management. Spring does not support well other build systems."
},
{
"code": null,
"e": 3604,
"s": 32... |
Average of max K numbers in a stream - GeeksforGeeks | 12 Nov, 2018
Given a list of ‘N’ numbers, and an integer ‘K’. The task is to print the average of max ‘K’ numbers after each query where a query consists of an integer element which needs to be added to the list of elements.Note: The queries are defined with an integer array ‘q’
Examples:
Input: N = 4, K = 3, arr = {1,... | [
{
"code": null,
"e": 24596,
"s": 24568,
"text": "\n12 Nov, 2018"
},
{
"code": null,
"e": 24863,
"s": 24596,
"text": "Given a list of ‘N’ numbers, and an integer ‘K’. The task is to print the average of max ‘K’ numbers after each query where a query consists of an integer element ... |
ustat() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
wxPython - Buttons | Button widget is most widely used in any GUI interface. It captures the click event generated by the user. Its most obvious use is to trigger a handler function bound to it.
wxPython class library provides different types of buttons. There is a simple, traditional button, wx.Button class object, which carries some text... | [
{
"code": null,
"e": 2056,
"s": 1882,
"text": "Button widget is most widely used in any GUI interface. It captures the click event generated by the user. Its most obvious use is to trigger a handler function bound to it."
},
{
"code": null,
"e": 2367,
"s": 2056,
"text": "wxPython... |
5 Python open-source tools to extract text and tabular data from PDF Files | by Zoumana Keita | Towards Data Science | As Data Scientists, we are led to exploit as much as possible the data sources available within or external to organizations in order to respond in the most relevant way to their problems. These data can be of different formats and sometimes difficult to handle. This article mainly focuses on two main aspects: text dat... | [
{
"code": null,
"e": 533,
"s": 171,
"text": "As Data Scientists, we are led to exploit as much as possible the data sources available within or external to organizations in order to respond in the most relevant way to their problems. These data can be of different formats and sometimes difficult to ... |
Matplotlib.figure.Figure.get_figheight() in Python - GeeksforGeeks | 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": 24292,
"s": 24264,
"text": "\n30 Apr, 2020"
},
{
"code": null,
"e": 24603,
"s": 24292,
"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, whic... |
Floyd Warshall Algorithm | Floyd-Warshall algorithm is used to find all pair shortest path problem from a given weighted graph. As a result of this algorithm, it will generate a matrix, which will represent the minimum distance from any node to all other nodes in the graph.
At first, the output matrix is the same as the given cost matrix of the ... | [
{
"code": null,
"e": 1310,
"s": 1062,
"text": "Floyd-Warshall algorithm is used to find all pair shortest path problem from a given weighted graph. As a result of this algorithm, it will generate a matrix, which will represent the minimum distance from any node to all other nodes in the graph."
},... |
array::operator[ ] in C++ STL - GeeksforGeeks | 28 Sep, 2021
Array classes are generally more efficient, light-weight, and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alternative for C-style arrays.
This operator is used to reference the element present at position given inside the operator. It is similar to the at()... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n28 Sep, 2021"
},
{
"code": null,
"e": 24286,
"s": 24098,
"text": "Array classes are generally more efficient, light-weight, and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alterna... |
p5.js Image setFrame() Method - GeeksforGeeks | 23 Sep, 2020
The setFrame() method of p5.Image in p5.js library is used to set the index of the currently visible frame of the GIF animation.
Syntax:
setFrame( index )
Parameters: This function accepts a single parameter as mentioned above and described below.
index: It is a number that denotes the index of the frame ... | [
{
"code": null,
"e": 44937,
"s": 44909,
"text": "\n23 Sep, 2020"
},
{
"code": null,
"e": 45066,
"s": 44937,
"text": "The setFrame() method of p5.Image in p5.js library is used to set the index of the currently visible frame of the GIF animation."
},
{
"code": null,
"e... |
Check whether given floating point number is even or odd in Python | Suppose we have a floating point number; we have to check whether the number is odd or even. In general, for integer it is easy by dividing the last digit by 2. But for floating point number it is not straight forward like that. We cannot divide last digit by 2 to check if it is odd or even.
So, if the input is like n ... | [
{
"code": null,
"e": 1355,
"s": 1062,
"text": "Suppose we have a floating point number; we have to check whether the number is odd or even. In general, for integer it is easy by dividing the last digit by 2. But for floating point number it is not straight forward like that. We cannot divide last di... |
How to split a data frame in R with conditional row values? | The splitting of data frame is mainly done to compare different parts of that data frame but this splitting is based on some condition and this condition can be row values as well. For example, if we have a data frame df where a column represents categorical data then the splitting based on the categories can be done b... | [
{
"code": null,
"e": 1438,
"s": 1062,
"text": "The splitting of data frame is mainly done to compare different parts of that data frame but this splitting is based on some condition and this condition can be row values as well. For example, if we have a data frame df where a column represents catego... |
How to Create Subplots in Seaborn? - GeeksforGeeks | 19 Dec, 2021
Prerequisites: Matplotlib, Seaborn
In this article, we will explore how to create a subplot or multi-dimensional plot in seaborn, It is a useful approach to draw subplot instances of the same plot on different subsets of your dataset. It allows a viewer to quickly extract a large amount of data about comp... | [
{
"code": null,
"e": 24364,
"s": 24333,
"text": " \n19 Dec, 2021\n"
},
{
"code": null,
"e": 24399,
"s": 24364,
"text": "Prerequisites: Matplotlib, Seaborn"
},
{
"code": null,
"e": 24688,
"s": 24399,
"text": "In this article, we will explore how to create a sub... |
How can I draw a scatter trend line using Matplotlib? | To draw a scatter trend line using matplotlib, we can use polyfit() and poly1d() methods to get the trend line points.
Set the figure size and adjust the padding between and around the subplots.
Set the figure size and adjust the padding between and around the subplots.
Create x and y data points using numpy.
Create x ... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "To draw a scatter trend line using matplotlib, we can use polyfit() and poly1d() methods to get the trend line points."
},
{
"code": null,
"e": 1257,
"s": 1181,
"text": "Set the figure size and adjust the padding between and around t... |
How to use #error and #warning directives in C#? | The #error directive allows generating an error from a specific location in your code.
Let us see an example −
Live Demo
using System;
namespace Demo {
class Program {
public static void Main(string[] args) {
#if (!ONE)
#error ONE is undefined
#endif
Console.WriteLine("Gen... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "The #error directive allows generating an error from a specific location in your code."
},
{
"code": null,
"e": 1173,
"s": 1149,
"text": "Let us see an example −"
},
{
"code": null,
"e": 1184,
"s": 1173,
"text": "... |
Metaprogramming with Metaclasses in Python - GeeksforGeeks | 11 Oct, 2021
At first, the word Metaprogramming seems like a very funky and alien thing but if you have ever worked with decorators or metaclasses, you were doing metaprogramming there all along. In a nutshell, we can say metaprogramming is the code that manipulates code.In this article, we are going to discuss Metacla... | [
{
"code": null,
"e": 41552,
"s": 41524,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 42013,
"s": 41552,
"text": "At first, the word Metaprogramming seems like a very funky and alien thing but if you have ever worked with decorators or metaclasses, you were doing metaprogrammi... |
Structure Sorting in C++ | Here we will see how to sort using some condition on some member variables of the structure in C++. In this example we will take a structure called book. The book will hold name, number of pages, and price. We will sort them based in the price.
For comparing two structures, we have to define a function. This function w... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "Here we will see how to sort using some condition on some member variables of the structure in C++. In this example we will take a structure called book. The book will hold name, number of pages, and price. We will sort them based in the price."
},
... |
Angular 2 - Hello World | There are various ways to get started with your first Angular JS application.
One way is to do everything from scratch which is the most difficult and not the preferred way. Due to the many dependencies, it becomes difficult to get this setup.
One way is to do everything from scratch which is the most difficult and not... | [
{
"code": null,
"e": 2375,
"s": 2297,
"text": "There are various ways to get started with your first Angular JS application."
},
{
"code": null,
"e": 2541,
"s": 2375,
"text": "One way is to do everything from scratch which is the most difficult and not the preferred way. Due to t... |
Find specific records which has whitespace on the second place in MySQL | For this, use SUBSTR() as in the below syntax −
select * from yourTableName
where substr(yourColumnName, 2, 1 ) = ' ';
Let us first create a table −
mysql> create table DemoTable1365
-> (
-> Value varchar(20)
-> );
Query OK, 0 rows affected (0.66 sec)
Insert some records in the table using insert command −
... | [
{
"code": null,
"e": 1110,
"s": 1062,
"text": "For this, use SUBSTR() as in the below syntax −"
},
{
"code": null,
"e": 1181,
"s": 1110,
"text": "select * from yourTableName\nwhere substr(yourColumnName, 2, 1 ) = ' ';"
},
{
"code": null,
"e": 1211,
"s": 1181,
... |
Find all reachable nodes from every node present in a given set - GeeksforGeeks | 18 Apr, 2022
Given an undirected graph and a set of vertices, find all reachable nodes from every vertex present in the given set.
Consider below undirected graph with 2 disconnected components.
arr[] = {1 , 2 , 5}
Reachable nodes from 1 are 1, 2, 3, 4
Reachable nodes from 2 are 1, 2, 3, 4
Reachable nodes from 5 a... | [
{
"code": null,
"e": 25108,
"s": 25080,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 25226,
"s": 25108,
"text": "Given an undirected graph and a set of vertices, find all reachable nodes from every vertex present in the given set."
},
{
"code": null,
"e": 25292,
... |
TestNG - Plug with Eclipse | To set up TestNG with Eclipse, follow the steps given below −
Download the latest version of TestNG jar file from http://www.testng.org
We assume you have copied the above JAR file in /work/testng folder.
Open eclipse → right click on the project and go to property → Build Path → Configure Build Path and add the testng... | [
{
"code": null,
"e": 2122,
"s": 2060,
"text": "To set up TestNG with Eclipse, follow the steps given below −"
},
{
"code": null,
"e": 2196,
"s": 2122,
"text": "Download the latest version of TestNG jar file from http://www.testng.org"
},
{
"code": null,
"e": 2265,
... |
PostgreSQL - String Function | PostgreSQL string functions are used primarily for string manipulation. The following table details the important string functions −
Returns numeric value of left-most character
Returns length of argument in bits
Returns number of characters in argument
A synonym for CHAR_LENGTH()
Returns concatenate with separator
Re... | [
{
"code": null,
"e": 2958,
"s": 2825,
"text": "PostgreSQL string functions are used primarily for string manipulation. The following table details the important string functions −"
},
{
"code": null,
"e": 3003,
"s": 2958,
"text": "Returns numeric value of left-most character"
}... |
MuleSoft - Mule in Our Machine | In the previous chapters, we have learnt the basics of Mule ESB. In this chapter, let us learn how to install and configure it.
We need to satisfy the following prerequisites before installing Mule on our computer −
Before installing MULE, verify that you have supported version of Java on your system. JDK 1.8.0 is reco... | [
{
"code": null,
"e": 2196,
"s": 2068,
"text": "In the previous chapters, we have learnt the basics of Mule ESB. In this chapter, let us learn how to install and configure it."
},
{
"code": null,
"e": 2284,
"s": 2196,
"text": "We need to satisfy the following prerequisites before ... |
D3.js selection.attr() Function - GeeksforGeeks | 19 Aug, 2020
The selection.attr() function is used to set the attribute of the element that is selected. The name of the attribute and value of the attributes are to be set using this function.
Syntax:
selection.attr(name[, value]);
Parameters: This function takes two parameters as shown above and described below:
nam... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 25481,
"s": 25300,
"text": "The selection.attr() function is used to set the attribute of the element that is selected. The name of the attribute and value of the attributes are to be set usi... |
10 Most Asked ES6 Interview Questions & Answers For Developers - GeeksforGeeks | 27 May, 2021
When JavaScript came into the picture of the programming world, the name was chosen for marketing reasons. At that time Java was getting popular all around the world (but you better know both are different). Later it was submitted to ECMA (European Computer Manufacturers Association) to standardize the lan... | [
{
"code": null,
"e": 25010,
"s": 24982,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 25347,
"s": 25010,
"text": "When JavaScript came into the picture of the programming world, the name was chosen for marketing reasons. At that time Java was getting popular all around the wor... |
KnockoutJS - textInput Binding | This binding is used to create two-way binding between text box or textarea and ViewModel property. The difference between this and value binding is that this binding makes immediate updates available from HTML DOM for various input types.
Syntax
textInput: <binding-value>
Parameters
HTML DOM element's value property ... | [
{
"code": null,
"e": 2092,
"s": 1852,
"text": "This binding is used to create two-way binding between text box or textarea and ViewModel property. The difference between this and value binding is that this binding makes immediate updates available from HTML DOM for various input types."
},
{
... |
List lastIndexOf() Method in Java with Examples - GeeksforGeeks | 02 Jan, 2019
This method returns the last index of the occurrence of the specified element in this list, or -1 if this list does not contain the element.
Syntax:
int lastIndexOf(Object o)
Parameters: This function has a single parameter, i.e, the element to be searched in the list.
Returns: This method returns the last... | [
{
"code": null,
"e": 24097,
"s": 24069,
"text": "\n02 Jan, 2019"
},
{
"code": null,
"e": 24238,
"s": 24097,
"text": "This method returns the last index of the occurrence of the specified element in this list, or -1 if this list does not contain the element."
},
{
"code": ... |
Class Member Access Operator (->) Overloading in C++ | The class member access operator (->) can be overloaded but it is bit trickier. It is defined to give a class type a "pointer-like" behavior. The operator -> must be a member function. If used, its return type must be a pointer or an object of a class to which you can apply.
The operator-> is used often in conjunction ... | [
{
"code": null,
"e": 2594,
"s": 2318,
"text": "The class member access operator (->) can be overloaded but it is bit trickier. It is defined to give a class type a \"pointer-like\" behavior. The operator -> must be a member function. If used, its return type must be a pointer or an object of a class... |
Ways to sum to N using array elements with repetition allowed - GeeksforGeeks | 01 Jun, 2021
Given a set of m distinct positive integers and a value ‘N’. The problem is to count the total number of ways we can form ‘N’ by doing sum of the array elements. Repetitions and different arrangements are allowed.Examples :
Input : arr = {1, 5, 6}, N = 7
Output : 6
Explanation:- The different ways are:
... | [
{
"code": null,
"e": 25011,
"s": 24983,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 25237,
"s": 25011,
"text": "Given a set of m distinct positive integers and a value ‘N’. The problem is to count the total number of ways we can form ‘N’ by doing sum of the array elements. R... |
Finding Mod of Given Number in Golang - GeeksforGeeks | 13 Apr, 2020
Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. You can find a mod or floating-point remainder of specified a/b with the help of Mod() function provided by the math package. So, you need to add a mat... | [
{
"code": null,
"e": 24069,
"s": 24041,
"text": "\n13 Apr, 2020"
},
{
"code": null,
"e": 24468,
"s": 24069,
"text": "Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. You can... |
How to print duplicate characters in a String using C#? | Set maximum value for char.
static int maxCHARS = 256;
Now display the duplicate characters in the string.
String s = "Welcometomywebsite!";
int []cal = new int[maxCHARS];
calculate(s, cal);
for (int i = 0; i < maxCHARS; i++)
if(cal[i] > 1) {
Console.WriteLine("Character "+(char)i);
Console.WriteLine("Occurrenc... | [
{
"code": null,
"e": 1090,
"s": 1062,
"text": "Set maximum value for char."
},
{
"code": null,
"e": 1117,
"s": 1090,
"text": "static int maxCHARS = 256;"
},
{
"code": null,
"e": 1169,
"s": 1117,
"text": "Now display the duplicate characters in the string."
}... |
MySQL - DECLARE Statement | When you are working with BEGIN ... END compound statements such as variable declarations, conditions, cursors, including loops, conditional tests, functions and procedures, if you need to define items locally in it you can do so using the DECLARE Statement.
Using this statement, you can create Local variables, Conditi... | [
{
"code": null,
"e": 2592,
"s": 2333,
"text": "When you are working with BEGIN ... END compound statements such as variable declarations, conditions, cursors, including loops, conditional tests, functions and procedures, if you need to define items locally in it you can do so using the DECLARE State... |
How did I write an own OCR program using Keras and TensorFlow in Python | by Anh T. Dang | Towards Data Science | Optical Character Recognition (or optical character reader, aka OCR) is a technology that used for the last two decades to identify and digitize alphabetical and numerical characters presented in images. In the industry, this technology can help us to avoid entering data manually by a human.
In this post, I’d like to t... | [
{
"code": null,
"e": 464,
"s": 171,
"text": "Optical Character Recognition (or optical character reader, aka OCR) is a technology that used for the last two decades to identify and digitize alphabetical and numerical characters presented in images. In the industry, this technology can help us to avo... |
Sort Colors in Python | Suppose we have an array with n objects. These are colored red, white, or blue, sort them in place so that the objects of the same color are adjacent. So with the colors in the order red, white and blue. Here, we will use the numbers like 0, 1, and 2 to represent the color red, white, and blue respectively. So if the a... | [
{
"code": null,
"e": 1448,
"s": 1062,
"text": "Suppose we have an array with n objects. These are colored red, white, or blue, sort them in place so that the objects of the same color are adjacent. So with the colors in the order red, white and blue. Here, we will use the numbers like 0, 1, and 2 to... |
Check if a number is Primorial Prime or not in Python | Suppose we have a number n, we have to check whether n is a primorial prime or not. A number is said to be a primorial prime when it is a prime number of the form pN# + 1 or pN# – 1 , where pN# indicates the primorial of pN such that the product of first N prime numbers.
So, if the input is like 29, then the output wil... | [
{
"code": null,
"e": 1334,
"s": 1062,
"text": "Suppose we have a number n, we have to check whether n is a primorial prime or not. A number is said to be a primorial prime when it is a prime number of the form pN# + 1 or pN# – 1 , where pN# indicates the primorial of pN such that the product of firs... |
Check if all digits of a number divide it - GeeksforGeeks | 01 Jul, 2021
Given a number n, find whether all digits of n divide it or not.Examples:
Input : 128
Output : Yes
128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0.
Input : 130
Output : No
We want to test whether each digit is non-zero and divides the number. For example, with 128, we want to test d != 0 && 128 % d == 0 ... | [
{
"code": null,
"e": 25306,
"s": 25278,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 25382,
"s": 25306,
"text": "Given a number n, find whether all digits of n divide it or not.Examples: "
},
{
"code": null,
"e": 25478,
"s": 25382,
"text": "Input : 128\nO... |
How to create an VBox using JavaFX? | Once you create all the required nodes for your application you can arrange them using a layout. Where a layout is a process of calculating the position of objects in the given space. JavaFX provides various layouts in the javafx.scene.layout package.
In the vbox layout, the nodes are arranged in a single vertical colu... | [
{
"code": null,
"e": 1314,
"s": 1062,
"text": "Once you create all the required nodes for your application you can arrange them using a layout. Where a layout is a process of calculating the position of objects in the given space. JavaFX provides various layouts in the javafx.scene.layout package."
... |
What is the best way to show data in a table in Tkinter? | Generally, we represent data in the form of tables. A table contains a set of rows and columns. Data gets stored sequentially in the form of rows and columns in a table.
Let us suppose that we are building a Tkinter application such that we have to store the Student’s data somewhere in a table. The table structure cont... | [
{
"code": null,
"e": 1232,
"s": 1062,
"text": "Generally, we represent data in the form of tables. A table contains a set of rows and columns. Data gets stored sequentially in the form of rows and columns in a table."
},
{
"code": null,
"e": 1586,
"s": 1232,
"text": "Let us suppo... |
Nothing but NumPy: Understanding & Creating Binary Classification Neural Networks with Computational Graphs from Scratch | by Rafay Khan | Towards Data Science | Nothing but Numpy is a continuation of my neural network series. To view the previous blog in this series or for a refresher on neural networks you may click here.
This post continues from Understanding and Creating Neural Networks with Computational Graphs from Scratch.
It’s easy to feel lost when you have twenty brow... | [
{
"code": null,
"e": 336,
"s": 172,
"text": "Nothing but Numpy is a continuation of my neural network series. To view the previous blog in this series or for a refresher on neural networks you may click here."
},
{
"code": null,
"e": 444,
"s": 336,
"text": "This post continues fr... |
Web Scraping TripAdvisor, Text Mining and Sentiment Analysis for Hotel Reviews | by Susan Li | Towards Data Science | Study after study has shown that TripAdvisor is becoming terrifyingly important in a traveler’s decision making process. However, understanding the nuance of TripAdvisor bubble score vs. each of thousands of TripAdvisor review text , can be challenging. In an effort to more thoroughly understand whether hotel guests re... | [
{
"code": null,
"e": 758,
"s": 171,
"text": "Study after study has shown that TripAdvisor is becoming terrifyingly important in a traveler’s decision making process. However, understanding the nuance of TripAdvisor bubble score vs. each of thousands of TripAdvisor review text , can be challenging. I... |
Principles Of Animation - GeeksforGeeks | 29 Jun, 2021
Animation is defined as a series of images rapidly changing to create an illusion of movement. We replace the previous image with a new image which is a little bit shifted. Animation Industry is having a huge market nowadays. To make an efficacious animation there are some principles to be followed.
Princ... | [
{
"code": null,
"e": 24211,
"s": 24183,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 24513,
"s": 24211,
"text": "Animation is defined as a series of images rapidly changing to create an illusion of movement. We replace the previous image with a new image which is a little bit... |
Angular Material 7 - Icons | The <mat-icon>, an Angular Directive, is used to add a vector/svg based icon with material styling.
In this chapter, we will showcase the configuration required to draw a icon control using Angular Material.
Follow the following steps to update the Angular application we created in Angular 6 - Project Setup chapter −
F... | [
{
"code": null,
"e": 2855,
"s": 2755,
"text": "The <mat-icon>, an Angular Directive, is used to add a vector/svg based icon with material styling."
},
{
"code": null,
"e": 2963,
"s": 2855,
"text": "In this chapter, we will showcase the configuration required to draw a icon contro... |
Data Types - Java | Practice | GeeksforGeeks | Working with Data Types is very important in programming world. Here, we will learn to manipulate the basic data types in Java. You will be given four different variables of different data types: a (int), b (float), c (double), l (long), d (byte). Your task is to do step-wise operations as given below:
1. Divide c by b... | [
{
"code": null,
"e": 634,
"s": 226,
"text": "Working with Data Types is very important in programming world. Here, we will learn to manipulate the basic data types in Java. You will be given four different variables of different data types: a (int), b (float), c (double), l (long), d (byte). Your ta... |
select command in Linux with examples - GeeksforGeeks | 27 May, 2019
select command in Linux is used to create a numbered menu from which a user can select an option. If the user enters a valid option then it executes the set of command written in select block and then ask again to enter a number, if a wrong option is entered it does nothing. If user enters nothing and simp... | [
{
"code": null,
"e": 25278,
"s": 25250,
"text": "\n27 May, 2019"
},
{
"code": null,
"e": 25632,
"s": 25278,
"text": "select command in Linux is used to create a numbered menu from which a user can select an option. If the user enters a valid option then it executes the set of com... |
HTML <address> Tag - GeeksforGeeks | 17 Mar, 2022
The <address> tag in HTML indicates the contact information of a person or an organization. If <address> tag is used inside the <body> tag then it represents the contact information of the document and if the <address> tag is used inside the <article> tag, then it represents the contact information of the ... | [
{
"code": null,
"e": 31646,
"s": 31618,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 32096,
"s": 31646,
"text": "The <address> tag in HTML indicates the contact information of a person or an organization. If <address> tag is used inside the <body> tag then it represents the c... |
YEARWEEK() Function in MySQL - GeeksforGeeks | 29 Sep, 2020
YEARWEEK() function in MySQL is used to find year and week for a given date. If the date is NULL, the YEARWEEK() function will return NULL. Otherwise, it returns value of year which range from 1000 to 9999 and value of week which ranges between 0 to 53.
Syntax :
YEARWEEK(date, mode)
Parameter : This met... | [
{
"code": null,
"e": 25365,
"s": 25337,
"text": "\n29 Sep, 2020"
},
{
"code": null,
"e": 25619,
"s": 25365,
"text": "YEARWEEK() function in MySQL is used to find year and week for a given date. If the date is NULL, the YEARWEEK() function will return NULL. Otherwise, it returns v... |
What is Stored Procedures in SQL ? - GeeksforGeeks | 20 May, 2021
Stored Procedures are created to perform one or more DML operations on Database. It is nothing but the group of SQL statements that accepts some input in the form of parameters and performs some task and may or may not returns a value.
Syntax : Creating a Procedure
CREATE or REPLACE PROCEDURE name(param... | [
{
"code": null,
"e": 25641,
"s": 25613,
"text": "\n20 May, 2021"
},
{
"code": null,
"e": 25878,
"s": 25641,
"text": "Stored Procedures are created to perform one or more DML operations on Database. It is nothing but the group of SQL statements that accepts some input in the form ... |
Constants vs Variables in C language - GeeksforGeeks | 28 Jun, 2019
As the name suggests the name constants is given to such variables or values in C programming language which cannot be modified once they are defined. They are fixed values in a program. There can be any types of constants like integer, float, octal, hexadecimal, character constants etc. Every constant has... | [
{
"code": null,
"e": 25684,
"s": 25656,
"text": "\n28 Jun, 2019"
},
{
"code": null,
"e": 26270,
"s": 25684,
"text": "As the name suggests the name constants is given to such variables or values in C programming language which cannot be modified once they are defined. They are fix... |
UNIX - GeeksforGeeks | 03 Oct, 2019
ln -s file 1 file 2
ln -s file 2 file 3
find -name passwd -print
find –name “filename” –print
grep name “filename”
permission for owner
permission for group
permission for othersFor more information on UNIX OS Refer:Operating System | Unix File System
Both (a) and (b) are coreect.
So, option (C) is correct... | [
{
"code": null,
"e": 28855,
"s": 28827,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 28895,
"s": 28855,
"text": "ln -s file 1 file 2\nln -s file 2 file 3"
},
{
"code": null,
"e": 28920,
"s": 28895,
"text": "find -name passwd -print"
},
{
"code": nu... |
Python | Interval Initialization in list - GeeksforGeeks | 20 Feb, 2019
There are numerous ways to initialize the list with the elements, but sometimes, its required to initialize the lists with the numbers in a sliced way. This can be custom and hence knowledge of this can come handy. Let’s discuss certain ways in which this can be done.
Method #1 : Using list comprehension +... | [
{
"code": null,
"e": 25521,
"s": 25493,
"text": "\n20 Feb, 2019"
},
{
"code": null,
"e": 25790,
"s": 25521,
"text": "There are numerous ways to initialize the list with the elements, but sometimes, its required to initialize the lists with the numbers in a sliced way. This can be... |
Python | Count tuples occurrence in list of tuples - GeeksforGeeks | 03 Apr, 2019
Many a time while developing web and desktop product in Python, we use nested lists and have several queries about how to find count of unique tuples. Let’s see how to get count of unique tuples in given list of tuples.
Below are some ways to achieve the above task.
Method #1: Using Iteration
# Python code... | [
{
"code": null,
"e": 26191,
"s": 26163,
"text": "\n03 Apr, 2019"
},
{
"code": null,
"e": 26411,
"s": 26191,
"text": "Many a time while developing web and desktop product in Python, we use nested lists and have several queries about how to find count of unique tuples. Let’s see ho... |
How to get current year in PHP ? - GeeksforGeeks | 31 Jul, 2021
The Date is an inbuilt function used to format the timestamp. The computer stores date and time in UNIX Timestamp. This time is measured as a number of seconds since Jan 1, 1970. Since this is impractical for humans to read, PHP converts timestamp to a format that is readable and more understandable to hum... | [
{
"code": null,
"e": 26173,
"s": 26145,
"text": "\n31 Jul, 2021"
},
{
"code": null,
"e": 26485,
"s": 26173,
"text": "The Date is an inbuilt function used to format the timestamp. The computer stores date and time in UNIX Timestamp. This time is measured as a number of seconds sin... |
Program to find simple moving average - GeeksforGeeks | 27 May, 2019
Simple Moving Average is the average obtained from the data for some t period of time . In normal mean, it’s value get changed with the changing data but in this type of mean it also changes with the time interval . We get the mean for some period t and then we remove some previous data . Again we get new ... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n27 May, 2019"
},
{
"code": null,
"e": 26391,
"s": 25963,
"text": "Simple Moving Average is the average obtained from the data for some t period of time . In normal mean, it’s value get changed with the changing data but in this t... |
Program to find the product of ASCII values of characters in a string - GeeksforGeeks | 22 Mar, 2021
Given a string str. The task is to find the product of ASCII values of characters in the string.Examples:
Input : str = "IS"
Output : 6059
73 * 83 = 6059
Input : str = "GfG"
Output : 514182
The idea is to start with iterating through characters of the string and multiply their ASCII values to a variab... | [
{
"code": null,
"e": 26329,
"s": 26301,
"text": "\n22 Mar, 2021"
},
{
"code": null,
"e": 26437,
"s": 26329,
"text": "Given a string str. The task is to find the product of ASCII values of characters in the string.Examples: "
},
{
"code": null,
"e": 26522,
"s": 26... |
How to get name of calling function/method in PHP ? - GeeksforGeeks | 11 Jan, 2019
Why need to get the name of calling function?The code consist of multiple functions performing different tasks but associated with each other directly or indirectly, and suddenly display an error in some of the functions then it will become necessary to find the name of the function in which an error has b... | [
{
"code": null,
"e": 25965,
"s": 25937,
"text": "\n11 Jan, 2019"
},
{
"code": null,
"e": 26286,
"s": 25965,
"text": "Why need to get the name of calling function?The code consist of multiple functions performing different tasks but associated with each other directly or indirectl... |
Flutter - AbsorbPointer Widget - GeeksforGeeks | 21 Feb, 2022
AbsorbPointer is a built-in widget in flutter which absorbs pointer, in other words, it prevents its subtree from being clicked, tapped, scrolled, dragged, and respond to hover. In flutter, most widgets already come with an option to disable them for example in a RaisedButton we can set the onClicked funct... | [
{
"code": null,
"e": 25319,
"s": 25291,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 25957,
"s": 25319,
"text": "AbsorbPointer is a built-in widget in flutter which absorbs pointer, in other words, it prevents its subtree from being clicked, tapped, scrolled, dragged, and res... |
How do I generate random integers within a specific range in Java? - GeeksforGeeks | 27 Dec, 2019
Given two numbers Min and Max, the task is to generate a random integer within this specific range in Java.
Examples:
Input: Min = 1, Max = 100
Output: 89
Input: Min = 100, Max = 899
Output: 514
Approach:
Get the Min and Max which are the specified range.
Call the nextInt() method of ThreadLocalRandom cl... | [
{
"code": null,
"e": 26255,
"s": 26227,
"text": "\n27 Dec, 2019"
},
{
"code": null,
"e": 26363,
"s": 26255,
"text": "Given two numbers Min and Max, the task is to generate a random integer within this specific range in Java."
},
{
"code": null,
"e": 26373,
"s": 26... |
JSTL | JSP Standard Tag Library - GeeksforGeeks | 14 Aug, 2021
Introduction:
Initially, Web designers used scriptlets in JSP pages to generate dynamic content. This resulted in readability issues and also made it difficult to maintain the JSP page. Custom tags were introduced to overcome the problems faced in using scriptlets. Although custom tags proved to be a bette... | [
{
"code": null,
"e": 25763,
"s": 25735,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 25777,
"s": 25763,
"text": "Introduction:"
},
{
"code": null,
"e": 26341,
"s": 25777,
"text": "Initially, Web designers used scriptlets in JSP pages to generate dynamic co... |
Replace an Element From ArrayList using Java ListIterator - GeeksforGeeks | 07 Jan, 2021
To replace an element from an ArrayList, the set() method of ListIterator interface can be used. set() method of ListIterator replaces the last element which is returned by the next() or previous() methods, along with the given element.
Two ways of replacing the elements using ListIterator shown below are:... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n07 Jan, 2021"
},
{
"code": null,
"e": 25462,
"s": 25225,
"text": "To replace an element from an ArrayList, the set() method of ListIterator interface can be used. set() method of ListIterator replaces the last element which is re... |
Check for a Pattern in the Vector in R Programming - grepl() Function - GeeksforGeeks | 24 Jun, 2020
grepl() function in R Language is used to return the value True if the specified pattern is found in the vector and false if it is not found.
Syntax: grepl(pattern, string, ignore.case=FALSE)
Parameters:pattern: regular expressions patternstring: character vector to be searchedignore.case: whether to ignor... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n24 Jun, 2020"
},
{
"code": null,
"e": 26629,
"s": 26487,
"text": "grepl() function in R Language is used to return the value True if the specified pattern is found in the vector and false if it is not found."
},
{
"code":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.