title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Hashing | Set 2 (Separate Chaining) - GeeksforGeeks
28 Jun, 2021 We strongly recommend to refer below post as a prerequisite of this. Hashing | Set 1 (Introduction) What is Collision? Since a hash function gets us a small number for a key which is a big integer or string, there is a possibility that two keys result in the same value. The situation where a newly inserte...
[ { "code": null, "e": 39003, "s": 38975, "text": "\n28 Jun, 2021" }, { "code": null, "e": 39104, "s": 39003, "text": "We strongly recommend to refer below post as a prerequisite of this. Hashing | Set 1 (Introduction) " }, { "code": null, "e": 39450, "s": 39104, ...
Properties of Fourier Transform - GeeksforGeeks
04 Dec, 2019 Fourier Transform: Fourier transform is the input tool that is used to decompose an image into its sine and cosine components. Properties of Fourier Transform: Linearity:Addition of two functions corresponding to the addition of the two frequency spectrum is called the linearity. If we multiply a function ...
[ { "code": null, "e": 25893, "s": 25865, "text": "\n04 Dec, 2019" }, { "code": null, "e": 26020, "s": 25893, "text": "Fourier Transform: Fourier transform is the input tool that is used to decompose an image into its sine and cosine components." }, { "code": null, "e":...
How to Generate a Random Directed Acyclic Graph for a Given Number of Edges in Java? - GeeksforGeeks
04 Dec, 2020 A Directed Acyclic Graph is a directed graph with no directed cycles. In a directed graph, the edges are connected so that each edge only goes one way. A directed acyclic graph means that the graph is not cyclic, or that it is impossible to start at one point in the graph and traverse the entire graph. Eac...
[ { "code": null, "e": 25845, "s": 25817, "text": "\n04 Dec, 2020" }, { "code": null, "e": 26209, "s": 25845, "text": "A Directed Acyclic Graph is a directed graph with no directed cycles. In a directed graph, the edges are connected so that each edge only goes one way. A directed ...
Priority Inheritance Protocol (PIP) in Synchronization - GeeksforGeeks
25 May, 2020 Prerequisite – Introduction of Process SynchronizationPriority Inheritance Protocol (PIP) is a technique which is used for sharing critical resources among different tasks. This allows the sharing of critical resources among different without the occurrence of unbounded priority inversions. Basic Concept o...
[ { "code": null, "e": 25737, "s": 25709, "text": "\n25 May, 2020" }, { "code": null, "e": 26029, "s": 25737, "text": "Prerequisite – Introduction of Process SynchronizationPriority Inheritance Protocol (PIP) is a technique which is used for sharing critical resources among differe...
How to remove close button from jQuery UI dialog using jQuery ? - GeeksforGeeks
30 Dec, 2021 In this article, we will learn how to remove the close button on the jQuery UI dialog using JavaScript, This can be achieved using the hide() method. jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. A dialog box is a temp...
[ { "code": null, "e": 27144, "s": 27116, "text": "\n30 Dec, 2021" }, { "code": null, "e": 27584, "s": 27144, "text": "In this article, we will learn how to remove the close button on the jQuery UI dialog using JavaScript, This can be achieved using the hide() method. jQuery UI is ...
HTML | <input type="tel"> - GeeksforGeeks
31 May, 2019 The HTML <input type=”tel”> is used to define a field that entering a user telephone Number. Syntax: <input type="tel"> Example: <!DOCTYPE html><html> <head> <title> HTML Input Type Tel </title></head><style> #Geek_p { font-size: 30px; color: green; }</style> <body style...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n31 May, 2019" }, { "code": null, "e": 26232, "s": 26139, "text": "The HTML <input type=”tel”> is used to define a field that entering a user telephone Number." }, { "code": null, "e": 26240, "s": 26232, "text"...
Number of co-prime pairs in an array - GeeksforGeeks
28 Apr, 2021 Co-prime or mutually prime pair are those pair of numbers whose GCD is 1. Given an array of size n, find number of Co-Prime or mutually prime pairs in the array. Examples: Input : 1 2 3 Output : 3 Here, Co-prime pairs are ( 1, 2), ( 2, 3), ( 1, 3) Input :4 8 3 9 Output :4 He...
[ { "code": null, "e": 26116, "s": 26088, "text": "\n28 Apr, 2021" }, { "code": null, "e": 26278, "s": 26116, "text": "Co-prime or mutually prime pair are those pair of numbers whose GCD is 1. Given an array of size n, find number of Co-Prime or mutually prime pairs in the array." ...
Expected number of cluster of cars formed on infinite Road - GeeksforGeeks
19 Jan, 2022 Given an array speed[] of size N denoting the speed of N cars moving on an infinitely long single lane road (i.e. no overtaking is allowed) from left to right. Initially, the rightmost car is at the first position and whenever a car with higher speed reaches a car with lower speed they start moving with th...
[ { "code": null, "e": 26737, "s": 26709, "text": "\n19 Jan, 2022" }, { "code": null, "e": 27155, "s": 26737, "text": "Given an array speed[] of size N denoting the speed of N cars moving on an infinitely long single lane road (i.e. no overtaking is allowed) from left to right. Ini...
Code Injection and Mitigation with Example - GeeksforGeeks
23 May, 2017 Code injection is the malicious injection or introduction of code into an application. The code introduced or injected is capable of compromising database integrity and/or compromising privacy properties, security and even data correctness. It can also steal data and/or bypass access and authentication con...
[ { "code": null, "e": 25867, "s": 25839, "text": "\n23 May, 2017" }, { "code": null, "e": 26268, "s": 25867, "text": "Code injection is the malicious injection or introduction of code into an application. The code introduced or injected is capable of compromising database integrit...
scipy.fft() in Python - GeeksforGeeks
29 Aug, 2020 With the help of scipy.fft() method, we can compute the fast fourier transformation by passing simple 1-D numpy array and it will return the transformed array by using this method. Fast Fourier Transformation Syntax : scipy.fft(x) Return : Return the transformed array. Example #1 : In this example we can s...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25718, "s": 25537, "text": "With the help of scipy.fft() method, we can compute the fast fourier transformation by passing simple 1-D numpy array and it will return the transformed array by u...
Find the index of the maximum value in R DataFrame - GeeksforGeeks
11 Oct, 2021 In this article, we will see how to find the index of the maximum value from a DataFrame in the R Programming Language We can find the maximum value index in a dataframe using the which.max() function. Syntax: which.max(dataframe_name$columnname) “$” is used to access particular column of a dataframe. Give...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n11 Oct, 2021" }, { "code": null, "e": 26606, "s": 26487, "text": "In this article, we will see how to find the index of the maximum value from a DataFrame in the R Programming Language" }, { "code": null, "e": 26689, ...
Comprehensive Guide to Scatter Plot using ggplot2 in R - GeeksforGeeks
23 Feb, 2022 In this article, we are going to see how to use scatter plots using ggplot2 in the R programming language. ggplot2 package is a free, open-source, and easy-to-use visualization package widely used in R. It is the most powerful visualization package written by Hadley Wickham. This package can be installed u...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n23 Feb, 2022" }, { "code": null, "e": 26594, "s": 26487, "text": "In this article, we are going to see how to use scatter plots using ggplot2 in the R programming language." }, { "code": null, "e": 26834, "s": 265...
OOAD Princhiples Q/A #1
Question:What is inheritance? Discuss types of inheritance with example. Answer: Inheritance is the mechanism to allow a class A to inherit properties of class b i.e A inherits from B. Objects of class A thus have accesses to attribute and methods of class B without the need to redefine them. If class A inherits fro...
[ { "code": null, "e": 2060, "s": 1987, "text": "Question:What is inheritance? Discuss types of inheritance with example." }, { "code": null, "e": 2068, "s": 2060, "text": "Answer:" }, { "code": null, "e": 2507, "s": 2068, "text": "Inheritance is the mechanism ...
How to create a COVID19 Data Representation GUI? - GeeksforGeeks
15 Feb, 2021 Prerequisites: Python Requests, Python GUI – tkinterSometimes we just want a quick fast tool to really tell whats the current update, we just need a bare minimum of data. Web scrapping deals with taking some data from the web and then processing it and displaying the relevant content in a short and crisp m...
[ { "code": null, "e": 24823, "s": 24795, "text": "\n15 Feb, 2021" }, { "code": null, "e": 25164, "s": 24823, "text": "Prerequisites: Python Requests, Python GUI – tkinterSometimes we just want a quick fast tool to really tell whats the current update, we just need a bare minimum o...
Stop copy-pasting notebooks, embrace Jupyter templates! | by Emanuele Fabbiani | Towards Data Science
Jupyter notebooks are awesome. They combine code, output and text, enabling fast prototyping, early debugging and effective storytelling. Nonetheless, notebooks come with their own limitations, the most annoying ones being limited scalability, tendency to push developers to duplicate code and lack of a standard structu...
[ { "code": null, "e": 309, "s": 171, "text": "Jupyter notebooks are awesome. They combine code, output and text, enabling fast prototyping, early debugging and effective storytelling." }, { "code": null, "e": 495, "s": 309, "text": "Nonetheless, notebooks come with their own limit...
Lexicographically smallest string of length N and sum K - GeeksforGeeks
14 May, 2021 Given two integers N and K. The task is to print the lexicographically smallest string of length N consisting of lower-case English alphabates such that the sum of the characters of the string equals to K where ‘a’ = 1, ‘b’ = 2, ‘c’ = 3, ..... and ‘z’ = 26.Examples: Input: N = 5, K = 42 Output: aaamz “aa...
[ { "code": null, "e": 25240, "s": 25212, "text": "\n14 May, 2021" }, { "code": null, "e": 25509, "s": 25240, "text": "Given two integers N and K. The task is to print the lexicographically smallest string of length N consisting of lower-case English alphabates such that the sum of...
How to initialize a boolean array in JavaScript?
To initialize a Boolean array in JavaScript, try to run the following code − Live Demo <html> <head> <title>JavaScript Boolean</title> </head> <body> <script> var myArr = []; var value = 2; for(var i = 0; i < value; i++) { myArr.push(false); } ...
[ { "code": null, "e": 1139, "s": 1062, "text": "To initialize a Boolean array in JavaScript, try to run the following code −" }, { "code": null, "e": 1149, "s": 1139, "text": "Live Demo" }, { "code": null, "e": 1435, "s": 1149, "text": "<html>\n <head>\n ...
Variadic function templates in C++
Variadic function templates in C++ is a function which can take a multiple number of arguments. template(typename arg, typename... args) return_type function_name(arg var1, args... var2) Live Demo #include <iostream> using namespace std; void show() //base case. { cout << "I am now empty"; } template <typename T, ...
[ { "code": null, "e": 1158, "s": 1062, "text": "Variadic function templates in C++ is a function which can take a multiple number of arguments." }, { "code": null, "e": 1249, "s": 1158, "text": "template(typename arg, typename... args)\nreturn_type function_name(arg var1, args... ...
How to pretty print JSON using the Gson library in Java?
A Gson is a JSON library for java, which is created by Google. By using Gson, we can generate JSON and convert JSON to java objects. By default, Gson can print the JSON in compact format. To enable Gson pretty print, we must configure the Gson instance using the setPrettyPrinting() method of GsonBuilder class and this ...
[ { "code": null, "e": 1461, "s": 1062, "text": "A Gson is a JSON library for java, which is created by Google. By using Gson, we can generate JSON and convert JSON to java objects. By default, Gson can print the JSON in compact format. To enable Gson pretty print, we must configure the Gson instance ...
Style the Bootstrap modal
Use the .modal-body class in Bootstrap to style the modal. You can try to run the following code to style modal −/p> LIve Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <scr...
[ { "code": null, "e": 1121, "s": 1062, "text": "Use the .modal-body class in Bootstrap to style the modal." }, { "code": null, "e": 1179, "s": 1121, "text": "You can try to run the following code to style modal −/p>" }, { "code": null, "e": 1189, "s": 1179, "te...
Angular 2 - Templates
In the chapter on Components, we have already seen an example of the following template. template: ' <div> <h1>{{appTitle}}</h1> <div>To Tutorials Point</div> </div> ' This is known as an inline template. There are other ways to define a template and that can be done via the templateURL command. The s...
[ { "code": null, "e": 2386, "s": 2297, "text": "In the chapter on Components, we have already seen an example of the following template." }, { "code": null, "e": 2483, "s": 2386, "text": "template: '\n <div>\n <h1>{{appTitle}}</h1>\n <div>To Tutorials Point</div>\n <...
Difference between order by and group by clause in SQL - GeeksforGeeks
22 Apr, 2020 1. Order By :Order by keyword sort the result-set either in ascending or in descending order. This clause sorts the result-set in ascending order by default. In order to sort the result-set in descending order DESC keyword is used. Order By Syntax – SELECT column_1, column_2, column_3........... FROM Table...
[ { "code": null, "e": 25211, "s": 25183, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25443, "s": 25211, "text": "1. Order By :Order by keyword sort the result-set either in ascending or in descending order. This clause sorts the result-set in ascending order by default. In or...
GitLab - Squashing Commits
Squashing is a way of combining all commits into one when you are obtaining a merge request. Step 1 − Go to your project directory and check out a new branch with the name squash-chapter by using the git checkout command − The flag -b indicates new branch name. Step 2 − Now, create a new file with two commits, add that...
[ { "code": null, "e": 2417, "s": 2324, "text": "Squashing is a way of combining all commits into one when you are obtaining a merge request." }, { "code": null, "e": 2547, "s": 2417, "text": "Step 1 − Go to your project directory and check out a new branch with the name squash-cha...
JavaScript | string.length - GeeksforGeeks
02 Jul, 2018 The string.length is a property in JavaScript which is used to find the length of a given string.Syntax: string.length Parameter: It does not accept any parameter.Return Values: It returns the length of the given string. <script> // Taking some strings var x = 'geeksforgeeks'; var y = 'gfg'; ...
[ { "code": null, "e": 24527, "s": 24499, "text": "\n02 Jul, 2018" }, { "code": null, "e": 24632, "s": 24527, "text": "The string.length is a property in JavaScript which is used to find the length of a given string.Syntax:" }, { "code": null, "e": 24646, "s": 24632...
Dictionary.Item[] Property in C#
The Dictionary.Item[] property in C# is used to get or set the value associated with the specified key in the Dictionary. Following is the syntax − public TValue this[TKey key] { get; set; } Let us now see an example to implement the Dictionary.Item[] property − using System; using System.Collections.Generic; public cl...
[ { "code": null, "e": 1184, "s": 1062, "text": "The Dictionary.Item[] property in C# is used to get or set the value associated with the specified key in the Dictionary." }, { "code": null, "e": 1210, "s": 1184, "text": "Following is the syntax −" }, { "code": null, "e...
Write a program to design a chess board using PHP
05 Nov, 2021 Chess is a recreational and competitive board game played between two players. It is played on a square chessboard with 64 squares arranged in an eight-by-eight grid black-white alternatively. In this article, we will learn how to design a Chess Board using PHP. Approach: To create Chess in php; we have to...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Nov, 2021" }, { "code": null, "e": 291, "s": 28, "text": "Chess is a recreational and competitive board game played between two players. It is played on a square chessboard with 64 squares arranged in an eight-by-eight grid black-whi...
Namedtuple in Python
25 Jan, 2022 Python supports a type of container like dictionaries called “namedtuple()” present in the module, “collections“. Like dictionaries, they contain keys that are hashed to a particular value. But on contrary, it supports both access from key-value and iteration, the functionality that dictionaries lack. Exam...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Jan, 2022" }, { "code": null, "e": 357, "s": 54, "text": "Python supports a type of container like dictionaries called “namedtuple()” present in the module, “collections“. Like dictionaries, they contain keys that are hashed to a pa...
Program to find if a character is vowel or Consonant
08 Mar, 2022 Given a character, check if it is vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’, ‘f’ ....) are consonants. Examples: Input : x = 'c' Output : Consonant Input : x = 'u' Output : Vowel We check whether the given character matches any of the 5 vowels. If yes...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Mar, 2022" }, { "code": null, "e": 208, "s": 52, "text": "Given a character, check if it is vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’, ‘f’ ....) are consonants." }, { "cod...
SQL Query to Select all Records From Employee Table Where Name is Not Specified
14 May, 2021 Here, we are going to see how to find the names of the persons other than a person with a particular name SQL. In this article, we will be making use of the MSSQL Server as our database. For example, if the employee name is Pradeep you need to show the table of employees excluding that employee with the n...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 May, 2021" }, { "code": null, "e": 242, "s": 54, "text": "Here, we are going to see how to find the names of the persons other than a person with a particular name SQL. In this article, we will be making use of the MSSQL Server as ...
How to make a blinking text using jQuery ?
05 Sep, 2019 Given an HTML document and the task is to blink the certain text of an element using jQuery. There are few techniques to solve this problem which are discussed below: Approach 1: Select a particular element from the document. Toggle its visibility property from hidden to visible and vice-versa after a part...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2019" }, { "code": null, "e": 195, "s": 28, "text": "Given an HTML document and the task is to blink the certain text of an element using jQuery. There are few techniques to solve this problem which are discussed below:" }, ...
Use of na_values parameter in read_csv() function of Pandas in Python
28 Jul, 2020 read_csv() is an important pandas function to read CSV files. But there are many other things one can do through this function only to change the returned object completely. In this post, we will see the use of the na_values parameter. na_values: This is used to create a string that considers pandas as NaN...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jul, 2020" }, { "code": null, "e": 289, "s": 53, "text": "read_csv() is an important pandas function to read CSV files. But there are many other things one can do through this function only to change the returned object completely. ...
Right Click menu using Tkinter
20 Apr, 2020 Python 3.x comes bundled with the Tkinter module that is useful for making GUI based applications. Of all the other frameworks supported by Python Tkinter is the simplest and fastest. Tkinter offers a plethora of widgets that can be used to build GUI applications along with the main event loop that keeps r...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Apr, 2020" }, { "code": null, "e": 402, "s": 28, "text": "Python 3.x comes bundled with the Tkinter module that is useful for making GUI based applications. Of all the other frameworks supported by Python Tkinter is the simplest and ...
HTTP headers | Location
07 Nov, 2019 The HTTP Location header is a response header that is used under 2 circumstances to ask a browser to redirect a URL (status code 3xx) or provide information about the location of a newly created resource (status code of 201). Its usage is often confused with another HTTP Header which is HTTP Content-Locati...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Nov, 2019" }, { "code": null, "e": 551, "s": 28, "text": "The HTTP Location header is a response header that is used under 2 circumstances to ask a browser to redirect a URL (status code 3xx) or provide information about the location...
Stack clone() method in Java with Example
24 Dec, 2018 The clone() method of Stack class is used to return a shallow copy of this Stack. It just creates a copy of the Stack. The copy will have a reference to a clone of the internal data array but not a reference to the original internal data array. Syntax: Stack.clone() Parameters: The method does not take any...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Dec, 2018" }, { "code": null, "e": 273, "s": 28, "text": "The clone() method of Stack class is used to return a shallow copy of this Stack. It just creates a copy of the Stack. The copy will have a reference to a clone of the interna...
Python | Add tuple to front of list
18 Oct, 2019 Sometimes, while working with Python list, we can have a problem in which we need to add a new tuple to existing list. Append at rear is usually easier than addition at front. Let’s discuss certain ways in which this task can be performed. Method #1 : Using insert()This is one of the way in which the eleme...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Oct, 2019" }, { "code": null, "e": 268, "s": 28, "text": "Sometimes, while working with Python list, we can have a problem in which we need to add a new tuple to existing list. Append at rear is usually easier than addition at front....
How to create a drag and drop feature for reordering the images using HTML CSS and jQueryUI ?
03 Aug, 2021 Given an images gallery and the task is to re-arrange the order of images in the list or grid by dragging and dropping. The jQuery UI framework provides a sortable() function which helps in re-ordering list items by using the mouse. With this functionality, the list items become interchangeable. The jQuery...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Aug, 2021" }, { "code": null, "e": 658, "s": 52, "text": "Given an images gallery and the task is to re-arrange the order of images in the list or grid by dragging and dropping. The jQuery UI framework provides a sortable() function...
String in Switch Case in Java
11 Jul, 2022 The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression. Basically, the expression can be a byte, short, char, and int primitive data types. Beginning with JDK7, it also works with enumerated types (...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jul, 2022" }, { "code": null, "e": 416, "s": 53, "text": "The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression. Basically...
Multiset in C++ Standard Template Library (STL)
16 Jun, 2022 Multisets are a type of associative containers similar to the set, with the exception that multiple elements can have the same values. Some Basic Functions associated with multiset: begin() – Returns an iterator to the first element in the multiset –> O(1) end() – Returns an iterator to the theoretical e...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 235, "s": 52, "text": "Multisets are a type of associative containers similar to the set, with the exception that multiple elements can have the same values. Some Basic Functions associated with mu...
JavaScript Array splice() Method
27 May, 2022 Below is the example of Array splice() method. Example: Javascript <script> var webDvlop = ["HTML", "CSS", "JS", "Bootstrap"]; document.write(webDvlop + "<br>"); // Add 'React_Native' and 'Php' after removing 'JS'. var removed = webDvlop.splice(2, 1, 'PHP', 'React_Native') document.writ...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 May, 2022" }, { "code": null, "e": 101, "s": 53, "text": "Below is the example of Array splice() method. " }, { "code": null, "e": 111, "s": 101, "text": "Example: " }, { "code": null, "e": 122, "...
Python program to print the Inverted heart pattern
04 Oct, 2021 Let us see how to print an inverted heart pattern in Python. Example: Input: 11 Output: * *** ***** ******* ********* *********** ************* *************** ***************** ******************* ********************* ********* ******** ******* ...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Oct, 2021" }, { "code": null, "e": 115, "s": 54, "text": "Let us see how to print an inverted heart pattern in Python." }, { "code": null, "e": 124, "s": 115, "text": "Example:" }, { "code": null, "e"...
Useful IPython magic commands. Towards becoming a Jupyter Notebook... | by Zolzaya Luvsandorj | Towards Data Science
When using Jupyter Notebook with IPython kernel, IPython magic commands come in handy. These magic commands make it easier to complete certain tasks. You can think of them as an extra set of helpful syntax in addition to Python syntax. In this post, we will get familiar with a few useful magic commands that you could u...
[ { "code": null, "e": 516, "s": 172, "text": "When using Jupyter Notebook with IPython kernel, IPython magic commands come in handy. These magic commands make it easier to complete certain tasks. You can think of them as an extra set of helpful syntax in addition to Python syntax. In this post, we wi...
Maximum value of unsigned short int in C++ - GeeksforGeeks
28 Dec, 2020 In this article, we will discuss the unsigned short int data type in C++. It is the smallest (16 bit) integer data type in C++. Some properties of the unsigned short int data type are: Being an unsigned data type, it can store only positive values.Takes a size of 16 bits.A maximum integer value that can b...
[ { "code": null, "e": 24018, "s": 23990, "text": "\n28 Dec, 2020" }, { "code": null, "e": 24147, "s": 24018, "text": "In this article, we will discuss the unsigned short int data type in C++. It is the smallest (16 bit) integer data type in C++. " }, { "code": null, "e...
How to Design For Panic Resilience in Rust | by Luke Wilson | Towards Data Science
Try to imagine using some software and WHAM, a bunch of text, and visual garbage the brain can’t help but ignore. Or better yet, your user is piloting a commercial airliner when they press two buttons at the same time and the plane turns off. What we need is clear feedback, and to prevent halting execution. In this sto...
[ { "code": null, "e": 603, "s": 171, "text": "Try to imagine using some software and WHAM, a bunch of text, and visual garbage the brain can’t help but ignore. Or better yet, your user is piloting a commercial airliner when they press two buttons at the same time and the plane turns off. What we need...
How to subset a data frame by excluding the column names that are stored in a vector in R?
Subsetting of a data frame can be done in many ways and one such say is selecting the columns that are stored in a vector. Suppose we have a data frame df that has columns x, y, and z and the column names y and z are stored in a vector called V then we can subset df by excluding column names in V as select(df,-all_of(V...
[ { "code": null, "e": 1386, "s": 1062, "text": "Subsetting of a data frame can be done in many ways and one such say is selecting the columns that are stored in a vector. Suppose we have a data frame df that has columns x, y, and z and the column names y and z are stored in a vector called V then we ...
KeyPairGenerator generateKeyPair() method in Java
A key pair can be generated using the generateKeyPair() method in the class java.security.KeyPairGenerator. This method requires no parameters and it returns the key pair that is generated. Every time the generateKeyPair() method is called, it generates a new key pair. A program that demonstrates this is given as follo...
[ { "code": null, "e": 1332, "s": 1062, "text": "A key pair can be generated using the generateKeyPair() method in the class java.security.KeyPairGenerator. This method requires no parameters and it returns the key pair that is generated. Every time the generateKeyPair() method is called, it generates...
Minimize operations to transform A to B by multiplying by 2 or appending 1 to it - GeeksforGeeks
17 Dec, 2021 Given two numbers A and B, the task is to find the minimum number of the following operations to transform A to B: Multiply the current number by 2 (i.e. replace the number X by 2X)Append the digit 1 to the right of the current number (i.e. replace the number X by 10X + 1). Multiply the current number by 2...
[ { "code": null, "e": 24869, "s": 24841, "text": "\n17 Dec, 2021" }, { "code": null, "e": 24984, "s": 24869, "text": "Given two numbers A and B, the task is to find the minimum number of the following operations to transform A to B:" }, { "code": null, "e": 25144, ...
Maximum and Minimum element of a linked list which is divisible by a given number k in C++
A linked list is a linear data structure in which elements are linked via pointers. Each element or node of a linked list has a data part and link, or we can say pointer to the next element in sequence. The elements can take noncontiguous locations in memory. We are given a singly linked list in which there is a data p...
[ { "code": null, "e": 1322, "s": 1062, "text": "A linked list is a linear data structure in which elements are linked via pointers. Each element or node of a linked list has a data part and link, or we can say pointer to the next element in sequence. The elements can take noncontiguous locations in m...
AWT FlowLayout Class
The class FlowLayout components in a left-to-right flow. Following is the declaration for java.awt.FlowLayout class: public class FlowLayout extends Object implements LayoutManager, Serializable Following are the fields for java.awt.BorderLayout class: static int CENTER -- This value indicates that each row o...
[ { "code": null, "e": 1804, "s": 1747, "text": "The class FlowLayout components in a left-to-right flow." }, { "code": null, "e": 1864, "s": 1804, "text": "Following is the declaration for java.awt.FlowLayout class:" }, { "code": null, "e": 1951, "s": 1864, "te...
How to show image in alert box using JavaScript?
To show an image in alert box, try to run the following code. Here, an alert image is added to the custom alert box − Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script> <script> function functionAlert(msg, myYes...
[ { "code": null, "e": 1180, "s": 1062, "text": "To show an image in alert box, try to run the following code. Here, an alert image is added to the custom alert box −" }, { "code": null, "e": 1190, "s": 1180, "text": "Live Demo" }, { "code": null, "e": 2893, "s": 11...
Importance of the Collatz conjecture - GeeksforGeeks
23 Dec, 2021 Introduction :The Collatz conjecture is an elusive problem in mathematics regarding the oneness of natural numbers when run through a specific function based on being odd or even, specifically starting that regardless of the initial number the series will eventually reach the number 1. The Collatz Conjectu...
[ { "code": null, "e": 26137, "s": 26109, "text": "\n23 Dec, 2021" }, { "code": null, "e": 26650, "s": 26137, "text": "Introduction :The Collatz conjecture is an elusive problem in mathematics regarding the oneness of natural numbers when run through a specific function based on be...
How to define colors as variables in CSS ? - GeeksforGeeks
27 Apr, 2020 In CSS, we can define custom properties (often known as CSS variables), that offers us great flexibility to define a set of rules and avoid rewriting them again and again. We can also use custom properties to define colors. Example 1: <!DOCTYPE html><html> <head> <title> How to define colors as ...
[ { "code": null, "e": 26731, "s": 26703, "text": "\n27 Apr, 2020" }, { "code": null, "e": 26955, "s": 26731, "text": "In CSS, we can define custom properties (often known as CSS variables), that offers us great flexibility to define a set of rules and avoid rewriting them again an...
How to create hardlink of a file using Python?
The method os.link(src, dst) creates a hard link pointing to src named dst. This method is very useful to create a copy of existing file. For example, if you have a file called photo.jpg and want to create a hard link to it called my_photo.jpg, then you could simply use: >>> import os >>> os.link('photo.jpg', 'my_phot...
[ { "code": null, "e": 1200, "s": 1062, "text": "The method os.link(src, dst) creates a hard link pointing to src named dst. This method is very useful to create a copy of existing file." }, { "code": null, "e": 1335, "s": 1200, "text": "For example, if you have a file called photo...
C# | BitConverter.ToString(Byte[]) Method - GeeksforGeeks
01 Feb, 2019 This method is used to convert the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation. Syntax: public static string ToString (byte[] value); Here, the value is an array of bytes. Return Value: This method returns a string of hexadecimal pairs sep...
[ { "code": null, "e": 23282, "s": 23254, "text": "\n01 Feb, 2019" }, { "code": null, "e": 23430, "s": 23282, "text": "This method is used to convert the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation." }, { "...
Grid System - Mobile, Tablet, Desktops
We have seen an example for Medium and Large Device. Now let us take it to another level, where we would want to change it for the extra small phone size as well. Say we want to add the option for the columns to be split 75%/25% for tablets, we go like this − <div class = "col-sm-3 col-md-6 col-lg-4">....</div> <div cl...
[ { "code": null, "e": 3591, "s": 3331, "text": "We have seen an example for Medium and Large Device. Now let us take it to another level, where we would want to change it for the extra small phone size as well. Say we want to add the option for the columns to be split 75%/25% for tablets, we go like ...
BooleanField - Django Models - GeeksforGeeks
24 Aug, 2021 BooleanField is a true/false field. It is like a bool field in C/C+++. The default form widget for this field is CheckboxInput, or NullBooleanSelect if null=True. The default value of BooleanField is None when Field.default isn’t defined. One can define the default value as true or false by setting the def...
[ { "code": null, "e": 25507, "s": 25479, "text": "\n24 Aug, 2021" }, { "code": null, "e": 25860, "s": 25507, "text": "BooleanField is a true/false field. It is like a bool field in C/C+++. The default form widget for this field is CheckboxInput, or NullBooleanSelect if null=True. ...
Reach the target | Practice | GeeksforGeeks
Given four integers A, B, C, D. A represents the initial position of the geek on the x-axis. In each step, geek can go to X+B or X-B if he is standing at X. The tasks is to check if it is possible for the geek to reach C exactly after D steps. Input: 1. The first line of the input contains a single integer T denoting...
[ { "code": null, "e": 482, "s": 238, "text": "Given four integers A, B, C, D. A represents the initial position of the geek on the x-axis. In each step, geek can go to X+B or X-B if he is standing at X. The tasks is to check if it is possible for the geek to reach C exactly after D steps." }, { ...
JDBC PreparedStatement Example | PreparedStatement in JDBC Exampl
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this tutorials, we are going to discuss JD...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
D3.js lineRadial() Method - GeeksforGeeks
23 Aug, 2020 The d3.lineRadial() method is used to constructs a new Radial line generator with the default settings. The Radial line generator is then used to make a Radial line. Syntax: d3.lineRadial(); Parameters: This method does not accept any parameters. Return Value: This method returns a Radial line Generator. E...
[ { "code": null, "e": 25220, "s": 25192, "text": "\n23 Aug, 2020" }, { "code": null, "e": 25386, "s": 25220, "text": "The d3.lineRadial() method is used to constructs a new Radial line generator with the default settings. The Radial line generator is then used to make a Radial lin...
Difference between regular functions and arrow functions - GeeksforGeeks
24 May, 2019 This article discusses the major differences between the regular functions and the arrow functions. Arrow functions – a new feature introduced in ES6 – enable writing concise functions in JavaScript. While both regular and arrow functions work in a similar manner, yet there are certain interesting differen...
[ { "code": null, "e": 24012, "s": 23984, "text": "\n24 May, 2019" }, { "code": null, "e": 24112, "s": 24012, "text": "This article discusses the major differences between the regular functions and the arrow functions." }, { "code": null, "e": 24357, "s": 24112, ...
Kth Smallest Number in Multiplication Table in C++
Suppose we know about one Multiplication Table. But could we find out the k-th smallest number quickly from the multiplication table? So if we have to height m and the length n of a m * n Multiplication Table, and one positive integer k, we have need to find the k-th smallest number in this table. So if m = 3 and n = 3...
[ { "code": null, "e": 1361, "s": 1062, "text": "Suppose we know about one Multiplication Table. But could we find out the k-th smallest number quickly from the multiplication table? So if we have to height m and the length n of a m * n Multiplication Table, and one positive integer k, we have need to...
Implementation of K-Nearest Neighbors from Scratch using Python - GeeksforGeeks
14 Oct, 2020 K Nearest Neighbors Classification is one of the classification techniques based on instance-based learning. Models based on instance-based learning to generalize beyond the training examples. To do so, they store the training examples first. When it encounters a new instance (or test example), then they i...
[ { "code": null, "e": 24131, "s": 24103, "text": "\n14 Oct, 2020" }, { "code": null, "e": 24731, "s": 24131, "text": "K Nearest Neighbors Classification is one of the classification techniques based on instance-based learning. Models based on instance-based learning to generalize ...
How to change the color and add grid lines to a Python Matplotlib surface plot?
To change the color and add grid lines to a Python surface plot, we can take the following steps − 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, y and h data points using numpy. Create x, y and h data poi...
[ { "code": null, "e": 1161, "s": 1062, "text": "To change the color and add grid lines to a Python surface plot, we can take the following steps −" }, { "code": null, "e": 1237, "s": 1161, "text": "Set the figure size and adjust the padding between and around the subplots." }, ...
How to set the part of the Android TextView as clickable?
This example demonstrates how do I set the part of the Android textView as clickable. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <...
[ { "code": null, "e": 1148, "s": 1062, "text": "This example demonstrates how do I set the part of the Android textView as clickable." }, { "code": null, "e": 1277, "s": 1148, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ...
Apache Presto - current_date()
presto:default> select current_date as date; Date ------------ 2016-07-06 The query returns the current date. 46 Lectures 3.5 hours Arnab Chakraborty 23 Lectures 1.5 hours Mukund Kumar Mishra 16 Lectures 1 hours Nilay Mehta 52 Lectures 1.5 hours Bigdata En...
[ { "code": null, "e": 2051, "s": 2006, "text": "presto:default> select current_date as date;" }, { "code": null, "e": 2088, "s": 2051, "text": " Date \n------------ \n 2016-07-06 \n" }, { "code": null, "e": 2124, "s": 2088, "text": "The query returns the curr...
Karger’s algorithm for Minimum Cut | Set 2 (Analysis and Applications) - GeeksforGeeks
10 May, 2016 We have introduced and discussed below Karger’s algorithm in set 1. 1) Initialize contracted graph CG as copy of original graph 2) While there are more than 2 vertices. a) Pick a random edge (u, v) in the contracted graph. b) Merge (or contract) u and v into a single vertex (update ...
[ { "code": null, "e": 24661, "s": 24633, "text": "\n10 May, 2016" }, { "code": null, "e": 24729, "s": 24661, "text": "We have introduced and discussed below Karger’s algorithm in set 1." }, { "code": null, "e": 25061, "s": 24729, "text": "1) Initialize contrac...
Containers in C++ STL
In this tutorial, we will be discussing a program to understand containers in C++ STL. Containers are the objects used to store multiple elements of the same type or different. Depending on that they can be further classified as − Sequence containers (array, vector, list) Sequence containers (array, vector, list) Assoc...
[ { "code": null, "e": 1149, "s": 1062, "text": "In this tutorial, we will be discussing a program to understand containers in C++ STL." }, { "code": null, "e": 1293, "s": 1149, "text": "Containers are the objects used to store multiple elements of the same type or different. Depen...
Maximum Weight Difference in C++ Program
In this problem, we are given an array arr[] and a number M. Our task is to create a program to calculate the Maximum Weight Difference in C++. We will find M elements from the array such that the absolute difference between the sum and the sum of the rest elements is maximum. Let’s take an example to understand the pr...
[ { "code": null, "e": 1206, "s": 1062, "text": "In this problem, we are given an array arr[] and a number M. Our task is to\ncreate a program to calculate the Maximum Weight Difference in C++." }, { "code": null, "e": 1340, "s": 1206, "text": "We will find M elements from the arra...
Insertion Sort Program in C
This is an in-place comparison-based sorting algorithm. Here, a sub-list is maintained which is always sorted. For example, the lower part of an array is maintained to be sorted. An element which is to be 'insert'ed in this sorted sub-list, has to find its appropriate place and then it is to be inserted there. Hence th...
[ { "code": null, "e": 2923, "s": 2580, "text": "This is an in-place comparison-based sorting algorithm. Here, a sub-list is maintained which is always sorted. For example, the lower part of an array is maintained to be sorted. An element which is to be 'insert'ed in this sorted sub-list, has to find ...
C Program to Compute Quotient and Remainder?
Given two numbers dividend and divisor. The task is to write a program to find the quotient and remainder of these two numbers when the dividend is divided by the divisor. In division, we will see the relationship between the dividend, divisor, quotient, and remainder. The number which we divide is called the dividend....
[ { "code": null, "e": 1234, "s": 1062, "text": "Given two numbers dividend and divisor. The task is to write a program to find the quotient and remainder of these two numbers when the dividend is divided by the divisor." }, { "code": null, "e": 1526, "s": 1234, "text": "In divisio...
wxPython - Multiple Document Interface
A typical GUI application may have multiple windows. Tabbed and stacked widgets allow to activate one such window at a time. However, many a times this approach may not be useful as view of other windows is hidden. One way to display multiple windows simultaneously is to create them as independent windows. This is call...
[ { "code": null, "e": 2097, "s": 1882, "text": "A typical GUI application may have multiple windows. Tabbed and stacked widgets allow to activate one such window at a time. However, many a times this approach may not be useful as view of other windows is hidden." }, { "code": null, "e": 2...
WPF - Resources
Resources are normally definitions connected with some object that you just anticipate to use more often than once. It is the ability to store data locally for controls or for the current window or globally for the entire applications. Defining an object as a resource allows us to access it from another place. What it ...
[ { "code": null, "e": 2256, "s": 2020, "text": "Resources are normally definitions connected with some object that you just anticipate to use more often than once. It is the ability to store data locally for controls or for the current window or globally for the entire applications." }, { "co...
Can we define an abstract class with no abstract methods in Java?
Yes, we can declare an abstract class with no abstract methods in Java. An abstract class means that hiding the implementation and showing the function definition to the user. An abstract class having both abstract methods and non-abstract methods. For an abstract class, we are not able to create an object directly. Bu...
[ { "code": null, "e": 1134, "s": 1062, "text": "Yes, we can declare an abstract class with no abstract methods in Java." }, { "code": null, "e": 1238, "s": 1134, "text": "An abstract class means that hiding the implementation and showing the function definition to the user." }, ...
Count subarrays with equal number of 1's and 0's - GeeksforGeeks
24 Mar, 2022 Given an array arr[] of size n containing 0 and 1 only. The problem is to count the subarrays having an equal number of 0’s and 1’s. Examples: Input : arr[] = {1, 0, 0, 1, 0, 1, 1} Output : 8 The index range for the 8 sub-arrays are: (0, 1), (2, 3), (0, 3), (3, 4), (4, 5) (2, 5), (0, 5), (1, 6) The probl...
[ { "code": null, "e": 24205, "s": 24177, "text": "\n24 Mar, 2022" }, { "code": null, "e": 24338, "s": 24205, "text": "Given an array arr[] of size n containing 0 and 1 only. The problem is to count the subarrays having an equal number of 0’s and 1’s." }, { "code": null, ...
Django - URL Mapping
Now that we have a working view as explained in the previous chapters. We want to access that view via a URL. Django has his own way for URL mapping and it's done by editing your project url.py file (myproject/url.py). The url.py file looks like − from django.conf.urls import patterns, include, url from django.contrib ...
[ { "code": null, "e": 2293, "s": 2045, "text": "Now that we have a working view as explained in the previous chapters. We want to access that view via a URL. Django has his own way for URL mapping and it's done by editing your project url.py file (myproject/url.py). The url.py file looks like −" },...
How to BIND a DBRM directly into a PLAN?
A DBRM is a DB2 object which is generated from the pre-compilation of the source code. It contains all the SQL statements/queries of the source code. DBRM could not be executed directly due to its format, hence it is binded into a plan first. There can be multiple DBRM which can be binded in a single plan. Whenever the...
[ { "code": null, "e": 1370, "s": 1062, "text": "A DBRM is a DB2 object which is generated from the pre-compilation of the source code. It contains all the SQL statements/queries of the source code. DBRM could not be executed directly due to its format, hence it is binded into a plan first. There can ...
Interleave the first half of the queue with second half - GeeksforGeeks
05 May, 2022 Given a queue of integers of even length, rearrange the elements by interleaving the first half of the queue with the second half of the queue. Only a stack can be used as an auxiliary space. Examples: Input : 1 2 3 4 Output : 1 3 2 4 Input : 11 12 13 14 15 16 17 18 19 20 Output : 11 16 12 17 13 18 14 19...
[ { "code": null, "e": 25933, "s": 25905, "text": "\n05 May, 2022" }, { "code": null, "e": 26135, "s": 25933, "text": "Given a queue of integers of even length, rearrange the elements by interleaving the first half of the queue with the second half of the queue. Only a stack can be...
Minimum cost of path between given nodes containing at most K nodes in a directed and weighted graph - GeeksforGeeks
10 Feb, 2022 Given a directed weighted graph represented by a 2-D array graph[][] of size n and 3 integers src, dst, and k representing the source point, destination point, and the available number of stops. The task is to minimize the cost of the path between two nodes containing at most K nodes in a directed and weig...
[ { "code": null, "e": 26311, "s": 26283, "text": "\n10 Feb, 2022" }, { "code": null, "e": 26668, "s": 26311, "text": "Given a directed weighted graph represented by a 2-D array graph[][] of size n and 3 integers src, dst, and k representing the source point, destination point, and...
Guidelines for asymptotic analysis - GeeksforGeeks
09 Jul, 2021 In this article, the focus is on learning some rules that can help to determine the running time of an algorithm. Asymptotic analysis refers to computing the running time of any operation in mathematical units of computation. In Asymptotic Analysis, the performance of an algorithm in terms of input size (w...
[ { "code": null, "e": 25943, "s": 25915, "text": "\n09 Jul, 2021" }, { "code": null, "e": 26057, "s": 25943, "text": "In this article, the focus is on learning some rules that can help to determine the running time of an algorithm." }, { "code": null, "e": 26401, "...
CURRENT_TIMESTAMP() Function in SQL Server - GeeksforGeeks
18 Jan, 2021 CURRENT_TIMESTAMP() function :This function in SQL Server is used to return the current date as well as time. And the format of the output is as follows. 'YYYY-MM-DD hh:mm:ss.mmm' Features : This function is used to find the current date and time. This function comes under Date Functions. This function doe...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n18 Jan, 2021" }, { "code": null, "e": 25667, "s": 25513, "text": "CURRENT_TIMESTAMP() function :This function in SQL Server is used to return the current date as well as time. And the format of the output is as follows." }, {...
GATE | GATE-CS-2014-(Set-3) | Question 65 - GeeksforGeeks
30 Sep, 2021 An instruction pipeline has five stages, namely, instruction fetch (IF), instruction decode and register fetch (ID/RF), instruction execution (EX), memory access (MEM), and register writeback (WB) with stage latencies 1 ns, 2.2 ns, 2 ns, 1 ns, and 0.75 ns, respectively (ns stands for nanoseconds). To gain ...
[ { "code": null, "e": 25773, "s": 25745, "text": "\n30 Sep, 2021" }, { "code": null, "e": 26889, "s": 25773, "text": "An instruction pipeline has five stages, namely, instruction fetch (IF), instruction decode and register fetch (ID/RF), instruction execution (EX), memory access (...
Building blocks of a Data Model - GeeksforGeeks
25 Mar, 2020 A data model is a structure of the data that contains all the required details of the data like the name of the data, size of the data, relationship with other data and constraints that are applied on the data. It is a communication tool. A data model is essential in order to store the database in a sorted...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n25 Mar, 2020" }, { "code": null, "e": 25788, "s": 25549, "text": "A data model is a structure of the data that contains all the required details of the data like the name of the data, size of the data, relationship with other dat...
Solidity - View and Pure Functions - GeeksforGeeks
11 May, 2022 The view functions are read-only function, which ensures that state variables cannot be modified after calling them. If the statements which modify state variables, emitting events, creating other contracts, using selfdestruct method, transferring ethers via calls, Calling a function which is not ‘view or ...
[ { "code": null, "e": 25681, "s": 25653, "text": "\n11 May, 2022" }, { "code": null, "e": 26144, "s": 25681, "text": "The view functions are read-only function, which ensures that state variables cannot be modified after calling them. If the statements which modify state variables...
How to change pagefile settings from custom to system managed using PowerShell?
To change the pagefile settings to system managed, we need to set InitialSize and MaximumSize parameters to 0. In the below example, we have E: has custom pagefile, not system managed and we need to convert it to the system managed. $pagefileset = Gwmi win32_pagefilesetting | where{$_.caption -like 'E:*'} $pagefileset....
[ { "code": null, "e": 1295, "s": 1062, "text": "To change the pagefile settings to system managed, we need to set InitialSize and MaximumSize parameters to 0. In the below example, we have E: has custom pagefile, not system managed and we need to convert it to the system managed." }, { "code"...
How to detect the value change of a JSlider in Java?
A JSlider is a subclass of JComponent class and it is similar to scroll bar which allows the user to select a numeric value from a specified range of integer values. A JSlider has a knob which can slide on a range of values and can be used to select a particular value. and it can generate a ChangeListener interface. We...
[ { "code": null, "e": 1380, "s": 1062, "text": "A JSlider is a subclass of JComponent class and it is similar to scroll bar which allows the user to select a numeric value from a specified range of integer values. A JSlider has a knob which can slide on a range of values and can be used to select a p...
Different Types of Joins in Pandas - GeeksforGeeks
17 Dec, 2020 The pandas module contains various features to perform various operations on dataframes like join, concatenate, delete, add, etc. In this article, we are going to discuss the various types of join operations that can be performed on pandas dataframe. There are mainly five types of Joins in Pandas: Inner Jo...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n17 Dec, 2020" }, { "code": null, "e": 24511, "s": 24212, "text": "The pandas module contains various features to perform various operations on dataframes like join, concatenate, delete, add, etc. In this article, we are going to ...
Python | Create a stopwatch Using Clock Object in kivy - GeeksforGeeks
29 Sep, 2021 Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktop applications.In this, we are going to see how can we create a stopwatch using a label...
[ { "code": null, "e": 24306, "s": 24278, "text": "\n29 Sep, 2021" }, { "code": null, "e": 24825, "s": 24306, "text": "Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android applicatio...
Alternating Vowels and Consonants in C/C++
Given an input string with vowels and consonants. Rearrange the string such a way that vowels and consonants occupies alternate position in final string. As we are arranging vowels and consonants at alternate position the input string must satisfy either of the following conditions − Number of vowels and consonants mus...
[ { "code": null, "e": 1347, "s": 1062, "text": "Given an input string with vowels and consonants. Rearrange the string such a way that vowels and consonants occupies alternate position in final string. As we are arranging vowels and consonants at alternate position the input string must satisfy eithe...
T-SQL - INSERT Statement
The SQL Server INSERT INTO statement is used to add new rows of data to a table in the database. Following are the two basic syntaxes of INSERT INTO statement. INSERT INTO TABLE_NAME [(column1, column2, column3,...columnN)] VALUES (value1, value2, value3,...valueN); Where column1, column2,...columnN are the names ...
[ { "code": null, "e": 2157, "s": 2060, "text": "The SQL Server INSERT INTO statement is used to add new rows of data to a table in the database." }, { "code": null, "e": 2220, "s": 2157, "text": "Following are the two basic syntaxes of INSERT INTO statement." }, { "code": ...
Ruby | Hash flatten() function - GeeksforGeeks
07 Jan, 2020 Hash#flatten() is a Hash class method which returns the one-dimensional flattening hash array. Syntax: Hash.flatten() Parameter: Hash values Return: one-dimensional flattening hash array Example #1 : # Ruby code for Hash.flatten() method # declaring Hash valuea = {a:100, b:200} # declaring Hash valueb = ...
[ { "code": null, "e": 23381, "s": 23353, "text": "\n07 Jan, 2020" }, { "code": null, "e": 23476, "s": 23381, "text": "Hash#flatten() is a Hash class method which returns the one-dimensional flattening hash array." }, { "code": null, "e": 23499, "s": 23476, "tex...
HTML | DOM onmouseover event - GeeksforGeeks
04 Aug, 2021 The DOM onmouseover event in HTML occurs when the mouse pointer is moved onto an element or its children.Supported Tags: It supports All HTML elements, EXCEPT: <base> <bdo> <br> <head> <html> <iframe> <meta> <param> <script> <style> <title> Syntax: In HTML: <element onmouseover="myScript"> In JavaScr...
[ { "code": null, "e": 24996, "s": 24968, "text": "\n04 Aug, 2021" }, { "code": null, "e": 25157, "s": 24996, "text": "The DOM onmouseover event in HTML occurs when the mouse pointer is moved onto an element or its children.Supported Tags: It supports All HTML elements, EXCEPT: " ...
Ionic - Cordova Camera
The Cordova camera plugin uses the native camera for taking pictures or getting images from the image gallery. Open your project root folder in command prompt, then download and install the Cordova camera plugin with the following command. C:\Users\Username\Desktop\MyApp> cordova plugin add org.apache.cordova.camera N...
[ { "code": null, "e": 2574, "s": 2463, "text": "The Cordova camera plugin uses the native camera for taking pictures or getting images from the image gallery." }, { "code": null, "e": 2703, "s": 2574, "text": "Open your project root folder in command prompt, then download and inst...
Interactive Network Visualization | by Himanshu Sharma | Towards Data Science
Pyviz is a python module that is used to create networks that can be customized on per node or per edge basis. It contains different customizations like the size of the node, edges, user-defined labels. The graphs created using pyviz are highly interactive which allows dragging, hovering, and selecting different nodes ...
[ { "code": null, "e": 503, "s": 172, "text": "Pyviz is a python module that is used to create networks that can be customized on per node or per edge basis. It contains different customizations like the size of the node, edges, user-defined labels. The graphs created using pyviz are highly interactiv...
Semaphore in Java
A semaphore is used to control access to a shared resource when a process is being executed. This is done with the help of a counter. When this counter value is greater than 0, access to share resource is provided. On the other hand, if the value of counter is zero, then access to shared resources is denied. The counte...
[ { "code": null, "e": 1549, "s": 1062, "text": "A semaphore is used to control access to a shared resource when a process is being executed. This is done with the help of a counter. When this counter value is greater than 0, access to share resource is provided. On the other hand, if the value of cou...
Creating a Dataset from Scratch. Using web scraping, API calls, and... | by Jesse Neumann | Towards Data Science
This blog walks through the entire process of creating a dataset for use in a larger data science project. The data science project involves modeling the success of video games, discovering the importance of individual features, and then creating an interactive web app. The web app will allow a game developer to input ...
[ { "code": null, "e": 279, "s": 172, "text": "This blog walks through the entire process of creating a dataset for use in a larger data science project." }, { "code": null, "e": 443, "s": 279, "text": "The data science project involves modeling the success of video games, discover...
PostgreSQL - Exit - GeeksforGeeks
08 Feb, 2021 In PostgreSQL, The EXIT statement is used to terminate all types of loops like unconditional loops, a while loop, or a for loop or terminate a block of code specified by the begin..end keywords. We can use the exit to terminate looping statements using the following syntax: exit [label] [when condition] If...
[ { "code": null, "e": 27609, "s": 27581, "text": "\n08 Feb, 2021" }, { "code": null, "e": 27804, "s": 27609, "text": "In PostgreSQL, The EXIT statement is used to terminate all types of loops like unconditional loops, a while loop, or a for loop or terminate a block of code specif...
Most efficient method to groupby on an array of objects in Javascript
The most efficient method to group by a key on an array of objects in js is to use the reduce function. The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in a single output value. const people = [ { name: 'Lee', age: 21 }, { name: 'Ajay', age: 20 }, { na...
[ { "code": null, "e": 1166, "s": 1062, "text": "The most efficient method to group by a key on an array of objects in js is to use the reduce function." }, { "code": null, "e": 1299, "s": 1166, "text": "The reduce() method executes a reducer function (that you provide) on each ele...
How to call a method that returns some other method in Java - GeeksforGeeks
10 Jun, 2020 A method is a collection of statements that perform some specific task and return the result to the caller. A method can also perform some specific task without returning anything. In this article, we will understand how to call a method that returns some other method in Java. In Java, there are two types ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n10 Jun, 2020" }, { "code": null, "e": 23835, "s": 23557, "text": "A method is a collection of statements that perform some specific task and return the result to the caller. A method can also perform some specific task without re...
How to Read Data From Text File in Excel VBA? - GeeksforGeeks
29 Oct, 2021 VBA Program to read a Text file line by line (Sales Data) and places on a worksheet. Sales Data in Text File: 5 Fields [ Product, Qtr 1, Qtr 2, Qtr 3 and Qtr 4 ] and 25 Records (Incl. header) Sales data VBA code will read a text file and places on worksheet cells as below Declaring variables: 'Variab...
[ { "code": null, "e": 24725, "s": 24694, "text": " \n29 Oct, 2021\n" }, { "code": null, "e": 24811, "s": 24725, "text": "VBA Program to read a Text file line by line (Sales Data) and places on a worksheet. " }, { "code": null, "e": 24918, "s": 24811, "text": "S...
Building a ChatBot in Python — The Beginner’s Guide | by Behic Guven | Towards Data Science
Welcome to Beginner’s Guide to Building a Chatbot in Python In this article, I will show you how to build a simple chatbot using the python programming language. We will not use any external chatbot packages. The whole project will be written in plain Python. This is a great way to understand how chatbots actually work...
[ { "code": null, "e": 107, "s": 47, "text": "Welcome to Beginner’s Guide to Building a Chatbot in Python" }, { "code": null, "e": 690, "s": 107, "text": "In this article, I will show you how to build a simple chatbot using the python programming language. We will not use any exter...
aSYNcrone - SYN Flood DDoS Tool - GeeksforGeeks
28 Nov, 2021 aSYNcrone is a free and Open source tool available on GitHub. It uses perfectly legitimate HTTP traffic. It makes a full TCP connection and then requires only a few hundred requests at long-term and regular intervals. As a result, the tool doesn’t need to send a lot of traffic to exhaust the available con...
[ { "code": null, "e": 24406, "s": 24378, "text": "\n28 Nov, 2021" }, { "code": null, "e": 24905, "s": 24406, "text": "aSYNcrone is a free and Open source tool available on GitHub. It uses perfectly legitimate HTTP traffic. It makes a full TCP connection and then requires only a f...