title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
SQL Trigger | Student Database - GeeksforGeeks
12 Sep, 2019 Trigger: A trigger is a stored procedure in database which automatically invokes whenever a special event in the database occurs. For example, a trigger can be invoked when a row is inserted into a specified table or when certain table columns are being updated. Syntax: create trigger [trigger_name] [befo...
[ { "code": null, "e": 25119, "s": 25091, "text": "\n12 Sep, 2019" }, { "code": null, "e": 25382, "s": 25119, "text": "Trigger: A trigger is a stored procedure in database which automatically invokes whenever a special event in the database occurs. For example, a trigger can be inv...
super and this keywords in Java - GeeksforGeeks
28 Oct, 2020 super keyword is used to access methods of the parent class while this is used to access methods of the current class. this keyword this is a reserved keyword in java i.e, we can’t use it as an identifier.this is used to refer current-class’s instance as well as static members. this is a reserved keyword ...
[ { "code": null, "e": 25475, "s": 25447, "text": "\n28 Oct, 2020" }, { "code": null, "e": 25595, "s": 25475, "text": "super keyword is used to access methods of the parent class while this is used to access methods of the current class. " }, { "code": null, "e": 25608,...
How to Hide NavigationBar in Android? - GeeksforGeeks
27 Sep, 2021 NavigationBar in Android is a row comprising the back button, home button, and Recent button located at the bottom of the application. Most Android 5.0 Lollipop and above devices have no physical navigation buttons and hence come as buttons present on the screen throughout the screen life. However, these b...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n27 Sep, 2021" }, { "code": null, "e": 26672, "s": 26381, "text": "NavigationBar in Android is a row comprising the back button, home button, and Recent button located at the bottom of the application. Most Android 5.0 Lollipop an...
Minimum product of k integers in an array of positive Integers - GeeksforGeeks
17 Feb, 2021 Given an array of n positive integers. We are required to write a program to print the minimum product of k integers of the given array.Examples: Input : 198 76 544 123 154 675 k = 2 Output : 9348 We get minimum product after multiplying 76 and 123. Input : 11 8 5 7 5 100 k = 4 Output :...
[ { "code": null, "e": 26221, "s": 26193, "text": "\n17 Feb, 2021" }, { "code": null, "e": 26369, "s": 26221, "text": "Given an array of n positive integers. We are required to write a program to print the minimum product of k integers of the given array.Examples: " }, { "...
Convert an ArrayList of String to a String Array in Java - GeeksforGeeks
03 Dec, 2021 In Java, as we all know ArrayList class is derived from the List interface. Here we are given an ArrayList of strings and the task is to convert the ArrayList to a string array. Illustration: Input : ArrayList = [ "Geeks", "for", "Geeks" ] Output: String[] = {"Geeks", "for", "Geeks"} Input : ArrayList = [ ...
[ { "code": null, "e": 26271, "s": 26243, "text": "\n03 Dec, 2021" }, { "code": null, "e": 26449, "s": 26271, "text": "In Java, as we all know ArrayList class is derived from the List interface. Here we are given an ArrayList of strings and the task is to convert the ArrayList to a...
Kotlin Setters and Getters - GeeksforGeeks
19 Aug, 2021 Properties are an important part of any programming language. In Kotlin, we can define properties in the same way as we declare another variable. Kotlin properties can be declared either as mutable using the var keyword or as immutable using the val keyword. var <propertyName>[: <PropertyType>] [= <propert...
[ { "code": null, "e": 25123, "s": 25095, "text": "\n19 Aug, 2021" }, { "code": null, "e": 25382, "s": 25123, "text": "Properties are an important part of any programming language. In Kotlin, we can define properties in the same way as we declare another variable. Kotlin properties...
Count squares with odd side length in Chessboard - GeeksforGeeks
17 May, 2021 Given a N * N chessboard, the task is to count the number of squares having the odd side length.Example: Input: N = 3 Output: 10 9 squares are possible whose sides are 1 and a single square with side = 3 9 + 1 = 10Input: N = 8 Output: 120 Approach: For all odd numbers from 1 to N and then calculate t...
[ { "code": null, "e": 26180, "s": 26152, "text": "\n17 May, 2021" }, { "code": null, "e": 26287, "s": 26180, "text": "Given a N * N chessboard, the task is to count the number of squares having the odd side length.Example: " }, { "code": null, "e": 26423, "s": 262...
Difference between write() and writelines() function in Python - GeeksforGeeks
22 Sep, 2021 In Python, there are many functions for reading and writing files. Both reading and writing functions work on open files (files opened and linked via a file object). In this section, we are going to discuss the write functions to manipulate our data through files. The write() function will write the conten...
[ { "code": null, "e": 26121, "s": 26093, "text": "\n22 Sep, 2021" }, { "code": null, "e": 26386, "s": 26121, "text": "In Python, there are many functions for reading and writing files. Both reading and writing functions work on open files (files opened and linked via a file object...
PostgreSQL - CHAR Data Type - GeeksforGeeks
28 Aug, 2020 PostgreSQL supports a character data type called CHAR. This data type is used to store character of limited length. It is represented as char(n) in PostgreSQL, where n represents the limit of the length of the characters. If n is not specified it defaults to char(1) or character(1). Any attempt to store a ...
[ { "code": null, "e": 29355, "s": 29327, "text": "\n28 Aug, 2020" }, { "code": null, "e": 29908, "s": 29355, "text": "PostgreSQL supports a character data type called CHAR. This data type is used to store character of limited length. It is represented as char(n) in PostgreSQL, whe...
Power Function in C/C++ - GeeksforGeeks
17 Mar, 2022 Given two numbers base and exponent, pow() function finds x raised to the power of y i.e. xy. Basically in C exponent value is calculated using the pow() function. pow() is function to get the power of a number, but we have to use #include<math.h> in c/c++ to use that pow() function. then two numbers are...
[ { "code": null, "e": 24684, "s": 24656, "text": "\n17 Mar, 2022" }, { "code": null, "e": 25082, "s": 24684, "text": "Given two numbers base and exponent, pow() function finds x raised to the power of y i.e. xy. Basically in C exponent value is calculated using the pow() function....
How to embed a video using HTML code?
To embed a video in an HTML page, use the <iframe> element. The source attribute included the video URL. For the dimensions of the video player, set the width and height of the video appropriately. The Video URL is the video embed link. The video we will be embedding our example will be YouTube. To get the embed link, ...
[ { "code": null, "e": 1260, "s": 1062, "text": "To embed a video in an HTML page, use the <iframe> element. The source attribute included the video URL. For the dimensions of the video player, set the width and height of the video appropriately." }, { "code": null, "e": 1359, "s": 126...
How to delete an element from an array using JavaScript ? - GeeksforGeeks
21 Dec, 2021 In PHP, the array is a type of data structure that allows us to store similar types of data under a single variable. The array is helpful to create a list of elements of similar types, which can be accessed using their index. In this article, we will discuss different ways to remove elements from the arra...
[ { "code": null, "e": 26327, "s": 26299, "text": "\n21 Dec, 2021" }, { "code": null, "e": 26740, "s": 26327, "text": "In PHP, the array is a type of data structure that allows us to store similar types of data under a single variable. The array is helpful to create a list of eleme...
Difference between Sentinel and Counter Controlled Loop in C - GeeksforGeeks
12 May, 2022 Sentinel Controlled Loop A sentinel controlled loop is also called an indefinite repetition loop because the number of iterations is not known before the loop starts executing. In a sentinel controlled loop, a special value called sentinel value is used to change the loop control expression from true to fa...
[ { "code": null, "e": 25588, "s": 25560, "text": "\n12 May, 2022" }, { "code": null, "e": 25613, "s": 25588, "text": "Sentinel Controlled Loop" }, { "code": null, "e": 26230, "s": 25613, "text": "A sentinel controlled loop is also called an indefinite repetitio...
Click a href button with Selenium and Python?
We can click a link/button with its href link in Selenium webdriver. This can be achieved by multiple ways. We can use find_element_by_link_text() and find_element_by_partial_link_text() methods to perform this task. The find_element_by_link_text() method is used to identify an element with the text within the anchor t...
[ { "code": null, "e": 1279, "s": 1062, "text": "We can click a link/button with its href link in Selenium webdriver. This can be achieved by multiple ways. We can use find_element_by_link_text() and find_element_by_partial_link_text() methods to perform this task." }, { "code": null, "e":...
How to measure the time taken by a function in Java?
java.lang.System.currentTimeMillis() method can be used to compute the time taken by a function in java. Trick is simple. Get the before time and after time using currentTimeMillis() where before time is the time when method is invoked and after time is when method has executed. See the example below − Live Demo publi...
[ { "code": null, "e": 1366, "s": 1062, "text": "java.lang.System.currentTimeMillis() method can be used to compute the time taken by a function in java. Trick is simple. Get the before time and after time using currentTimeMillis() where before time is the time when method is invoked and after time is...
Find the missing number in Arithmetic Progression - GeeksforGeeks
31 Mar, 2022 Given an array that represents elements of arithmetic progression in order. One element is missing in the progression, find the missing number. Examples: Input: arr[] = {2, 4, 8, 10, 12, 14} Output: 6 Input: arr[] = {1, 6, 11, 16, 21, 31}; Output: 26 A Simple Solution is to linearly traverse the array...
[ { "code": null, "e": 25304, "s": 25276, "text": "\n31 Mar, 2022" }, { "code": null, "e": 25449, "s": 25304, "text": "Given an array that represents elements of arithmetic progression in order. One element is missing in the progression, find the missing number. " }, { "cod...
Calculate Combinations and Permutations in R - GeeksforGeeks
16 May, 2021 Combinatorics is an important aspect of data analysis and statistics. It is used to solve many aptitude-based and real-life problems. While permutations do take into account the order, the combinations are independent of it. Therefore, permutation is considered to be an ordered combination. R language allo...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n16 May, 2021" }, { "code": null, "e": 26879, "s": 26487, "text": "Combinatorics is an important aspect of data analysis and statistics. It is used to solve many aptitude-based and real-life problems. While permutations do take in...
K Dimensional Tree | Set 1 (Search and Insert) - GeeksforGeeks
03 Nov, 2020 A K-D Tree(also called as K-Dimensional Tree) is a binary search tree where data in each node is a K-Dimensional point in space. In short, it is a space partitioning(details below) data structure for organizing points in a K-Dimensional space. A non-leaf node in K-D tree divides the space into two parts, c...
[ { "code": null, "e": 26383, "s": 26355, "text": "\n03 Nov, 2020" }, { "code": null, "e": 26627, "s": 26383, "text": "A K-D Tree(also called as K-Dimensional Tree) is a binary search tree where data in each node is a K-Dimensional point in space. In short, it is a space partitioni...
How to Calculate Mean Absolute Error in Python? - GeeksforGeeks
28 Nov, 2021 Mean Absolute Error calculates the average difference between the calculated values and actual values. It is also known as scale-dependent accuracy as it calculates error in observations taken on the same scale. It is used as evaluation metrics for regression models in machine learning. It calculates error...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25969, "s": 25537, "text": "Mean Absolute Error calculates the average difference between the calculated values and actual values. It is also known as scale-dependent accuracy as it calculate...
lsof command in Linux with Examples - GeeksforGeeks
21 Oct, 2021 Linux/Unix consider everything as file and maintains folder. So “Files or a File ” is very important in Linux/Unix. While working in Linux/Unix system there might be several file and folder which are being used, some of them would be visible and some not. lsof command stands for List Of Open File. This com...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n21 Oct, 2021" }, { "code": null, "e": 26068, "s": 25249, "text": "Linux/Unix consider everything as file and maintains folder. So “Files or a File ” is very important in Linux/Unix. While working in Linux/Unix system there might ...
How to load data from JSON into a Bootstrap Table? - GeeksforGeeks
16 Jul, 2020 This article describes how a Bootstrap Table is created using a given JSON data. The data can be retrieved by either importing it or representing it in JavaScript. The following are given two methods to do it. Displaying JSON data without importing any file: The JSON file that has to be read can be repres...
[ { "code": null, "e": 26743, "s": 26715, "text": "\n16 Jul, 2020" }, { "code": null, "e": 26954, "s": 26743, "text": "This article describes how a Bootstrap Table is created using a given JSON data. The data can be retrieved by either importing it or representing it in JavaScript...
MongoDB - db.collection.deleteone() - GeeksforGeeks
09 Feb, 2021 The deleteOne() method deletes the first document from the collection that matches the given selection criteria. It will delete/remove a single document from the collection. It takes four parameters, the first parameter is the selection criteria and the others are optional. If you use this method in the ch...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n09 Feb, 2021" }, { "code": null, "e": 26200, "s": 25517, "text": "The deleteOne() method deletes the first document from the collection that matches the given selection criteria. It will delete/remove a single document from the c...
Web Scraping using lxml and XPath in Python - GeeksforGeeks
11 Oct, 2020 Prerequisites: Introduction to Web Scrapping In this article, we will discuss the lxml python library to scrape data from a webpage, which is built on top of the libxml2 XML parsing library written in C. When compared to other python web scraping libraries like BeautifulSoup and Selenium, the lxml package ...
[ { "code": null, "e": 25641, "s": 25613, "text": "\n11 Oct, 2020" }, { "code": null, "e": 25686, "s": 25641, "text": "Prerequisites: Introduction to Web Scrapping" }, { "code": null, "e": 26112, "s": 25686, "text": "In this article, we will discuss the lxml pyt...
Perl | Operators in Regular Expression - GeeksforGeeks
06 May, 2019 Prerequisite: Perl | Regular Expressions The Regular Expression is a string which is the combination of different characters that provides matching of the text strings. A regular expression can also be referred to as regex or regexp.The basic method for applying a regular expression is to use of binding op...
[ { "code": null, "e": 26525, "s": 26497, "text": "\n06 May, 2019" }, { "code": null, "e": 26566, "s": 26525, "text": "Prerequisite: Perl | Regular Expressions" }, { "code": null, "e": 26893, "s": 26566, "text": "The Regular Expression is a string which is the c...
How to detect and change the content/style of a div using jQuery ? - GeeksforGeeks
05 Nov, 2019 The changes to the html/text of a div can be detected using jQuery on() method. The on() is used to attach one or more event handlers for the selected elements and child elements in the DOM tree. The on() method is the replacement of the bind(), live() and delegate() method from the jQuery version 1.7. Syn...
[ { "code": null, "e": 26236, "s": 26208, "text": "\n05 Nov, 2019" }, { "code": null, "e": 26540, "s": 26236, "text": "The changes to the html/text of a div can be detected using jQuery on() method. The on() is used to attach one or more event handlers for the selected elements and...
PrintWriter append(CharSequence, int, int) method in Java with Examples - GeeksforGeeks
31 Jan, 2019 The append(CharSequence, int, int) method of PrintWriter Class in Java is used to append a specified portion of the specified charSequence on the stream. This charSequence is taken as a parameter. The starting index and ending index to be written are also taken as parameters. Syntax: public void append(Cha...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n31 Jan, 2019" }, { "code": null, "e": 25502, "s": 25225, "text": "The append(CharSequence, int, int) method of PrintWriter Class in Java is used to append a specified portion of the specified charSequence on the stream. This char...
Underscore.js _.camelCase() Method - GeeksforGeeks
07 Aug, 2020 The _.camelCase() method is used to convert a dash-separated string into camel case strings Syntax: _.camelCase( dashedString ); Parameters: dashedString: This method takes a dash-separated String. Return Value: This method returns the converted camelCase String. Note: This will not work in normal JavaScr...
[ { "code": null, "e": 25871, "s": 25843, "text": "\n07 Aug, 2020" }, { "code": null, "e": 25963, "s": 25871, "text": "The _.camelCase() method is used to convert a dash-separated string into camel case strings" }, { "code": null, "e": 25971, "s": 25963, "text":...
Given an array of size n and a number k, find all elements that appear more than n/k times - GeeksforGeeks
27 Apr, 2022 Given an array of size n, find all elements in array that appear more than n/k times. For example, if the input arrays is {3, 1, 2, 2, 1, 2, 3, 3} and k is 4, then the output should be [2, 3]. Note that size of array is 8 (or n = 8), so we need to find all e C++ Java Python3 C# Javascript // C++ code to fi...
[ { "code": null, "e": 26465, "s": 26437, "text": "\n27 Apr, 2022" }, { "code": null, "e": 26724, "s": 26465, "text": "Given an array of size n, find all elements in array that appear more than n/k times. For example, if the input arrays is {3, 1, 2, 2, 1, 2, 3, 3} and k is 4, then...
Check if a string contains uppercase, lowercase, special characters and numeric values - GeeksforGeeks
11 Nov, 2021 Given string str of length N, the task is to check whether the given string contains uppercase alphabets, lowercase alphabets, special characters, and numeric values or not. If the string contains all of them, then print “Yes”. Otherwise, print “No”. Examples: Input: str = “#GeeksForGeeks123@” Output: Ye...
[ { "code": null, "e": 26863, "s": 26835, "text": "\n11 Nov, 2021" }, { "code": null, "e": 27115, "s": 26863, "text": "Given string str of length N, the task is to check whether the given string contains uppercase alphabets, lowercase alphabets, special characters, and numeric valu...
C# | Dictionary.ContainsValue() Method - GeeksforGeeks
01 Feb, 2019 This method is used to check whether the Dictionary<TKey,TValue> contains a specific value or not. Syntax: public bool ContainsValue (TValue value); Here, the value is the Value to locate in the Dictionary. The value can be null for reference types. Return Value: This method returns true if the Dictionary...
[ { "code": null, "e": 25919, "s": 25891, "text": "\n01 Feb, 2019" }, { "code": null, "e": 26018, "s": 25919, "text": "This method is used to check whether the Dictionary<TKey,TValue> contains a specific value or not." }, { "code": null, "e": 26026, "s": 26018, ...
Sum of multiples of Array elements within a given range [L, R] - GeeksforGeeks
08 Jul, 2021 Given an array arr[] of positive integers and two integers L and R, the task is to find the sum of all multiples of the array elements in the range [L, R]. Examples: Input: arr[] = {2, 7, 3, 8}, L = 7, R = 20 Output: 197 Explanation: In the range 7 to 20: Sum of multiples of 2: 8 + 10 + 12 + 14 + 16 + 18 ...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n08 Jul, 2021" }, { "code": null, "e": 26197, "s": 26041, "text": "Given an array arr[] of positive integers and two integers L and R, the task is to find the sum of all multiples of the array elements in the range [L, R]." }, ...
Kali Linux - Hacking Wi-Fi - GeeksforGeeks
28 Jul, 2020 These days the Wi-Fi networks are more secure than the older days, These days most wireless access points use WPA(Wi-Fi Protection Access) 2 Pre Shared Key in order to secure the network. This WPA 2 uses a stronger encryption algorithm which is known as AES which is very difficult to crack. When it comes ...
[ { "code": null, "e": 25869, "s": 25841, "text": "\n28 Jul, 2020" }, { "code": null, "e": 26162, "s": 25869, "text": "These days the Wi-Fi networks are more secure than the older days, These days most wireless access points use WPA(Wi-Fi Protection Access) 2 Pre Shared Key in ord...
How to disable the drop-down list in HTML5 ? - GeeksforGeeks
26 Mar, 2021 The drop-down is used to create a list of items that need to select an element. We use <select> and <option> elements to create a drop-down list and use disabled attribute in <select> element to disable the drop-down list element. A disabled drop-down list is un-clickable and unusable. It is a boolean att...
[ { "code": null, "e": 33003, "s": 32975, "text": "\n26 Mar, 2021" }, { "code": null, "e": 33318, "s": 33003, "text": "The drop-down is used to create a list of items that need to select an element. We use <select> and <option> elements to create a drop-down list and use disabled a...
Difference between str.capitalize() VS str.title() - GeeksforGeeks
11 Nov, 2021 Both title() and capitalize() have similar functionality of capitalizing first characters. Let us see the difference between the two of them. title() function in Python is the Python String Method which is used to convert the first character in each word to Uppercase and remaining characters to Lowercase i...
[ { "code": null, "e": 26128, "s": 26100, "text": "\n11 Nov, 2021" }, { "code": null, "e": 26270, "s": 26128, "text": "Both title() and capitalize() have similar functionality of capitalizing first characters. Let us see the difference between the two of them." }, { "code":...
miscellaneous topics in data structures - GeeksQuiz
10 Jul, 2018 o Delection of the smallest element o Insertion of an element if it is not already present in the set X: depth first search 1: heap Y: breadth-first search 2: queue Z: sorting 3: stack Writing code in comment? Please use ide.geeksforgeeks.org, generate link...
[ { "code": null, "e": 28855, "s": 28827, "text": "\n10 Jul, 2018" }, { "code": null, "e": 28965, "s": 28855, "text": " o\tDelection of the smallest element \n o\tInsertion of an element if it is not already present in the set\n" }, { "code": null, "e": 29090, "...
Matplotlib.axes.Axes.contourf() in Python - GeeksforGeeks
13 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n13 Apr, 2020" }, { "code": null, "e": 24592, "s": 24292, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ...
Computing Index Using Pointers Returned By STL Functions in C++ - GeeksforGeeks
04 Jan, 2022 Many inbuilt functions in C++ return the pointers to the position in memory which gives an address of the desired number but has no relation with the actual index in a container of the computed value. For example, to find the maximum element in a code, we use std::max_element(), which returns the address i...
[ { "code": null, "e": 24124, "s": 24096, "text": "\n04 Jan, 2022" }, { "code": null, "e": 24597, "s": 24124, "text": "Many inbuilt functions in C++ return the pointers to the position in memory which gives an address of the desired number but has no relation with the actual index ...
Swish: Booting ReLU from the Activation Function Throne | by Andre Ye | Towards Data Science
Activation functions have long been a focus of interest in neural networks — they generalize the inputs repeatedly and are integral to the success of a neural network. ReLU has been defaulted as the best activation function in the deep learning community for a long time, but there’s a new activation function — Swish — ...
[ { "code": null, "e": 398, "s": 46, "text": "Activation functions have long been a focus of interest in neural networks — they generalize the inputs repeatedly and are integral to the success of a neural network. ReLU has been defaulted as the best activation function in the deep learning community f...
Python - cmath.inf Constant - GeeksforGeeks
28 May, 2020 cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.inf Constant is used to get the floating-point positive infinity. Syntax: cmath.inf Returns: Return the value of positive infinity Below examples illustrate the use of above function: Examp...
[ { "code": null, "e": 25132, "s": 25104, "text": "\n28 May, 2020" }, { "code": null, "e": 25315, "s": 25132, "text": "cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.inf Constant is used to get the floating-point...
How to test for heteroscedasticity using Python | Towards Data Science
Heteroscedasticity in the context of regression modeling, is what you have in your data when the conditional variance in your data is not constant. Conditional variance is the variability that you see in the dependent variable y for each value of the explanatory variables X, or each value of time period t (in case of t...
[ { "code": null, "e": 384, "s": 46, "text": "Heteroscedasticity in the context of regression modeling, is what you have in your data when the conditional variance in your data is not constant. Conditional variance is the variability that you see in the dependent variable y for each value of the expla...
How do I assign a dictionary value to a variable in Python?
You can assign a dictionary value to a variable in Python using the access operator []. my_dict = { 'foo': 42, 'bar': 12.5 } new_var = my_dict['foo'] print(new_var) This will give the output − 42 This syntax can also be used to reassign the value associated with this key. my_dict = { 'foo': 42, 'bar': 12...
[ { "code": null, "e": 1151, "s": 1062, "text": "You can assign a dictionary value to a variable in Python using the access operator []. " }, { "code": null, "e": 1235, "s": 1151, "text": "my_dict = {\n 'foo': 42,\n 'bar': 12.5\n}\n\nnew_var = my_dict['foo']\nprint(new_var)" ...
How to create a WebView in an iOS App using Swift?
As an iOS developer, you will come across multiple scenarios where you have to display something in web, for that we use WebView. As per Apple, − It is an object that displays interactive web content, such as for an in-app browser. So in this post, we will be seeing how to create WebView and load the data in it. So let...
[ { "code": null, "e": 1192, "s": 1062, "text": "As an iOS developer, you will come across multiple scenarios where you have to display something in web, for that we use WebView." }, { "code": null, "e": 1294, "s": 1192, "text": "As per Apple, − It is an object that displays intera...
Scala Singleton and Companion Objects
15 Apr, 2021 Scala is more object oriented language than Java so, Scala does not contain any concept of static keyword. Instead of static keyword Scala has singleton object. A Singleton object is an object which defines a single object of a class. A singleton object provides an entry point to your program execution. If...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Apr, 2021" }, { "code": null, "e": 613, "s": 54, "text": "Scala is more object oriented language than Java so, Scala does not contain any concept of static keyword. Instead of static keyword Scala has singleton object. A Singleton o...
PostgreSQL – TEXT Data Type
28 Aug, 2020 PostgreSQL supports a character data type called TEXT. This data type is used to store character of unlimited length. It is represented as text in PostgreSQL. The performance of the varchar (without n) and text are the same. Syntax: variable_name TEXT Example 1:Let’s create a new table(say, text_test) for ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 253, "s": 28, "text": "PostgreSQL supports a character data type called TEXT. This data type is used to store character of unlimited length. It is represented as text in PostgreSQL. The performance ...
Lazy Propagation in Segment Tree | Set 2
11 Jul, 2022 Given an array arr[] of size N. There are two types of operations: Update(l, r, x) : Increment the a[i] (l <= i <= r) with value x.Query(l, r) : Find the maximum value in the array in a range l to r (both are included). Update(l, r, x) : Increment the a[i] (l <= i <= r) with value x. Query(l, r) : Find t...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Jul, 2022" }, { "code": null, "e": 123, "s": 54, "text": "Given an array arr[] of size N. There are two types of operations: " }, { "code": null, "e": 276, "s": 123, "text": "Update(l, r, x) : Increment the a[i]...
Get Zip Code with given location using GeoPy in Python
25 Oct, 2020 In this article, we are going to write a python script to get the Zip code by using location using the Geopy module.geopy makes it easy for Python developers to locate the coordinates of addresses, cities, countries, and landmarks across the world. To install the Geopy module, run the following command in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Oct, 2020" }, { "code": null, "e": 277, "s": 28, "text": "In this article, we are going to write a python script to get the Zip code by using location using the Geopy module.geopy makes it easy for Python developers to locate the coo...
Set Axis Limits of ggplot2 Facet Plot in R – ggplot2
28 Nov, 2021 In this article, we will discuss how to set the axis limits of the ggplot2 facet plot in the R programming language. Here the role of the ggplot2 package is to plot the facet plot and provide some functionalities to the user, further the user needs to set the argument of the scales function to “free” this ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2021" }, { "code": null, "e": 145, "s": 28, "text": "In this article, we will discuss how to set the axis limits of the ggplot2 facet plot in the R programming language." }, { "code": null, "e": 397, "s": 145, ...
Maximum points from top left of matrix to bottom right and return back
27 May, 2022 Given a matrix of size N X M consisting of ‘#’, ‘.’ and ‘*’. ‘#’ means blocked path, ‘.’ means walkable path and ‘*’ means points that you have to collect. Now consider you are at the top left of the matrix. You have to reach the bottom right of the matrix and come back to the top left. When you are moving...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 May, 2022" }, { "code": null, "e": 669, "s": 52, "text": "Given a matrix of size N X M consisting of ‘#’, ‘.’ and ‘*’. ‘#’ means blocked path, ‘.’ means walkable path and ‘*’ means points that you have to collect. Now consider you a...
Data Structures | Tree Traversals | Question 3
28 Jun, 2021 The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively. The postorder traversal of the binary tree is:(A) d e b f g c a(B) e d b g f c a(C) e d b f g c a(D) d e f g b c aAnswer: (A)Explanation: Below is the given tree. a ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 318, "s": 52, "text": "The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively. The postorder traversal of the binary tree is:(A) d e b f g c a(B) e d ...
How to set text in the CheckBox in C#?
30 Sep, 2021 The CheckBox control is the part of windows form which is used to take input from the user. Or in other words, CheckBox control allows us to select single or multiple elements from the given list. In CheckBox, you are allowed to set the text in the CheckBox using the Text property of the CheckBox. It makes...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2021" }, { "code": null, "e": 433, "s": 28, "text": "The CheckBox control is the part of windows form which is used to take input from the user. Or in other words, CheckBox control allows us to select single or multiple elements...
SQL | Top-N Queries
16 Nov, 2020 Top-N Analysis in SQL deals with How to limit the number of rows returned from ordered sets of data in SQL. Top-N queries ask for the n smallest or largest values of a column. Both smallest and largest values sets are considered Top-N queries. Following this type of searching technique could save lot of ti...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Nov, 2020" }, { "code": null, "e": 580, "s": 52, "text": "Top-N Analysis in SQL deals with How to limit the number of rows returned from ordered sets of data in SQL. Top-N queries ask for the n smallest or largest values of a column...
How to set the width of an element in JavaScript?
Use the width property in JavaScript to set the width of an element. You can try to run the following code to learn how to set the width of an element in JavaScript − <!DOCTYPE html> <html> <body> <button type="button" id="btn" onclick="display()"> Change height and width </button> <script> ...
[ { "code": null, "e": 1256, "s": 1187, "text": "Use the width property in JavaScript to set the width of an element." }, { "code": null, "e": 1354, "s": 1256, "text": "You can try to run the following code to learn how to set the width of an element in JavaScript −" }, { "...
Auto-complete feature using Trie
15 Feb, 2022 We are given a Trie with a set of strings stored in it. Now the user types in a prefix of his search query, we need to give him all recommendations to auto-complete his query based on the strings stored in the Trie. We assume that the Trie stores past searches by the users.For example if the Trie store {“a...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Feb, 2022" }, { "code": null, "e": 505, "s": 54, "text": "We are given a Trie with a set of strings stored in it. Now the user types in a prefix of his search query, we need to give him all recommendations to auto-complete his query...
Python – Join strings by multiple delimiters
02 Feb, 2021 Given two strings, the task is to write a python program to join them by every delimiter from delimiter list. Input : test_str1 = ‘Geeksforgeeks’, test_str2 = “Best”, join_list = [“+”, “*”, “-“, “$”, “,”, “@”] Output : [‘Geeksforgeeks+Best’, ‘Geeksforgeeks*Best’, ‘Geeksforgeeks-Best’, ‘Geeksforgeeks$Best’,...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2021" }, { "code": null, "e": 138, "s": 28, "text": "Given two strings, the task is to write a python program to join them by every delimiter from delimiter list." }, { "code": null, "e": 238, "s": 138, "text...
Floating Action Button (FAB) in Android with Example
20 Oct, 2021 The floating action button is a bit different button from the ordinary buttons. Floating action buttons are implemented in the app’s UI for primary actions (promoted actions) for the users and the actions under the floating action button are prioritized by the developer. For example the actions like adding...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Oct, 2021" }, { "code": null, "e": 624, "s": 52, "text": "The floating action button is a bit different button from the ordinary buttons. Floating action buttons are implemented in the app’s UI for primary actions (promoted actions)...
Generate the row count (serial number) of records after returning the result in MySQL query?
To generate serial number i.e. row count in MySQL query, use the following syntax. SELECT @yourVariableName − = @yourVariableName+1 anyAliasName, yourColumnName1,yourColumnName2,yourColumnName3,....N from yourTableName , (select @yourVariableName − = 0) as yourVariableName; To understand the above syntax, let us ...
[ { "code": null, "e": 1145, "s": 1062, "text": "To generate serial number i.e. row count in MySQL query, use the following syntax." }, { "code": null, "e": 1343, "s": 1145, "text": "SELECT @yourVariableName − = @yourVariableName+1 anyAliasName,\n yourColumnName1,yourColumnName2,...
Build a Social Media Website with Django - Part 1 | Towards Data Science
Hello readers, I thought of doing something different like to make a multi-part tutorial here on Medium. So, now I am making this multi-part tutorial series focused on learning Django. This tutorial series is beginner-friendly and will help the beginners learn Django by doing some practical project. To make it simple, ...
[ { "code": null, "e": 472, "s": 171, "text": "Hello readers, I thought of doing something different like to make a multi-part tutorial here on Medium. So, now I am making this multi-part tutorial series focused on learning Django. This tutorial series is beginner-friendly and will help the beginners ...
Check if a large number is divisible by 11 or not - GeeksforGeeks
23 Mar, 2021 Given a number, the task is to check if the number is divisible by 11 or not. The input number may be large and it may not be possible to store it even if we use long long int.Examples: Input : n = 76945 Output : Yes Input : n = 1234567589333892 Output : Yes Input : n = 363588395960667043875487 Outpu...
[ { "code": null, "e": 25380, "s": 25352, "text": "\n23 Mar, 2021" }, { "code": null, "e": 25568, "s": 25380, "text": "Given a number, the task is to check if the number is divisible by 11 or not. The input number may be large and it may not be possible to store it even if we use l...
Python Program for Counting Sort
In this article, we will learn about the solution to the problem statement given below. Problem statement− We are given an array, we need to sort the array using the concept of counting sort. Counting sort is a technique in which we work on keys between a specific range. It involves counting the number of objects which...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1254, "s": 1150, "text": "Problem statement− We are given an array, we need to sort the array using the concept of count...
Automating Your Digital Morning Routine with Python | by Lucas Soares | Towards Data Science
When you first get to your laptop/desktop in the morning you probably open quite a few applications. Doing this every day can get tiresome, so I wrote a script to automate the process of starting my day on my desktop, and in this tutorial I will show you how it works. [Update 22/11/2021] I made a video version of this ...
[ { "code": null, "e": 441, "s": 172, "text": "When you first get to your laptop/desktop in the morning you probably open quite a few applications. Doing this every day can get tiresome, so I wrote a script to automate the process of starting my day on my desktop, and in this tutorial I will show you ...
MongoDB – FindAndModify() Method
05 Feb, 2021 The findAndModify() method modifies and return a single document that matches the given criteria. By default, this method returns a pre-modification document. To return the document with the modifications made on the update, use the new option and set its value to true. It takes a document as a parameter. ...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Feb, 2021" }, { "code": null, "e": 361, "s": 54, "text": "The findAndModify() method modifies and return a single document that matches the given criteria. By default, this method returns a pre-modification document. To return the d...
How to stretch div to fit the container ?
06 Apr, 2021 A child div inside a container can be made to take the complete width and height of the parent div. There are two methods to stretch the div to fit the container using CSS tat are discussed below: Method 1: First method is to simply assign 100% width and 100% height to the child div so that it will take al...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Apr, 2021" }, { "code": null, "e": 225, "s": 28, "text": "A child div inside a container can be made to take the complete width and height of the parent div. There are two methods to stretch the div to fit the container using CSS tat...
Leftist Tree / Leftist Heap
17 Feb, 2020 A leftist tree or leftist heap is a priority queue implemented with a variant of a binary heap. Every node has an s-value (or rank or distance) which is the distance to the nearest leaf. In contrast to a binary heap (Which is always a complete binary tree), a leftist tree may be very unbalanced. Below are ...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Feb, 2020" }, { "code": null, "e": 349, "s": 52, "text": "A leftist tree or leftist heap is a priority queue implemented with a variant of a binary heap. Every node has an s-value (or rank or distance) which is the distance to the n...
How to create a Simple JavaScript Quiz ?
15 Aug, 2021 JavaScript is useful for making any web page a dynamic one. In this article, we are going to see how we can make a simple Quiz Web App using JavaScript. This Quiz Web App will have the following features. User Interface for Question and four interactive options. Navigation between questions. Evaluation in ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Aug, 2021" }, { "code": null, "e": 205, "s": 52, "text": "JavaScript is useful for making any web page a dynamic one. In this article, we are going to see how we can make a simple Quiz Web App using JavaScript." }, { "code":...
Sum of alternate elements of a N x N matrix
06 May, 2021 Given an NxN matrix. The task is to find the sum of the alternate elements of the given matrix. For example, in a 2 x 2 matrix the alternate elements are { A[0][0], A[1, 1] } and { A[1][0], A[0][1] }.Examples: Input: mat[][] = { { 1, 2}, { 3, 4} } Output : Sum of alternate elements : 5...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 May, 2021" }, { "code": null, "e": 265, "s": 53, "text": "Given an NxN matrix. The task is to find the sum of the alternate elements of the given matrix. For example, in a 2 x 2 matrix the alternate elements are { A[0][0], A[1, 1] }...
How to run node.js program as an Executable ?
15 Sep, 2021 Running Node.js program as an Executable means we do not have to go to the program directory, from anywhere in the terminal, we can execute our program with a specific self-registered word. There are four steps to follow to run a node.js program as Executable. Add bin section in package.jsonChange index....
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Sep, 2021" }, { "code": null, "e": 219, "s": 28, "text": "Running Node.js program as an Executable means we do not have to go to the program directory, from anywhere in the terminal, we can execute our program with a specific self-re...
Java.net.Authenticator class in Java
12 Jan, 2022 Authenticator class is used in those cases where an authentication is required to visit some URL. Once it is known that authentication is required, it prompts the user for the same or uses some hard-coded username and password. To use this class, following steps are followed- Create a class that extends ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 307, "s": 28, "text": "Authenticator class is used in those cases where an authentication is required to visit some URL. Once it is known that authentication is required, it prompts the user for the...
Count numbers up to N having Kth bit set
23 Apr, 2021 Given two integers N and K, the task is to find the count of numbers up to N having K-th bit set. Examples: Input: N = 14, K = 2Output: 7Explanation: The numbers less than equal to 14, having 2nd bit set are 4, 5, 6, 7, 12, 13, and 14. Input: N = 6, K = 1Output: 3Explanation: The numbers less than equal to...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Apr, 2021" }, { "code": null, "e": 150, "s": 52, "text": "Given two integers N and K, the task is to find the count of numbers up to N having K-th bit set." }, { "code": null, "e": 160, "s": 150, "text": "Example...
set_symmetric_difference in C++ with Examples
12 Oct, 2021 Symmetric difference of two sorted ranges The symmetric difference between two sets is formed by the elements that are present in one of the sets, but not in the other. Among the equivalent elements in each range, those discarded are those that appear before in the existent order before the call. The exist...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Oct, 2021" }, { "code": null, "e": 697, "s": 52, "text": "Symmetric difference of two sorted ranges The symmetric difference between two sets is formed by the elements that are present in one of the sets, but not in the other. Among...
How to use Sequelize in Node.js ? - GeeksforGeeks
20 May, 2020 Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. Its features are solid transaction support, relations, eager and lazy loading, read replication and many more. Features of Sequelize: Sequelize is a third-party package to be precise its an Object-Relat...
[ { "code": null, "e": 25891, "s": 25863, "text": "\n20 May, 2020" }, { "code": null, "e": 26107, "s": 25891, "text": "Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. Its features are solid transaction support, relations, eag...
How to change favicon dynamically? - GeeksforGeeks
17 Feb, 2020 You may probably notice that many social networks and modern web applications have dynamic favicons. Dynamic favicons may be for different purposes, for example, social networks use it to display notifications or messages. Some websites also have the percentage-based favicon that tracks the levels of succe...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n17 Feb, 2020" }, { "code": null, "e": 27141, "s": 26621, "text": "You may probably notice that many social networks and modern web applications have dynamic favicons. Dynamic favicons may be for different purposes, for example, s...
Number of elements less than or equal to a given number in a given subarray - GeeksforGeeks
22 Apr, 2022 Given an array ‘a[]’ and number of queries q. Each query can be represented by l, r, x. Your task is to print the number of elements less than or equal to x in the subarray represented by l to r. Examples: Input : arr[] = {2, 3, 4, 5} q = 2 0 3 5 0 2 2 Output : 4 ...
[ { "code": null, "e": 26537, "s": 26509, "text": "\n22 Apr, 2022" }, { "code": null, "e": 26743, "s": 26537, "text": "Given an array ‘a[]’ and number of queries q. Each query can be represented by l, r, x. Your task is to print the number of elements less than or equal to x in the...
How to run Java code in Node.js ? - GeeksforGeeks
19 May, 2021 Node.js is a non-blocking, event-driven JavaScript runtime platform that is built using Chrome’s V8 JavaScript engine. It is mainly used to build scalable projects and applications as it is quite efficient as well as lightweight. It is mainly used for backend purposes while building an application. Approac...
[ { "code": null, "e": 25525, "s": 25497, "text": "\n19 May, 2021" }, { "code": null, "e": 25825, "s": 25525, "text": "Node.js is a non-blocking, event-driven JavaScript runtime platform that is built using Chrome’s V8 JavaScript engine. It is mainly used to build scalable projects...
Get element at the specific position from matrix in R - GeeksforGeeks
07 Apr, 2021 At any point in time, a matrix may be required to be traversed for an element at a specific position. In this article, we are going to access the elements from a matrix in R Programming Language using integer vector, logical vector as the index. Integer vector is a vector, that includes all elements of int...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26733, "s": 26487, "text": "At any point in time, a matrix may be required to be traversed for an element at a specific position. In this article, we are going to access the elements from a m...
OpenGL program for Simple Ball Game - GeeksforGeeks
28 Dec, 2021 Prerequisite – OpenGLOpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. Using this, we can make a lot of design as well as animations. Below is a simple Game made using OpenGL.Description : In this, a ball is moving starting from middle and goes to up-left in starting. ...
[ { "code": null, "e": 25727, "s": 25699, "text": "\n28 Dec, 2021" }, { "code": null, "e": 26314, "s": 25727, "text": "Prerequisite – OpenGLOpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. Using this, we can make a lot of design as well as ani...
How to Build a SQL Injection Scanner in Python? - GeeksforGeeks
03 Mar, 2021 In general terms, SQLi is the most prevalent and dangerous code insertion technique. An SQLi attack is meant to send malicious SQL commands to the database server. The most common attack goal is bulk extraction of knowledge. Attackers can dump database tables with many thousands of customer records. Depen...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n03 Mar, 2021" }, { "code": null, "e": 26029, "s": 25561, "text": "In general terms, SQLi is the most prevalent and dangerous code insertion technique. An SQLi attack is meant to send malicious SQL commands to the database server...
How to add gradients to your project using CSS ? - GeeksforGeeks
25 Oct, 2021 The Gradient in CSS is a special type of image that is made up of progressive & smooth transition between two or more colors. The gradient can be formed in 3 ways: Linear-gradient: It is an inbuilt function in CSS that is used to set the linear gradient as the background image. Radial-gradient: It is an in...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n25 Oct, 2021" }, { "code": null, "e": 26785, "s": 26621, "text": "The Gradient in CSS is a special type of image that is made up of progressive & smooth transition between two or more colors. The gradient can be formed in 3 ways:...
Getting key value pairs of a dictionary in Julia - pairs() Method - GeeksforGeeks
01 Apr, 2020 The pairs() is an inbuilt function in julia which is used to return an iterator over key=>value pairs for the specified collection that maps a set of keys to a set of values. This includes arrays, where the keys are the array indices. Syntax:pairs(collection)orpairs(IndexStyle(A), A) Parameters: collection...
[ { "code": null, "e": 25789, "s": 25761, "text": "\n01 Apr, 2020" }, { "code": null, "e": 26024, "s": 25789, "text": "The pairs() is an inbuilt function in julia which is used to return an iterator over key=>value pairs for the specified collection that maps a set of keys to a set...
GATE | GATE-CS-2014-(Set-3) | Question 65 - GeeksforGeeks
28 Jun, 2021 Classless Inter-domain Routing (CIDR) receives a packet with address 131.23.151.76. The router’s routing table has the following entries: Prefix Output Interface Identifier 131.16.0.0/12 3 131.28.0.0/14 5 131.19.0.0/16 2 131.22.0.0/15 1 The iden...
[ { "code": null, "e": 25885, "s": 25857, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26023, "s": 25885, "text": "Classless Inter-domain Routing (CIDR) receives a packet with address 131.23.151.76. The router’s routing table has the following entries:" }, { "code": nul...
How to pass a Slice to Function in Golang? - GeeksforGeeks
22 Jul, 2019 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. It is just like an array having an index value and length, but the size of the slice is resized they are not in fixed-size just like an array. In Go langua...
[ { "code": null, "e": 25703, "s": 25675, "text": "\n22 Jul, 2019" }, { "code": null, "e": 26456, "s": 25703, "text": "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. It is just ...
PyQt5 – How to make a button with image ? - GeeksforGeeks
22 Apr, 2020 In this article we will see how to create a button with image. Unlike icon which exist only at the left side, we will create a button which is covered with the image. In order to do so we will use setStyleSheet method to add image to background of the button. Below is how normal button and a button with im...
[ { "code": null, "e": 25393, "s": 25365, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25653, "s": 25393, "text": "In this article we will see how to create a button with image. Unlike icon which exist only at the left side, we will create a button which is covered with the ima...
Python | Pandas dataframe.groupby() - GeeksforGeeks
28 Jun, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas groupby is used for grouping the data according to the categories and apply a function...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26411, "s": 26197, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
JavaScript | Insert a string at position X of another string - GeeksforGeeks
03 Jun, 2019 Given 2 string, the task is to insert one string in another at a specified position using javascript, we’re going to discuss few techniques.First few methods to know. JavaScript String slice() method:This method gets parts of a string and returns the extracted parts in a new string.Start and end parameters...
[ { "code": null, "e": 26149, "s": 26121, "text": "\n03 Jun, 2019" }, { "code": null, "e": 26316, "s": 26149, "text": "Given 2 string, the task is to insert one string in another at a specified position using javascript, we’re going to discuss few techniques.First few methods to kn...
Difference Between PUT and PATCH Request - GeeksforGeeks
13 Sep, 2021 In this article, we will talk about the difference between PUT and PATCH HTTP requests. PUT and PATCH requests are HTTP verbs and both relate to updating the resources at a location. PUT HTTP Request: PUT is a method of modifying resources where the client sends data that updates the entire resource. PUT i...
[ { "code": null, "e": 26571, "s": 26543, "text": "\n13 Sep, 2021" }, { "code": null, "e": 26754, "s": 26571, "text": "In this article, we will talk about the difference between PUT and PATCH HTTP requests. PUT and PATCH requests are HTTP verbs and both relate to updating the resou...
OpenDoor - OWASP Directory Access Scanner in Kali Linux - GeeksforGeeks
14 Sep, 2021 Brute-Forcing is an automated process through which Usernames, Passwords can be detected by querying the possible credentials on the target domain login pages. We can also brute-force hidden files and directories on the target server by specifying the possible word-list which contains the phrases that will...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n14 Sep, 2021" }, { "code": null, "e": 26553, "s": 25651, "text": "Brute-Forcing is an automated process through which Usernames, Passwords can be detected by querying the possible credentials on the target domain login pages. We ...
Python - Rayleigh Distribution in Statistics - GeeksforGeeks
14 Jan, 2020 scipy.stats.rayleigh() is a Rayleigh continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution. Parameters : q : lower and upper tail probabilityx : quantilesloc : [optio...
[ { "code": null, "e": 25587, "s": 25559, "text": "\n14 Jan, 2020" }, { "code": null, "e": 25820, "s": 25587, "text": "scipy.stats.rayleigh() is a Rayleigh continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It complete...
Count strings with consonants and vowels at alternate position - GeeksforGeeks
17 Mar, 2021 Given a string str. The task is to find all possible number of strings that can be obtained by replacing the “$” with alphabets in the given string.Note: Alphabets should be placed in such a way that the string is always alternating in vowels and consonants, and the string must always start with a consonan...
[ { "code": null, "e": 26723, "s": 26695, "text": "\n17 Mar, 2021" }, { "code": null, "e": 27164, "s": 26723, "text": "Given a string str. The task is to find all possible number of strings that can be obtained by replacing the “$” with alphabets in the given string.Note: Alphabets...
Python | shutil.copyfile() method - GeeksforGeeks
20 Jun, 2021 Python3 # Python program to explain shutil.copyfile() method # importing shutil moduleimport shutil # Source pathsource = "/home/User/Documents/file.txt" # Destination pathdestination = "/home/User/Documents" # Copy the content of# source to destination try: shutil.copyfile(source, destination) pri...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n20 Jun, 2021" }, { "code": null, "e": 25557, "s": 25549, "text": "Python3" }, { "code": "# Python program to explain shutil.copyfile() method # importing shutil moduleimport shutil # Source pathsource = \"/home/User/Doc...
Firebase - Write Transactional Data
Transactional data is used when you need to return some data from the database then make some calculation with it and store it back. Let us say we have one player inside our player list. We want to retrieve property, add one year of age and return it back to Firebase. The amandaRef is retrieving the age from the collec...
[ { "code": null, "e": 2299, "s": 2166, "text": "Transactional data is used when you need to return some data from the database then make some calculation with it and store it back." }, { "code": null, "e": 2353, "s": 2299, "text": "Let us say we have one player inside our player l...
How to compile packages in Java
Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces. Following package example contains interface named animals − /* File name : Animal.java */ package animals; interface A...
[ { "code": null, "e": 1263, "s": 1062, "text": "Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces." }, { "code": null, "e": 1324, "s": ...
How to add OJDBC jar to Maven Repository | Oracle Ojdbc jar as maven
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 This guide helps you to understand how to add...
[ { "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, ...
Gentle Introduction to Chi-Square Test for Independence | by Shinichi Okada | Towards Data Science
Table of contentsIntroduction 1. Prerequisite 2. SciPy package 3. Setup 4. Python indexing 5. chi2_contingency 6. Expected values 7. χ2 value 8. Side note about Latex 9. p-value10. Degree of freedom11. Importing data12. Pandas.DataFrame.transpose()13. Critical values14. The null and alternative hypothesesConclusion The...
[ { "code": null, "e": 489, "s": 172, "text": "Table of contentsIntroduction 1. Prerequisite 2. SciPy package 3. Setup 4. Python indexing 5. chi2_contingency 6. Expected values 7. χ2 value 8. Side note about Latex 9. p-value10. Degree of freedom11. Importing data12. Pandas.DataFrame.transpose()13. Cri...
Generate all permutations of a string that follow given constraints - GeeksforGeeks
27 Jan, 2022 Given a string, generate all permutations of it that do not contain ‘B’ after ‘A’, i.e., the string should not contain “AB” as a substring. Examples: Input : str = “ABC” Output : ACB, BAC, BCA, CBA Out of 6 permutations of “ABC”, 4 follow the given constraint and 2 (“ABC” and “CAB”) do not follow. Input :...
[ { "code": null, "e": 24591, "s": 24563, "text": "\n27 Jan, 2022" }, { "code": null, "e": 24731, "s": 24591, "text": "Given a string, generate all permutations of it that do not contain ‘B’ after ‘A’, i.e., the string should not contain “AB” as a substring." }, { "code": n...
PostgreSQL - TRIM Function - GeeksforGeeks
01 Feb, 2021 In PostgreSQL, the TRIM() function is used to remove the longest string consisting of spaces or any specified character from a string. By default, the TRIM() function removes all spaces (‘ ‘) if not specified explicitly. The TRIM() function, can also be used to remove the longest string containing a chara...
[ { "code": null, "e": 24058, "s": 24030, "text": "\n01 Feb, 2021" }, { "code": null, "e": 24460, "s": 24058, "text": "In PostgreSQL, the TRIM() function is used to remove the longest string consisting of spaces or any specified character from a string. By default, the TRIM() funct...
How to scale different Views to all screen sizes in Android Studio?
18 Feb, 2021 In this article, it is shown how to change the size of View in Android App Development (like TextView, etc), so that they can modify the content that is displayed on the screen. Note: For this article, XML visualizer instead of Android Studio. Below are the various methods to change the size of Views in An...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2021" }, { "code": null, "e": 206, "s": 28, "text": "In this article, it is shown how to change the size of View in Android App Development (like TextView, etc), so that they can modify the content that is displayed on the scree...
Python – Specific Range Addition in List
01 Mar, 2020 Sometimes, while working with Python, we need to perform edition in Python list. And sometimes we need to perform this to specific index range in it. This kind of application can have application in many domains. Lets discuss certain ways in which this task can be performed. Method #1 : Using loopThis is b...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Mar, 2020" }, { "code": null, "e": 304, "s": 28, "text": "Sometimes, while working with Python, we need to perform edition in Python list. And sometimes we need to perform this to specific index range in it. This kind of application ...
Fresco Image Loading Library in Android with Example
06 Sep, 2021 Fresco is one of the famous image loading libraries from URLs in Android. It is a powerful library for displaying and managing images from URLs. This library can load images from Users’ devices, servers, and other local sources. The most important feature of this library is to show a placeholder image when...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Sep, 2021" }, { "code": null, "e": 688, "s": 52, "text": "Fresco is one of the famous image loading libraries from URLs in Android. It is a powerful library for displaying and managing images from URLs. This library can load images ...
OS CPU Scheduling - GeeksforGeeks
03 Oct, 2019 p2 p1 p2 p1 p2 p0 p1 p2 p0 p1 p2 0 4 5 6 7 8 9 10 11 12 13 14 idle p0 p1 p2 idle 0 2 9 23 44 47 Process Arrival time Time Units Required P1 0 5 P2 1 ...
[ { "code": null, "e": 34106, "s": 34078, "text": "\n03 Oct, 2019" }, { "code": null, "e": 34209, "s": 34106, "text": " p2 p1 p2 p1 p2 p0 p1 p2 p0 p1 p2\n0 4 5 6 7 8 9 10 11 12 13 14 \n" }, { "code": null, "e": 34276, "s": 34209...
Volley Library in Android
19 May, 2022 Volley is an HTTP library that makes networking very easy and fast, for Android apps. It was developed by Google and introduced during Google I/O 2013. It was developed because there is an absence in Android SDK, of a networking class capable of working without interfering with the user experience. Althoug...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 May, 2022" }, { "code": null, "e": 804, "s": 52, "text": "Volley is an HTTP library that makes networking very easy and fast, for Android apps. It was developed by Google and introduced during Google I/O 2013. It was developed becau...
Use different y-axes on the left and right of a Matplotlib plot
23 Jan, 2022 In this article, we are going to discuss how to create y-axes of both sides of a Matplotlib plot. Sometimes for quick data analysis, it is required to create a single graph having two data variables with different scales. For this purpose twin axes methods are used i.e. dual X or Y-axes. The matplotlib.axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jan, 2022" }, { "code": null, "e": 126, "s": 28, "text": "In this article, we are going to discuss how to create y-axes of both sides of a Matplotlib plot." }, { "code": null, "e": 446, "s": 126, "text": "Sometime...