title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to open a Facebook page from an Android app using Kotlin?
This example demonstrates how to open a Facebook page from an Android app using Kotlin 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": 1149, "s": 1062, "text": "This example demonstrates how to open a Facebook page from an Android app using Kotlin" }, { "code": null, "e": 1278, "s": 1149, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required...
BigAutoField - Django Models - GeeksforGeeks
24 Aug, 2021 BigAutoField is a 64-bit integer, much like an AutoField except that it is guaranteed to fit numbers from 1 to 9223372036854775807. One can create a BigAutoField using the following syntax, id = models.BigAutoField(primary_key=True, **options) This is an auto-incrementing primary key just like AutoField. ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n24 Aug, 2021" }, { "code": null, "e": 24091, "s": 23901, "text": "BigAutoField is a 64-bit integer, much like an AutoField except that it is guaranteed to fit numbers from 1 to 9223372036854775807. One can create a BigAutoField u...
Java Examples - Copy & Paste Image
How to read copy and paste an image using Java. Following is the program to copy and paste an image using Java. import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.imgcodecs.Imgcodecs; public class CopyAndPasteAnImage { public static void main(String args[]) { //Loading the OpenCV core...
[ { "code": null, "e": 2116, "s": 2068, "text": "How to read copy and paste an image using Java." }, { "code": null, "e": 2180, "s": 2116, "text": "Following is the program to copy and paste an image using Java." }, { "code": null, "e": 2856, "s": 2180, "text": ...
Reverse a string in C/C++
Here is an example to reverse a string in C language, #include<stdio.h> #include<string.h> int main() { char s[50], t; int i = 0, j = 0; printf("\nEnter the string to reverse :"); gets(s); j = strlen(s) - 1; while (i < j) { t = s[i]; s[i] = s[j]; s[j] = t; i++; j--; ...
[ { "code": null, "e": 1116, "s": 1062, "text": "Here is an example to reverse a string in C language," }, { "code": null, "e": 1445, "s": 1116, "text": "#include<stdio.h>\n#include<string.h>\n\nint main() {\n char s[50], t;\n int i = 0, j = 0;\n\n printf(\"\\nEnter the strin...
addr2line command in Linux with Examples - GeeksforGeeks
15 May, 2019 addr2line command in Linux is used to convert addresses into file names and line numbers. When the executable files/object files are run with the objdump command, the file is de-assembled and the machine code is displayed. These machine instructions for the executable are displayed along with their memory ...
[ { "code": null, "e": 24036, "s": 24008, "text": "\n15 May, 2019" }, { "code": null, "e": 24493, "s": 24036, "text": "addr2line command in Linux is used to convert addresses into file names and line numbers. When the executable files/object files are run with the objdump command, ...
HTML | <iframe> scrolling Attribute - GeeksforGeeks
17 Sep, 2019 The HTML <iframe> scrolling Attribute is used to specify that whether the scrollbar will be displayed or not in the <Iframe> Element. Basically the scrollbar is used when the content is large than the Iframe Element. Syntax <iframe scrolling="auto | yes | no"> Attribute Values auto: It has a default value....
[ { "code": null, "e": 24990, "s": 24962, "text": "\n17 Sep, 2019" }, { "code": null, "e": 25207, "s": 24990, "text": "The HTML <iframe> scrolling Attribute is used to specify that whether the scrollbar will be displayed or not in the <Iframe> Element. Basically the scrollbar is us...
Difference between save() and persist() in Hibernate
Save() and persist() both methods are used for saving object in the database. As per docs − Save() − Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.) This operation cascades to associated instances ...
[ { "code": null, "e": 1141, "s": 1062, "text": "Save() and persist() both methods are used for saving object in the database. " }, { "code": null, "e": 1155, "s": 1141, "text": "As per docs −" }, { "code": null, "e": 1439, "s": 1155, "text": "Save() − Persist ...
Design Media Sharing Social Networking System - GeeksforGeeks
06 Jan, 2022 PURPOSE OF MEDIA SOCIAL NETWORKING SERVICE SYSTEMThis system will allow users to share photos and videos with other users. Additionally, users can follow other users based on follow request and they can see other user’s photos and videos. In this system, you can search users and see their profile if their ...
[ { "code": null, "e": 24560, "s": 24532, "text": "\n06 Jan, 2022" }, { "code": null, "e": 26194, "s": 24560, "text": "PURPOSE OF MEDIA SOCIAL NETWORKING SERVICE SYSTEMThis system will allow users to share photos and videos with other users. Additionally, users can follow other use...
Style all unvisited links with CSS
To style all unvisited links, use the CSS :link selector. You can try to run the following code to implement the :link selector: Live Demo <!DOCTYPE html> <html> <head> <style> a:link { background-color: orange; } </style> </head> <body> <a href = "https://www.ex...
[ { "code": null, "e": 1191, "s": 1062, "text": "To style all unvisited links, use the CSS :link selector. You can try to run the following code to implement the :link selector:" }, { "code": null, "e": 1201, "s": 1191, "text": "Live Demo" }, { "code": null, "e": 1453, ...
Git Branch
In Git, a branch is a new/separate version of the main repository. Let's say you have a large project, and you need to update the design on it. How would that work without and with Git: Without Git: Make copies of all the relevant files to avoid impacting the live version Start working with the design and find that cod...
[ { "code": null, "e": 67, "s": 0, "text": "In Git, a branch is a new/separate version of the main repository." }, { "code": null, "e": 144, "s": 67, "text": "Let's say you have a large project, and you need to update the design on it." }, { "code": null, "e": 186, ...
Implicit Parameters In Scala - GeeksforGeeks
07 Dec, 2021 Implicit parameters are the parameters that are passed to a function with implicit keyword in Scala, which means the values will be taken from the context in which they are called. In simpler terms, if no value or parameter is passed to a method or function, then the compiler will look for implicit value a...
[ { "code": null, "e": 23882, "s": 23854, "text": "\n07 Dec, 2021" }, { "code": null, "e": 24519, "s": 23882, "text": "Implicit parameters are the parameters that are passed to a function with implicit keyword in Scala, which means the values will be taken from the context in which...
Practical tips for class imbalance in binary classification | by Zichen Wang | Towards Data Science
Binary classification problem is arguably one of the simplest and most straightforward problems in Machine Learning. Usually we want to learn a model trying to predict whether some instance belongs to a class or not. It has many practical applications ranging from email spam detection to medical testing (determine if a...
[ { "code": null, "e": 532, "s": 172, "text": "Binary classification problem is arguably one of the simplest and most straightforward problems in Machine Learning. Usually we want to learn a model trying to predict whether some instance belongs to a class or not. It has many practical applications ran...
Getting Data ready for modelling: Feature engineering, Feature Selection, Dimension Reduction (Part two) | by Akash Desarda | Towards Data Science
This is part two of Series of Getting Data ready for modelling. If you have not read Part 1, then I suggest you go first through it. As Feature Engineering is the generally the first step. ... Feature engineering, Feature Selection, Dimension Reductionmedium.com Once you have sufficient, less or no missing data or outl...
[ { "code": null, "e": 361, "s": 172, "text": "This is part two of Series of Getting Data ready for modelling. If you have not read Part 1, then I suggest you go first through it. As Feature Engineering is the generally the first step." }, { "code": null, "e": 435, "s": 361, "text"...
Count the frequency of a value in a DataFrame column in Pandas
To count the frequency of a value in a DataFrame column in Pandas, we can use df.groupby(column name).size() method. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Print the input DataFrame, df. Prin...
[ { "code": null, "e": 1179, "s": 1062, "text": "To count the frequency of a value in a DataFrame column in Pandas, we can use df.groupby(column name).size() method." }, { "code": null, "e": 1263, "s": 1179, "text": "Create a two-dimensional, size-mutable, potentially heterogeneous...
PHP - Design Patterns
Microsoft design pattern Theory is, "The document introduces patterns and then presents them in a repository, or catalogue, which is organized to help you locate the right combination of patterns that solves your problem". A Class has one instance, It provides a global access point to it, Following code will explain ab...
[ { "code": null, "e": 2980, "s": 2757, "text": "Microsoft design pattern Theory is, \"The document introduces patterns and then presents them in a repository, or catalogue, which is organized to help you locate the right combination of patterns that solves your problem\"." }, { "code": null, ...
Check if a user exists in MySQL and drop it?
To check how many users are present in MySQL, use MySQL.user table. The syntax is as follows to check how many users are present. mysql> SELECT User FROM mysql.user; The following output displays the users − +------------------+ | User | +------------------+ | Mac | | Manish | | mysql...
[ { "code": null, "e": 1192, "s": 1062, "text": "To check how many users are present in MySQL, use MySQL.user table. The syntax is as follows to check how many users are present." }, { "code": null, "e": 1228, "s": 1192, "text": "mysql> SELECT User FROM mysql.user;" }, { "c...
Apache Pig - REPLACE()
This function is used to replace all the characters in a given string with the new characters. Given below is the syntax of the REPLACE() function. This function accepts three parameters, namely, string − The string that is to be replaced. If we want to replace the string within a relation, we have to pass the column n...
[ { "code": null, "e": 2779, "s": 2684, "text": "This function is used to replace all the characters in a given string with the new characters." }, { "code": null, "e": 2880, "s": 2779, "text": "Given below is the syntax of the REPLACE() function. This function accepts three parame...
Cypress - Hidden Elements
Cypress can handle the hidden elements. There are occasions, when the submenus get displayed only on hovering over the main menu. These submenus are initially made hidden with the Cascading Style Sheets (CSS) property display:none. For handling the hidden elements, Cypress takes the help of the jQuery method show. It h...
[ { "code": null, "e": 2729, "s": 2497, "text": "Cypress can handle the hidden elements. There are occasions, when the submenus get displayed only on hovering over the main menu. These submenus are initially made hidden with the Cascading Style Sheets (CSS) property display:none." }, { "code":...
Matplotlib figure to image as a numpy array
We can use the following steps to convert a figure into a numpy array − Read a figure from a directory; convert it into numpy array. Read a figure from a directory; convert it into numpy array. Use imshow() method to display the image. Use imshow() method to display the image. Use show() method to display it. Use show(...
[ { "code": null, "e": 1134, "s": 1062, "text": "We can use the following steps to convert a figure into a numpy array −" }, { "code": null, "e": 1195, "s": 1134, "text": "Read a figure from a directory; convert it into numpy array." }, { "code": null, "e": 1256, "s...
Web App for Pneumonia Detection. Build a simple web application to... | by Mandy Gu | Towards Data Science
All of the Python 3.7 code used can be found here. The article provides a detailed walk through of each step, but you can also follow the instructions in the repo’s README to spin up a local server. The Github repo also comes with pre-trained weights in case you want to skip the training process. The goal of this artic...
[ { "code": null, "e": 470, "s": 172, "text": "All of the Python 3.7 code used can be found here. The article provides a detailed walk through of each step, but you can also follow the instructions in the repo’s README to spin up a local server. The Github repo also comes with pre-trained weights in c...
Remove Duplicates from Sorted Array in Python
Suppose we have a sorted list A. We have to return the length of the array after removing all duplicate entries. We have to perform this in O(1) extra space. So we have to do the operation in-place. For an example, suppose A = [1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 6] Then the output will be 6, as there are six distin...
[ { "code": null, "e": 1261, "s": 1062, "text": "Suppose we have a sorted list A. We have to return the length of the array after removing all duplicate entries. We have to perform this in O(1) extra space. So we have to do the operation in-place." }, { "code": null, "e": 1395, "s": 12...
Count minimum right flips to set all values in an array - GeeksforGeeks
20 Jul, 2021 N light bulbs are connected by a wire. Each bulb has a switch associated with it, however due to faulty wiring, a switch also changes the state of all the bulbs to the right of current bulb. Given an initial state of all bulbs, find the minimum number of switches you have to press to turn on all the bulbs....
[ { "code": null, "e": 24247, "s": 24219, "text": "\n20 Jul, 2021" }, { "code": null, "e": 24681, "s": 24247, "text": "N light bulbs are connected by a wire. Each bulb has a switch associated with it, however due to faulty wiring, a switch also changes the state of all the bulbs to...
How to convert Python datetime to epoch with strftime?
To convert python datetime to epoch with strftime you'd need to provide the strftime function with a formatting string that contains the code for formatting the date as seconds since epoch. The %s directive is used for this purpose. import datetime timestamp = datetime.datetime(2017, 12, 1, 0, 0).strftime('%s') print(...
[ { "code": null, "e": 1296, "s": 1062, "text": "To convert python datetime to epoch with strftime you'd need to provide the strftime function with a formatting string that contains the code for formatting the date as seconds since epoch. The %s directive is used for this purpose. " }, { "code...
Eigenvalues and Eigenvectors. Computing and Visualizing | by Ben Denis Shaffer | Towards Data Science
First I’ll talk about what made me curious about how Eigenvalues are actually computed. Then I’ll share my implementation of the simplest algorithm (QR method) and do some benchmarking. Lastly, I’ll share how you can animate the steps the algorithm goes through to finds the Eigenvectors! Eigenvalues and eigenvectors ca...
[ { "code": null, "e": 259, "s": 171, "text": "First I’ll talk about what made me curious about how Eigenvalues are actually computed." }, { "code": null, "e": 357, "s": 259, "text": "Then I’ll share my implementation of the simplest algorithm (QR method) and do some benchmarking."...
How to read a HTTP header using JSP?
Following is the example which uses getHeaderNames() method of HttpServletRequest to read the HTTP header information. This method returns an Enumeration that contains the header information associated with the current HTTP request. Once we have an Enumeration, we can loop down the Enumeration in the standard manner. W...
[ { "code": null, "e": 1295, "s": 1062, "text": "Following is the example which uses getHeaderNames() method of HttpServletRequest to read the HTTP header information. This method returns an Enumeration that contains the header information associated with the current HTTP request." }, { "code"...
Histograms in Image Processing with skimage-Python | by Mathanraj Sharma | Towards Data Science
Visualizations are always been an efficient way to represent and explain many statistical details. In image processing histograms are used to depict many aspects regarding the image we are working with. Such as, Exposure Contrast Dynamic Range Saturation and many more. By visualizing the histogram we can improve the vi...
[ { "code": null, "e": 383, "s": 171, "text": "Visualizations are always been an efficient way to represent and explain many statistical details. In image processing histograms are used to depict many aspects regarding the image we are working with. Such as," }, { "code": null, "e": 392, ...
Cypress - Cookies
Cypress handles cookies with the methods Cookies.preserveOnce() and Cookies.defaults(). The method Cookies.debug() produces logs to the console, if there are any changes to the cookies. By default, Cypress removes all cookies prior to each test execution.We can utilise Cypress.Cookies.preserveOnce() to preserve the coo...
[ { "code": null, "e": 2683, "s": 2497, "text": "Cypress handles cookies with the methods Cookies.preserveOnce() and Cookies.defaults(). The method Cookies.debug() produces logs to the console, if there are any changes to the cookies." }, { "code": null, "e": 2867, "s": 2683, "text...
Time series forecasting with 2D convolutions | by Johnny Wales | Towards Data Science
In this article, I will show you a time series forecasting method I haven’t seen documented elsewhere. I doubt it is a new method, but since I haven’t seen a great article on it, here it is. The Dataset The data I used for this project is the data from the Global Energy Forecasting competition, put on by my hometown un...
[ { "code": null, "e": 363, "s": 172, "text": "In this article, I will show you a time series forecasting method I haven’t seen documented elsewhere. I doubt it is a new method, but since I haven’t seen a great article on it, here it is." }, { "code": null, "e": 375, "s": 363, "tex...
Remove elements from singly linked list in JavaScript
Suppose, we have a singly linked list like this − const list = { value: 1, next: { value: 2, next: { value: 3, next: { value: 4, next: { value: 5, next: { value: 6, next: { ...
[ { "code": null, "e": 1112, "s": 1062, "text": "Suppose, we have a singly linked list like this −" }, { "code": null, "e": 1529, "s": 1112, "text": "const list = {\n value: 1,\n next: {\n value: 2,\n next: {\n value: 3,\n next: {\n value: 4...
Python - Update Records in MySQL Data Database - 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 In this tutorial, we’ll show see how to updat...
[ { "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 find record by Id from local/custom database in Node.js ? - GeeksforGeeks
14 Jul, 2020 The custom database signifies the local database in your file system. There are two types of database ‘SQL’ and ‘NoSQL’. In SQL database data are stored as table manner and in Nosql database data are stored independently with some particular way to identify each record independently. we can also create our...
[ { "code": null, "e": 24842, "s": 24814, "text": "\n14 Jul, 2020" }, { "code": null, "e": 25201, "s": 24842, "text": "The custom database signifies the local database in your file system. There are two types of database ‘SQL’ and ‘NoSQL’. In SQL database data are stored as table m...
How to find the distinct subsets from a given array by backtracking using C#?
Distinct subsets problem gives us the different combination from the given array. When the target is 2 then from the array, we take all the combination that corresponds to number 2, When the target is three then from the array, we take all the combination that corresponds to count 3. In the below example the array is [...
[ { "code": null, "e": 1144, "s": 1062, "text": "Distinct subsets problem gives us the different combination from the given array." }, { "code": null, "e": 1493, "s": 1144, "text": "When the target is 2 then from the array, we take all the combination that corresponds to number 2, ...
Remove the last entry of the TreeMap in Java
To remove the last entry of the TreeMap, use the pollLastEntry() method. Let us first create a TreeMap and add elements TreeMap<Integer, String> m = new TreeMap<Integer, String>(); m.put(1,"India"); m.put(2,"US"); m.put(3,"Australia"); m.put(4,"Netherlands"); m.put(5,"Canada"); Remove the last entry now m.pollLastEntry...
[ { "code": null, "e": 1135, "s": 1062, "text": "To remove the last entry of the TreeMap, use the pollLastEntry() method." }, { "code": null, "e": 1182, "s": 1135, "text": "Let us first create a TreeMap and add elements" }, { "code": null, "e": 1341, "s": 1182, ...
How to delete cookies in JavaScript?
Sometimes you will want to delete a cookie so that subsequent attempts to read the cookie return nothing. To do this, you just need to set the expiry date to a time in the past. Try the following example. It illustrates how to delete a cookie by setting its expiry date to one month behind the current date. <html> <h...
[ { "code": null, "e": 1240, "s": 1062, "text": "Sometimes you will want to delete a cookie so that subsequent attempts to read the cookie return nothing. To do this, you just need to set the expiry date to a time in the past." }, { "code": null, "e": 1370, "s": 1240, "text": "Try ...
How to link jQuery in HTML page ?
04 Oct, 2021 jQuery is one of the most popularly used JavaScript Libraries out there which is a lot easier to use than standard JavaScript as it provides many built-in functions to access. It is build using JavaScript capabilities, you are able to use all the functions that are available in JavaScript. In this article...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Oct, 2021" }, { "code": null, "e": 320, "s": 28, "text": "jQuery is one of the most popularly used JavaScript Libraries out there which is a lot easier to use than standard JavaScript as it provides many built-in functions to access....
ReactJS | ReactDOM
07 Jan, 2021 In the previous article on introduction to JSX, we learned that we can use JSX to store HTML markups within Javascript variables. Now, ReactJS is a library to build active User Interfaces thus rendering is one of the integral parts of ReactJS. React provides the developers with a package react-dom a.k.a Re...
[ { "code": null, "e": 53, "s": 25, "text": "\n07 Jan, 2021" }, { "code": null, "e": 457, "s": 53, "text": "In the previous article on introduction to JSX, we learned that we can use JSX to store HTML markups within Javascript variables. Now, ReactJS is a library to build active Us...
Python | Pandas Series.squeeze()
05 Feb, 2019 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 series is a One-dimensional ndarray with axis labels. The labels need not be unique bu...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Feb, 2019" }, { "code": null, "e": 242, "s": 28, "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 and makes imp...
Python program to find the sum of all items in a dictionary
13 Apr, 2022 Given a dictionary in Python, write a Python program to find the sum of all items in the dictionary. Examples: Input : {‘a’: 100, ‘b’:200, ‘c’:300}Output : 600 Input : {‘x’: 25, ‘y’:18, ‘z’:45}Output : 88 Approach #1 : Using Inbuilt sum() FunctionUse the sum function to find the sum of dictionary values. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Apr, 2022" }, { "code": null, "e": 153, "s": 52, "text": "Given a dictionary in Python, write a Python program to find the sum of all items in the dictionary." }, { "code": null, "e": 164, "s": 153, "text": "Exam...
Minimum number of swaps required for arranging pairs adjacent to each other
30 Jul, 2021 There are n-pairs and therefore 2n people. everyone has one unique number ranging from 1 to 2n. All these 2n persons are arranged in random fashion in an Array of size 2n. We are also given who is partner of whom. Find the minimum number of swaps required to arrange these pairs such that all pairs become a...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jul, 2021" }, { "code": null, "e": 393, "s": 54, "text": "There are n-pairs and therefore 2n people. everyone has one unique number ranging from 1 to 2n. All these 2n persons are arranged in random fashion in an Array of size 2n. We...
Properties isEmpty() method in Java with Examples
23 May, 2019 The isEmpty() method of Properties class is used to check if this Properties object is empty or not. Syntax: public boolean isEmpty() Parameters: This method accepts no parameters Returns: This method returns a boolean value stating if this Properties object is empty or not. Below programs show the impleme...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 May, 2019" }, { "code": null, "e": 154, "s": 53, "text": "The isEmpty() method of Properties class is used to check if this Properties object is empty or not." }, { "code": null, "e": 162, "s": 154, "text": "Synt...
jQuery UI Datepicker setDate() Method
08 Jan, 2021 jQuery UI datepicker setDate() method is used to set the date from the date field. Syntax: $( ".selector" ).datepicker( "setDate" ) Parameters: This method does not accept any parameters. Return values: This method returns the date. Approach: First, add jQuery mobile scripts needed for your project. <scrip...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jan, 2021" }, { "code": null, "e": 111, "s": 28, "text": "jQuery UI datepicker setDate() method is used to set the date from the date field." }, { "code": null, "e": 119, "s": 111, "text": "Syntax:" }, { "...
Barrier Objects in Python
14 Jul, 2017 Barrier objects in python are used to wait for a fixed number of thread to complete execution before any particular thread can proceed forward with the execution of the program. Each thread calls wait() function upon reaching the barrier. The barrier is responsible for keeping track of the number of wait()...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jul, 2017" }, { "code": null, "e": 619, "s": 52, "text": "Barrier objects in python are used to wait for a fixed number of thread to complete execution before any particular thread can proceed forward with the execution of the progr...
HTTP headers | Proxy-Authorization
31 Oct, 2019 The HTTP Proxy_Authorization header is a request type of header. This header contains the credentials to authenticate between the user agent and the user-specified server. When the server responded with 407 proxy Authentication Required status that brings the authentication between the user agent and the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 342, "s": 28, "text": "The HTTP Proxy_Authorization header is a request type of header. This header contains the credentials to authenticate between the user agent and the user-specified server. Whe...
Ruby Mixins
21 Nov, 2019 Before studying about Ruby Mixins, we should have the knowledge about Object Oriented Concepts. If we don’t, go through Object Oriented Concepts in Ruby . When a class can inherit features from more than one parent class, the class is supposed to have multiple inheritance. But Ruby does not support multipl...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Nov, 2019" }, { "code": null, "e": 772, "s": 52, "text": "Before studying about Ruby Mixins, we should have the knowledge about Object Oriented Concepts. If we don’t, go through Object Oriented Concepts in Ruby . When a class can in...
Minimize the maximum difference between adjacent elements in an array
04 Jul, 2022 Given a non-decreasing array arr[] and an integer K, the task is to remove K elements from the array such that maximum difference between adjacent element is minimum.Note: K < N – 2 Examples: Input: arr[] = {3, 7, 8, 10, 14}, K = 2 Output: 2 Explanation: After removing elements A[0] and A[4], The maximum ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jul, 2022" }, { "code": null, "e": 234, "s": 52, "text": "Given a non-decreasing array arr[] and an integer K, the task is to remove K elements from the array such that maximum difference between adjacent element is minimum.Note: K ...
Export Plot to EPS File in R
16 May, 2021 An EPS file is a graphics file saved in the Encapsulated PostScript (EPS) file format. The EPS files may contain images, graphics, or even text. In this article, we will discuss how we export a plot to an EPS file using R programming language. The postscripts can be defined using the setEPS() method in R. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2021" }, { "code": null, "e": 272, "s": 28, "text": "An EPS file is a graphics file saved in the Encapsulated PostScript (EPS) file format. The EPS files may contain images, graphics, or even text. In this article, we will discu...
What is the difference between YAML and JSON?
17 May, 2020 YAML: It is a light-weight, human-readable data-representation language. It is primarily designed to make the format easy to read while including complex features. Since YAML is a superset of JSON, it can parse JSON with a YAML parser.The extensions in YAML are .yaml or .yml. YAML specifications allow user...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 May, 2020" }, { "code": null, "e": 413, "s": 53, "text": "YAML: It is a light-weight, human-readable data-representation language. It is primarily designed to make the format easy to read while including complex features. Since YAML...
Perl vs C/C++
29 Jun, 2021 Perl is a general purpose, high level interpreted and dynamic programming language. It was developed by Larry Wall, in 1987. There is no official acronym for the Perl, but still, the most used acronym is “Practical Extraction and Reporting Language“. Some of the programmers also refer to Perl as the “Patho...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jun, 2021" }, { "code": null, "e": 1050, "s": 52, "text": "Perl is a general purpose, high level interpreted and dynamic programming language. It was developed by Larry Wall, in 1987. There is no official acronym for the Perl, but s...
Responsive Card with hover effect using HTML and CSS
25 Mar, 2022 Cards are very important part for any website. It is used to display some important information in short to viewers. So, in this article we will create a responsive card with amazing hover effect using HTML and CSS. By using HTML we will design the basic structure of the card and then by using the propert...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Mar, 2022" }, { "code": null, "e": 415, "s": 54, "text": "Cards are very important part for any website. It is used to display some important information in short to viewers. So, in this article we will create a responsive card wit...
How to Access Global Variable if there is a Local Variable with Same Name in C/ C++?
21 Jun, 2022 Local Variable: The variable whose scope lies inside a function or a block in which they are declared. Global Variable: The variable that exists outside of all functions. It is the variable that is visible from all other scopes. We can access global variable if there is a local variable with same name in ...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 Jun, 2022" }, { "code": null, "e": 157, "s": 53, "text": "Local Variable: The variable whose scope lies inside a function or a block in which they are declared. " }, { "code": null, "e": 283, "s": 157, "text": "G...
Random sampling in numpy | randint() function
26 Feb, 2019 numpy.random.randint() is one of the function for doing random sampling in numpy. It returns an array of specified shape and fills it with random integers from low (inclusive) to high (exclusive), i.e. in the interval [low, high). Syntax : numpy.random.randint(low, high=None, size=None, dtype=’l’) Paramete...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Feb, 2019" }, { "code": null, "e": 284, "s": 53, "text": "numpy.random.randint() is one of the function for doing random sampling in numpy. It returns an array of specified shape and fills it with random integers from low (inclusive...
How To Index and Slice Strings in Python?
27 Apr, 2022 The Python string data type is a sequence made up of one or more individual characters that could consist of letters, numbers, whitespace characters, or symbols. As the string is a sequence, it can be accessed in the same ways that other sequence-based data types are, through indexing and slicing. Indexing...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2022" }, { "code": null, "e": 327, "s": 28, "text": "The Python string data type is a sequence made up of one or more individual characters that could consist of letters, numbers, whitespace characters, or symbols. As the string...
C++ switch statement
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 for a switch statement in C++ is as follows − switch(expression) { case constant-expression : statement(s); break;...
[ { "code": null, "e": 2631, "s": 2452, "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": 2688, "s": 2631, "text": "The...
String Operators | Shell Script
22 Nov, 2018 Pre-Requisite: Conditional Statement in Shell Script There are many operators in Shell Script some of them are discussed based on string. Equal operator (=): This operator is used to check whether two strings are equal.Syntax:Operands1 = Operand2Example:#!/bin/sh str1="GeeksforGeeks";str2="geeks";if [ $st...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2018" }, { "code": null, "e": 81, "s": 28, "text": "Pre-Requisite: Conditional Statement in Shell Script" }, { "code": null, "e": 166, "s": 81, "text": "There are many operators in Shell Script some of them a...
JavaFX | Checkbox
24 Oct, 2019 CheckBox is a part of JavaFX package. CheckBox is a box with a tick on it when selected and empty when not selected. At first, checkboxes may seem similar to radio buttons, but there exists the difference between them that checkboxes cannot be combined into toggle groups, which means we cannot select multi...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Oct, 2019" }, { "code": null, "e": 365, "s": 28, "text": "CheckBox is a part of JavaFX package. CheckBox is a box with a tick on it when selected and empty when not selected. At first, checkboxes may seem similar to radio buttons, bu...
Draw a horizontal bar chart with Matplotlib
25 Aug, 2021 Matplotlib is the standard python library for creating visualizations in Python. Pyplot is a module of Matplotlib library which is used to plot graphs and charts and also make changes in them. In this article, we are going to see how to draw a horizontal bar chart with Matplotlib. Approach: Importing matpl...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 310, "s": 28, "text": "Matplotlib is the standard python library for creating visualizations in Python. Pyplot is a module of Matplotlib library which is used to plot graphs and charts and also make...
How to set level of a factor column in R dataframe to NA?
26 May, 2021 A data frame may contain columns belonging to different classes. A factor type column is a set of categorical variables each mapped to a unique level. The levels give us idea about the co-morbidity of the data variable with each other. These levels can be modified both quantitatively (increase/decrease) an...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2021" }, { "code": null, "e": 419, "s": 28, "text": "A data frame may contain columns belonging to different classes. A factor type column is a set of categorical variables each mapped to a unique level. The levels give us idea ...
Java Program to Create a Singly Linked List and Count the Number of Nodes
05 Aug, 2021 Linked List is a linear data structure. Linked list elements are not stored at a contiguous location, the elements are linked using pointers. Singly Linked list is the collection of nodes, where each node has two parts one is the data and other is the linked part. Example: Input : AddNodes = {2, 3, 4} Outp...
[ { "code": null, "e": 53, "s": 25, "text": "\n05 Aug, 2021" }, { "code": null, "e": 318, "s": 53, "text": "Linked List is a linear data structure. Linked list elements are not stored at a contiguous location, the elements are linked using pointers. Singly Linked list is the collec...
HTTP headers | WWW-Authenticate
05 Jan, 2021 HTTP WWW-Authenticate header is a response-type header. It serves as a support for various authentication mechanisms which are important to control access to pages and other resources as well. All of these mechanisms are based on the use of the 401 status code. The HTTP WWW-Authenticate response header def...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jan, 2021" }, { "code": null, "e": 517, "s": 28, "text": "HTTP WWW-Authenticate header is a response-type header. It serves as a support for various authentication mechanisms which are important to control access to pages and other r...
Java Program to Handle Runtime Exceptions
17 Nov, 2020 RuntimeException is the superclass of all classes that exceptions are thrown during the normal operation of the Java VM (Virtual Machine). The RuntimeException and its subclasses are unchecked exceptions. The most common exceptions are NullPointerException, ArrayIndexOutOfBoundsException, ClassCastExceptio...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Nov, 2020" }, { "code": null, "e": 368, "s": 28, "text": "RuntimeException is the superclass of all classes that exceptions are thrown during the normal operation of the Java VM (Virtual Machine). The RuntimeException and its subclas...
Java Program to Multiply two Matrices of any size
23 Apr, 2022 Given two matrices A and B of any size, the task to multiply them in Java. Examples: Input: A[][] = {{1, 2}, {3, 4}} B[][] = {{1, 1}, {1, 1}} Output: {{3, 3}, {7, 7}} Input: A[][] = {{2, 4}, {3, 4}} B[][] = {{1, 2}, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Apr, 2022" }, { "code": null, "e": 138, "s": 52, "text": "Given two matrices A and B of any size, the task to multiply them in Java. Examples: " }, { "code": null, "e": 414, "s": 138, "text": "Input: A[][] = {{1,...
How to Install SQLmap on Android Termux?
29 Dec, 2021 Sqlmap is an open-source penetration testing tool. It comes with a powerful detection engine. It automates the process of detecting & taking over the database server. There is a total of six SQL injection tool techniques are present. This is the highest amount of tool present than others. When we are going...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2021" }, { "code": null, "e": 492, "s": 28, "text": "Sqlmap is an open-source penetration testing tool. It comes with a powerful detection engine. It automates the process of detecting & taking over the database server. There is...
Laravel | Validation Rules
30 Dec, 2019 Validating the data coming from the user’s end is very important as it can help the user in filling proper data and prevent them from submitting any improper or malicious request. In Laravel, there are Validation Rules which are predefined rules, which when used in Laravel application. There is a list of r...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2019" }, { "code": null, "e": 208, "s": 28, "text": "Validating the data coming from the user’s end is very important as it can help the user in filling proper data and prevent them from submitting any improper or malicious requ...
Getting unique values within two arrays in one MongoDB document
To get unique values within two arrays in a document, use a $setUnion in aggregate(). The $setUnion takes two or more arrays and returns an array containing the elements that appear in any input array. Let us create a collection with documents − >db.demo608.insertOne({"ListOfName1":["John","Chris","Bob","David"],"ListO...
[ { "code": null, "e": 1389, "s": 1187, "text": "To get unique values within two arrays in a document, use a $setUnion in aggregate(). The $setUnion takes two or more arrays and returns an array containing the elements that appear in any input array." }, { "code": null, "e": 1433, "s":...
Python | Check if given multiple keys exist in a dictionary
11 May, 2020 A dictionary in Python consists of a collection of key-value pairs. Each key-value pair maps the key to its associated value. Input : dict[] = {“geeksforgeeks” : 1, “practice” : 2, “contribute” :3}keys[] = {“geeksforgeeks”, “practice”}Output : Yes Input : dict[] = {“geeksforgeeks” : 1, “practice” : 2, “con...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 May, 2020" }, { "code": null, "e": 154, "s": 28, "text": "A dictionary in Python consists of a collection of key-value pairs. Each key-value pair maps the key to its associated value." }, { "code": null, "e": 276, "s"...
Convert a Data Frame into a Molten Form in R Programming – melt() Function
17 Jun, 2020 function in R Language is used to combine multiple columns of s Data Frame into a single column. Syntax: melt(x, na.rm, value.name) Parameters:x: data to be meltedna.rm: Boolean value to remove NAvalue.name: Setting column names Example 1: # R program to reshape data frame # Loading librarylibrary(reshape...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2020" }, { "code": null, "e": 125, "s": 28, "text": "function in R Language is used to combine multiple columns of s Data Frame into a single column." }, { "code": null, "e": 160, "s": 125, "text": "Syntax: m...
How to Convert a List to a DataFrame Row in Python?
28 Dec, 2021 In this article, we will discuss how to convert a list to a dataframe row in Python. This is known as the Transpose function, this will convert the list into a row. Here each value is stored in one column. Syntax: pandas.DataFrame(list).T Example: Python3 # import pandas moduleimport pandas as pd # conside...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Dec, 2021" }, { "code": null, "e": 113, "s": 28, "text": "In this article, we will discuss how to convert a list to a dataframe row in Python." }, { "code": null, "e": 234, "s": 113, "text": "This is known as the ...
Flutter – Border Widget
13 Jun, 2022 Border widget in flutter is assigned a simple functionality to add borders to the other widgets. The first is by creating all borders using BorderSide. The second way is by using Border.all to create a uniform border having the same color and width. The third is by using Border.fromBorderSide to create a b...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 498, "s": 54, "text": "Border widget in flutter is assigned a simple functionality to add borders to the other widgets. The first is by creating all borders using BorderSide. The second way is by u...
Maximum sum such that no two elements are adjacent | Set 2
24 Nov, 2021 Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5, and 7). Examples: Input : arr[] = {3, 5, 3} Output ...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Nov, 2021" }, { "code": null, "e": 315, "s": 54, "text": "Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 s...
p5.js | textAlign() Function
16 Apr, 2019 The textAlign() function in p5.js is used to set the alignment for the drawing the text. This function accepts two parameter horizAlign and vertAlign. The horizAlign parameter sets the alignment on x-axis and the vertAlign parameter sets the alignment on y-axis. Syntax: textAlign( horizAlign, vertAlign) or...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Apr, 2019" }, { "code": null, "e": 291, "s": 28, "text": "The textAlign() function in p5.js is used to set the alignment for the drawing the text. This function accepts two parameter horizAlign and vertAlign. The horizAlign parameter...
File.WriteAllLines(String, String[]) Method in C# with Examples - GeeksforGeeks
05 Mar, 2021 File.WriteAllLines(String, String[]) is an inbuilt File class method that is used to create a new file, writes the specified string array to the file, and then closes the file.Syntax: public static void WriteAllLines (string path, string[] contents); Parameter: This function accepts two parameters which ...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n05 Mar, 2021" }, { "code": null, "e": 25733, "s": 25547, "text": "File.WriteAllLines(String, String[]) is an inbuilt File class method that is used to create a new file, writes the specified string array to the file, and then clo...
How to create an empty matrix with NumPy in Python ? - GeeksforGeeks
11 Dec, 2020 The term empty matrix has no rows and no columns. A matrix that contains missing values has at least one row and column, as does a matrix that contains zeros. Numerical Python (NumPy) provides an abundance of useful features and functions for operations on numeric arrays and matrices in Python. If you wan...
[ { "code": null, "e": 25579, "s": 25551, "text": "\n11 Dec, 2020" }, { "code": null, "e": 25961, "s": 25579, "text": "The term empty matrix has no rows and no columns. A matrix that contains missing values has at least one row and column, as does a matrix that contains zeros. Nume...
Path getNameCount() method in Java with Examples - GeeksforGeeks
16 Jul, 2019 The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interface is java.nio.file.Path. A Java Path instance represents a path in the file system. A path can use to locate either a file or a directory.path...
[ { "code": null, "e": 26145, "s": 26117, "text": "\n16 Jul, 2019" }, { "code": null, "e": 26698, "s": 26145, "text": "The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interf...
How to convert seconds to time string format hh:mm:ss using JavaScript ? - GeeksforGeeks
31 Jul, 2019 Given a time in seconds and the task is to convert the time into a string format hh:mm:ss. There are two approaches to solve this problem: Method 1: Passing the seconds to a date object The Date() constructor expects a UNIX timestamp as one of its forms. A UNIX timestamp is a number of milliseconds that ha...
[ { "code": null, "e": 26039, "s": 26011, "text": "\n31 Jul, 2019" }, { "code": null, "e": 26178, "s": 26039, "text": "Given a time in seconds and the task is to convert the time into a string format hh:mm:ss. There are two approaches to solve this problem:" }, { "code": nu...
When to use next() and return next() in Node.js ? - GeeksforGeeks
17 Mar, 2021 In this is article we will see when to use next() and return next() in NodeJS. Features: next() : It will run or execute the code after all the middleware function is finished. return next() : By using return next it will jump out the callback immediately and the code below return next() will be unreachabl...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n17 Mar, 2021" }, { "code": null, "e": 26346, "s": 26267, "text": "In this is article we will see when to use next() and return next() in NodeJS." }, { "code": null, "e": 26356, "s": 26346, "text": "Features:" ...
GATE | GATE-CS-2015 (Set 2) | Question 65 - GeeksforGeeks
28 Jun, 2021 A Young tableau is a 2D array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with ∞, and hence there cannot be any entry to the right of, or below a ∞. The following Young tableau consists of unique entries. 1 2 5 14 3 4 6 23 ...
[ { "code": null, "e": 25721, "s": 25693, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25980, "s": 25721, "text": "A Young tableau is a 2D array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with ∞, and hence there cannot be a...
Average of odd numbers till a given odd number - GeeksforGeeks
24 Mar, 2021 Given an odd number n, find the average of odd numbers from 1 to n.Examples: Input : n = 9 Output : 5 Explanation (1 + 3 + 5 + 7 + 9)/5 = 25/5 = 5 Input : n = 221 Output : 111 Method 1 We can calculate average by adding each odd numbers till n and then dividing sum by count.Below is the implementati...
[ { "code": null, "e": 26655, "s": 26627, "text": "\n24 Mar, 2021" }, { "code": null, "e": 26734, "s": 26655, "text": "Given an odd number n, find the average of odd numbers from 1 to n.Examples: " }, { "code": null, "e": 26836, "s": 26734, "text": "Input : n =...
PHP | Access Specifiers - GeeksforGeeks
17 Sep, 2021 In the PHP each and every property of a class in must have one of three visibility levels, known as public, private, and protected. Public: Public properties can be accessed by any code, whether that code is inside or outside the class. If a property is declared public, its value can be read or changed fr...
[ { "code": null, "e": 32651, "s": 32623, "text": "\n17 Sep, 2021" }, { "code": null, "e": 32784, "s": 32651, "text": "In the PHP each and every property of a class in must have one of three visibility levels, known as public, private, and protected. " }, { "code": null, ...
Perl | Hash Operations - GeeksforGeeks
06 May, 2019 Prerequisite: Perl Hashes, Perl Hash As most readers likely know, the hash stores data by using a mechanism called Hashing. In hashing, a key is used to determine a value or data. These keys must be unique and are then used as the index at which the data associated with the key is stored. This data does no...
[ { "code": null, "e": 26525, "s": 26497, "text": "\n06 May, 2019" }, { "code": null, "e": 26562, "s": 26525, "text": "Prerequisite: Perl Hashes, Perl Hash" }, { "code": null, "e": 26875, "s": 26562, "text": "As most readers likely know, the hash stores data by ...
Files Class readString() Method in Java with Examples - GeeksforGeeks
05 Feb, 2021 The readString() method of File Class in Java is used to read contents to the specified file. Syntax: Files.readString(filePath) Parameters: path - File path with data type as Path Return Value: This method returns the content of the file in String format. Below are two overloaded forms of the readString(...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n05 Feb, 2021" }, { "code": null, "e": 25319, "s": 25225, "text": "The readString() method of File Class in Java is used to read contents to the specified file." }, { "code": null, "e": 25327, "s": 25319, "text...
Introduction to React-Redux - GeeksforGeeks
06 Jan, 2021 The ones familiar with react will know that react is a component-based front end library tool that connects the various segments of the web page. In react, we use props (short for properties) in a component which allows the usage of non-static variables. With the help of props, we can pass these variables ...
[ { "code": null, "e": 26165, "s": 26137, "text": "\n06 Jan, 2021" }, { "code": null, "e": 26548, "s": 26165, "text": "The ones familiar with react will know that react is a component-based front end library tool that connects the various segments of the web page. In react, we use ...
How to upload Laravel App to Heroku Cloud Application Platform - GeeksforGeeks
23 Sep, 2019 Knowledge of PHP (Laravel) A Heroku user account A basic knowledge of Git version control Setting up Heroku CLI: You can download Heroku CLI from here. We recommend you to view this article to install Heroku CLI. Creating a Laravel App: In order to create a laravel app goto your command line and write the ...
[ { "code": null, "e": 26243, "s": 26215, "text": "\n23 Sep, 2019" }, { "code": null, "e": 26270, "s": 26243, "text": "Knowledge of PHP (Laravel)" }, { "code": null, "e": 26292, "s": 26270, "text": "A Heroku user account" }, { "code": null, "e": 2633...
Introduction to Atomic CSS with Examples - GeeksforGeeks
01 Jul, 2020 Atomic CSS aims to solve some of the traditional CSS issues using classes which are single-purpose styling units. Atomic CSS uses immutable classes that have complete responsibility of applying a unit style to the selected component of the UI. In short, Atomic CSS is One Rule for One Styling. It tries to m...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n01 Jul, 2020" }, { "code": null, "e": 26984, "s": 26621, "text": "Atomic CSS aims to solve some of the traditional CSS issues using classes which are single-purpose styling units. Atomic CSS uses immutable classes that have compl...
How to create a vector in Python using NumPy - GeeksforGeeks
28 Oct, 2021 NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundamental package for scientific computing with Python. Numpy is basically used for creating array of n dimensions. Vector are built from c...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n28 Oct, 2021" }, { "code": null, "e": 25845, "s": 25561, "text": "NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is t...
3 Ways to Visualize Loop Progress in Python | by Pranjal Saxena | Medium | Towards Data Science
Loops, in the programming language, are used to iterate over a set of objects. While iterating, we can take different actions on each object based on various conditions to make our task done. Sometimes, when the list’s size is considerably large, or the objects in the list have high dimensions, it took much time to pro...
[ { "code": null, "e": 363, "s": 171, "text": "Loops, in the programming language, are used to iterate over a set of objects. While iterating, we can take different actions on each object based on various conditions to make our task done." }, { "code": null, "e": 614, "s": 363, "te...
6 Types of “Feature Importance” Any Data Scientist Should Know | by Samuele Mazzanti | Towards Data Science
Feature importance is a fundamental concept for Machine Learning practitioners. Due to its simplicity and intuitiveness, this indicator is not only constantly monitored by data scientists, but often communicated to the non-technical stakeholders of a predictive model. But, despite being intuitive, the idea of “feature ...
[ { "code": null, "e": 252, "s": 172, "text": "Feature importance is a fundamental concept for Machine Learning practitioners." }, { "code": null, "e": 441, "s": 252, "text": "Due to its simplicity and intuitiveness, this indicator is not only constantly monitored by data scientist...
Java Program to Create a Package to Access the Member of External Class and Same Package - GeeksforGeeks
18 Aug, 2021 As the name suggests a package in java that contains all the same kinds of classes, Abstract classes, interfaces, etc that have the same functionality. A Single package can contain many classes, Abstract classes e.g. java.util package etc. There are two types of packages: Built-in-package: These are the pa...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n18 Aug, 2021" }, { "code": null, "e": 24108, "s": 23868, "text": "As the name suggests a package in java that contains all the same kinds of classes, Abstract classes, interfaces, etc that have the same functionality. A Single pa...
MySQL | RENAME USER - GeeksforGeeks
03 Mar, 2018 The RENAME USER statement can be used in MySQL if a MySQL administrator wants to change the username or the host of an existing MySQL user account without altering the user account’s privileges. Syntax : RENAME USER 'username'@'host' TO 'new_username'@'host'; Parameters Used: Username: It is the username ...
[ { "code": null, "e": 23701, "s": 23673, "text": "\n03 Mar, 2018" }, { "code": null, "e": 23896, "s": 23701, "text": "The RENAME USER statement can be used in MySQL if a MySQL administrator wants to change the username or the host of an existing MySQL user account without altering...
How can to get list of values from dictionary in Python? - GeeksforGeeks
01 Dec, 2021 In this article, we will discuss how to get a list of values from a dictionary using Python. We can use dictionary.values() along with list() function to get the list. Here, values() method is an dictionary method used to access the values from key:value pairs and we are then converting the values to list ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n01 Dec, 2021" }, { "code": null, "e": 23994, "s": 23901, "text": "In this article, we will discuss how to get a list of values from a dictionary using Python." }, { "code": null, "e": 24233, "s": 23994, "text"...
Java - Exceptions
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application terminates abnormally, which is not recommended, therefore, these exceptions are to be handled. An exception can occur for many...
[ { "code": null, "e": 2666, "s": 2377, "text": "An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application terminates abnormally, which is not recommended, therefore, ...
Introduction to Natural Language Processing for Text | by Ventsislav Yordanov | Towards Data Science
After reading this blog post, you’ll know some basic techniques to extract features from some text, so you can use these features as input for machine learning models. NLP is a subfield of computer science and artificial intelligence concerned with interactions between computers and human (natural) languages. It is use...
[ { "code": null, "e": 340, "s": 172, "text": "After reading this blog post, you’ll know some basic techniques to extract features from some text, so you can use these features as input for machine learning models." }, { "code": null, "e": 551, "s": 340, "text": "NLP is a subfield ...
GATE | GATE CS 2012 | Question 23 - GeeksforGeeks
06 Oct, 2021 Given the language L = {ab, aa, baa}, which of the following strings are in L*? 1) abaabaaabaa 2) aaaabaaaa 3) baaaaabaaaab 4) baaaaabaa (A) 1, 2 and 3(B) 2, 3 and 4(C) 1, 2 and 4(D) 1, 3 and 4Answer: (C)Explanation: See question 2 of https://www.geeksforgeeks.org/automata-theory-set-2/ YouTubeGeeksforGee...
[ { "code": null, "e": 25391, "s": 25363, "text": "\n06 Oct, 2021" }, { "code": null, "e": 25471, "s": 25391, "text": "Given the language L = {ab, aa, baa}, which of the following strings are in L*?" }, { "code": null, "e": 25529, "s": 25471, "text": "1) abaabaa...
Enumeration nextElement() Method in Java with Examples - GeeksforGeeks
27 Jun, 2019 An object that implements the Enumeration interface generates a series of elements, one at a time. The nextElement() method of Enumeration used to return the next element of this enumeration if this enumeration object has at least one more element to provide.This method is used to get elements from the enu...
[ { "code": null, "e": 24034, "s": 24006, "text": "\n27 Jun, 2019" }, { "code": null, "e": 24351, "s": 24034, "text": "An object that implements the Enumeration interface generates a series of elements, one at a time. The nextElement() method of Enumeration used to return the next ...
How to automatically redirect a Web Page to another URL?
Page redirection is a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection. To redirect from an HTML page, use the META Tag. With this, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The...
[ { "code": null, "e": 1224, "s": 1062, "text": "Page redirection is a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection." }, { "code": null, "e": 1467, "s": 1224, "text": "To redirect from an ...
SQL - LIKE Clause
The SQL LIKE clause is used to compare a value to similar values using wildcard operators. There are two wildcards used in conjunction with the LIKE operator. The percent sign (%) The underscore (_) The percent sign represents zero, one or multiple characters. The underscore represents a single number or character. The...
[ { "code": null, "e": 2612, "s": 2453, "text": "The SQL LIKE clause is used to compare a value to similar values using wildcard operators. There are two wildcards used in conjunction with the LIKE operator." }, { "code": null, "e": 2633, "s": 2612, "text": "The percent sign (%)" ...
Find common elements in three sorted arrays in C++
Suppose we have three arrays with some elements. We have to find all the common elements that are present in these three arrays. Suppose these elements are [10, 12, 15, 20, 25], [10, 12, 13, 15] and [10, 12, 15, 24, 25, 26], then the common elements in these three arrays are 10, 12 and 15. Suppose current element trave...
[ { "code": null, "e": 1353, "s": 1062, "text": "Suppose we have three arrays with some elements. We have to find all the common elements that are present in these three arrays. Suppose these elements are [10, 12, 15, 20, 25], [10, 12, 13, 15] and [10, 12, 15, 24, 25, 26], then the common elements in ...
Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1<=a<=b<=c<= n in C++
We are given an integer n. The goal is to find triplets ( set of 3 numbers ) that satisfy the conditions − a2+b2=c2 a2+b2=c2 1<=a<=b<=c<=n 1<=a<=b<=c<=n We will do this by running two loops for values of 1<=a<=n and 1<=b<=n. Calculate c accordingly (c=sqrt(a2+b2 )) and increment count if both conditions 1 and 2 are met...
[ { "code": null, "e": 1169, "s": 1062, "text": "We are given an integer n. The goal is to find triplets ( set of 3 numbers ) that satisfy the conditions −" }, { "code": null, "e": 1178, "s": 1169, "text": "a2+b2=c2" }, { "code": null, "e": 1187, "s": 1178, "tex...
GATE | GATE-CS-2015 (Set 2) | Question 61 - GeeksforGeeks
01 Oct, 2021 Which of the following languages is/are regular? L1: {wxwR ⎪ w, x ∈ {a, b}* and ⎪w⎪, ⎪x⎪ >0} wR is the reverse of string w L2: {anbm ⎪m ≠ n and m, n≥0 L3: {apbqcr ⎪ p, q, r ≥ 0} (A) L1 and L3 only(B) L2 only(C) L2 and L3 only(D) L3 onlyAnswer: (A)Explanation: L3 is simple to guess, it is regular. Below ...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n01 Oct, 2021" }, { "code": null, "e": 25986, "s": 25937, "text": "Which of the following languages is/are regular?" }, { "code": null, "e": 26118, "s": 25986, "text": "L1: {wxwR ⎪ w, x ∈ {a, b}* and ⎪w⎪, ⎪x⎪ >...
9's complement of a decimal number - GeeksforGeeks
14 Apr, 2021 9’s complement of a decimal number is the subtraction of it’s each digits from 9. Like 1’s complement, 9’s complement is used to subtract a number using addition.For example, let us compute value of “718 – 123” using 9’s complement and addition. We first find 9’s complement of 718 which is 281. Now we add ...
[ { "code": null, "e": 24872, "s": 24844, "text": "\n14 Apr, 2021" }, { "code": null, "e": 25691, "s": 24872, "text": "9’s complement of a decimal number is the subtraction of it’s each digits from 9. Like 1’s complement, 9’s complement is used to subtract a number using addition.F...
Program to duplicate Vowels in String - GeeksforGeeks
09 Jun, 2021 Given a string “str”, the task is to duplicate vowels in this string. Examples: Input: str = "geeks" Output: geeeeks Input: str = "java" Output: jaavaa Approach: Iterate the string using a loop. Check if the character is a vowel and duplicate it. Return then print the resultant string. Below is the imple...
[ { "code": null, "e": 25439, "s": 25411, "text": "\n09 Jun, 2021" }, { "code": null, "e": 25509, "s": 25439, "text": "Given a string “str”, the task is to duplicate vowels in this string." }, { "code": null, "e": 25520, "s": 25509, "text": "Examples: " }, {...