title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
What is difference between internal and private modifiers in C#? | Internal access specifier allows a class to expose its member variables and member functions to other functions and objects in the current assembly.
Any member with internal access specifier can be accessed from any class or method defined within the application in which the member is defined.
The following is an examp... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "Internal access specifier allows a class to expose its member variables and member functions to other functions and objects in the current assembly."
},
{
"code": null,
"e": 1357,
"s": 1211,
"text": "Any member with internal access s... |
Convert JSON array into normal json in JavaScript | Suppose, we have a JSON array with key/value pair objects like this −
const arr = [{
"key": "name",
"value": "john"
},
{
"key": "number",
"value": "1234"
},
{
"key": "price",
"value": [{
"item": [{
"item": [{
"key": "quantity",
"value": "20"
},
... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "Suppose, we have a JSON array with key/value pair objects like this −"
},
{
"code": null,
"e": 1470,
"s": 1132,
"text": "const arr = [{\n \"key\": \"name\",\n \"value\": \"john\"\n},\n{\n \"key\": \"number\",\n \"value\": \"1... |
Simulated Annealing and the Eight Queen Problem | by Sebastián Gerard Aguilar Kleimann | Towards Data Science | The Simulated Annealing (SA) algorithm is one of many random optimization algorithms. Unlike algorithms like the Hill Climbing algorithm where the intent is to only improve the optimization, SA allows for more exploration. The idea is that with this exploration it’s more likely to reach a global optima rather than a lo... | [
{
"code": null,
"e": 608,
"s": 172,
"text": "The Simulated Annealing (SA) algorithm is one of many random optimization algorithms. Unlike algorithms like the Hill Climbing algorithm where the intent is to only improve the optimization, SA allows for more exploration. The idea is that with this explo... |
Material Design Lite - Badges | An MDL badge component is an onscreen notification which can be a number or an icon. It is generally used to emphasize the number of items.
MDL provides a range of CSS classes to apply various predefined visual and behavioral
enhancements to the badges. The following table lists down the available classes and their
eff... | [
{
"code": null,
"e": 2026,
"s": 1886,
"text": "An MDL badge component is an onscreen notification which can be a number or an icon. It is generally used to emphasize the number of items."
},
{
"code": null,
"e": 2212,
"s": 2026,
"text": "MDL provides a range of CSS classes to app... |
fputs() function in PHP | Write to an open file using the fpus() function in PHP. It is an alias of fwrite(). The fputs() function returns the number of bytes written on success. It returns FALSE on failure.
The fputs() function halts at the end of the file or when it reaches the specified length whichever comes first.
fputs(file_pointer, strin... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "Write to an open file using the fpus() function in PHP. It is an alias of fwrite(). The fputs() function returns the number of bytes written on success. It returns FALSE on failure."
},
{
"code": null,
"e": 1357,
"s": 1244,
"text": "... |
Fine-grained Sentiment Analysis in Python (Part 1) | by Prashanth Rao | Towards Data Science | “Learning to choose is hard. Learning to choose well is harder. And learning to choose well in a world of unlimited possibilities is harder still, perhaps too hard.” — Barry Schwartz
When starting a new NLP sentiment analysis project, it can be quite an overwhelming task to narrow down on a select methodology for a giv... | [
{
"code": null,
"e": 354,
"s": 171,
"text": "“Learning to choose is hard. Learning to choose well is harder. And learning to choose well in a world of unlimited possibilities is harder still, perhaps too hard.” — Barry Schwartz"
},
{
"code": null,
"e": 883,
"s": 354,
"text": "Whe... |
What's the difference between meta name and meta property? - GeeksforGeeks | 09 Jun, 2020
Meta Data:The metadata means information about data. So basically Meta tag provides you the information on the HTML document. So basically this tag is an empty tag which means it only has an opening tag and no closing tag. The number of meta tags in an HTML document depends upon the HTML document and it do... | [
{
"code": null,
"e": 24651,
"s": 24623,
"text": "\n09 Jun, 2020"
},
{
"code": null,
"e": 25160,
"s": 24651,
"text": "Meta Data:The metadata means information about data. So basically Meta tag provides you the information on the HTML document. So basically this tag is an empty tag... |
Maximum rational number (or fraction) from an array in C++ | In this problem, we are given a 2-D array that contains rational numbers
(one in each row). Our task is to create a program to calculate the maximum
rational number (or fraction) from an array in C++.
Problem Description − The 2-D array is of the form [n][2]. Each row has two integer values that denote the value of a a... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "In this problem, we are given a 2-D array that contains rational numbers\n(one in each row). Our task is to create a program to calculate the maximum\nrational number (or fraction) from an array in C++."
},
{
"code": null,
"e": 1499,
"s"... |
The Art of Hyperparameter Tuning in Deep Neural Nets by Example | by Rishit Dagli | Towards Data Science | Hello developers 👋, If you have worked on building Deep Neural Networks earlier you might know that building neural nets can involve setting a lot of different hyperparameters. In this article, I will share with you some tips and guidelines you can use to better organize your hyperparameter tuning process which should... | [
{
"code": null,
"e": 585,
"s": 172,
"text": "Hello developers 👋, If you have worked on building Deep Neural Networks earlier you might know that building neural nets can involve setting a lot of different hyperparameters. In this article, I will share with you some tips and guidelines you can use t... |
string.gsub() function in Lua programming | There are scenarios when we want to change a pattern that we found in a string with our pattern, and in Lua for that we have a famous library function, named the string.gsub() function.
The string.gsub() function has three arguments, the first is the subject string, in which we are trying to replace a substring to anot... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "There are scenarios when we want to change a pattern that we found in a string with our pattern, and in Lua for that we have a famous library function, named the string.gsub() function."
},
{
"code": null,
"e": 1557,
"s": 1248,
"text... |
Messaging Via Azure Service bus | SendMessage and ScheduleMessage - GeeksforGeeks | 27 Feb, 2020
In this section, we are going to discuss in brief about the data transfer methods to transfer data across Azure topics via service bus pooling. We can either send a normal message or a schedule based message. We will walk through each of these two basic type of messaging.
Azure Service Bus: Microsoft Azure... | [
{
"code": null,
"e": 24733,
"s": 24705,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 25006,
"s": 24733,
"text": "In this section, we are going to discuss in brief about the data transfer methods to transfer data across Azure topics via service bus pooling. We can either send ... |
Alphanumeric Order by in MySQL for strings mixed with numbers | Let’s say you have a VARCHAR column in a table with values are strings and the numbers are on the right side. For example −
John1023
Carol9871
David9098
Now, consider you want to order by on the basis of these right-side numbers in the entire column. For this, use ORDER BY RIGHT.
Let us first create a table −
mysql> cr... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "Let’s say you have a VARCHAR column in a table with values are strings and the numbers are on the right side. For example −"
},
{
"code": null,
"e": 1215,
"s": 1186,
"text": "John1023\nCarol9871\nDavid9098"
},
{
"code": null,... |
AngularJS | angular.uppercase() Function - GeeksforGeeks | 16 Apr, 2019
The angular.uppercase() Function in AngularJS is used to convert the string into uppercase. It can be used when user wants to show the text in uppercase instead of lowercase.Syntax:
angular.uppercase(string)
Example: In this example the string is converted into uppercase.
<html ng-app="app"><head><script s... | [
{
"code": null,
"e": 27880,
"s": 27852,
"text": "\n16 Apr, 2019"
},
{
"code": null,
"e": 28062,
"s": 27880,
"text": "The angular.uppercase() Function in AngularJS is used to convert the string into uppercase. It can be used when user wants to show the text in uppercase instead of... |
CSS3 - Web Fonts | Web fonts are used to allows the fonts in CSS, which are not installed on local system.
TrueType Fonts (TTF)
TrueType is an outline font standard developed by Apple and Microsoft in the late 1980s, It became most common fonts for both windows and MAC operating systems.
OpenType Fonts (OTF)
OpenType is a format for scal... | [
{
"code": null,
"e": 2714,
"s": 2626,
"text": "Web fonts are used to allows the fonts in CSS, which are not installed on local system."
},
{
"code": null,
"e": 2735,
"s": 2714,
"text": "TrueType Fonts (TTF)"
},
{
"code": null,
"e": 2896,
"s": 2735,
"text": "Tr... |
Program for array rotation - GeeksforGeeks | 09 Nov, 2021
Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements.
Rotation of the above array by 2 will make array
METHOD 1 (Using temp array)
Input arr[] = [1, 2, 3, 4, 5, 6, 7], d = 2, n =7
1) Store the first d elements in a temp array
temp[] = [1, 2]
2) Shift rest of the arr[]
... | [
{
"code": null,
"e": 37367,
"s": 37339,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 37449,
"s": 37367,
"text": "Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements. "
},
{
"code": null,
"e": 37499,
"s": 37449,
"text": "Rotation... |
Dress Segmentation with Autoencoder in Keras | by Marco Cerliani | Towards Data Science | The fashion industry is a very profitable field for Artificial Intelligence. There are a lot of areas where Data Scientists can develop interesting use cases and provide benefits. I have already demonstrated my interest in this sector here, where I developed a solution for recommendation and tagging dresses from Zaland... | [
{
"code": null,
"e": 507,
"s": 171,
"text": "The fashion industry is a very profitable field for Artificial Intelligence. There are a lot of areas where Data Scientists can develop interesting use cases and provide benefits. I have already demonstrated my interest in this sector here, where I develo... |
Cumulative percentage of a column in Pandas - Python - GeeksforGeeks | 15 Mar, 2021
Cumulative Percentage is calculated by the mathematical formula of dividing the cumulative sum of the column by the mathematical sum of all the values and then multiplying the result by 100. This is also applicable in Pandas Data frames.Here, the pre-defined cumsum() and sum() functions are used to compute... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 24666,
"s": 24292,
"text": "Cumulative Percentage is calculated by the mathematical formula of dividing the cumulative sum of the column by the mathematical sum of all the values and then mul... |
Principal Component Analysis with NumPy | by Wendy Navarrete | Towards Data Science | It is a technique commonly used for linear dimensionality reduction. The idea behind PCA is to find lower dimensional representations of data that retain as much information as possible.
Let’s start following next steps.
%matplotlib inlineimport pandas as pdimport matplotlib.pyplot as pltimport numpy as npimport seabor... | [
{
"code": null,
"e": 358,
"s": 171,
"text": "It is a technique commonly used for linear dimensionality reduction. The idea behind PCA is to find lower dimensional representations of data that retain as much information as possible."
},
{
"code": null,
"e": 392,
"s": 358,
"text": ... |
ArduinoJSON: Serialize and Deserialize | The ArduinoJSON library, as the name suggests, helps you work with JSON objects on Arduino. In order to install it, go to the Library Manager, and search for ArduinoJSON. Install the library by Benoit Blanchon.
This is one of the very heavily documented libraries. In fact, it has its own website: https://arduinojson.or... | [
{
"code": null,
"e": 1273,
"s": 1062,
"text": "The ArduinoJSON library, as the name suggests, helps you work with JSON objects on Arduino. In order to install it, go to the Library Manager, and search for ArduinoJSON. Install the library by Benoit Blanchon."
},
{
"code": null,
"e": 1445,... |
How to execute multiple select queries in MySQL ? | To execute multiple select queries in MySQL, use the concept of DELIMITER. Let us first create a table −
mysql> create table DemoTable1
(
Title text
)ENGINE=MyISAM;
Query OK, 0 rows affected (0.30 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1 values('The database MySQL is... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "To execute multiple select queries in MySQL, use the concept of DELIMITER. Let us first create a table −"
},
{
"code": null,
"e": 1267,
"s": 1167,
"text": "mysql> create table DemoTable1\n(\n Title text\n)ENGINE=MyISAM;\nQuery OK, ... |
JavaScript | Object Methods - GeeksforGeeks | 04 Aug, 2021
Object Methods in JavaScript can be accessed by using functions. Functions in JavaScript are stored as property values. The objects can also be called without using bracket ().
In a method, ‘this’ refers to the owner object.
Additional information can also be added along with the object method.
Syntax: ... | [
{
"code": null,
"e": 24069,
"s": 24041,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 24248,
"s": 24069,
"text": "Object Methods in JavaScript can be accessed by using functions. Functions in JavaScript are stored as property values. The objects can also be called without usin... |
Programmatically opening URLs in a web browser in Python (tkinter) | Python has a rich library of extensions and modules which are used for multiple purposes. To work with web-based content, Python provides a webbrowser module. The module creates an environment which enables the user to display web-based content in the application. To work with webbrowser, you have to make sure that it ... | [
{
"code": null,
"e": 1418,
"s": 1062,
"text": "Python has a rich library of extensions and modules which are used for multiple purposes. To work with web-based content, Python provides a webbrowser module. The module creates an environment which enables the user to display web-based content in the a... |
Correlation Is Simple With Seaborn And Pandas | by Jeremiah Lutes | Towards Data Science | Datasets can tell many stories. A great place to start, to see these stories unfold, is checking for correlations between the variables. One of the first tasks I perform when exploring a dataset to see which variables have correlations. This gives me a better understanding of the data I’m working with. It’s also a grea... | [
{
"code": null,
"e": 625,
"s": 171,
"text": "Datasets can tell many stories. A great place to start, to see these stories unfold, is checking for correlations between the variables. One of the first tasks I perform when exploring a dataset to see which variables have correlations. This gives me a be... |
Ant - Executing Java code | You can use Ant to execute the Java code. In the following example, the java class takes in an argument (administrator's email address) and send out an email.
public class NotifyAdministrator {
public static void main(String[] args) {
String email = args[0];
notifyAdministratorviaEmail(email);
Syst... | [
{
"code": null,
"e": 2256,
"s": 2097,
"text": "You can use Ant to execute the Java code. In the following example, the java class takes in an argument (administrator's email address) and send out an email."
},
{
"code": null,
"e": 2570,
"s": 2256,
"text": "public class NotifyAdmi... |
C Program for Matrix Chain Multiplication | In this problem, we are given a sequence( array) of metrics. our task is to create a C program for Matrix chain multiplication. We need to find a way to multiply these matrixes so that, the minimum number of multiplications is required.
The array of matrices will contain n elements, which define the dimensions of the m... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "In this problem, we are given a sequence( array) of metrics. our task is to create a C program for Matrix chain multiplication. We need to find a way to multiply these matrixes so that, the minimum number of multiplications is required."
},
{
"c... |
SQLite - ALIAS Syntax | You can rename a table or a column temporarily by giving another name, which is known as ALIAS. The use of table aliases means to rename a table in a particular SQLite statement. Renaming is a temporary change and the actual table name does not change in the database.
The column aliases are used to rename a table's col... | [
{
"code": null,
"e": 2907,
"s": 2638,
"text": "You can rename a table or a column temporarily by giving another name, which is known as ALIAS. The use of table aliases means to rename a table in a particular SQLite statement. Renaming is a temporary change and the actual table name does not change i... |
Advanced Topics in Deep Convolutional Neural Networks | by Matthew Stewart, PhD Researcher | Towards Data Science | “If We Want Machines to Think, We Need to Teach Them to See” — Fei-Fei Li
Throughout this article, I will discuss some of the more complex aspects of convolutional neural networks and how they related to specific tasks such as object detection and facial recognition.
The topics that will be discussed in this tutorial a... | [
{
"code": null,
"e": 245,
"s": 171,
"text": "“If We Want Machines to Think, We Need to Teach Them to See” — Fei-Fei Li"
},
{
"code": null,
"e": 439,
"s": 245,
"text": "Throughout this article, I will discuss some of the more complex aspects of convolutional neural networks and ho... |
How to implement Alarm Manager in android? | This example demonstrates how do I implement alarm manager 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"?>
<RelativeLayout
... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "This example demonstrates how do I implement alarm manager in android."
},
{
"code": null,
"e": 1262,
"s": 1133,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to crea... |
Display HashMap elements in Java | Create a HashMap −
HashMap hm = new HashMap();
Add elements to the HashMap that we will be displaying afterward −
hm.put("Maths", new Integer(98));
hm.put("Science", new Integer(90));
hm.put("English", new Integer(97));
hm.put("Physics", new Integer(91));
Now, to display the HashMap elements, use Iterator. The followin... | [
{
"code": null,
"e": 1081,
"s": 1062,
"text": "Create a HashMap −"
},
{
"code": null,
"e": 1109,
"s": 1081,
"text": "HashMap hm = new HashMap();"
},
{
"code": null,
"e": 1176,
"s": 1109,
"text": "Add elements to the HashMap that we will be displaying afterward... |
PHP 7 - Apache Configuration | Apache uses httpd.conf file for global settings, and the .htaccess file for per-directory access settings. Older versions of Apache split up httpd.conf into three files (access.conf, httpd.conf, and srm.conf), and some users still prefer this arrangement.
Apache server has a very powerful, but slightly complex, configu... | [
{
"code": null,
"e": 2333,
"s": 2077,
"text": "Apache uses httpd.conf file for global settings, and the .htaccess file for per-directory access settings. Older versions of Apache split up httpd.conf into three files (access.conf, httpd.conf, and srm.conf), and some users still prefer this arrangemen... |
Fortran - Constants | The constants refer to the fixed values that the program cannot alter during its execution. These fixed values are also called literals.
Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, a complex constant, or a string literal. There are only two logica... | [
{
"code": null,
"e": 2283,
"s": 2146,
"text": "The constants refer to the fixed values that the program cannot alter during its execution. These fixed values are also called literals."
},
{
"code": null,
"e": 2499,
"s": 2283,
"text": "Constants can be of any of the basic data typ... |
Create a navbar scrolling with the page in Bootstrap | To create a navbar that scrolls with the page, add the .navbar-static-top class. This class does not require adding the padding to the <body>.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "To create a navbar that scrolls with the page, add the .navbar-static-top class. This class does not require adding the padding to the <body>."
},
{
"code": null,
"e": 1215,
"s": 1205,
"text": "Live Demo"
},
{
"code": null,
... |
Batch Script - Files Inputs | When a batch file is run, it gives you the option to pass in command line parameters which can then be read within the program for further processing. The batch files parameters can be recalled from within the program using the % operator along with the numeric position of the parameter. Following is how the command li... | [
{
"code": null,
"e": 2516,
"s": 2169,
"text": "When a batch file is run, it gives you the option to pass in command line parameters which can then be read within the program for further processing. The batch files parameters can be recalled from within the program using the % operator along with the... |
JSF - Using DataModel in a DataTable | In this section, we'll showcase the use of datamodel in a dataTable.
Let us create a test JSF application to test the above functionality.
package com.tutorialspoint.test;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.ArrayDataModel;
... | [
{
"code": null,
"e": 2021,
"s": 1952,
"text": "In this section, we'll showcase the use of datamodel in a dataTable."
},
{
"code": null,
"e": 2091,
"s": 2021,
"text": "Let us create a test JSF application to test the above functionality."
},
{
"code": null,
"e": 3000,
... |
HTML | DOM Select multiple Property - GeeksforGeeks | 14 Dec, 2021
The Select multiple property in HTML DOM is used to set or return whether more than one option can be selected from a drop-down list or not. It returns true if multiple selection in the drop-down list is enabled, otherwise returns false.Syntax:
It returns the select multiple property.
selectObject.mult... | [
{
"code": null,
"e": 25037,
"s": 25009,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 25284,
"s": 25037,
"text": "The Select multiple property in HTML DOM is used to set or return whether more than one option can be selected from a drop-down list or not. It returns true if mul... |
C++ Program to Check Armstrong Number | An Armstrong Number is a number where the sum of the digits raised to the power of total number of digits is equal to the number. Some examples of Armstrong numbers are as follows.
3 = 3^1
153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153
371 = 3^3 + 7^3 + 1^3 = 27 + 343 + 1 = 371
407 = 4^3 + 0^3 + 7^3 = 64 +0 + 343 = 407
A p... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "An Armstrong Number is a number where the sum of the digits raised to the power of total number of digits is equal to the number. Some examples of Armstrong numbers are as follows."
},
{
"code": null,
"e": 1379,
"s": 1243,
"text": "3... |
JSP - File Uploading | In this chapter, we will discuss File Uploading in JSP. A JSP can be used with an HTML form tag to allow users to upload files to the server. An uploaded file can be a text file or a binary or an image file or just any document.
Let us now understand how to create a file upload form. The following HTML code creates an ... | [
{
"code": null,
"e": 2468,
"s": 2239,
"text": "In this chapter, we will discuss File Uploading in JSP. A JSP can be used with an HTML form tag to allow users to upload files to the server. An uploaded file can be a text file or a binary or an image file or just any document."
},
{
"code": nu... |
VAF - Fast and Advance Fuzzer Tool in Kali Linux - GeeksforGeeks | 07 Feb, 2022
In this article, we are going to see the VAF tools, which is used to automated software testing technique that involves providing invalid, unexpected, or random data as inputs to a computer program and detect the bug.
URL Fuzzing is the art of finding hidden files and directories on the target domain serve... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 24544,
"s": 24326,
"text": "In this article, we are going to see the VAF tools, which is used to automated software testing technique that involves providing invalid, unexpected, or random da... |
Why is Linear Algebra Taught So Badly? | by Callum Ballard | Towards Data Science | Here’s a quick maths question for you. Raise your hand if you can multiply these two matrices together:
Congratulations if you said:
Now keep your hand up if you know why. And by ‘why’, I don’t mean because:
Whilst mathematically true, this formula is more descriptive of ‘how’ than it is of ‘why’. In and of itself, thi... | [
{
"code": null,
"e": 275,
"s": 171,
"text": "Here’s a quick maths question for you. Raise your hand if you can multiply these two matrices together:"
},
{
"code": null,
"e": 304,
"s": 275,
"text": "Congratulations if you said:"
},
{
"code": null,
"e": 379,
"s": 30... |
MATLAB - Trapezoidal numerical integration without using trapz - GeeksforGeeks | 04 Jul, 2021
Trapezoidal rule is utilized to discover the approximation of a definite integral. The main idea in the Trapezoidal rule is to accept the region under the graph of the given function to be a trapezoid rather than a rectangle shape and calculate its region.
The formula for numerical integration using trapez... | [
{
"code": null,
"e": 25761,
"s": 25733,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 26018,
"s": 25761,
"text": "Trapezoidal rule is utilized to discover the approximation of a definite integral. The main idea in the Trapezoidal rule is to accept the region under the graph of... |
PHP | Unset Session Variable - GeeksforGeeks | 20 Jul, 2020
Whenever data are stored using cookies, there is a possibility of a hacker to insert some harmful data in the user’s computer to harm any application. So its always advisable to use PHP sessions to store information on the server than on a computer. Whenever data is needed across many pages of a website or... | [
{
"code": null,
"e": 26693,
"s": 26665,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 27035,
"s": 26693,
"text": "Whenever data are stored using cookies, there is a possibility of a hacker to insert some harmful data in the user’s computer to harm any application. So its alway... |
Python - Install Paramiko on Windows and Linux - GeeksforGeeks | 28 Jan, 2022
The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access. As a client, it’s authenticating using a user credential or private key, and checking the server’s host key.
Paramiko is a Python library tha... | [
{
"code": null,
"e": 25419,
"s": 25391,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 25694,
"s": 25419,
"text": "The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access... |
Minimum number of flips with rotation to make binary string alternating - GeeksforGeeks | 30 Nov, 2021
Given a binary string S of 0s and 1s. The task is to make the given string a sequence of alternate characters by using the below operations:
Remove some prefix from the start and append it to the end.
Flip some or every bit in the given string.
Print the minimum number of bits to be flipped to make the giv... | [
{
"code": null,
"e": 26653,
"s": 26625,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 26794,
"s": 26653,
"text": "Given a binary string S of 0s and 1s. The task is to make the given string a sequence of alternate characters by using the below operations:"
},
{
"code": ... |
Flutter - Fetching Data From the Internet - GeeksforGeeks | 14 Aug, 2021
In today’s world, most applications heavily rely on fetching information from the servers through the internet. In Flutter, such services are provided by the http package. In this article we will explore the same.
To fetch data from the internet follow the below steps:
Import the http packageMake a network... | [
{
"code": null,
"e": 27159,
"s": 27131,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 27373,
"s": 27159,
"text": "In today’s world, most applications heavily rely on fetching information from the servers through the internet. In Flutter, such services are provided by the http ... |
Automata Theory | Set 5 - GeeksforGeeks | 27 Mar, 2017
Following questions have been asked in GATE CS 2009 exam.
1) S –> aSa| bSb| a| b ;The language generated by the above grammar over the alphabet {a,b} is the set of(A) All palindromes.(B) All odd length palindromes.(C) Strings that begin and end with the same symbol(D) All even length palindromes.
Answer (B... | [
{
"code": null,
"e": 31081,
"s": 31053,
"text": "\n27 Mar, 2017"
},
{
"code": null,
"e": 31139,
"s": 31081,
"text": "Following questions have been asked in GATE CS 2009 exam."
},
{
"code": null,
"e": 31379,
"s": 31139,
"text": "1) S –> aSa| bSb| a| b ;The lang... |
How to Apply Conditional Formatting Based On VLookup in Excel? - GeeksforGeeks | 06 Jun, 2021
VLOOKUP is an Excel function to lookup data in a table organized vertically. VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches.
1. Using the Vlookup formula to compare values in 2 different tables and highlighting those values which is only present in table 1 using co... | [
{
"code": null,
"e": 26163,
"s": 26135,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 26330,
"s": 26163,
"text": "VLOOKUP is an Excel function to lookup data in a table organized vertically. VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial match... |
Difference between Pipes and Message Queues - GeeksforGeeks | 16 Mar, 2020
Pipes:Unix system uses pipes, to establish inter process communication. A pipe provides an unidirectional flow of data. A pipe is created using the pipe() function.
Syntax:
#include int pipe(int fd);
A pipe ()function returns two file descriptors, fd[O] and fd[1]. The fd[0] is open for reading from and f... | [
{
"code": null,
"e": 26103,
"s": 26075,
"text": "\n16 Mar, 2020"
},
{
"code": null,
"e": 26268,
"s": 26103,
"text": "Pipes:Unix system uses pipes, to establish inter process communication. A pipe provides an unidirectional flow of data. A pipe is created using the pipe() function... |
Cholesky Decomposition : Matrix Decomposition - GeeksforGeeks | 30 Jan, 2022
In linear algebra, a matrix decomposition or matrix factorization is a factorization of a matrix into a product of matrices. There are many different matrix decompositions. One of them is Cholesky Decomposition.
The Cholesky decomposition or Cholesky factorization is a decomposition of a Hermitian, positiv... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n30 Jan, 2022"
},
{
"code": null,
"e": 26175,
"s": 25963,
"text": "In linear algebra, a matrix decomposition or matrix factorization is a factorization of a matrix into a product of matrices. There are many different matrix decomp... |
How to make the cursor to hand when a user hovers over a list item using CSS? - GeeksforGeeks | 06 Dec, 2018
Use CSS property to create cursor to hand when user hovers over the list of items. First create list of items using HTML <ul> and <li> tag and then use CSS property :hover to cursor:grab; to make cursor to hand hover the list of items.
Syntax:
element:hover {
cursor:grab/pointer;
}
Example 1:
<!DOCTYPE... | [
{
"code": null,
"e": 25435,
"s": 25407,
"text": "\n06 Dec, 2018"
},
{
"code": null,
"e": 25671,
"s": 25435,
"text": "Use CSS property to create cursor to hand when user hovers over the list of items. First create list of items using HTML <ul> and <li> tag and then use CSS propert... |
Get the index of minimum value in DataFrame column - GeeksforGeeks | 18 Dec, 2018
Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns).
Let’s see how can we get the index of minimum value in DataFrame column.
Observe this dataset first. We’ll use ‘Weight’ and ‘Salary’ columns of this data in order to get ... | [
{
"code": null,
"e": 26373,
"s": 26345,
"text": "\n18 Dec, 2018"
},
{
"code": null,
"e": 26510,
"s": 26373,
"text": "Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns)."
},
{
"code": null... |
Evaluating Classification Models. A Guided Walkthrough Using Sci-Kit... | by Ishaan Dey | Towards Data Science | Authors: Ishaan Dey, Evan Heitman, & Jagerynn T. Verano
A doctor wants to know if his patient has a disease. A credit card company is interested in determining if a certain transaction is a fraud. A graduate school candidate is interested if whether or not it’s likely that she gets accepted into her program. Many appli... | [
{
"code": null,
"e": 228,
"s": 172,
"text": "Authors: Ishaan Dey, Evan Heitman, & Jagerynn T. Verano"
},
{
"code": null,
"e": 875,
"s": 228,
"text": "A doctor wants to know if his patient has a disease. A credit card company is interested in determining if a certain transaction i... |
How to implement an instance method reference using a class name in Java? | Method reference is a simplified form of the lambda expression. It can specify a class name or instance name followed by the method name. The "::" symbol can separate a method name from the name of an object or class.
An instance method reference refers to an instance method of any class. In the below example, we can i... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "Method reference is a simplified form of the lambda expression. It can specify a class name or instance name followed by the method name. The \"::\" symbol can separate a method name from the name of an object or class."
},
{
"code": null,
"... |
Evaluating Classifier Model Performance | by Andrew Hetherington | Towards Data Science | It’s 4am and you’re on your seventh coffee. You’ve trawled the forums to find the most sophisticated model you can. You’ve set up your preprocessing pipeline and you’ve picked your hyperparameters. Now, time to evaluate your model’s performance.
You’re shaking with excitement (or it could be the caffeine overdose). Thi... | [
{
"code": null,
"e": 417,
"s": 171,
"text": "It’s 4am and you’re on your seventh coffee. You’ve trawled the forums to find the most sophisticated model you can. You’ve set up your preprocessing pipeline and you’ve picked your hyperparameters. Now, time to evaluate your model’s performance."
},
{... |
Build a Movie Recommendation API using Scikit-Learn, Flask and Heroku | by Deepak Das | Towards Data Science | Recommendation systems are everywhere. Some of the best examples are YouTube, Netflix, Spotify. Netflix and YouTube rely heavily on their recommendation systems to retain users on their platform for a longer time. Spotify recommends a curated list of songs to the user according to their interests. There are many more e... | [
{
"code": null,
"e": 550,
"s": 172,
"text": "Recommendation systems are everywhere. Some of the best examples are YouTube, Netflix, Spotify. Netflix and YouTube rely heavily on their recommendation systems to retain users on their platform for a longer time. Spotify recommends a curated list of song... |
Retrieve data from a MongoDB collection? | To return a single document from a collection, use findOne() in MongoDB. Let us create a collection with documents −
> db.demo463.insertOne({"StudentName":"Chris
Brown","StudentAge":21,"StudentCountryName":"US"});{
"acknowledged" : true,
"insertedId" : ObjectId("5e7f7ec8cb66ccba22cc9dcf")
}
> db.demo463.insertOne... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "To return a single document from a collection, use findOne() in MongoDB. Let us create a collection with documents −"
},
{
"code": null,
"e": 1901,
"s": 1179,
"text": "> db.demo463.insertOne({\"StudentName\":\"Chris\nBrown\",\"Studen... |
Distribute Candies in C++ | Suppose we have an array with even length, here different numbers in this array will represent different kinds of candies. Now each number means one candy of the corresponding kind. we have to distribute candies equally in number to brother and sister. We have to find the maximum number of kinds of candies the sister c... | [
{
"code": null,
"e": 1396,
"s": 1062,
"text": "Suppose we have an array with even length, here different numbers in this array will represent different kinds of candies. Now each number means one candy of the corresponding kind. we have to distribute candies equally in number to brother and sister. ... |
Describe a NumPy Array in Python - GeeksforGeeks | 02 Sep, 2021
NumPy is a Python library used for numerical computing. It offers robust multidimensional arrays as a Python object along with a variety of mathematical functions. In this article, we will go through all the essential NumPy functions used in the descriptive analysis of an array. Let’s start by initializing... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 24633,
"s": 24292,
"text": "NumPy is a Python library used for numerical computing. It offers robust multidimensional arrays as a Python object along with a variety of mathematical functions.... |
Sort an array of strings lexicographically based on prefix | 31 Aug, 2021
Given an array of strings arr[] of size N, the task is to sort the array of strings in lexicographical order and if while sorting for any two string A and string B, if string A is prefix of string B then string B should come in the sorted order.
Examples:
Input: arr[] = {“sun”, “moon”, “mock”} Output: mock... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 298,
"s": 52,
"text": "Given an array of strings arr[] of size N, the task is to sort the array of strings in lexicographical order and if while sorting for any two string A and string B, if string... |
Python | Set 4 (Dictionary, Keywords in Python) | 27 May, 2022
In the previous two articles (Set 2 and Set 3), we discussed the basics of python. In this article, we will learn more about python and feel the power of python.
In python, the dictionary is similar to hash or maps in other languages. It consists of key-value pairs. The value can be accessed by a unique ke... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 216,
"s": 54,
"text": "In the previous two articles (Set 2 and Set 3), we discussed the basics of python. In this article, we will learn more about python and feel the power of python."
},
{
... |
How to set state with a dynamic key name in ReactJS ? | 27 Oct, 2021
React.js introduces the concept of state. The states are used to store data for specific components. These states can be updated accordingly using setState function. Updation of state leads to rerendering of UI. You can assign meaningful names to states. There can be a requirement to create a state with a ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Oct, 2021"
},
{
"code": null,
"e": 403,
"s": 52,
"text": "React.js introduces the concept of state. The states are used to store data for specific components. These states can be updated accordingly using setState function. Updation... |
PHP | date_diff() Function | 12 Feb, 2019
The date_diff() is an inbuilt function in PHP which is used to calculate the difference between two dates. This function returns a DateInterval object on the success and returns FALSE on failure.
Syntax:
date_diff($datetime1, $datetime2);
Parameters: The date_diff() function accepts two parameters as ment... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 224,
"s": 28,
"text": "The date_diff() is an inbuilt function in PHP which is used to calculate the difference between two dates. This function returns a DateInterval object on the success and retur... |
Path relativize() method in Java with Examples | 20 Jun, 2022
The relativize(Path other) method of java.nio.file.Path used to create a relative path between this path and a given path as a parameter. Relativization is the inverse of resolution. This method creates a relative path that when resolved against this path object, yields a path that helps us to locate the s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 912,
"s": 28,
"text": "The relativize(Path other) method of java.nio.file.Path used to create a relative path between this path and a given path as a parameter. Relativization is the inverse of reso... |
How to Implement YoutubePlayerView Library in Android? | 18 Feb, 2021
If you are looking to display YouTube videos inside your app without redirecting your user from your app to YouTube then this library is very helpful for you to use. With the help of this library, you can simply play videos from YouTube with the help of video id inside your app itself without redirecting y... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 538,
"s": 52,
"text": "If you are looking to display YouTube videos inside your app without redirecting your user from your app to YouTube then this library is very helpful for you to use. With the... |
Fading Text Animation Effect Using CSS3 | 18 Jan, 2021
The fading text animation effect is one of the most demanding effects on UI/UX designing. This effect can be achieved by using HTML5 and CSS3. In the fading text effect, whenever we load the window, the text will slowly start disappearing. We can implement this effect using the animation property in CSS3.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 335,
"s": 28,
"text": "The fading text animation effect is one of the most demanding effects on UI/UX designing. This effect can be achieved by using HTML5 and CSS3. In the fading text effect, whene... |
Optional empty() method in Java with examples | 30 Jul, 2019
The empty() method of java.util.Optional class in Java is used to get an empty instance of this Optional class. This instance do not contain any value.
Syntax:
public static <T>
Optional<T> empty()
Parameters: This method accepts nothing.
Return value: This method returns an empty instance of this Opti... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 180,
"s": 28,
"text": "The empty() method of java.util.Optional class in Java is used to get an empty instance of this Optional class. This instance do not contain any value."
},
{
"code": n... |
How to call some function before main() function in C++? | 03 Jun, 2020
Since it is known that main() method is the entry point of the program. Hence it is the first method that will get executed by the compiler. But this article explains how to call some function before the main() method gets executed in C++.
How to call some function before main() function?To call some funct... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 294,
"s": 54,
"text": "Since it is known that main() method is the entry point of the program. Hence it is the first method that will get executed by the compiler. But this article explains how to ... |
What is DVM(Dalvik Virtual Machine)? | 22 May, 2020
Dalvik Virtual Machine is a Register-Based virtual machine. It was designed and written by Dan Bornstein with contributions of other Google engineers as part of the Android mobile phone platform. The Dalvik virtual machine was named after Bornstein after the fishing village “Dalvík” in Eyjafjörður, Icela... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 May, 2020"
},
{
"code": null,
"e": 381,
"s": 28,
"text": "Dalvik Virtual Machine is a Register-Based virtual machine. It was designed and written by Dan Bornstein with contributions of other Google engineers as part of the Android mo... |
How to change the “checked” background color of toggle switch in Bootstrap 4? | 28 Oct, 2020
Bootstrap is a popular choice among web developers for building interactive webpage designs. Bootstrap has come along a long way with multiple releases and enriched content with every new release. Bootstrap has a wide community that has also contributed newer packages that have made working with Bootstrap ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Oct, 2020"
},
{
"code": null,
"e": 940,
"s": 28,
"text": "Bootstrap is a popular choice among web developers for building interactive webpage designs. Bootstrap has come along a long way with multiple releases and enriched content wi... |
How to move a text in HTML ? | 21 Jun, 2021
Some content of a website is like an alert or notification/information that has to be shown to each and every person who is using the website. It has to be placed at some point where everyone can see it.
In this article, we will learn how to create moving content on your website using HTML <marquee> tag. T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 232,
"s": 28,
"text": "Some content of a website is like an alert or notification/information that has to be shown to each and every person who is using the website. It has to be placed at some poin... |
Python program to find N largest elements from a list | 24 Apr, 2020
Given a list of integers, the task is to find N largest elements assuming size of list is greater than or equal o N.
Examples :
Input : [4, 5, 1, 2, 9]
N = 2
Output : [9, 5]
Input : [81, 52, 45, 10, 3, 2, 96]
N = 3
Output : [81, 96, 52]
A simple solution traverse the given list N times... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Apr, 2020"
},
{
"code": null,
"e": 169,
"s": 52,
"text": "Given a list of integers, the task is to find N largest elements assuming size of list is greater than or equal o N."
},
{
"code": null,
"e": 180,
"s": 169,
... |
Hello World program in Kotlin | 03 Jun, 2022
Hello, World! is the first basic program in any programming language. Let’s write the first program in Kotlin programming language.
The “Hello, World!” program in Kotlin: Open your favorite editor notepad or notepad++ and create a file named firstapp.kt with the following code.
// Kotlin Hello World Prog... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Jun, 2022"
},
{
"code": null,
"e": 186,
"s": 53,
"text": "Hello, World! is the first basic program in any programming language. Let’s write the first program in Kotlin programming language. "
},
{
"code": null,
"e": 334,... |
How to plot a normal distribution with Matplotlib in Python ? | 03 Jan, 2021
Prerequisites:
Matplotlib
Numpy
Scipy
Statistics
Normal Distribution is a probability function used in statistics that tells about how the data values are distributed. It is the most important probability distribution function used in statistics because of its advantages in real case scenarios. For example... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 43,
"s": 28,
"text": "Prerequisites:"
},
{
"code": null,
"e": 54,
"s": 43,
"text": "Matplotlib"
},
{
"code": null,
"e": 60,
"s": 54,
"text": "Numpy"
},
{
... |
Python OpenCV | cv2.ellipse() method | 28 Aug, 2019
OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.ellipse() method is used to draw a ellipse on any image.
Syntax: cv2.ellipse(image, centerCoordinates, axesLength, angle, startAngle, endAngle, color [, thickness[, lineType[, shift]]])
Parameters:image: It is the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2019"
},
{
"code": null,
"e": 179,
"s": 28,
"text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.ellipse() method is used to draw a ellipse on any image."
},
{
"code": nu... |
Recursive Tower of Hanoi using 4 pegs / rods | 18 Aug, 2020
Tower of Hanoi is a mathematical puzzle. Traditionally, It consists of three poles and a number of disks of different sizes which can slide onto any poles. The puzzle starts with the disk in a neat stack in ascending order of size in one pole, the smallest at the top thus making a conical shape. The object... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 527,
"s": 52,
"text": "Tower of Hanoi is a mathematical puzzle. Traditionally, It consists of three poles and a number of disks of different sizes which can slide onto any poles. The puzzle starts ... |
Shortest path with exactly k edges in a directed and weighted graph | 23 Jun, 2022
Given a directed and two vertices ‘u’ and ‘v’ in it, find shortest path from ‘u’ to ‘v’ with exactly k edges on the path.
The graph is given as adjacency matrix representation where value of graph[i][j] indicates the weight of an edge from vertex i to vertex j and a value INF(infinite) indicates no edge fr... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 174,
"s": 52,
"text": "Given a directed and two vertices ‘u’ and ‘v’ in it, find shortest path from ‘u’ to ‘v’ with exactly k edges on the path."
},
{
"code": null,
"e": 370,
"s": 1... |
Number of connected components of a graph ( using Disjoint Set Union ) | 28 Jun, 2022
Given an undirected graph G with vertices numbered in the range [0, N] and an array Edges[][] consisting of M edges, the task is to find the total number of connected components in the graph using Disjoint Set Union algorithm.
Examples:
Input: N = 4, Edges[][] = {{1, 0}, {2, 3}, {3, 4}}Output: 2Explanation... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 279,
"s": 52,
"text": "Given an undirected graph G with vertices numbered in the range [0, N] and an array Edges[][] consisting of M edges, the task is to find the total number of connected compone... |
Split a BST into two balanced BSTs based on a value K | 10 Feb, 2022
Given a Binary Search tree and an integer K, we have to split the tree into two Balanced Binary Search Tree, where BST-1 consists of all the nodes which are less than K and BST-2 consists of all the nodes which are greater than or equal to K.Note: Arrangement of the nodes may be anything but both BST shoul... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 384,
"s": 52,
"text": "Given a Binary Search tree and an integer K, we have to split the tree into two Balanced Binary Search Tree, where BST-1 consists of all the nodes which are less than K and B... |
How to delete an SMS from the inbox in Android programmatically? | This example demonstrates how do I delete an sms from inbox in Android programmatically.
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": 1151,
"s": 1062,
"text": "This example demonstrates how do I delete an sms from inbox in Android programmatically."
},
{
"code": null,
"e": 1280,
"s": 1151,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requir... |
Best practice to wait for a change with Selenium Webdriver? | The best practice to wait for a change in Selenium is to use the synchronization concept. The implicit and explicit waits can be used to handle a wait. The implicit is a global wait applied to every element on the page.
The default value of implicit wait is 0. Also it is a dynamic wait, meaning if there is an implicit ... | [
{
"code": null,
"e": 1282,
"s": 1062,
"text": "The best practice to wait for a change in Selenium is to use the synchronization concept. The implicit and explicit waits can be used to handle a wait. The implicit is a global wait applied to every element on the page."
},
{
"code": null,
"... |
C++ program to overload addition operator to add two matrices | Suppose we have two matrices mat1 and mat2. We shall have to add these two matrices and form the third matrix. We shall have to do this by overloading the addition operator.
So, if the input is like
then the output will be
To solve this, we will follow these steps −
Overload the addition operator, this will take anothe... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "Suppose we have two matrices mat1 and mat2. We shall have to add these two matrices and form the third matrix. We shall have to do this by overloading the addition operator."
},
{
"code": null,
"e": 1261,
"s": 1236,
"text": "So, if t... |
How does del operator work on list in Python? | The del operator removes a specific index from given list. For example, if you want to remove the element on index 1 from list a, you'd use:
a = [3, "Hello", 2, 1]
del a[1]
print(a)
This will give the output −
[3, 2, 1]
Note that del removes the elements in place, ie, it doesn't create a new list. | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "The del operator removes a specific index from given list. For example, if you want to remove the element on index 1 from list a, you'd use:"
},
{
"code": null,
"e": 1244,
"s": 1203,
"text": "a = [3, \"Hello\", 2, 1]\ndel a[1]\nprint... |
How to detect Scroll Up & Scroll down in Android ListView using Kotlin? | This example demonstrates how to detect Scroll Up & Scroll down in Android ListView 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... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "This example demonstrates how to detect Scroll Up & Scroll down in Android ListView using Kotlin."
},
{
"code": null,
"e": 1289,
"s": 1160,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill a... |
Matplotlib - Bar Plot | A bar chart or bar graph is a chart or graph that presents categorical data with rectangular bars with heights or lengths proportional to the values that they represent. The bars can be plotted vertically or horizontally.
A bar graph shows comparisons among discrete categories. One axis of the chart shows the specific ... | [
{
"code": null,
"e": 2738,
"s": 2516,
"text": "A bar chart or bar graph is a chart or graph that presents categorical data with rectangular bars with heights or lengths proportional to the values that they represent. The bars can be plotted vertically or horizontally."
},
{
"code": null,
... |
Difference Between Vector and List - GeeksforGeeks | 28 May, 2020
Vector: Vector is a type of dynamic array which has the ability to resize automatically after insertion or deletion of elements. The elements in vector are placed in contiguous storage so that they can be accessed and traversed using iterators. Element is inserted at the end of the vector.Example:
vector v... | [
{
"code": null,
"e": 24882,
"s": 24854,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 25181,
"s": 24882,
"text": "Vector: Vector is a type of dynamic array which has the ability to resize automatically after insertion or deletion of elements. The elements in vector are placed ... |
NLP Part 1| Scraping the Web using BeautifulSoup and Python | by Kamil Mysiak | Towards Data Science | Data is at the core of any data science project, yet often we take for granted the availability of data especially when it arrives neatly in a SQL database or better yet in our inbox.
That said, sometimes the data you’re looking for isn’t readily available due to its specific nature. One possible solution to this probl... | [
{
"code": null,
"e": 356,
"s": 172,
"text": "Data is at the core of any data science project, yet often we take for granted the availability of data especially when it arrives neatly in a SQL database or better yet in our inbox."
},
{
"code": null,
"e": 947,
"s": 356,
"text": "Th... |
PHP Using namespaces | Class, function or constant in a namespace can be used in following ways:
Using a class in current namespace
specifying a namespace relative to current namespace
giving a fully qualified name of namespace
In this example a namespace is loaded from test1.php. Function or class name referred to without namespace accesses... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "Class, function or constant in a namespace can be used in following ways:"
},
{
"code": null,
"e": 1171,
"s": 1136,
"text": "Using a class in current namespace"
},
{
"code": null,
"e": 1224,
"s": 1171,
"text": "sp... |
Compare Pandas Dataframes using DataComPy - GeeksforGeeks | 04 May, 2020
It’s well known that Python is a multi-paradigm, general-purpose language that is widely used for data analytics because of its extensive library support and an active community. The most commonly known methods to compare two Pandas dataframes using python are:
Using difflib
Using fuzzywuzzy
Regex Match
Th... | [
{
"code": null,
"e": 24774,
"s": 24746,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 25036,
"s": 24774,
"text": "It’s well known that Python is a multi-paradigm, general-purpose language that is widely used for data analytics because of its extensive library support and an ac... |
Java Program for Gnome Sort | Gnome Sort works with one lement at a time and gets it to the actual position. Let us see an example to implement Gnome Sort −
Live Demo
import java.util.Arrays;
public class Demo{
static void gnome_sort(int my_arr[], int n){
int index = 0;
while (index < n){
if (index == 0)
index++... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "Gnome Sort works with one lement at a time and gets it to the actual position. Let us see an example to implement Gnome Sort −"
},
{
"code": null,
"e": 1200,
"s": 1189,
"text": " Live Demo"
},
{
"code": null,
"e": 1942,
... |
C library function - wcstombs() | The C library function size_t wcstombs(char *str, const wchar_t *pwcs, size_t n) converts the wide-character string pwcs to a multibyte string starting at str. At most n bytes are written to str.
Following is the declaration for wcstombs() function.
size_t wcstombs(char *str, const wchar_t *pwcs, size_t n)
str − This i... | [
{
"code": null,
"e": 2203,
"s": 2007,
"text": "The C library function size_t wcstombs(char *str, const wchar_t *pwcs, size_t n) converts the wide-character string pwcs to a multibyte string starting at str. At most n bytes are written to str."
},
{
"code": null,
"e": 2257,
"s": 2203,... |
C++ Program for Coefficient of variation | We are given with an array of float values of size n and the task is to find the coefficient of variation and display the result.
What is the coefficient of variation?
In statistic measure, coefficient of variation is used to find the range of variability through the data given. In terms of finance, coefficient of vari... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "We are given with an array of float values of size n and the task is to find the coefficient of variation and display the result."
},
{
"code": null,
"e": 1230,
"s": 1192,
"text": "What is the coefficient of variation?"
},
{
... |
Flutter - Deleting Data On The Internet - GeeksforGeeks | 17 Sep, 2020
In this article, we will explore the process of deleting data on the internet. To, do so we need to follow 3 crucial steps:
Import the http packageDelete the data on the serverUpdate the screen after deletion
Import the http package
Delete the data on the server
Update the screen after deletion
Now, we wil... | [
{
"code": null,
"e": 27269,
"s": 27241,
"text": "\n17 Sep, 2020"
},
{
"code": null,
"e": 27393,
"s": 27269,
"text": "In this article, we will explore the process of deleting data on the internet. To, do so we need to follow 3 crucial steps:"
},
{
"code": null,
"e": 27... |
GATE | GATE-CS-2015 (Set 1) | Question 45 - GeeksforGeeks | 28 Jun, 2021
What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory.
#include <stdio.h>int main(){ unsigned int x[4][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}; printf("%u, %u, %u", x+3, *(x+3),... | [
{
"code": null,
"e": 25715,
"s": 25687,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25855,
"s": 25715,
"text": "What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory."
},
{
"code": "... |
Building a ResNet in Keras. Using Keras Functional API to construct... | by Dorian Lazar | Towards Data Science | In principle, neural networks should get better results as they have more layers. A deeper network can learn anything a shallower version of itself can, plus (possibly) more than that. If, for a given dataset, there are no more things a network can learn by adding more layers to it, then it can just learn the identity ... | [
{
"code": null,
"e": 746,
"s": 171,
"text": "In principle, neural networks should get better results as they have more layers. A deeper network can learn anything a shallower version of itself can, plus (possibly) more than that. If, for a given dataset, there are no more things a network can learn ... |
Create An API To Deploy Machine Learning Models Using Flask and Heroku | by Elizabeth Ter Sahakyan | Towards Data Science | Machine Learning models are powerful tools to make predictions based on available data. To make these models useful, they need to be deployed so that other’s can easily access them through an API (application programming interface) to make predictions. This can be done using Flask and Heroku — Flask is a micro web fram... | [
{
"code": null,
"e": 640,
"s": 172,
"text": "Machine Learning models are powerful tools to make predictions based on available data. To make these models useful, they need to be deployed so that other’s can easily access them through an API (application programming interface) to make predictions. Th... |
MySQL query to divide column by 100? | Let us first create a table −
mysql> create table DemoTable
(
Number float
);
Query OK, 0 rows affected (0.47 sec)
Insert records in the table using insert command −
mysql> insert into DemoTable values(1000);
Query OK, 1 row affected (0.18 sec)
mysql> insert into DemoTable values(1);
Query OK, 1 row affected (... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1186,
"s": 1092,
"text": "mysql> create table DemoTable\n (\n Number float\n );\nQuery OK, 0 rows affected (0.47 sec)"
},
{
"code": null,
"e": 1237,
"s": 11... |
Application to get live USD/INR rate Using Python - GeeksforGeeks | 04 Dec, 2021
In this article, we are going to write a python scripts to get live information of USD/INR rate and bind with it GUI application.
bs4: Beautiful Soup is a Python library for pulling data out of HTML and XML files.
Installation:
pip install bs4
requests: This module allows you to send HTTP/1.1 requests very... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n04 Dec, 2021"
},
{
"code": null,
"e": 24422,
"s": 24292,
"text": "In this article, we are going to write a python scripts to get live information of USD/INR rate and bind with it GUI application."
},
{
"code": null,
"... |
Metrics to Evaluate your Semantic Segmentation Model | by Ekin Tiu | Towards Data Science | Semantic segmentation. My absolute favorite task. I would make a deep learning model, have it all nice and trained... but wait. How do I know my model is performing well? In other words, what are the most common metrics for semantic segmentation? Here’s a clear cut guide to the essential metrics that you need to know t... | [
{
"code": null,
"e": 576,
"s": 171,
"text": "Semantic segmentation. My absolute favorite task. I would make a deep learning model, have it all nice and trained... but wait. How do I know my model is performing well? In other words, what are the most common metrics for semantic segmentation? Here’s a... |
6 Python Container Data Types You Should Know | by Christopher Tao | Towards Data Science | I’m sure that you must know the basic collection data types in Python, such as list, tuple and dictionary. There are too many resources online regarding these data structures already. However, have you noticed that there are 6 “high-level” data structure tools in the collection module that is built-in Python?
Named Tup... | [
{
"code": null,
"e": 483,
"s": 172,
"text": "I’m sure that you must know the basic collection data types in Python, such as list, tuple and dictionary. There are too many resources online regarding these data structures already. However, have you noticed that there are 6 “high-level” data structure ... |
priority_queue emplace() in C++ STL - GeeksforGeeks | 06 Jul, 2021
Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is the greatest of all elements in the queue.
This function is used to insert a new element into the priority queue container, the new element is added to the top of the priority queue.
Syntax ... | [
{
"code": null,
"e": 25403,
"s": 25375,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 25562,
"s": 25403,
"text": "Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is the greatest of all elements in the queue."
}... |
Operator Overloading in Python - GeeksforGeeks | 21 Feb, 2022
Operator Overloading means giving extended meaning beyond their predefined operational meaning. For example operator + is used to add two integers as well as join two strings and merge two lists. It is achievable because ‘+’ operator is overloaded by int class and str class. You might have noticed that the... | [
{
"code": null,
"e": 42677,
"s": 42649,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 43118,
"s": 42677,
"text": "Operator Overloading means giving extended meaning beyond their predefined operational meaning. For example operator + is used to add two integers as well as join ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.