title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
ReactJS ES6 - GeeksforGeeks
08 Oct, 2021 ES6, also known as ECMA script 2015 is a scripting language which is based on specification and standardization by ECMA International Company in ECMA-262 and ISO/IEC 1623. It is the sixth edition of the ECMAScript language specification standard. It was created to standardize JavaScript language to bring m...
[ { "code": null, "e": 26571, "s": 26543, "text": "\n08 Oct, 2021" }, { "code": null, "e": 27295, "s": 26571, "text": "ES6, also known as ECMA script 2015 is a scripting language which is based on specification and standardization by ECMA International Company in ECMA-262 and ISO/I...
How to create Frame by Frame Animation using CSS and JavaScript ? - GeeksforGeeks
28 Jul, 2021 Frame by frame animation is a technique where a set of images are shown, one by one in a particular order, maintaining fixed time interval gaps between two consecutive images, to make an illusion of motion to the eyes. Now, in a more technical way, we can say that frame-by-frame animation is a technique wh...
[ { "code": null, "e": 26647, "s": 26619, "text": "\n28 Jul, 2021" }, { "code": null, "e": 27093, "s": 26647, "text": "Frame by frame animation is a technique where a set of images are shown, one by one in a particular order, maintaining fixed time interval gaps between two consecu...
TypeScript | Array forEach() Method - GeeksforGeeks
18 Jun, 2020 The Array.forEach() is an inbuilt TypeScript function which is used to calls a function for each element in the array. Syntax: array.forEach(callback[, thisObject]) Parameter: This method accepts two parameter as mentioned above and described below: callback : This parameter is the Function to test for e...
[ { "code": null, "e": 25679, "s": 25651, "text": "\n18 Jun, 2020" }, { "code": null, "e": 25807, "s": 25679, "text": "The Array.forEach() is an inbuilt TypeScript function which is used to calls a function for each element in the array. Syntax: " }, { "code": null, "e"...
RapidScan – The Multi-Tool Web Vulnerability Scanner in Kali Linux - GeeksforGeeks
30 Jun, 2021 RapidScan is a free and open-source tool available on GitHub which is based upon Open Source Intelligence (OSINT), the easiest and useful tool for reconnaissance. The RapidScan interface is very similar to Metasploit 1 and Metasploit 2, which provides a command-line interface that you can run on Kali Linux...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26527, "s": 25651, "text": "RapidScan is a free and open-source tool available on GitHub which is based upon Open Source Intelligence (OSINT), the easiest and useful tool for reconnaissance. ...
Scope Resolution in Python | LEGB Rule - GeeksforGeeks
27 Nov, 2018 Namespaces : A namespace is a container where names are mapped to objects, they are used to avoid confusions in cases where same names exist in different namespaces. They are created by modules, functions, classes etc. Scope : A scope defines the hierarchical order in which the namespaces have to be search...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n27 Nov, 2018" }, { "code": null, "e": 25780, "s": 25561, "text": "Namespaces : A namespace is a container where names are mapped to objects, they are used to avoid confusions in cases where same names exist in different namespace...
Java Program to Join Contents of More than One Table & Display in JDBC - GeeksforGeeks
11 Aug, 2021 Java supports many databases and for each database, we need to have their respective jar files to be placed in the build path to proceed for JDBC connectivity. First, need to decide, which database we are using and accordingly, we need to add the jars. For other databases like Progress, Cassandra, etc also...
[ { "code": null, "e": 25747, "s": 25719, "text": "\n11 Aug, 2021" }, { "code": null, "e": 26222, "s": 25747, "text": "Java supports many databases and for each database, we need to have their respective jar files to be placed in the build path to proceed for JDBC connectivity. Fir...
Python - English (Latin) to Hindi (Devanagiri) text convertor GUI using Tkinter - GeeksforGeeks
10 Jun, 2021 Prerequisites : Introduction to tkinter | Text transliteration from English to Indian languages – Using indic-transliterationPython offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interfac...
[ { "code": null, "e": 26347, "s": 26319, "text": "\n10 Jun, 2021" }, { "code": null, "e": 26893, "s": 26347, "text": "Prerequisites : Introduction to tkinter | Text transliteration from English to Indian languages – Using indic-transliterationPython offers multiple options for dev...
Handling OSError exception in Python - GeeksforGeeks
19 Aug, 2020 Let us see how to handle OSError Exceptions in Python. OSError is a built-in exception in Python and serves as the error class for the os module, which is raised when an os specific system function returns a system-related error, including I/O failures such as “file not found” or “disk full”. Below is an e...
[ { "code": null, "e": 25591, "s": 25563, "text": "\n19 Aug, 2020" }, { "code": null, "e": 25885, "s": 25591, "text": "Let us see how to handle OSError Exceptions in Python. OSError is a built-in exception in Python and serves as the error class for the os module, which is raised w...
Count of words that are present in all the given sentences - GeeksforGeeks
27 Dec, 2021 Given n sentences. The task is to count the number of words that appear in all of these sentences. Note that every word consists of only lowercase English alphabets.Examples: Input: arr[] = { “there is a cow”, “cow is our mother”, “cow gives us milk and milk is sweet”, “there is a boy who loves cow”} Outp...
[ { "code": null, "e": 25731, "s": 25703, "text": "\n27 Dec, 2021" }, { "code": null, "e": 25907, "s": 25731, "text": "Given n sentences. The task is to count the number of words that appear in all of these sentences. Note that every word consists of only lowercase English alphabet...
How to Build Android Applications with Gradle? - GeeksforGeeks
27 Sep, 2021 There are several contemporary build automation technologies available nowadays that may be utilized to create a quicker build when creating a project. Gradle is one of these modern-day automation technologies. Gradle is now used by Android to automate and control the build process while also defining flex...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n27 Sep, 2021" }, { "code": null, "e": 26839, "s": 26381, "text": "There are several contemporary build automation technologies available nowadays that may be utilized to create a quicker build when creating a project. Gradle is o...
Tree Traversals - GeeksforGeeks
01 Jun, 2021 a / \ / \ b c / \ / \ / \ / \ d e f g Writing code in comment? Please use ide.g...
[ { "code": null, "e": 28855, "s": 28827, "text": "\n01 Jun, 2021" }, { "code": null, "e": 29121, "s": 28855, "text": " a\n / \\\n / \\\n b c\n ...
Minimum and Maximum number of pairs in m teams of n people - GeeksforGeeks
31 Mar, 2021 There are people which are to be grouped into exactly teams such that there is at least one person in each team. All members of a team are friends with each other. Find the minimum and maximum no. of pairs of friends that can be formed by grouping these people into exactly teams.Examples: Input : 5 2 Out...
[ { "code": null, "e": 26673, "s": 26645, "text": "\n31 Mar, 2021" }, { "code": null, "e": 26965, "s": 26673, "text": "There are people which are to be grouped into exactly teams such that there is at least one person in each team. All members of a team are friends with each other....
java.rmi.Naming Class in Java - GeeksforGeeks
25 Aug, 2021 Java.rmi.Naming class contains a method to bind, unbind or rebind names with a remote object present at the remote registry. This class is also used to get the reference of the object present at remote registries or the list of name associated with this registry. Syntax: Class declaration public final clas...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n25 Aug, 2021" }, { "code": null, "e": 25489, "s": 25225, "text": "Java.rmi.Naming class contains a method to bind, unbind or rebind names with a remote object present at the remote registry. This class is also used to get the ref...
Perfect Square String - GeeksforGeeks
25 Mar, 2021 Given a String str and the task is to check sum of ASCII value of all characters is a perfect square or not. Examples : Input : ddddddddddddddddddddddddd Output : Yes Input : GeeksForGeeks Output : No Algorithm Calculate the string length Calculate sum of ASCII value of all characters Take the square r...
[ { "code": null, "e": 26501, "s": 26473, "text": "\n25 Mar, 2021" }, { "code": null, "e": 26610, "s": 26501, "text": "Given a String str and the task is to check sum of ASCII value of all characters is a perfect square or not." }, { "code": null, "e": 26622, "s": 2...
Pagination using Scrapy - Web Scraping with Python - GeeksforGeeks
30 Sep, 2021 Pagination using Scrapy. Web scraping is a technique to fetch information from websites .Scrapy is used as a python framework for web scraping. Getting data from a normal website is easier, and can be just achieved by just pulling HTMl of website and fetching data by filtering tags. But what in case when t...
[ { "code": null, "e": 26199, "s": 26171, "text": "\n30 Sep, 2021" }, { "code": null, "e": 26696, "s": 26199, "text": "Pagination using Scrapy. Web scraping is a technique to fetch information from websites .Scrapy is used as a python framework for web scraping. Getting data from a...
How to make Custom Buttons in Plotly? - GeeksforGeeks
01 Oct, 2020 A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. In...
[ { "code": null, "e": 24843, "s": 24815, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25148, "s": 24843, "text": "A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, ...
PHP | create_function() Function - GeeksforGeeks
25 Jun, 2018 The create_function() is an inbuilt function in PHP which is used to create an anonymous (lambda-style) function in the PHP. Syntax: string create_function ( $args, $code ) Parameters: This function accepts two parameters which is describes below: $args: It is a string type function argument. $code: It is ...
[ { "code": null, "e": 26103, "s": 26075, "text": "\n25 Jun, 2018" }, { "code": null, "e": 26228, "s": 26103, "text": "The create_function() is an inbuilt function in PHP which is used to create an anonymous (lambda-style) function in the PHP." }, { "code": null, "e": 2...
Python | Pandas Index.repeat() - GeeksforGeeks
18 Dec, 2018 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 Index.repeat() function repeat elements of an Index. The function returns a new index ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Dec, 2018" }, { "code": null, "e": 25751, "s": 25537, "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...
Queue Operations - GeeksforGeeks
24 Dec, 2021 Given N integers, the task is to insert those elements in the queue. Also, given M integers, the task is to find the frequency of each number in the Queue. Examples: Input: N = 8 1 2 3 4 5 2 3 1 (N integers)M = 51 3 2 9 10 (M integers)Output:2 2 2 -1 -1 Explanation:After inserting 1, 2, 3, 4, 5, 2, 3, 1 ...
[ { "code": null, "e": 26175, "s": 26147, "text": "\n24 Dec, 2021" }, { "code": null, "e": 26331, "s": 26175, "text": "Given N integers, the task is to insert those elements in the queue. Also, given M integers, the task is to find the frequency of each number in the Queue." }, ...
Python program to print the initials of a name with last name in full?
Here we use different python inbuilt function. First we use split().split the words into a list. Then traverse till the second last word and upper() function is used for print first character in capital and then add the last word which is title of a name and here we use title(),title function converts the first alphabe...
[ { "code": null, "e": 1396, "s": 1062, "text": "Here we use different python inbuilt function. First we use split().split the words into a list. Then traverse till the second last word and upper() function is used for print first character in capital and then add the last word which is title of a nam...
Job Title Analysis in python and NLTK | by Adonis Gaitatzis | Towards Data Science
A job title indicates a lot about someone’s role and responsibilities. It says if they manage a team, if they control a budget, and their level of specialization. Knowing this is useful when automating business development or client outreach. For example, a company that sells voice recognition software may want to send...
[ { "code": null, "e": 335, "s": 172, "text": "A job title indicates a lot about someone’s role and responsibilities. It says if they manage a team, if they control a budget, and their level of specialization." }, { "code": null, "e": 506, "s": 335, "text": "Knowing this is useful ...
Angular Material 7 - Button
The <mat-button>, an Angular Directive, is used to create a button with material styling and animations. In this chapter, we will showcase the configuration required to draw a button control using Angular Material. Follow the following steps to update the Angular application we created in Angular 6 - Project Setup chap...
[ { "code": null, "e": 2860, "s": 2755, "text": "The <mat-button>, an Angular Directive, is used to create a button with material styling and animations." }, { "code": null, "e": 2970, "s": 2860, "text": "In this chapter, we will showcase the configuration required to draw a button...
Python | Percentage occurrence at index - GeeksforGeeks
27 Mar, 2019 Sometimes while dealing with statistics, we might come across this particular problem in which we require to find the percentage of occurrence of element at particular index in list of list. Let’s discuss certain ways in which this can be done. Method #1 : Using loop + list comprehensionWe can perform this...
[ { "code": null, "e": 24156, "s": 24128, "text": "\n27 Mar, 2019" }, { "code": null, "e": 24401, "s": 24156, "text": "Sometimes while dealing with statistics, we might come across this particular problem in which we require to find the percentage of occurrence of element at partic...
Creating a tkinter GUI layout using frames and grid
Tkinter is a well-known Python library for creating GUI-based applications. You can create a fully featured application with the help of widgets, functions, and modules that are already present in Tkinter library. Sometimes, selecting the right GUI of the application becomes a daunting task for many of us. Tkinter come...
[ { "code": null, "e": 1276, "s": 1062, "text": "Tkinter is a well-known Python library for creating GUI-based applications. You can create a fully featured application with the help of widgets, functions, and modules that are already present in Tkinter library." }, { "code": null, "e": 14...
Program for Mobius Function | Set 2 - GeeksforGeeks
18 Mar, 2022 Given an integer N. The task is to find Mobius function of all numbers from 1 to N.Examples: Input: N = 5 Output: 1 -1 -1 0 -1 Input: N = 10 Output: 1 -1 -1 0 -1 1 -1 0 0 1 Approach: The idea is to first find the least prime factor of all the numbers from 1 to N using Sieve of Eratosthenes then using...
[ { "code": null, "e": 24604, "s": 24576, "text": "\n18 Mar, 2022" }, { "code": null, "e": 24699, "s": 24604, "text": "Given an integer N. The task is to find Mobius function of all numbers from 1 to N.Examples: " }, { "code": null, "e": 24781, "s": 24699, "tex...
Maximize sum(arr[i]*i) of an Array | Practice | GeeksforGeeks
Given an array A of N integers. Your task is to write a program to find the maximum value of ∑arr[i]*i, where i = 0, 1, 2,...., n – 1. You are allowed to rearrange the elements of the array. Note: Since output could be large, hence module 109+7 and then print answer. Example 1: Input : Arr[] = {5, 3, 2, 4, 1} Output ...
[ { "code": null, "e": 506, "s": 238, "text": "Given an array A of N integers. Your task is to write a program to find the maximum value of ∑arr[i]*i, where i = 0, 1, 2,...., n – 1.\nYou are allowed to rearrange the elements of the array.\nNote: Since output could be large, hence module 109+7 and then...
Scaling Analytical Insights with Python (Part 2) | by Kevin Boller | Towards Data Science
In this Part 2 post (Part 1 can be found here), I’ll combine several resources which I believe are remarkably useful, and this post will tie together a few key pieces of analyses for better understanding a direct-to-consumer, subscription / SaaS customer base. In order to meld all of this together, I’ll also use one of...
[ { "code": null, "e": 1239, "s": 172, "text": "In this Part 2 post (Part 1 can be found here), I’ll combine several resources which I believe are remarkably useful, and this post will tie together a few key pieces of analyses for better understanding a direct-to-consumer, subscription / SaaS customer...
Priority Queue using Queue and Heapdict module in Python - GeeksforGeeks
31 Dec, 2020 Priority Queue is an extension of the queue with the following properties. An element with high priority is dequeued before an element with low priority. If two elements have the same priority, they are served according to their order in the queue. It is a constructor for a priority queue. maxsize is the n...
[ { "code": null, "e": 24236, "s": 24208, "text": "\n31 Dec, 2020" }, { "code": null, "e": 24311, "s": 24236, "text": "Priority Queue is an extension of the queue with the following properties." }, { "code": null, "e": 24390, "s": 24311, "text": "An element with...
Tryit Editor v3.7
Tryit: Canvas with a circle
[]
Synonym & Antonym Replacement
While working with NLP, especially in the case of frequency analysis and text indexing, it is always beneficial to compress the vocabulary without losing meaning because it saves lots of memory. To achieve this, we must have to define mapping of a word to its synonyms. In the example below, we will be creating a class ...
[ { "code": null, "e": 2798, "s": 2384, "text": "While working with NLP, especially in the case of frequency analysis and text indexing, it is always beneficial to compress the vocabulary without losing meaning because it saves lots of memory. To achieve this, we must have to define mapping of a word ...
Get Seconds from timestamp in Python-Pandas - GeeksforGeeks
05 Apr, 2022 In this program our task is to create a program in python which will extract seconds from a given timestamp. We will use the s attribute of the DateTime object to extract the second.Example : If we have a data frame that contains 5 different time stamps such as: Timestamp 2012-12-11 04:12:01 2013-10-13 0...
[ { "code": null, "e": 24322, "s": 24294, "text": "\n05 Apr, 2022" }, { "code": null, "e": 24587, "s": 24322, "text": "In this program our task is to create a program in python which will extract seconds from a given timestamp. We will use the s attribute of the DateTime object to ...
Maximize sum of an Array by flipping sign of all elements of a single subarray - GeeksforGeeks
09 Nov, 2021 Given an array arr[] of N integers, the task is to find the maximum sum of the array that can be obtained by flipping signs of any subarray of the given array at most once. Examples: Input: arr[] = {-2, 3, -1, -4, -2} Output: 8Explanation: Flipping the signs of subarray {-1, -4, -2} modifies the array to {...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n09 Nov, 2021" }, { "code": null, "e": 24995, "s": 24822, "text": "Given an array arr[] of N integers, the task is to find the maximum sum of the array that can be obtained by flipping signs of any subarray of the given array at m...
Multiply two polynomials | Practice | GeeksforGeeks
Given two polynomials represented by two arrays that contains the coefficients of poynomials, returns the polynomial in form of array formed after multiplication of given polynomials. Example 1: Input: M = 4, N = 3 Arr1 = {1 , 0, 3, 2} Arr2 = {2, 0, 4} Output: {2, 0, 10, 4, 12, 8} Explaination: First polynomial: 1 +...
[ { "code": null, "e": 422, "s": 238, "text": "Given two polynomials represented by two arrays that contains the coefficients of poynomials, returns the polynomial in form of array formed after multiplication of given polynomials." }, { "code": null, "e": 434, "s": 422, "text": "\n...
Event Handling in Matplotlib - GeeksforGeeks
18 Oct, 2021 Event based System usually is part of a recurring set of patterns. Often, they comprise of the following : An incoming event A mechanism that is used to respond to an event A looping construct (e.g. while loop, listener, and the message dispatch mechanism) The events that are triggered are also a bit riche...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n18 Oct, 2021" }, { "code": null, "e": 24399, "s": 24292, "text": "Event based System usually is part of a recurring set of patterns. Often, they comprise of the following :" }, { "code": null, "e": 24417, "s": 243...
Python Program to Implement Queues using Stacks
When it is required to implement a queue using a stack, a queue class can be defined, where two stack instances can be defined. Different operations can be performed on the queue that are defined as methods in this class. Below is a demonstration of the same − Live Demo class Queue_structure: def __init__(self): ...
[ { "code": null, "e": 1284, "s": 1062, "text": "When it is required to implement a queue using a stack, a queue class can be defined, where two stack instances can be defined. Different operations can be performed on the queue that are defined as methods in this class." }, { "code": null, ...
SAP Scripts - Create a Script in the System
To start a script, you have to run Transaction SE71 and this will open the Form Painter. In the Form Painter, request screen, enter a name and language for a SAPscript form in the Form and Language fields, respectively. Let’s enter 'RVINVOICE01' and 'EN' respectively in these fields. Paragraph provides all the informat...
[ { "code": null, "e": 2612, "s": 2523, "text": "To start a script, you have to run Transaction SE71 and this will open the Form Painter." }, { "code": null, "e": 2808, "s": 2612, "text": "In the Form Painter, request screen, enter a name and language for a SAPscript form in the Fo...
How to write PHP script to fetch data, based on some conditions, from MySQL table?
If we want to fetch conditional data from MySQL table then we can write WHERE clause in SQL statement and use it with a PHP script. While writing the PHP script we can use PHP function mysql_query(). This function is used to execute the SQL command and later another PHP function mysql_fetch_array() can be used to fetch...
[ { "code": null, "e": 1595, "s": 1062, "text": "If we want to fetch conditional data from MySQL table then we can write WHERE clause in SQL statement and use it with a PHP script. While writing the PHP script we can use PHP function mysql_query(). This function is used to execute the SQL command and ...
Accessing and Cleaning Data from Garmin Wearables for Analysis | by Adam Brownell | Towards Data Science
When I started working on a project to analyze my Garmin Fenix data, it wasn’t clear how to access this amazing dataset, and required some technical know-how. Garmin’s documentation was also hard to follow and outdated, resulting in me having to dig through code repos and old internet forums... Hopefully this article c...
[ { "code": null, "e": 330, "s": 171, "text": "When I started working on a project to analyze my Garmin Fenix data, it wasn’t clear how to access this amazing dataset, and required some technical know-how." }, { "code": null, "e": 467, "s": 330, "text": "Garmin’s documentation was ...
File.Delete() Method in C# with Examples - GeeksforGeeks
12 Apr, 2021 File.Delete(String) is an inbuilt File class method which is used to delete the specified file.Syntax: public static void Delete (string path); Parameter: This function accepts a parameter which is illustrated below: path: This is the specified file path which is to be deleted. Exceptions: ArgumentExc...
[ { "code": null, "e": 24658, "s": 24630, "text": "\n12 Apr, 2021" }, { "code": null, "e": 24763, "s": 24658, "text": "File.Delete(String) is an inbuilt File class method which is used to delete the specified file.Syntax: " }, { "code": null, "e": 24804, "s": 24763...
Implement Runnable vs Extend Thread in Java
We can create Thread by either by implementing a runnable interface or by extending Thread class. Below are the detailed steps of using both ways to create Thread. If your class is intended to be executed as a thread then you can achieve this by implementing a Runnable interface. You will need to follow three basic ste...
[ { "code": null, "e": 1226, "s": 1062, "text": "We can create Thread by either by implementing a runnable interface or by extending Thread class. Below are the detailed steps of using both ways to create Thread." }, { "code": null, "e": 1387, "s": 1226, "text": "If your class is i...
Split Button Dropdowns with Bootstrap
Split button dropdowns use the same general style as the dropdown button but add a primary action along with the dropdown. Split buttons have the primary action on the left and a toggle on the right that displays the dropdown. You can try to run the following code to split button dropdowns − Live Demo <!DOCTYPE html> <...
[ { "code": null, "e": 1289, "s": 1062, "text": "Split button dropdowns use the same general style as the dropdown button but add a primary action along with the dropdown. Split buttons have the primary action on the left and a toggle on the right that displays the dropdown." }, { "code": null...
Selenium on Airflow: Automate a daily task on the web! | by Harry Daniels | Towards Data Science
This post demonstrates how to build an Airflow plugin, which uses the Selenium WebDriver, to automate a daily online task. Increased productivity. Greater quality. Removing the possibility of human error and reducing manual labour. Additional frequency and consistency (Working on the weekend!). If your daily task invol...
[ { "code": null, "e": 295, "s": 172, "text": "This post demonstrates how to build an Airflow plugin, which uses the Selenium WebDriver, to automate a daily online task." }, { "code": null, "e": 319, "s": 295, "text": "Increased productivity." }, { "code": null, "e": 33...
Dropdown Menus - Tkinter - GeeksforGeeks
26 Nov, 2020 Prerequisite: Python GUI – tkinter Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easies...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n26 Nov, 2020" }, { "code": null, "e": 24351, "s": 24316, "text": "Prerequisite: Python GUI – tkinter" }, { "code": null, "e": 24703, "s": 24351, "text": "Python offers multiple options for developing a GUI (Gr...
GATE | GATE-CS-2004 | Question 90 - GeeksforGeeks
28 Jul, 2021 The recurrence equation T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to a. 2n + 1– n – 2b. 2n – nc. 2n + 1 – 2n – 2d. 2n + n(A) a(B) b(C) c(D) dAnswer: (A)Explanation: If draw recursion tree, we can notice that total work done is,T(n) = n + 2(n-1) + 4(n-2) + 8(n-3) + 2n-1 * (n – n + 1)T(n) = n + 2(n-1) ...
[ { "code": null, "e": 24043, "s": 24015, "text": "\n28 Jul, 2021" }, { "code": null, "e": 24067, "s": 24043, "text": "The recurrence equation" }, { "code": null, "e": 24105, "s": 24067, "text": "T(1) = 1\nT(n) = 2T(n - 1) + n, n ≥ 2 " }, { "code": null,...
Set the height of an image with CSS
The height property is used to set the height of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available. You can try to run the following code to set the height of an image − <html> <head> </head> <body> <img...
[ { "code": null, "e": 1264, "s": 1062, "text": "The height property is used to set the height of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available." }, { "code": null, "e": 1334, "s":...
\ln - Tex Command
\ln - Used to draw natural logarithm symbol. { \ln } \ln command draws natural logarithm symbol. \ln ln \ln ln \ln 14 Lectures 52 mins Ashraf Said 11 Lectures 1 hours Ashraf Said 9 Lectures 1 hours Emenwa Global, Ejike IfeanyiChukwu 29 Lectures 2.5 hours Mo...
[ { "code": null, "e": 8031, "s": 7986, "text": "\\ln - Used to draw natural logarithm symbol." }, { "code": null, "e": 8039, "s": 8031, "text": "{ \\ln }" }, { "code": null, "e": 8083, "s": 8039, "text": "\\ln command draws natural logarithm symbol." }, { ...
Check if a number is Palindrome in C++
Here we will see, how to check whether a number is a palindrome or not. The palindrome numbers are the same in both directions. For example, a number 12321 is a palindrome, but 12345 is not a palindrome. The logic is very straight forward. We have to reverse the number, and if the reversed number is the same as the act...
[ { "code": null, "e": 1266, "s": 1062, "text": "Here we will see, how to check whether a number is a palindrome or not. The palindrome numbers are the same in both directions. For example, a number 12321 is a palindrome, but 12345 is not a palindrome." }, { "code": null, "e": 1483, "s...
C++ | Misc C++ | Question 8 - GeeksforGeeks
28 Jun, 2021 #include<iostream>using namespace std;int main (){ int cin; cin >> cin; cout << "cin" << cin; return 0;} Thanks to Gokul Kumar for contributing this question.(A) error in using cin keyword(B) cin+junk value(C) cin+input(D) Runtime errorAnswer: (B)Explanation:Quiz of this Question C+...
[ { "code": null, "e": 24244, "s": 24216, "text": "\n28 Jun, 2021" }, { "code": "#include<iostream>using namespace std;int main (){ int cin; cin >> cin; cout << \"cin\" << cin; return 0;}", "e": 24373, "s": 24244, "text": null }, { "code": null, ...
switch statement in java
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case. The syntax of enhanced for loop is − switch(expression) { case value : // Statements break; // optional case value : ...
[ { "code": null, "e": 2556, "s": 2377, "text": "A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case." }, { "code": null, "e": 2593, "s": 2556, "text": "The...
Algorithmic trading based on Technical Analysis in Python | by Eryk Lewinson | Towards Data Science
This is the fourth part of a series of articles on backtesting trading strategies in Python. The previous ones described the following topics: introducing the zipline framework and presenting how to test basic strategies (link) importing custom data to use with zipline (link) evaluating the performance of trading strat...
[ { "code": null, "e": 314, "s": 171, "text": "This is the fourth part of a series of articles on backtesting trading strategies in Python. The previous ones described the following topics:" }, { "code": null, "e": 399, "s": 314, "text": "introducing the zipline framework and prese...
Java Program to split a string using Regular Expression
Let’s say we have the following string. String str = "{Java is a programming language} {James Gosling developed it.}"; Above, the string is enclosed with parentheses. We can split a string with these parentheses using the split() method. String[] strSplit = str.split("[{}]"); The following is an example. Live Demo pub...
[ { "code": null, "e": 1102, "s": 1062, "text": "Let’s say we have the following string." }, { "code": null, "e": 1181, "s": 1102, "text": "String str = \"{Java is a programming language} {James Gosling developed it.}\";" }, { "code": null, "e": 1300, "s": 1181, ...
Create Copy-Move GUI using Tkinter in Python - GeeksforGeeks
05 Oct, 2021 Everyone reading this post is well aware of the importance of Copying the file or moving the file from one specific location to another. In this post, we have tried to explain not only the program but added some exciting pieces of Interface. Up to now, many of you may get about what we are talking about. Y...
[ { "code": null, "e": 23927, "s": 23899, "text": "\n05 Oct, 2021" }, { "code": null, "e": 24360, "s": 23927, "text": "Everyone reading this post is well aware of the importance of Copying the file or moving the file from one specific location to another. In this post, we have trie...
MFC - Windows Fundamentals
In this chapter, we will be covering the fundamentals of Windows. To create a program, also called an application, you derive a class from the MFC's CWinApp. CWinApp stands for Class for a Windows Application. Let us look into a simple example by creating a new Win32 project. Step 1 − Open the Visual studio and click o...
[ { "code": null, "e": 2277, "s": 2067, "text": "In this chapter, we will be covering the fundamentals of Windows. To create a program, also called an application, you derive a class from the MFC's CWinApp. CWinApp stands for Class for a Windows Application." }, { "code": null, "e": 2344, ...
PyQt - QStatusBar Widget
QMainWindow object reserves a horizontal bar at the bottom as the status bar. It is used to display either permanent or contextual status information. There are three types of status indicators − Temporary − Briefly occupies most of the status bar. For example, used to explain tool tip texts or menu entries. Temporary ...
[ { "code": null, "e": 2077, "s": 1926, "text": "QMainWindow object reserves a horizontal bar at the bottom as the status bar. It is used to display either permanent or contextual status information." }, { "code": null, "e": 2122, "s": 2077, "text": "There are three types of status...
How to sum up elements of a C++ vector?
Sum up of all elements of a C++ vector can be very easily done by std::accumulate method. It is defined in <numeric> header. It accumulates all the values present specified in the vector to the specified sum. Begin Declare v of vector type. Initialize some values into v vector in array pattern. Print “Su...
[ { "code": null, "e": 1271, "s": 1062, "text": "Sum up of all elements of a C++ vector can be very easily done by std::accumulate method. It is defined in <numeric> header. It accumulates all the values present specified in the vector to the specified sum." }, { "code": null, "e": 1544, ...
CSS3 Diagonal Gradient
Diagonal starts at top left and right button. You can try to run the following code to implement diagonal gradients in CSS3 − Live Demo <html> <head> <style> #grad1 { height: 100px; background: -webkit-linear-gradient(left top, red , blue); background: -o-linear-gra...
[ { "code": null, "e": 1188, "s": 1062, "text": "Diagonal starts at top left and right button. You can try to run the following code to implement diagonal gradients in CSS3 −" }, { "code": null, "e": 1198, "s": 1188, "text": "Live Demo" }, { "code": null, "e": 1652, ...
Python program to check if binary representation is palindrome?
Here we use different python inbuilt function. First we use bin() for converting number into it’s binary for, then reverse the binary form of string and compare with originals, if match then palindrome otherwise not. Input: 5 Output: palindrome Binary representation of 5 is 101 Reverse it and result is 101, then compa...
[ { "code": null, "e": 1279, "s": 1062, "text": "Here we use different python inbuilt function. First we use bin() for converting number into it’s binary for, then reverse the binary form of string and compare with originals, if match then palindrome otherwise not." }, { "code": null, "e":...
C program to Calculate Body Mass Index (BMI)
Given with the weight and height of a person and the task is to find the BMI i.e. body mass index of his body and display it. For calculating the body mass index we require two things − Weight Height BMI can be calculated using the formula given below − BMI = (mass or weight) / (height*height) Where weight is in kg and...
[ { "code": null, "e": 1188, "s": 1062, "text": "Given with the weight and height of a person and the task is to find the BMI i.e. body mass index of his body and display it." }, { "code": null, "e": 1248, "s": 1188, "text": "For calculating the body mass index we require two thing...
Command line arguments in C/C++
It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and many times they are important for your program especially when you want to control your program from outside instead of hard coding those values inside the code. The com...
[ { "code": null, "e": 1375, "s": 1062, "text": "It is possible to pass some values from the command line to your C programs when\nthey are executed. These values are called command line arguments and many\ntimes they are important for your program especially when you want to control your\nprogram fro...
Python Generators. A tutorial on developing python... | by Anuradha Wickramarachchi | Towards Data Science
In simple terms, Python generators facilitate functionality to maintain persistent states. This enables incremental computations and iterations. Furthermore, generators can be used in place of arrays to save memory. This is because generators do not store the values, but rather the computation logic with the state of t...
[ { "code": null, "e": 568, "s": 172, "text": "In simple terms, Python generators facilitate functionality to maintain persistent states. This enables incremental computations and iterations. Furthermore, generators can be used in place of arrays to save memory. This is because generators do not store...
Going from R to Python — Linear Regression Diagnostic Plots | by Jason Sadowski | Towards Data Science
As a long time R user that has transitioned into Python, one of the things that I miss most about R is easily generating diagnostic plots for a linear regression. There are some great resources on how to conduct linear regression analyses in Python (see here for example), but I haven’t found an intuitive resource on ge...
[ { "code": null, "e": 551, "s": 172, "text": "As a long time R user that has transitioned into Python, one of the things that I miss most about R is easily generating diagnostic plots for a linear regression. There are some great resources on how to conduct linear regression analyses in Python (see h...
How to catch all JavaScript errors?
To catch all JavaScript errors, use onerror() method. The onerror event handler was the first feature to facilitate error handling in JavaScript. The error event is fired on the window object whenever an exception occurs on the page. The onerror event handler provides three pieces of information to identify the exact n...
[ { "code": null, "e": 1296, "s": 1062, "text": "To catch all JavaScript errors, use onerror() method. The onerror event handler was the first feature to facilitate error handling in JavaScript. The error event is fired on the window object whenever an exception occurs on the page." }, { "code...
Prediction using Bayesian State Space Model | by Sarit Maitra | Towards Data Science
Time series observations are assumed to depend linearly on a state vector that is unobserved and is generated by a stochastic and dynamic process in a state space analysis. The observations are further assumed to be subject to measurement error and independent of the state vector. Therefore, two main components which m...
[ { "code": null, "e": 565, "s": 171, "text": "Time series observations are assumed to depend linearly on a state vector that is unobserved and is generated by a stochastic and dynamic process in a state space analysis. The observations are further assumed to be subject to measurement error and indepe...
React Native - WebView
In this chapter, we will learn how to use WebView. It is used when you want to render web page to your mobile app inline. The HomeContainer will be a container component. import React, { Component } from 'react' import WebViewExample from './web_view_example.js' const App = () => { return ( <WebViewExample/> ...
[ { "code": null, "e": 2466, "s": 2344, "text": "In this chapter, we will learn how to use WebView. It is used when you want to render web page to your mobile app inline." }, { "code": null, "e": 2515, "s": 2466, "text": "The HomeContainer will be a container component." }, { ...
Function call by reference in C
The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parameter affect the passed argument. To pass a value by reference, argum...
[ { "code": null, "e": 2369, "s": 2084, "text": "The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parame...
Angular Material 7 - Tree
The <mat-tree>, an Angular Directive, is used to create a tree with material styling to display hierachical data. In this chapter, we will showcase the configuration required to draw a tree using Angular Material. Following is the content of the modified module descriptor app.module.ts. import { BrowserModule } from '@...
[ { "code": null, "e": 2869, "s": 2755, "text": "The <mat-tree>, an Angular Directive, is used to create a tree with material styling to display hierachical data." }, { "code": null, "e": 2969, "s": 2869, "text": "In this chapter, we will showcase the configuration required to draw...
How to Annotate and Improve Datasets with CVAT and FiftyOne | Towards Data Science
Everyone wants to train great models. The machine learning community has had a model-centric focus for quite a while with everyone trying to create the next best model. Recently, the importance of switching gears to data-centric workflows has become more and more prominent through ideas like Software 2.0. When training...
[ { "code": null, "e": 745, "s": 172, "text": "Everyone wants to train great models. The machine learning community has had a model-centric focus for quite a while with everyone trying to create the next best model. Recently, the importance of switching gears to data-centric workflows has become more ...
Python Pandas - Create a Subset DataFrame using Indexing Operator
The indexing operator is the square brackets for creating a subset dataframe. Let us first create a Pandas DataFrame. We have 3 columns in the DataFrame dataFrame = pd.DataFrame({"Product": ["SmartTV", "ChromeCast", "Speaker", "Earphone"],"Opening_Stock": [300, 700, 1200, 1500],"Closing_Stock": [200, 500, 1000, 900]}) ...
[ { "code": null, "e": 1215, "s": 1062, "text": "The indexing operator is the square brackets for creating a subset dataframe. Let us first create a Pandas DataFrame. We have 3 columns in the DataFrame" }, { "code": null, "e": 1382, "s": 1215, "text": "dataFrame = pd.DataFrame({\"P...
Decorator Design Pattern in Java with Example - GeeksforGeeks
28 Oct, 2021 The decorator design pattern allows us to dynamically add functionality and behavior to an object without affecting the behavior of other existing objects within the same class. We use inheritance to extend the behavior of the class. This takes place at compile-time, and all the instances of that class get...
[ { "code": null, "e": 24738, "s": 24710, "text": "\n28 Oct, 2021" }, { "code": null, "e": 25069, "s": 24738, "text": "The decorator design pattern allows us to dynamically add functionality and behavior to an object without affecting the behavior of other existing objects within t...
How to set MySQL default value NONE?
To set the default value in MySQL, you need to use the DEFAULT keyword. Let us first create a table − mysql> create table DemoTable ( ClientCountryName varchar(100) DEFAULT 'NONE' ); Query OK, 0 rows affected (0.65 sec) We have set DEFAULT above for values not entered while insertion. Now, let us insert some records...
[ { "code": null, "e": 1164, "s": 1062, "text": "To set the default value in MySQL, you need to use the DEFAULT keyword. Let us first create a table −" }, { "code": null, "e": 1285, "s": 1164, "text": "mysql> create table DemoTable\n(\n ClientCountryName varchar(100) DEFAULT 'NON...
How to use title tag in HTML Page?
The title is essential in all the HTML Documents. To define the title of a document, use the <title> tag. The title of a document is visible on the web browser toolbar and the search engine results in display title for an HTML page. Just keep in mind that you should add <title>...</title> tag inside <head>...</head> ta...
[ { "code": null, "e": 1295, "s": 1062, "text": "The title is essential in all the HTML Documents. To define the title of a document, use the <title> tag. The title of a document is visible on the web browser toolbar and the search engine results in display title for an HTML page." }, { "code"...
A Practitioner's Guide to Natural Language Processing (Part I) — Processing & Understanding Text | by Dipanjan (DJ) Sarkar | Towards Data Science
Unstructured data, especially text, images and videos contain a wealth of information. However, due to the inherent complexity in processing and analyzing this data, people often refrain from spending extra time and effort in venturing out from structured datasets to analyze these unstructured sources of data, which ca...
[ { "code": null, "e": 395, "s": 47, "text": "Unstructured data, especially text, images and videos contain a wealth of information. However, due to the inherent complexity in processing and analyzing this data, people often refrain from spending extra time and effort in venturing out from structured ...
Longest Palindromic Substring in Python
Suppose we have a string S. We have to find the longest palindromic substring in S. We are assuming that the length of the string S is 1000. So if the string is “BABAC”, then the longest palindromic substring is “BAB”. To solve this, we will follow these steps Define one square matrix of order same as the length of str...
[ { "code": null, "e": 1281, "s": 1062, "text": "Suppose we have a string S. We have to find the longest palindromic substring in S. We are assuming that the length of the string S is 1000. So if the string is “BABAC”, then the longest palindromic substring is “BAB”." }, { "code": null, "e...
Easy Interactive Plot — Pandas plotly backend | by Cornellius Yudha Wijaya | Towards Data Science
Pandas offer an easy way to explore data (EDA). One example is how we could create a plot just from the Pandas Series or Data Frame without importing any visualization module. Here I show you in the case below. #I only use seaborn to import sample datasetimport pandas as pd, seaborn as snstips = sns.load_dataset('tips'...
[ { "code": null, "e": 383, "s": 172, "text": "Pandas offer an easy way to explore data (EDA). One example is how we could create a plot just from the Pandas Series or Data Frame without importing any visualization module. Here I show you in the case below." }, { "code": null, "e": 525, ...
Delete all the nodes from the list that are greater than x in C++
In this tutorial, we are going to learn how to delete all prime nodes from a singly linked list. Let's see the steps to solve the problem. Write struct with data and next pointer. Write struct with data and next pointer. Write a function to insert the node into the singly linked list. Write a function to insert the nod...
[ { "code": null, "e": 1159, "s": 1062, "text": "In this tutorial, we are going to learn how to delete all prime nodes from a singly linked list." }, { "code": null, "e": 1201, "s": 1159, "text": "Let's see the steps to solve the problem." }, { "code": null, "e": 1242, ...
What are Complex Data types in JavaScript?
Complex Data Type in JavaScript includes the typeof operator. The typeof operator is a unary operator that is placed before its single operand, which can be of any type. Its value is a string indicating the data type of the operand. The typeof operator evaluates to "number", "string", or "boolean" if its operand is a n...
[ { "code": null, "e": 1295, "s": 1062, "text": "Complex Data Type in JavaScript includes the typeof operator. The typeof operator is a unary operator that is placed before its single operand, which can be of any type. Its value is a string indicating the data type of the operand." }, { "code"...
HTML <textarea> placeholder Attribute
The placeholder attribute of the <textarea> element is used to set a placeholder text in the textarea. A placeholder is considered as a hint, like “Enter you name”, “Enter mobile number”, “Write in 100 words”, etc. Following is the syntax− <textarea placeholder="text"> Above, text is the hint you want to set for the te...
[ { "code": null, "e": 1277, "s": 1062, "text": "The placeholder attribute of the <textarea> element is used to set a placeholder text in the textarea. A placeholder is considered as a hint, like “Enter you name”, “Enter mobile number”, “Write in 100 words”, etc." }, { "code": null, "e": 1...
Sales Forecasting with Price & Promotion effects | by Susan Li | Towards Data Science
Many businesses are very seasonal, and some of them make money during holidays like Super Bowl, Labor Day, Thanksgiving, and Christmas. In addition, they use sales promotions to increase the demand for or visibility of a product or service for several weeks during the year. In this post, we are going to analyze the his...
[ { "code": null, "e": 447, "s": 172, "text": "Many businesses are very seasonal, and some of them make money during holidays like Super Bowl, Labor Day, Thanksgiving, and Christmas. In addition, they use sales promotions to increase the demand for or visibility of a product or service for several wee...
Equal Sum and XOR - GeeksforGeeks
04 Oct, 2021 Given a positive integer n, find count of positive integers i such that 0 <= i <= n and n+i = n^i Examples : Input : n = 7 Output : 1 Explanation: 7^i = 7+i holds only for only for i = 0 7+0 = 7^0 = 7 Input: n = 12 Output: 4 12^i = 12+i hold only for i = 0, 1, 2, 3 for i=0, 12+0 = 12^0 = 12 for i=1, 12...
[ { "code": null, "e": 24617, "s": 24589, "text": "\n04 Oct, 2021" }, { "code": null, "e": 24716, "s": 24617, "text": "Given a positive integer n, find count of positive integers i such that 0 <= i <= n and n+i = n^i " }, { "code": null, "e": 24728, "s": 24716, ...
MySQL Server port number?
If you will install MySQL on your system, then you will get the default MySQL server port number i.e. 3306. To know the MySQL server port number, you can use the following query. Here, we have used the SHOW VARIABLES command. The query is as follows − mysql> SHOW VARIABLES WHERE Variable_Name = 'port'; The following is...
[ { "code": null, "e": 1170, "s": 1062, "text": "If you will install MySQL on your system, then you will get the default MySQL server port number i.e. 3306." }, { "code": null, "e": 1314, "s": 1170, "text": "To know the MySQL server port number, you can use the following query. Her...
What is the Count property of ArrayList class in C#?
The Count property in the ArrayList class counts the number of elements in the ArrayList. Firstly, add elements to the ArrayList − ArrayList arrList = new ArrayList(); arrList.Add(98); arrList.Add(55); arrList.Add(65); arrList.Add(34); Then get the count of the array list − arrList.Count The following is the code to i...
[ { "code": null, "e": 1152, "s": 1062, "text": "The Count property in the ArrayList class counts the number of elements in the ArrayList." }, { "code": null, "e": 1193, "s": 1152, "text": "Firstly, add elements to the ArrayList −" }, { "code": null, "e": 1299, "s":...
MATLAB - Division (Left, Right) of Matrics
You can divide two matrices using left (\) or right (/) division operators. Both the operand matrices must have the same number of rows and columns. Create a script file with the following code − a = [ 1 2 3 ; 4 5 6; 7 8 9]; b = [ 7 5 6 ; 2 0 8; 5 7 1]; c = a / b d = a \ b When you run the file, it displays the followi...
[ { "code": null, "e": 2290, "s": 2141, "text": "You can divide two matrices using left (\\) or right (/) division operators. Both the operand matrices must have the same number of rows and columns." }, { "code": null, "e": 2337, "s": 2290, "text": "Create a script file with the fo...
<mat-select> in Angular Material
13 Apr, 2021 Introduction:Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. <...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Apr, 2021" }, { "code": null, "e": 397, "s": 28, "text": "Introduction:Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to i...
Find Minimum Number Of Arrows Needed To Burst All Balloons
30 Nov, 2021 Given an array points[][] of size N, where points[i] represents a balloon over the area of X-coordinates from points[i][0] to points[i][1]. The Y-coordinates don’t matter. All the balloons are required to be burst. To burst a balloon, an arrow can be launched at point (x, 0) and it travels vertically upwar...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Nov, 2021" }, { "code": null, "e": 538, "s": 52, "text": "Given an array points[][] of size N, where points[i] represents a balloon over the area of X-coordinates from points[i][0] to points[i][1]. The Y-coordinates don’t matter. Al...
Python | Check for Whitespace in List
23 Jan, 2020 Sometimes, we might have a problem in which we need to check if the List of strings has any of blank spaces. This kind of problem can be in Machine Learning domain to get specific type of data set. Let’s discuss certain ways in which this kind of problem can be solved. Method #1 : Using regex + any()This k...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jan, 2020" }, { "code": null, "e": 298, "s": 28, "text": "Sometimes, we might have a problem in which we need to check if the List of strings has any of blank spaces. This kind of problem can be in Machine Learning domain to get spec...
Singleton Design Pattern | Implementation
29 Nov, 2020 Singleton Design Pattern | IntroductionThe singleton pattern is one of the simplest design patterns. Sometimes we need to have only one instance of our class for example a single DB connection shared by multiple objects as creating a separate DB connection for every object may be costly. Similarly, there c...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Nov, 2020" }, { "code": null, "e": 819, "s": 54, "text": "Singleton Design Pattern | IntroductionThe singleton pattern is one of the simplest design patterns. Sometimes we need to have only one instance of our class for example a si...
How to Make get() Method Request in Java Spring?
26 Aug, 2021 Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security purposes or building large distribution projects. One of the advantages of using JAVA is that Java tries to connect every concept in ...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Aug, 2021" }, { "code": null, "e": 466, "s": 54, "text": "Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security ...
now() function in Python
15 Oct, 2020 Python library defines a function that can be primarily used to get current time and date. now() function Return the current local date and time, which is defined under datetime module. Syntax : datetime.now(tz) Parameters :tz : Specified time zone of which current time and date is required. (Uses Greenwic...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Oct, 2020" }, { "code": null, "e": 238, "s": 52, "text": "Python library defines a function that can be primarily used to get current time and date. now() function Return the current local date and time, which is defined under datet...
turtle.bgpic() function in Python
28 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to set a background image or return name of the current background i...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Python – Create dictionary from the list
When it is required to create dictionary from a list, the ‘fromkeys’ method in the ‘dict’ method is used. Below is a demonstration of the same − my_list = ['Hi', 'Will', 'how', 'Python', 'cool'] print("The list is ") print(my_list) my_dict = dict.fromkeys(my_list, "my_value") print(my_dict) The list is ['Hi', 'Will', ...
[ { "code": null, "e": 1293, "s": 1187, "text": "When it is required to create dictionary from a list, the ‘fromkeys’ method in the ‘dict’ method is used." }, { "code": null, "e": 1332, "s": 1293, "text": "Below is a demonstration of the same −" }, { "code": null, "e": ...
How to remove connected remote desktop user sessions using PowerShell?
We can remove connected RDP sessions using PowerShell and for that, we can use the cmd command “reset session” in PowerShell. Let’s see the supported parameters for it. PS C:\> reset session /? Reset the session subsytem hardware and software to known initial values. RESET SESSION {sessionname | sessionid} [/SERVER:s...
[ { "code": null, "e": 1357, "s": 1187, "text": "We can remove connected RDP sessions using PowerShell and for that, we can use the cmd command “reset session” in PowerShell. Let’s see the supported parameters for it." }, { "code": null, "e": 1780, "s": 1357, "text": "PS C:\\> res...
Previous perfect square and cube number smaller than number N
03 Sep, 2021 Given an integer N, the task is to find the previous perfect square or perfect cube smaller than the number N.Examples: Input: N = 6 Output: Perfect Square = 4 Perfect Cube = 1Input: N = 30 Output: Perfect Square = 25 Perfect Cube = 27 Approach: Previous perfect square number less than N can be computed ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Sep, 2021" }, { "code": null, "e": 149, "s": 28, "text": "Given an integer N, the task is to find the previous perfect square or perfect cube smaller than the number N.Examples: " }, { "code": null, "e": 266, "s": 149...
Matplotlib.axes.Axes.set_frame_on() in Python
19 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": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "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, Line2D, Text...
Remove Leading Zeroes from a String in Java using regular expressions
The replaceAll() method of the String class accepts two strings representing a regular expression and a replacement String and replaces the matched values with given String. Following is the regular expression to match the leading zeros of a string − The ^0+(?!$)"; To remove the leading zeros from a string pass this as...
[ { "code": null, "e": 1361, "s": 1187, "text": "The replaceAll() method of the String class accepts two strings representing a regular expression and a replacement String and replaces the matched values with given String." }, { "code": null, "e": 1438, "s": 1361, "text": "Followin...
Keras.Conv2D Class
18 May, 2020 Keras Conv2D is a 2D Convolution Layer, this layer creates a convolution kernel that is wind with layers input which helps produce a tensor of outputs. Kernel: In image processing kernel is a convolution matrix or masks which can be used for blurring, sharpening, embossing, edge detection, and more by doin...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 May, 2020" }, { "code": null, "e": 206, "s": 54, "text": "Keras Conv2D is a 2D Convolution Layer, this layer creates a convolution kernel that is wind with layers input which helps produce a tensor of outputs." }, { "code": ...
How to Add Icons at the Bottom of Tab Navigation in React Native ?
13 Jul, 2021 Adding Icons at the Bottom of Tab Navigation in React Native is a fairly easy task. In this article, we will implement a basic application to learn to use icons in our tab navigation. For this, we first need to set up the application and install some packages. Implementation: Now let’s start with the imple...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jul, 2021" }, { "code": null, "e": 289, "s": 28, "text": "Adding Icons at the Bottom of Tab Navigation in React Native is a fairly easy task. In this article, we will implement a basic application to learn to use icons in our tab nav...
p5.js | tint() Function
27 Feb, 2020 The tint() function is used to set a fill value for images. It can be used to tint an image with the specified color or make it transparent by using an alpha value. Several parameters can be used to specify the tint color. Syntax: tint(v1, v2, v3, alpha) tint(value) tint(gray, alpha) tint(values) tint(colo...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Feb, 2020" }, { "code": null, "e": 251, "s": 28, "text": "The tint() function is used to set a fill value for images. It can be used to tint an image with the specified color or make it transparent by using an alpha value. Several pa...
Matcher group(int) method in Java with Examples
26 Nov, 2018 The group(int group) method of Matcher Class is used to get the group index of the match result already done, from the specified group. Syntax: public String group(int group) Parameters: This method takes a parameter group which is the group from which the group index of the matched pattern is required. R...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2018" }, { "code": null, "e": 164, "s": 28, "text": "The group(int group) method of Matcher Class is used to get the group index of the match result already done, from the specified group." }, { "code": null, "e": 17...
Program to Change RGB color model to HSV color model
10 May, 2021 Given RGB color range, our task is to convert RGB color to HSV color.RGB Color Model : The RGB color model is an additive color model in which red, green and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additi...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 May, 2021" }, { "code": null, "e": 828, "s": 52, "text": "Given RGB color range, our task is to convert RGB color to HSV color.RGB Color Model : The RGB color model is an additive color model in which red, green and blue light are a...
Lexicographically largest string using at most K swaps at same parity indices
05 Jul, 2021 Given string S and a positive integer K, the task is to find lexicographically the largest possible string using at most K swaps with the condition that the indices that are swapped must be either both odd or both even. Examples: Input: S = “ancqz”, K = 2Output: “zqcna“Explanation: In one swap, we can sw...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jul, 2021" }, { "code": null, "e": 248, "s": 28, "text": "Given string S and a positive integer K, the task is to find lexicographically the largest possible string using at most K swaps with the condition that the indices that are s...