title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to add Track-bar in OpenCV using C++?
Track-bars are controllable bars which are used to control various parameters in OpenCV. Using track-bars, we can make it easier and change the parameters graphically. Track-bar removes this limitation and enables to create of dynamic effects using OpenCV. The following program demonstrates how to add track-bars in Ope...
[ { "code": null, "e": 1319, "s": 1062, "text": "Track-bars are controllable bars which are used to control various parameters in OpenCV. Using track-bars, we can make it easier and change the parameters graphically. Track-bar removes this limitation and enables to create of dynamic effects using Open...
How to generate byte code file in python
All python program automatically compiles your source code to compile code also called as byte code, before executing it. Whenever we import a module for the first time or when your source file is a new file or we have an updated file then the recently compiled file, a .pyc file will be created on compiling the file in...
[ { "code": null, "e": 1184, "s": 1062, "text": "All python program automatically compiles your source code to compile code also called as byte code, before executing it." }, { "code": null, "e": 1670, "s": 1184, "text": "Whenever we import a module for the first time or when your ...
How to check if a variable is NULL in C/C++?
In C or C++, there is no special method for comparing NULL values. We can use if statements to check whether a variable is null or not. Here we will see one program. We will try to open a file in read mode, that is not present in the system. So the function will return null value. We can check it using if statement. Se...
[ { "code": null, "e": 1198, "s": 1062, "text": "In C or C++, there is no special method for comparing NULL values. We can use if statements to check whether a variable is null or not." }, { "code": null, "e": 1419, "s": 1198, "text": "Here we will see one program. We will try to o...
C program to sort a given list of numbers in ascending order using Bubble sort
In C programming language, bubble sort is the simplest sorting technique and is also called as an exchange sort. Compare the first element with the remaining elements in the list and exchange(swap) them, if they are not in order. Compare the first element with the remaining elements in the list and exchange(swap) them,...
[ { "code": null, "e": 1175, "s": 1062, "text": "In C programming language, bubble sort is the simplest sorting technique and is also called as an exchange sort." }, { "code": null, "e": 1292, "s": 1175, "text": "Compare the first element with the remaining elements in the list and...
Deploy Machine Learning Pipeline on the cloud using Docker Container | by Moez Ali | Towards Data Science
In our last post, we demonstrated how to develop a machine learning pipeline and deploy it as a web app using PyCaret and Flask framework in Python. If you haven’t heard about PyCaret before, please read this announcement to learn more. In this tutorial, we will use the same machine learning pipeline and Flask app that...
[ { "code": null, "e": 408, "s": 171, "text": "In our last post, we demonstrated how to develop a machine learning pipeline and deploy it as a web app using PyCaret and Flask framework in Python. If you haven’t heard about PyCaret before, please read this announcement to learn more." }, { "cod...
Cancel the Timer Task in Java
In order to cancel the Timer Task in Java, we use the java.util.TimerTask.cancel() method. The cancel() method returns a boolean value, either true or false. The cancel() method is used to cancel the timer task. Declaration −The java.util.TimerTask.cancel() method is declared as follows − public boolean cancel() The ca...
[ { "code": null, "e": 1274, "s": 1062, "text": "In order to cancel the Timer Task in Java, we use the java.util.TimerTask.cancel() method. The cancel() method returns a boolean value, either true or false. The cancel() method is used to cancel the timer task." }, { "code": null, "e": 1352...
A Complete Guide to Using Progress Bars in Python | by Chaitanya Baweja | Towards Data Science
We’ve all been there. Our code is running a job and it’s going to take a while. Scratching our head, we pray that our code is not stuck in some infinite cycle. When dealing with large data-sets, even the simplest operations can take hours. A watched pot never boils. A watched loop never breaks. If you didn’t guess alre...
[ { "code": null, "e": 412, "s": 172, "text": "We’ve all been there. Our code is running a job and it’s going to take a while. Scratching our head, we pray that our code is not stuck in some infinite cycle. When dealing with large data-sets, even the simplest operations can take hours." }, { "...
Fleury’s Algorithm for printing Eulerian Path or Circuit in C++
Fleury’s Algorithm is used to display the Euler path or Euler circuit from a given graph. In this algorithm, starting from one edge, it tries to move other adjacent vertices by removing the previous vertices. Using this trick, the graph becomes simpler in each step to find the Euler path or circuit. We have to check so...
[ { "code": null, "e": 1363, "s": 1062, "text": "Fleury’s Algorithm is used to display the Euler path or Euler circuit from a given graph. In this algorithm, starting from one edge, it tries to move other adjacent vertices by removing the previous vertices. Using this trick, the graph becomes simpler ...
Is it possible to calculate a correlation in a MySQL query?
Yes, it is possible to calculate a correlation in a query. To understand the correlation in a query, you need to first create a table. The query to create a table is as follows mysql> create table correlationDemo - > ( - > value float not null, - > value2 float not null - > ); Query OK, 0 rows affected (0.6...
[ { "code": null, "e": 1239, "s": 1062, "text": "Yes, it is possible to calculate a correlation in a query. To understand the correlation in a query, you need to first create a table. The query to create a table is as follows" }, { "code": null, "e": 1389, "s": 1239, "text": "mysql...
C++ Program for First Fit algorithm in Memory Management
Given with the n number of processes and m size of memory blocks and the task is to find the best fit memory block for the corresponding process using the first fit memory management algorithm. What is First Fit Memory Management Algorithm? There is multiple memory partitioning algorithms available which are used by th...
[ { "code": null, "e": 1256, "s": 1062, "text": "Given with the n number of processes and m size of memory blocks and the task is to find the best fit memory block for the corresponding process using the first fit memory management algorithm." }, { "code": null, "e": 1303, "s": 1256, ...
How to change the position of the dialog on Screen android?
This example demonstrates how do I change the position of the dialog on Screen in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8...
[ { "code": null, "e": 1153, "s": 1062, "text": "This example demonstrates how do I change the position of the dialog on Screen in android." }, { "code": null, "e": 1282, "s": 1153, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requ...
How to set axis limits in ggplot2 in R? - GeeksforGeeks
23 Aug, 2021 In this article, we are going to see how to set the axis limit in ggplot2 in R Programming Language. This method is most helpful as it displays the plot within the limits of the axis without clipping the actual data. It just zooms in and shows the area under limits. The coord_cartesian() function will be u...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n23 Aug, 2021" }, { "code": null, "e": 24952, "s": 24851, "text": "In this article, we are going to see how to set the axis limit in ggplot2 in R Programming Language." }, { "code": null, "e": 25223, "s": 24952, ...
Python requests - POST request with headers and body - GeeksforGeeks
23 Nov, 2021 HTTP headers let the client and the server pass additional information with an HTTP request or response. All the headers are case-insensitive, headers fields are separated by colon, key-value pairs in clear-text string format. Requests do not change its behavior at all based on which headers are specified....
[ { "code": null, "e": 24237, "s": 24209, "text": "\n23 Nov, 2021" }, { "code": null, "e": 24464, "s": 24237, "text": "HTTP headers let the client and the server pass additional information with an HTTP request or response. All the headers are case-insensitive, headers fields are s...
cPanel - Quick Guide
cPanel is a Linux-based hosting management control panel. It is used to manage your website and server’s backend working system. It provides graphical user interface for most of the tasks we perform on the website’s server, for example, uploading files, creating emails, setting cron jobs, handling databases, etc. cPane...
[ { "code": null, "e": 3372, "s": 3057, "text": "cPanel is a Linux-based hosting management control panel. It is used to manage your website and server’s backend working system. It provides graphical user interface for most of the tasks we perform on the website’s server, for example, uploading files,...
Longest Common Prefix using Word by Word Matching - GeeksforGeeks
06 Apr, 2021 Given a set of strings, find the longest common prefix. Examples: Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : "gee" Input : {"apple", "ape", "april"} Output : "ap" We start with an example. Suppose there are two strings- “geeksforgeeks” and “geeks”. What is the longest common prefi...
[ { "code": null, "e": 24341, "s": 24313, "text": "\n06 Apr, 2021" }, { "code": null, "e": 24409, "s": 24341, "text": "Given a set of strings, find the longest common prefix. Examples: " }, { "code": null, "e": 24528, "s": 24409, "text": "Input : {“geeksforgee...
Extract Nested Structs without Cross Joining Data in BigQuery | by Claire Salling | Towards Data Science
As a Google Cloud consultant focused on the Data & Analytics space, I spend a lot of time with BigQuery, Google Cloud’s petabyte-scale data warehouse-as-a-service, and for the most part, I love it. It’s really powerful, there’s no infrastructure management, and it comes with all sorts of built in analytics and AI capab...
[ { "code": null, "e": 501, "s": 172, "text": "As a Google Cloud consultant focused on the Data & Analytics space, I spend a lot of time with BigQuery, Google Cloud’s petabyte-scale data warehouse-as-a-service, and for the most part, I love it. It’s really powerful, there’s no infrastructure managemen...
Mobile Angular UI - Examples
In this chapter, we will take a look at an example of the app created using Mobile Angular UI. The files required are mentioned below, with the code details. index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Mobile Angular UI Demo</title> <meta http-equiv="X-UA-Compatible" co...
[ { "code": null, "e": 2469, "s": 2311, "text": "In this chapter, we will take a look at an example of the app created using Mobile Angular UI. The files required are mentioned below, with the code details." }, { "code": null, "e": 2480, "s": 2469, "text": "index.html" }, { ...
Intro to Scikit-learn’s k-Nearest-Neighbors (kNN) Classifier And Regressor | Towards Data Science
Raise your hand if kNN is the first algorithm you were introduced in a machine learning course ✋🤚 k Nearest Neighbors algorithm is one of the most commonly used algorithms in machine learning. Because of its simplicity, many beginners often start their wonderful journey of ML with this algorithm. It is one of the few ...
[ { "code": null, "e": 270, "s": 172, "text": "Raise your hand if kNN is the first algorithm you were introduced in a machine learning course ✋🤚" }, { "code": null, "e": 569, "s": 270, "text": "k Nearest Neighbors algorithm is one of the most commonly used algorithms in machine le...
Python - Intersection of two String
In this article, we are going to learn how to intersect two strings in different ways. Follow the below the steps to solve the problem. Initialize two strings and an empty string. Iterate over the first string and add the current character to the new string if it presents in the second string as well and not present in...
[ { "code": null, "e": 1149, "s": 1062, "text": "In this article, we are going to learn how to intersect two strings in different ways." }, { "code": null, "e": 1198, "s": 1149, "text": "Follow the below the steps to solve the problem." }, { "code": null, "e": 1242, ...
How to find Mean of DataFrame Column in R ? - GeeksforGeeks
12 Jan, 2022 In this article, we will discuss how to compute the mean of the Dataframe Column in R Programming language. It can be done in various ways: Using $-Operator Using [[]] Using Column Index Using summarise function of the dplyr Package Using colMeans Function Method 1: Using $-Operator. This is one of the sim...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n12 Jan, 2022" }, { "code": null, "e": 25350, "s": 25242, "text": "In this article, we will discuss how to compute the mean of the Dataframe Column in R Programming language." }, { "code": null, "e": 25382, "s": 25...
Recommendation System in Python: LightFM | by Shashank Kapadia | Towards Data Science
A recommender system, or a recommendation system, can be thought of as a subclass of information filtering system that seeks to predict the best “rating” or “preference” a user would give to an item which is typically obtained by optimizing for objectives like total clicks, total revenue, and overall sales. So, what is...
[ { "code": null, "e": 481, "s": 172, "text": "A recommender system, or a recommendation system, can be thought of as a subclass of information filtering system that seeks to predict the best “rating” or “preference” a user would give to an item which is typically obtained by optimizing for objectives...
Kubernetes Monitoring with Prometheus & Grafana | Towards Data Science
In Part I and Part II of the Practical Monitoring with Prometheus and Grafana series, we installed the Prometheus blackbox exporter to probe HTTP endpoints and deployed our monitoring stack to Kubernetes via Helm. In this post, we will complement our black-box monitor with white-box monitoring techniques, namely anomal...
[ { "code": null, "e": 519, "s": 171, "text": "In Part I and Part II of the Practical Monitoring with Prometheus and Grafana series, we installed the Prometheus blackbox exporter to probe HTTP endpoints and deployed our monitoring stack to Kubernetes via Helm. In this post, we will complement our blac...
Determining the current client in SAP using code
You can find the current client in sy-mandt. Here is the code you can write for same. IF sy-mandt = ‘001’. *do A. ELSE. *Do B. ENDIF.
[ { "code": null, "e": 1107, "s": 1062, "text": "You can find the current client in sy-mandt." }, { "code": null, "e": 1148, "s": 1107, "text": "Here is the code you can write for same." }, { "code": null, "e": 1196, "s": 1148, "text": "IF sy-mandt = ‘001’.\n*do...
Spring MVC Hello World Example
The following example shows how to write a simple web-based Hello World application using Spring MVC framework. To start with it, let us have a working Eclipse IDE in place and take the following steps to develop a Dynamic Web Application using Spring Web Framework − Here is the content of HelloController.java file pac...
[ { "code": null, "e": 2560, "s": 2292, "text": "The following example shows how to write a simple web-based Hello World application using Spring MVC framework. To start with it, let us have a working Eclipse IDE in place and take the following steps to develop a Dynamic Web Application using Spring W...
How to avoid the pop-up window in chrome browser with Selenium?
We can avoid the pop-up window in Chrome browser with Selenium webdriver using the ChromeOptions class. We have to create an object of this class and apply the setExperimentalOption method to it. We shall create a Map and insert the below Chrome browser preference to it − profile.default_content_setting_values.notifica...
[ { "code": null, "e": 1335, "s": 1062, "text": "We can avoid the pop-up window in Chrome browser with Selenium webdriver using the ChromeOptions class. We have to create an object of this class and apply the setExperimentalOption method to it. We shall create a Map and insert the below Chrome browser...
Find n-th node in Postorder traversal of a Binary Tree - GeeksforGeeks
23 Jun, 2021 Given a Binary tree and a number N, write a program to find the N-th node in the Postorder traversal of the given Binary tree.Prerequisite: Tree TraversalExamples: Input : N = 4 11 / \ 21 31 / \ 41 51 Output : 31 Explanation: Postorder Trav...
[ { "code": null, "e": 25168, "s": 25140, "text": "\n23 Jun, 2021" }, { "code": null, "e": 25334, "s": 25168, "text": "Given a Binary tree and a number N, write a program to find the N-th node in the Postorder traversal of the given Binary tree.Prerequisite: Tree TraversalExamples:...
Generating a range of numbers in MySQL?
To generate a range of numbers in MySQL, you can use stored procedure. Firstly, we need to create a table. After that, we will create a stored procedure that generates a range of number from 10 to 1. The following is the query to create a table − mysql> create table GeneratingNumbersDemo −> ( −> Number int ...
[ { "code": null, "e": 1262, "s": 1062, "text": "To generate a range of numbers in MySQL, you can use stored procedure. Firstly, we need to create a table. After that, we will create a stored procedure that generates a range of number from 10 to 1." }, { "code": null, "e": 1309, "s": 1...
Operating Systems | Set 7
27 Mar, 2017 Following questions have been asked in GATE CS exam.1) Let the time taken to switch between user and kernel modes of execution be t1 while the time taken to switch between two processes be t2. Which of the following is TRUE? (GATE CS 2011)(A) t1 > t2(B) t1 = t2(C) t1 < t2 (D) Nothing can be said about the ...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Mar, 2017" }, { "code": null, "e": 798, "s": 52, "text": "Following questions have been asked in GATE CS exam.1) Let the time taken to switch between user and kernel modes of execution be t1 while the time taken to switch between tw...
How to create load balancing servers using Node.js ?
21 Feb, 2022 If your website or application doesn’t receive many requests, you don’t have to use load balancing, but when it becomes very popular and starts to receive a high amount of traffic may your underlying server can not handle it. Because a single NodeJS server is not flexible for handling a very large amount o...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Feb, 2022" }, { "code": null, "e": 371, "s": 52, "text": "If your website or application doesn’t receive many requests, you don’t have to use load balancing, but when it becomes very popular and starts to receive a high amount of tr...
Longest Common Prefix Matching | Set-6 - GeeksforGeeks
12 May, 2021 Given a set of strings, find the longest common prefix.Examples: Input: str[] = {geeksforgeeks, geeks, geek, geezer} Output: gee Input: str[] = {apple, ape, april} Output: ap Previous Approaches: Set1 | Set2 | Set3 | Set4 | Set5 Approach: Sort the given set of N strings. Compare the first and last s...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n12 May, 2021" }, { "code": null, "e": 26132, "s": 26065, "text": "Given a set of strings, find the longest common prefix.Examples: " }, { "code": null, "e": 26243, "s": 26132, "text": "Input: str[] = {geeksfo...
How to group footer content in form of table using HTML ? - GeeksforGeeks
15 Oct, 2020 In this article, we define the group of footer content in a table by using the <tfoot> tag in HTML. It is used in HTML table with header and body which is known as “thead” and “tbody”. <tfoot> tag is child tag of table and parent tag of <tr> and <td>. Syntax: <tfoot> // Table footer contents... </tfoot...
[ { "code": null, "e": 26247, "s": 26219, "text": "\n15 Oct, 2020" }, { "code": null, "e": 26501, "s": 26247, "text": "In this article, we define the group of footer content in a table by using the <tfoot> tag in HTML. It is used in HTML table with header and body which is known a...
Number of Antisymmetric Relations on a set of N elements - GeeksforGeeks
27 Apr, 2021 Given a positive integer N, the task is to find the number of Antisymmetric Relations on the given set of N elements. Since the number of relations can be very large, so print it modulo 109+7. A relation R on a set A is called Antisymmetric if and only if (a, b) € R and (b, a) € R, then a = b is called an...
[ { "code": null, "e": 26697, "s": 26669, "text": "\n27 Apr, 2021" }, { "code": null, "e": 26891, "s": 26697, "text": "Given a positive integer N, the task is to find the number of Antisymmetric Relations on the given set of N elements. Since the number of relations can be very la...
How to Compose Vibration Patterns in Android? - GeeksforGeeks
23 Feb, 2021 As it is discussed in How to Vibrate a Device Programmatically in Android previously in the article. So in this article, it’s been discussed how to make vibration patterns, which produces the vibrations of different waveforms. This implementation can be a replica of the vibration produced when there is an ...
[ { "code": null, "e": 25633, "s": 25605, "text": "\n23 Feb, 2021" }, { "code": null, "e": 26087, "s": 25633, "text": "As it is discussed in How to Vibrate a Device Programmatically in Android previously in the article. So in this article, it’s been discussed how to make vibration ...
SQL - SELECT IN - GeeksforGeeks
20 May, 2021 IN operator is a membership operator which returns values that match the values in a list or subquery. Using this operator we can specify multiple values in a WHERE Clause. This operator compares a value with a set of values, and it returns a true if the value belongs to that given set, else it returns fal...
[ { "code": null, "e": 25539, "s": 25511, "text": "\n20 May, 2021" }, { "code": null, "e": 25896, "s": 25539, "text": "IN operator is a membership operator which returns values that match the values in a list or subquery. Using this operator we can specify multiple values in a WHER...
Sorting Array Elements By Frequency | Set 3 (Using STL) - GeeksforGeeks
29 May, 2018 Given an array of integers, sort the array according to frequency of elements. If frequencies of two elements are same, print them in increasing order. Examples: Input : arr[] = {2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12} Output : 3 3 3 3 2 2 2 12 12 4 5 Explanation : No. Freq 2 : 3 3 : 4 4 : 1 5 : 1 12 : 2 W...
[ { "code": null, "e": 25809, "s": 25781, "text": "\n29 May, 2018" }, { "code": null, "e": 25961, "s": 25809, "text": "Given an array of integers, sort the array according to frequency of elements. If frequencies of two elements are same, print them in increasing order." }, { ...
HTML | DOM Style position Property - GeeksforGeeks
02 Aug, 2019 The position property sets or returns the type of positioning method used by the element. It may be static, relative, absolute or fixed. Syntax: Return position syntax:object.style.position object.style.position Set position syntax:object.style.position = "static | absolute | fixed | relative | sticky | i...
[ { "code": null, "e": 25235, "s": 25207, "text": "\n02 Aug, 2019" }, { "code": null, "e": 25372, "s": 25235, "text": "The position property sets or returns the type of positioning method used by the element. It may be static, relative, absolute or fixed." }, { "code": null...
ConcurrentHashMap remove() method in Java - GeeksforGeeks
05 Feb, 2021 A. remove(Object key) The remove(Object key) method of class ConcurrentHashmap in Java is used to remove the mapping from the map. If the key does not exist in the map, then this function does nothing. Syntax: public V remove(Object key) Parameters: This method accepts a mandatory parameter key which is ...
[ { "code": null, "e": 25333, "s": 25305, "text": "\n05 Feb, 2021" }, { "code": null, "e": 25355, "s": 25333, "text": "A. remove(Object key)" }, { "code": null, "e": 25535, "s": 25355, "text": "The remove(Object key) method of class ConcurrentHashmap in Java is ...
Semantic-UI | Popup - GeeksforGeeks
20 May, 2020 Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. It uses a class to add CSS to the elements. Pop is used to display some content on the top o...
[ { "code": null, "e": 26074, "s": 26046, "text": "\n20 May, 2020" }, { "code": null, "e": 26333, "s": 26074, "text": "Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elem...
Introduction to Power Analysis in Python - GeeksforGeeks
26 Mar, 2021 To understand what power analysis is, we must first take a look at the concepts of a statistical hypothesis test. A statistical hypothesis test calculates some quantity under a given assumption (null hypothesis) and the result of the test allows us to interpret whether the assumption is valid or whether th...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n26 Mar, 2021" }, { "code": null, "e": 26105, "s": 25537, "text": "To understand what power analysis is, we must first take a look at the concepts of a statistical hypothesis test. A statistical hypothesis test calculates some qua...
Check if any permutation of a number is divisible by 3 and is Palindromic in Python
Suppose, we are provided with a large positive integer number N. We have to check if we can find out a number from its digit-permutations; such that the permutation is equal to its reverse form, i.e. its palindrome, and is also divisible by 3. For example, suppose we have the number 132213. If we check the permutations...
[ { "code": null, "e": 1306, "s": 1062, "text": "Suppose, we are provided with a large positive integer number N. We have to check if we can find out a number from its digit-permutations; such that the permutation is equal to its reverse form, i.e. its palindrome, and is also divisible by 3." }, {...
All the Basics of Frequency Distribution | Towards Data Science
Data plays a key role in every organization because it helps business leaders to make suitable decisions based on facts, statistical numbers, and trends. Due to this growing scope of data, data science came into the picture which is a multidisciplinary field. In data science, data analysis is the most vital part. To un...
[ { "code": null, "e": 584, "s": 171, "text": "Data plays a key role in every organization because it helps business leaders to make suitable decisions based on facts, statistical numbers, and trends. Due to this growing scope of data, data science came into the picture which is a multidisciplinary fi...
How to kill process in windows using port number - onlinetutorialspoint
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 We can kill the process by using a port in be...
[ { "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, ...
How to set focus for Tkinter widget?
Tkinter has many inbuilt functions or methods that can be used to extend the functionality of any widget in the application. Sometimes, we need to change or modify the focus of any widget in the application which can be achieved by using the focus_set() method.This method sets the default focus for any widget and makes...
[ { "code": null, "e": 1428, "s": 1062, "text": "Tkinter has many inbuilt functions or methods that can be used to extend the functionality of any widget in the application. Sometimes, we need to change or modify the focus of any widget in the application which can be achieved by using the focus_set()...
Javascript | Error and Exceptional Handling With Examples
17 Oct, 2018 An error is an action which is inaccurate or incorrect. There are three types of error in programming which are discusses below : Syntax error Logical error Runtime error Syntax error: According to computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is inte...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Oct, 2018" }, { "code": null, "e": 182, "s": 52, "text": "An error is an action which is inaccurate or incorrect. There are three types of error in programming which are discusses below :" }, { "code": null, "e": 195, ...
State the core components of an HTTP response ?
20 Sep, 2021 Have you ever thought about how the front-end of an application communicates with the backend to get data or perform certain operations? It is done through API Requests. API stands for Application Programming Interface. The communication between our client and the API is achieved using HTTP Request which i...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Sep, 2021" }, { "code": null, "e": 505, "s": 53, "text": "Have you ever thought about how the front-end of an application communicates with the backend to get data or perform certain operations? It is done through API Requests. API ...
HTTP GET Response in Flutter
02 Sep, 2021 There is no use of building a UI in Flutter until you Integrate it with your backend. A GET request is used to extract useful data from your backend to use it in your application. To perform a GET request in Flutter we need to follow 3 steps – Get the latest dart Http package.Enter the package in pubspec.y...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Sep, 2021" }, { "code": null, "e": 298, "s": 54, "text": "There is no use of building a UI in Flutter until you Integrate it with your backend. A GET request is used to extract useful data from your backend to use it in your applica...
HTTP headers | Content-Security-Policy-Report-Only
31 Oct, 2019 The HTTP Content-Security-Policy-Report-Only response header allows the web developers to test the policies by keeping an eye on their effects. These violation reports consist of JSON documents sent through HTTP POST request to the specified URI. It is a response-type header Syntax: Content-Security-Policy...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 304, "s": 28, "text": "The HTTP Content-Security-Policy-Report-Only response header allows the web developers to test the policies by keeping an eye on their effects. These violation reports consist...
MySQL | DES_DECRYPT ( ) Function
13 Nov, 2019 The MySQL DES_DECRYPT function is used for decrypting an encrypted string using DES(Data Encryption Standard) algorithm. The MySQL DES_DECRYPT function uses a key to decrypt a string. The value returned by the DES_DECRYPT function is a decrypted string or NULL. The DES_DECRYPT function accepts two paramete...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Nov, 2019" }, { "code": null, "e": 212, "s": 28, "text": "The MySQL DES_DECRYPT function is used for decrypting an encrypted string using DES(Data Encryption Standard) algorithm. The MySQL DES_DECRYPT function uses a key to decrypt a...
CYK Algorithm for Context Free Grammar
22 Jun, 2020 Prerequisite – Converting Context Free Grammar to Chomsky Normal FormCYK algorithm is a parsing algorithm for context free grammar.In order to apply CYK algorithm to a grammar, it must be in Chomsky Normal Form. It uses a dynamic programming algorithm to tell whether a string is in the language of a gramma...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2020" }, { "code": null, "e": 362, "s": 52, "text": "Prerequisite – Converting Context Free Grammar to Chomsky Normal FormCYK algorithm is a parsing algorithm for context free grammar.In order to apply CYK algorithm to a gramma...
Algorithms | Graph Minimum Spanning Tree | Question 8
28 Jun, 2021 Consider a weighted complete graph G on the vertex set {v1,v2 ,v} such that the weight of the edge (v,,v) is 2|i-j|. The weight of a minimum spanning tree of G is: (GATE CS 2006) (A) n — 1(B) 2n — 2(C) nC2(D) 2Answer: (B)Explanation: Minimum spanning tree of such a graph is v1 \ v2 \ v3 ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 207, "s": 28, "text": "Consider a weighted complete graph G on the vertex set {v1,v2 ,v} such that the weight of the edge (v,,v) is 2|i-j|. The weight of a minimum spanning tree of G is: (GATE CS 20...
Reverse a number using stack
28 Apr, 2022 Given a number , write a program to reverse this number using stack.Examples: Input : 365 Output : 563 Input : 6899 Output : 9986 We have already discussed the simple method to reverse a number in this post. In this post we will discuss about how to reverse a number using stack.The idea to do this is ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Apr, 2022" }, { "code": null, "e": 132, "s": 52, "text": "Given a number , write a program to reverse this number using stack.Examples: " }, { "code": null, "e": 185, "s": 132, "text": "Input : 365\nOutput : 563...
Image Pyramid using OpenCV | Python
20 May, 2019 Image Pyramids are one of the most beautiful concept of image processing.Normally, we work with images with default resolution but many times we need to change the resolution (lower it) or resize the original image in that case image pyramids comes handy. The pyrUp() function increases the size to double o...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 May, 2019" }, { "code": null, "e": 284, "s": 28, "text": "Image Pyramids are one of the most beautiful concept of image processing.Normally, we work with images with default resolution but many times we need to change the resolution ...
Display Network Image in Flutter
09 Jul, 2021 Flutter has an Image widget to display different types of images. To display images from the internet, the Image.network() function is used. Syntax: Image.network (source_URL) Properties Of Image Widget: height: This property takes in an integer value as the object. It decides the height of the image verti...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jul, 2021" }, { "code": null, "e": 195, "s": 54, "text": "Flutter has an Image widget to display different types of images. To display images from the internet, the Image.network() function is used." }, { "code": null, "...
Binary Search Tree | Set 1 (Search and Insertion) - GeeksforGeeks
28 Feb, 2022 The following is the definition of Binary Search Tree(BST) according to WikipediaBinary Search Tree is a node-based binary tree data structure which has the following properties: The left subtree of a node contains only nodes with keys lesser than the node’s key. The right subtree of a node contains only...
[ { "code": null, "e": 37758, "s": 37730, "text": "\n28 Feb, 2022" }, { "code": null, "e": 37939, "s": 37758, "text": "The following is the definition of Binary Search Tree(BST) according to WikipediaBinary Search Tree is a node-based binary tree data structure which has the follow...
TestNG - Ignore a Test
Sometimes, it happens that our code is not ready and the test case written to test that method/code fails. In such cases, annotation @Test(enabled = false) helps to disable this test case. If a test method is annotated with @Test(enabled = false), then the test case that is not ready to test is bypassed. Now, let's se...
[ { "code": null, "e": 2249, "s": 2060, "text": "Sometimes, it happens that our code is not ready and the test case written to test that method/code fails. In such cases, annotation @Test(enabled = false) helps to disable this test case." }, { "code": null, "e": 2367, "s": 2249, "t...
Display sum in last row of table using MySQL?
To display sum in last row of a table, you can use UNION. To understand how, let us create a table mysql> create table showSumInLastRowDemo -> ( -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> StudentName varchar(20), -> StudentMarks int -> ); Query OK, 0 rows affected (0.69 sec) Insert some rec...
[ { "code": null, "e": 1161, "s": 1062, "text": "To display sum in last row of a table, you can use UNION. To understand how, let us create a table" }, { "code": null, "e": 1367, "s": 1161, "text": "mysql> create table showSumInLastRowDemo\n -> (\n -> StudentId int NOT NULL AUT...
Check if the characters in a string form a Palindrome in O(1) extra space - GeeksforGeeks
09 Nov, 2021 Given string str. The string may contain lower-case letters, special characters, digits, or even white spaces. The task is to check whether only the letters present in the string are forming a Palindromic combination or not without using any extra space.Note: It is not allowed to use extra space to solve t...
[ { "code": null, "e": 25000, "s": 24972, "text": "\n09 Nov, 2021" }, { "code": null, "e": 25484, "s": 25000, "text": "Given string str. The string may contain lower-case letters, special characters, digits, or even white spaces. The task is to check whether only the letters presen...
How to Resolve Stale Element Reference Exception in Selenium WebDriver?
We can resolve StaleElementReferenceException in Selenium webdriver. The term stale means something which is not fresh and decayed. Thus a stale element points to an element which is not present any more. There may be a case, when an element was in DOM initially but after modifications in Document Object Model (DOM), t...
[ { "code": null, "e": 1267, "s": 1062, "text": "We can resolve StaleElementReferenceException in Selenium webdriver. The term stale means something which is not fresh and decayed. Thus a stale element points to an element which is not present any more." }, { "code": null, "e": 1502, "...
MySQL query to convert timestamp to month?
To convert timestamp to month, use the FROM_UNIXTIME() method as in the below syntax − select month(from_unixtime(yourColumnName)) from yourTableName; Let us first create a table − mysql> create table DemoTable1457 -> ( -> Value bigint -> ); Query OK, 0 rows affected (0.85 sec) Insert some records in the table...
[ { "code": null, "e": 1149, "s": 1062, "text": "To convert timestamp to month, use the FROM_UNIXTIME() method as in the below syntax −" }, { "code": null, "e": 1213, "s": 1149, "text": "select month(from_unixtime(yourColumnName)) from yourTableName;" }, { "code": null, ...
Java.util.Collections.frequency() in Java - GeeksforGeeks
07 Dec, 2018 The method is a java.util.Collections class method. It counts the frequency of the specified element in the given list. It override the equals() method to perform the comparison to check if the specified Object and the Object in the list are equal or not.Syntax: public static int frequency(Collection c, Ob...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n07 Dec, 2018" }, { "code": null, "e": 25838, "s": 25575, "text": "The method is a java.util.Collections class method. It counts the frequency of the specified element in the given list. It override the equals() method to perform ...
CSS | grid-template-rows Property - GeeksforGeeks
08 Aug, 2019 The grid-template-rows property in CSS is used to set the number of rows and height of the rows in a grid. The values of grid-template-rows are space-separated, where each value represents the height of the row. Syntax: grid-template-rows: none|auto|max-content|min-content|length| initial|inherit; Property...
[ { "code": null, "e": 24849, "s": 24821, "text": "\n08 Aug, 2019" }, { "code": null, "e": 25061, "s": 24849, "text": "The grid-template-rows property in CSS is used to set the number of rows and height of the rows in a grid. The values of grid-template-rows are space-separated, wh...
Lodash _.first() Method - GeeksforGeeks
01 Mar, 2021 The _.first() method is used to get the first element of the specified array. Syntax: _.first(array) Parameters: This method accepts a single parameter as mentioned above and described below: array: This parameter holds an array to query. Return Value: This method returns the first element of the array. Ex...
[ { "code": null, "e": 38681, "s": 38653, "text": "\n01 Mar, 2021" }, { "code": null, "e": 38759, "s": 38681, "text": "The _.first() method is used to get the first element of the specified array." }, { "code": null, "e": 38767, "s": 38759, "text": "Syntax:" }...
Python Script to check PC last reboot time - GeeksforGeeks
28 Jul, 2021 psutil is a cross-platform library for retrieving information on running processes and system utilization(CPU, memory, disks, networks, sensors) in Python. The Python script below can be run in both Windows and Linux. psutil library can be installed using the terminal by: In Windows: pip install psutil In ...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25836, "s": 25563, "text": "psutil is a cross-platform library for retrieving information on running processes and system utilization(CPU, memory, disks, networks, sensors) in Python. The Pyt...
Find Nth root of a number using Bisection method - GeeksforGeeks
21 Oct, 2021 Given two positive integers N and P. The task is to find the Nth root of P. Examples: Input: P = 1234321, N = 2Output: 1111Explanation: square root of 1234321 is 1111. Input: P = 123456785, N = 20Output: 2.53849 Approach: There are various ways to solve the given problem. Here the below algorithm is based...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n21 Oct, 2021" }, { "code": null, "e": 26013, "s": 25937, "text": "Given two positive integers N and P. The task is to find the Nth root of P." }, { "code": null, "e": 26024, "s": 26013, "text": "Examples: " ...
React-Bootstrap Badge Component - GeeksforGeeks
25 Mar, 2021 React-Bootstrap is a front-end framework that was designed keeping react in mind. Bootstrap was re-built and revamped for React, hence it is known as React-Bootstrap. Badges are used for indication purposes like to show the notifications number, and we can also display messages using variants that come wit...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n25 Mar, 2021" }, { "code": null, "e": 26238, "s": 26071, "text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. Bootstrap was re-built and revamped for React, hence it is known as React-Bootstr...
Types of Normal Forms in DBMS - GeeksforGeeks
13 Apr, 2020 Database normalization is nothing but the process of structuring an RDBMS by applying some general rules either by creating a new database design or by decomposition with a series of so-called normal forms which are: Unnormalized form or UNFFirst Normal Form or 1NFSecond Normal Form or 2NFThird Normal Form...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n13 Apr, 2020" }, { "code": null, "e": 25792, "s": 25575, "text": "Database normalization is nothing but the process of structuring an RDBMS by applying some general rules either by creating a new database design or by decompositi...
C/C++ program to implement the cricket game - GeeksforGeeks
21 Jul, 2021 In this article, the task is to create a 2- player cricket game where Player 1 is the user operating the program and Player 2 is the computer. In this game, the following series of steps are followed: First, the program will generate a random number between 0 and 25. That number will be the score that Play...
[ { "code": null, "e": 25369, "s": 25341, "text": "\n21 Jul, 2021" }, { "code": null, "e": 25570, "s": 25369, "text": "In this article, the task is to create a 2- player cricket game where Player 1 is the user operating the program and Player 2 is the computer. In this game, the fo...
How to Convert Speech to Text in Android? - GeeksforGeeks
28 Aug, 2020 In this article, speech to text feature is implemented in an application in Android. Speech to text means that anything that the user says is converted into text. This feature has come out to be a very common and useful feature for the users. In various places where search feature is implemented like Googl...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n28 Aug, 2020" }, { "code": null, "e": 26780, "s": 26381, "text": "In this article, speech to text feature is implemented in an application in Android. Speech to text means that anything that the user says is converted into text. ...
Format Dates in Flutter - GeeksforGeeks
15 Oct, 2021 The Dart in-built method, for formatting, dates in Flutter according to the requirements is very limited and restrictive. While dealing with dates it should be in human-readable format but unfortunately, there’s no way of formatting dates in flutter unless you make use of a third-party package. In this art...
[ { "code": null, "e": 26405, "s": 26377, "text": "\n15 Oct, 2021" }, { "code": null, "e": 26701, "s": 26405, "text": "The Dart in-built method, for formatting, dates in Flutter according to the requirements is very limited and restrictive. While dealing with dates it should be in ...
for ... empty loop - Django Template Tags - GeeksforGeeks
02 Dec, 2021 A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenience to rendering data in a template. Django templates not only allow passing data from view to template, but also provides some limited...
[ { "code": null, "e": 25465, "s": 25437, "text": "\n02 Dec, 2021" }, { "code": null, "e": 26280, "s": 25465, "text": "A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides...
numpy.vsplit() function | Python - GeeksforGeeks
22 Apr, 2020 numpy.vsplit() function split an array into multiple sub-arrays vertically (row-wise). vsplit is equivalent to split with axis=0 (default), the array is always split along the first axis regardless of the array dimension. Syntax : numpy.vsplit(arr, indices_or_sections)Parameters :arr : [ndarray] Array to b...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n22 Apr, 2020" }, { "code": null, "e": 26287, "s": 26065, "text": "numpy.vsplit() function split an array into multiple sub-arrays vertically (row-wise). vsplit is equivalent to split with axis=0 (default), the array is always spl...
Birthday attack in Cryptography - GeeksforGeeks
12 Oct, 2021 Prerequisite – Birthday paradox Birthday attack is a type of cryptographic attack that belongs to a class of brute force attacks. It exploits the mathematics behind the birthday problem in probability theory. The success of this attack largely depends upon the higher likelihood of collisions found between ...
[ { "code": null, "e": 37837, "s": 37809, "text": "\n12 Oct, 2021" }, { "code": null, "e": 38250, "s": 37837, "text": "Prerequisite – Birthday paradox Birthday attack is a type of cryptographic attack that belongs to a class of brute force attacks. It exploits the mathematics behin...
Difference between File System and DBMS - GeeksforGeeks
26 Apr, 2022 Prerequisite – DBMS over the File system File System : The file system is basically a way of arranging the files in a storage medium like a hard disk. The file system organizes the files and helps in the retrieval of files when they are required. File systems consist of different files which are grouped i...
[ { "code": null, "e": 25464, "s": 25436, "text": "\n26 Apr, 2022" }, { "code": null, "e": 25506, "s": 25464, "text": "Prerequisite – DBMS over the File system " }, { "code": null, "e": 25944, "s": 25506, "text": "File System : The file system is basically a way...
HTML | <select> autofocus Attribute - GeeksforGeeks
29 Apr, 2019 The HTML <select> autofocus Attribute is used to specify that the dropdown should automatically get focus when the page loads. It is a type of boolean attribute. Syntax: <select autofocus> Example: This Example that illustrates the use of autofocus attribute in select Element. <!DOCTYPE html><html> <head>...
[ { "code": null, "e": 27187, "s": 27159, "text": "\n29 Apr, 2019" }, { "code": null, "e": 27349, "s": 27187, "text": "The HTML <select> autofocus Attribute is used to specify that the dropdown should automatically get focus when the page loads. It is a type of boolean attribute." ...
What are the global objects of Node.js ? - GeeksforGeeks
07 Oct, 2021 Node.js is a JavaScript framework based on an open-source project that is used for server-side scripting. Node.js Global Objects are those objects which are present in all modules. Global Objects can be used directly in the application which is available without importing any module. Global objects have be...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n07 Oct, 2021" }, { "code": null, "e": 27075, "s": 26267, "text": "Node.js is a JavaScript framework based on an open-source project that is used for server-side scripting. Node.js Global Objects are those objects which are presen...
Practice questions on Arrays - GeeksforGeeks
12 Feb, 2018 In this article, we will discuss some important concepts related to arrays and problems based on that. Before understanding this, you should have basic idea about Arrays. Type 1. Based on array declaration –These are few key points on array declaration: A single dimensional array can be declared as int a[1...
[ { "code": null, "e": 26275, "s": 26247, "text": "\n12 Feb, 2018" }, { "code": null, "e": 26446, "s": 26275, "text": "In this article, we will discuss some important concepts related to arrays and problems based on that. Before understanding this, you should have basic idea about ...
Make Binary Search Tree - GeeksforGeeks
30 Jun, 2021 Given an array arr[] of size N. The task is to find whether it is possible to make Binary Search Tree with the given array of elements such that greatest common divisor of any two vertices connected by a common edge is > 1. If possible then print Yes else print No.Examples: Input: arr[] = {3, 6, 9, 18, 3...
[ { "code": null, "e": 26469, "s": 26441, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26746, "s": 26469, "text": "Given an array arr[] of size N. The task is to find whether it is possible to make Binary Search Tree with the given array of elements such that greatest common di...
C++ final specifier - GeeksforGeeks
03 Nov, 2020 In Java, we can use final for a function to make sure that it cannot be overridden. We can also use final in Java to make sure that a class cannot be inherited. Similarly, the latest C++ standard C++ 11 added final. Use of final specifier in C++ 11: Sometimes you don’t want to allow derived class to overri...
[ { "code": null, "e": 25477, "s": 25449, "text": "\n03 Nov, 2020" }, { "code": null, "e": 25919, "s": 25477, "text": "In Java, we can use final for a function to make sure that it cannot be overridden. We can also use final in Java to make sure that a class cannot be inherited. Si...
Count pairs from two arrays having sum equal to K - GeeksforGeeks
25 Mar, 2022 Given an integer K and two arrays A1 and A2, the task is to return the total number of pairs (one element from A1 and one element from A2) with sum equal to K. Note: Arrays can have duplicate elements. We consider every pair as different, the only constraint is, an element (of any array) can participate on...
[ { "code": null, "e": 25971, "s": 25943, "text": "\n25 Mar, 2022" }, { "code": null, "e": 26402, "s": 25971, "text": "Given an integer K and two arrays A1 and A2, the task is to return the total number of pairs (one element from A1 and one element from A2) with sum equal to K. Not...
Hopcroft–Karp Algorithm for Maximum Matching | Set 2 (Implementation) - GeeksforGeeks
22 Jun, 2021 We strongly recommend to refer below post as a prerequisite.Hopcroft–Karp Algorithm for Maximum Matching | Set 1 (Introduction) There are few important things to note before we start implementation. We need to find an augmenting path (A path that alternates between matching and not matching edges, and has...
[ { "code": null, "e": 26153, "s": 26125, "text": "\n22 Jun, 2021" }, { "code": null, "e": 26281, "s": 26153, "text": "We strongly recommend to refer below post as a prerequisite.Hopcroft–Karp Algorithm for Maximum Matching | Set 1 (Introduction)" }, { "code": null, "e"...
Find the Product of first N Prime Numbers - GeeksforGeeks
30 Sep, 2021 Given a positive integer N, calculate the product of the first N prime numbers. Examples: Input : N = 3 Output : 30 Explanation : First 3 prime numbers are 2, 3, 5. Input : N = 5 Output : 2310 Approach: Create a sieve which will help us to identify if the number is prime or not in O(1) time. Run a lo...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n30 Sep, 2021" }, { "code": null, "e": 26017, "s": 25937, "text": "Given a positive integer N, calculate the product of the first N prime numbers." }, { "code": null, "e": 26028, "s": 26017, "text": "Examples: ...
How to remove duplicate values from array using PHP ? - GeeksforGeeks
07 Oct, 2021 In this article, we will discuss how to remove duplicate elements from an array in PHP. We can get the unique elements by using array_unique() function. This function will remove the duplicate values from the array. Syntax: array array_unique($array, $sort_flags) Note: The keys of the array are preserved i...
[ { "code": null, "e": 24581, "s": 24553, "text": "\n07 Oct, 2021" }, { "code": null, "e": 24797, "s": 24581, "text": "In this article, we will discuss how to remove duplicate elements from an array in PHP. We can get the unique elements by using array_unique() function. This funct...
Facial Recognition Using Deep Learning | by Taus Noor | Towards Data Science
Convolutional Neural Networks allow us to extract a wide range of features from images. Turns out, we can use this idea of feature extraction for face recognition too! That’s what we are going to explore in this tutorial, using deep conv nets for face recognition. Note: this is face recognition (i.e. actually telling w...
[ { "code": null, "e": 568, "s": 172, "text": "Convolutional Neural Networks allow us to extract a wide range of features from images. Turns out, we can use this idea of feature extraction for face recognition too! That’s what we are going to explore in this tutorial, using deep conv nets for face rec...
A Beginner’s Guide to Data Visualization with Python | by Natassha Selvaraj | Towards Data Science
There is magic in graphs. The profile of a curve reveals in a flash a whole situation — the life history of an epidemic, a panic, or an era of prosperity. The curve informs the mind, awakens the imagination, convinces. Data visualization is the act of taking data and presenting it in a visual format. It is a powerful t...
[ { "code": null, "e": 390, "s": 171, "text": "There is magic in graphs. The profile of a curve reveals in a flash a whole situation — the life history of an epidemic, a panic, or an era of prosperity. The curve informs the mind, awakens the imagination, convinces." }, { "code": null, "e":...
How to push an element into array in MongoDB?
To push an element into array, use $push. Let us first create a collection with documents − > db.demo6.insertOne({"ListOfNames":["Bob","David","Mike","Sam"]}); { "acknowledged" : true, "insertedId" : ObjectId("5e0b6b3f25ddae1f53b62228") } Following is the query to display all documents from a collection with the ...
[ { "code": null, "e": 1154, "s": 1062, "text": "To push an element into array, use $push. Let us first create a collection with documents −" }, { "code": null, "e": 1307, "s": 1154, "text": "> db.demo6.insertOne({\"ListOfNames\":[\"Bob\",\"David\",\"Mike\",\"Sam\"]});\n{\n \"ack...
jQuery UI Datepicker dateFormat Option - GeeksforGeeks
23 Feb, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI Datepickers widget allow users to enter dates easily and visually. In this article, we will see how to use the dateFormat option i...
[ { "code": null, "e": 25865, "s": 25837, "text": "\n23 Feb, 2021" }, { "code": null, "e": 26281, "s": 25865, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpag...
$("input:radio[name=bar]:checked").val()
This gets the first value from a set of radio buttons. Here is the simple syntax to use this method − selector.val(); None Following example gets the first value from a set of radio buttons. <html> <head> <title>The jQuery Example</title> <script type = "text/javascript" src="https://ajax.googleapis.com...
[ { "code": null, "e": 1743, "s": 1688, "text": "This gets the first value from a set of radio buttons." }, { "code": null, "e": 1790, "s": 1743, "text": "Here is the simple syntax to use this method −" }, { "code": null, "e": 1807, "s": 1790, "text": "selector....
How to select multiple columns in a pandas dataframe - GeeksforGeeks
27 Nov, 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. Let’s discuss all different ways of selecting multiple columns in a pandas DataFrame. Method ...
[ { "code": null, "e": 24537, "s": 24509, "text": "\n27 Nov, 2018" }, { "code": null, "e": 24751, "s": 24537, "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...
How to get the title and URL of a webpage with Javascript executor in Selenium with python?
We can get the title and URL of a webpage with Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript. print(driver.execute_script('return document.title')) print(driver.execute_script('return docu...
[ { "code": null, "e": 1288, "s": 1062, "text": "We can get the title and URL of a webpage with Javascript executor in\nSelenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript." }, { "code": null...
PyBrain - Quick Guide
Pybrain is an open-source library for Machine learning implemented using python. The library offers you some easy to use training algorithms for networks, datasets, trainers to train and test the network. Definition of Pybrain as put by its official documentation is as follows − PyBrain is a modular Machine Learning Li...
[ { "code": null, "e": 2313, "s": 2108, "text": "Pybrain is an open-source library for Machine learning implemented using python. The library offers you some easy to use training algorithms for networks, datasets, trainers to train and test the network." }, { "code": null, "e": 2388, "...
Python 3 - Variable Types
Variables are nothing but reserved memory locations to store values. It means that when you create a variable, you reserve some space in the memory. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types ...
[ { "code": null, "e": 2489, "s": 2340, "text": "Variables are nothing but reserved memory locations to store values. It means that when you create a variable, you reserve some space in the memory." }, { "code": null, "e": 2745, "s": 2489, "text": "Based on the data type of a varia...
Placement | Reasoning | Blood Relationship - GeeksforGeeks
09 Aug, 2018 While solving the questions on blood relationship, one should be familiar with basic concepts like various relations. Mother's or Father's Brother - Uncle Mother's or Father's Sister - Aunt Mother's or Father's Father - Grand Father Mother's or Father's Mother - Grand Mother Grand Father's or Grand Mother...
[ { "code": null, "e": 23729, "s": 23701, "text": "\n09 Aug, 2018" }, { "code": null, "e": 23847, "s": 23729, "text": "While solving the questions on blood relationship, one should be familiar with basic concepts like various relations." }, { "code": null, "e": 24473, ...
Semi-supervised learning with Generative Adversarial Networks (GANs) | by Thalles Silva | Towards Data Science
If you ever heard or studied about deep learning, you probably heard about MNIST, SVHN, ImageNet, PascalVoc and others. Each of these datasets has one thing in common. They consist of hundreds and thousands of labeled data. In other words, these collections are composed of (x,y) pairs where (x) is the raw data, an imag...
[ { "code": null, "e": 580, "s": 172, "text": "If you ever heard or studied about deep learning, you probably heard about MNIST, SVHN, ImageNet, PascalVoc and others. Each of these datasets has one thing in common. They consist of hundreds and thousands of labeled data. In other words, these collectio...
Difference Between Search and Search All in COBOL - GeeksforGeeks
09 Sep, 2021 There are two ways in which we can perform the searching operations in COBOL, first using the traditional method i.e. by applying the loop with the help of PERFORM statement, or by using the predefined verbs: SEARCH and SEARCH ALL. SEARCH and SEARCH ALL verbs can be used only in the INDEXED FILES because t...
[ { "code": null, "e": 23306, "s": 23278, "text": "\n09 Sep, 2021" }, { "code": null, "e": 23668, "s": 23306, "text": "There are two ways in which we can perform the searching operations in COBOL, first using the traditional method i.e. by applying the loop with the help of PERFORM...
8 Common Pitfalls of Running A/B Tests | by Leihua Ye, PhD | Towards Data Science
1 2 3 4 5 6 7 8 9 10 Powered by Play.ht Create audio with Play.ht Powered by Play.ht Online experimentation has become the industry standard for product innovation and decision-making. With well-designed A/B tests, tech companies can iterate their product lines quicker and provide better user experiences. Among FAANG, ...
[ { "code": null, "e": 174, "s": 172, "text": "1" }, { "code": null, "e": 176, "s": 174, "text": "2" }, { "code": null, "e": 178, "s": 176, "text": "3" }, { "code": null, "e": 180, "s": 178, "text": "4" }, { "code": null, "e": 182...
Flutter - Custom Bottom Navigation Bar - GeeksforGeeks
06 Dec, 2021 A bottom navigation bar is a material widget that is present at the bottom of an app for selecting or navigating to different pages of the app. It is usually used in conjunction with a Scaffold, where it is provided as the Scaffold.bottomNavigationBar argument. Though flutter provides you with the BottomNa...
[ { "code": null, "e": 24350, "s": 24322, "text": "\n06 Dec, 2021" }, { "code": null, "e": 24612, "s": 24350, "text": "A bottom navigation bar is a material widget that is present at the bottom of an app for selecting or navigating to different pages of the app. It is usually used ...
Count the number of comma’s in every record from a comma-separated value column in MySQL
Let us first create a − mysql> create table DemoTable1510 -> ( -> Value varchar(50) -> ); Query OK, 0 rows affected (6.75 sec) Insert some records in the table using insert − mysql> insert into DemoTable1510 values('20,35'); Query OK, 1 row affected (0.57 sec) mysql> insert into DemoTable1510 values('45,67,89'...
[ { "code": null, "e": 1086, "s": 1062, "text": "Let us first create a −" }, { "code": null, "e": 1198, "s": 1086, "text": "mysql> create table DemoTable1510\n -> (\n -> Value varchar(50)\n -> );\nQuery OK, 0 rows affected (6.75 sec)" }, { "code": null, "e": 1246,...
Count the Zeros | Practice | GeeksforGeeks
Given an array of size N consisting of only 0's and 1's. The array is sorted in such a manner that all the 1's are placed first and then they are followed by all the 0's. Find the count of all the 0's. Example 1: Input: N = 12 Arr[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0} Output: 3 Explanation: There are 3 0's in the gi...
[ { "code": null, "e": 440, "s": 238, "text": "Given an array of size N consisting of only 0's and 1's. The array is sorted in such a manner that all the 1's are placed first and then they are followed by all the 0's. Find the count of all the 0's." }, { "code": null, "e": 451, "s": 44...
JavaScript - Array reduceRight() Method
Javascript array reduceRight() method applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value Its syntax is as follows − array.reduceRight(callback[, initialValue]); callback − Function to execute on each value in the array. callback − Function to execut...
[ { "code": null, "e": 2625, "s": 2466, "text": "Javascript array reduceRight() method applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value" }, { "code": null, "e": 2652, "s": 2625, "text": "Its syntax is as follow...
GWT - Debugging Application
GWT provides execellent capability of debugging client side as well as server side code. During development mode, GWT Application is in Java code based and is not translated to JavaScript. When an application is running in development mode, the Java Virtual Machine (JVM) is actually executing the application code as co...
[ { "code": null, "e": 2112, "s": 2023, "text": "GWT provides execellent capability of debugging client side as well as server side code." }, { "code": null, "e": 2212, "s": 2112, "text": "During development mode, GWT Application is in Java code based and is not translated to JavaS...