title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
IntFunction Interface in Java with Examples | 08 Oct, 2018
The IntFunction Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a function which takes in an int-valued argument and produces a result of type R.
This functional interface takes in only one generic, nam... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2018"
},
{
"code": null,
"e": 279,
"s": 28,
"text": "The IntFunction Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a func... |
VB.Net - Statements | A statement is a complete instruction in Visual Basic programs. It may contain keywords, operators, variables, literal values, constants and expressions.
Statements could be categorized as −
Declaration statements − these are the statements where you name a variable, constant, or procedure, and can also specify a data ... | [
{
"code": null,
"e": 2588,
"s": 2434,
"text": "A statement is a complete instruction in Visual Basic programs. It may contain keywords, operators, variables, literal values, constants and expressions."
},
{
"code": null,
"e": 2625,
"s": 2588,
"text": "Statements could be categori... |
time.perf_counter() function in Python | In this tutorial, we are going to learn about the time.perf_counter() method.
The method time.perf_counter() returns a float value of time in seconds. Let's see an
Live Demo
# importing the time module
import time
# printing the time
print(time.perf_counter())
If you run the above code, then you will get the following... | [
{
"code": null,
"e": 1265,
"s": 1187,
"text": "In this tutorial, we are going to learn about the time.perf_counter() method."
},
{
"code": null,
"e": 1351,
"s": 1265,
"text": "The method time.perf_counter() returns a float value of time in seconds. Let's see an"
},
{
"cod... |
SQL Query Complexity | 17 Jun, 2020
Structured Query Language (SQL) is the language that is used to query Relational Databases. A typical Relational Database consists of tables, where each table has rows and columns. Every column has data of particular type. Factor dependent on SQL query complexity.
Example –
select *
from employee
where i... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Jun, 2020"
},
{
"code": null,
"e": 318,
"s": 53,
"text": "Structured Query Language (SQL) is the language that is used to query Relational Databases. A typical Relational Database consists of tables, where each table has rows and co... |
Regularization Method: Noise for improving Deep Learning models | by Alex Diaz | Towards Data Science | One of the first concepts you learn when you begin to study neural networks is the meaning of overfitting and underfitting. Sometimes, it is a challenge to train a model that generalizes your data perfectly, especially when you have a small dataset because:
When you train a neural network with small datasets, the netwo... | [
{
"code": null,
"e": 430,
"s": 172,
"text": "One of the first concepts you learn when you begin to study neural networks is the meaning of overfitting and underfitting. Sometimes, it is a challenge to train a model that generalizes your data perfectly, especially when you have a small dataset becaus... |
Javascript | Program to read text File - GeeksforGeeks | 12 Oct, 2018
Pre-requisite: How to import a library in JavaScript. Read from here: JavaScript | Importing and Exporting Modules.
Given a text file, write a JavaScript program to extract the contents of that file. There is a built-in Module or in-built library in NodeJs which handles all the reading operations called fs... | [
{
"code": null,
"e": 24422,
"s": 24394,
"text": "\n12 Oct, 2018"
},
{
"code": null,
"e": 24538,
"s": 24422,
"text": "Pre-requisite: How to import a library in JavaScript. Read from here: JavaScript | Importing and Exporting Modules."
},
{
"code": null,
"e": 24933,
... |
Emulating Logical Gates with a Neural Network | by James Fulton | Towards Data Science | In this tutorial I want to show you how you can train a neural networks to perform the function of a network of logical gates. I’m am going to dive into the purpose of each individual neuron in the network and show that none are wasted. We’ll ground this by using a problem example from Tensorflow Playground so that you... | [
{
"code": null,
"e": 547,
"s": 172,
"text": "In this tutorial I want to show you how you can train a neural networks to perform the function of a network of logical gates. I’m am going to dive into the purpose of each individual neuron in the network and show that none are wasted. We’ll ground this ... |
Cleaning data with dropna in Pyspark - GeeksforGeeks | 19 Jul, 2021
While dealing with a big size Dataframe which consists of many rows and columns they also consist of many NULL or None values at some row or column, or some of the rows are totally NULL or None. So in this case, if we apply an operation on the same Dataframe that contains many NULL or None values then we w... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n19 Jul, 2021"
},
{
"code": null,
"e": 24801,
"s": 24292,
"text": "While dealing with a big size Dataframe which consists of many rows and columns they also consist of many NULL or None values at some row or column, or some of the... |
JavaScript - Complementary Colors Builder | We are required to write a JavaScript function that takes in hex color as one and only input.
Our function should then find the complementary color for the color taken in as input.
Here are some input and output pairs −
getComplementaryColor('#142814') = '#ebd7eb';
getComplementaryColor('#ffffff') = '#000000';
getCompl... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in hex color as one and only input."
},
{
"code": null,
"e": 1243,
"s": 1156,
"text": "Our function should then find the complementary color for the color taken in as input."
... |
SQL - SQRT Function | SQL SQRT function is used to find out the square root of any number. You can Use SELECT statement to find out square root of any number as follows −
SQL> select SQRT(16);
+----------+
| SQRT(16) |
+----------+
| 4.000000 |
+----------+
1 row in set (0.00 sec)
You are seeing float value here because internally SQL will... | [
{
"code": null,
"e": 2602,
"s": 2453,
"text": "SQL SQRT function is used to find out the square root of any number. You can Use SELECT statement to find out square root of any number as follows −"
},
{
"code": null,
"e": 2714,
"s": 2602,
"text": "SQL> select SQRT(16);\n+--------... |
Java RMI - GUI Application | In the previous chapter, we created a sample RMI application. In this chapter, we will explain how to create an RMI application where a client invokes a method which displays a GUI window (JavaFX).
Here, we are defining a remote interface named Hello with a method named animation() in it.
import java.rmi.Remote;
impor... | [
{
"code": null,
"e": 1895,
"s": 1697,
"text": "In the previous chapter, we created a sample RMI application. In this chapter, we will explain how to create an RMI application where a client invokes a method which displays a GUI window (JavaFX)."
},
{
"code": null,
"e": 1987,
"s": 189... |
How to alter the contrast of an image using Java OpenCV library? | The increasing/decreasing of brightness and contrast of an image are the
operations that can be achieved by transforming the pixels of the image. this can be expressed in the form of an equation as −
g(i, j) = α . f(i, j)+ β
Where,
(i, j) are the positions of the pixels.
(i, j) are the positions of the pixels.
α (gain)... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "The increasing/decreasing of brightness and contrast of an image are the\noperations that can be achieved by transforming the pixels of the image. this can be expressed in the form of an equation as −"
},
{
"code": null,
"e": 1287,
"s": ... |
Check for balanced parenthesis without using stack - GeeksforGeeks | 29 Aug, 2021
Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, ”}”, ”(“, ”)”, ”[“, ”]” are correct in exp. Examples:
Input : exp = “[()]{}{[()()]()}”
Output : true
Input : exp = “[(])”
Output : false
We have discussed a stack based solution. Here we are not allowed to... | [
{
"code": null,
"e": 25004,
"s": 24976,
"text": "\n29 Aug, 2021"
},
{
"code": null,
"e": 25159,
"s": 25004,
"text": "Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, ”}”, ”(“, ”)”, ”[“, ”]” are correct in exp. Examples: "
},
... |
5 Useful Things to Know in Python | by Luay Matalka | Towards Data Science | Python is one of the best programming languages to learn largely due to its simple syntax and vast versatility. However, due to the large amount of built-in features that it provides, it can be difficult to fully assimilate the particularly useful ones. In this tutorial, we will go over 5 features (including functions ... | [
{
"code": null,
"e": 555,
"s": 172,
"text": "Python is one of the best programming languages to learn largely due to its simple syntax and vast versatility. However, due to the large amount of built-in features that it provides, it can be difficult to fully assimilate the particularly useful ones. I... |
Upsample with an average in Pandas | by Vaclav Dekanovsky | Towards Data Science | Many models input cumulative variables like rainfalls in a few hours or company revenue over some months. Unfortunately, the data sources are often not aligned in time. One sensor feeds the data every odd hour, another one in even hours. One company provides information in May and the other in June.
If you don’t want t... | [
{
"code": null,
"e": 347,
"s": 46,
"text": "Many models input cumulative variables like rainfalls in a few hours or company revenue over some months. Unfortunately, the data sources are often not aligned in time. One sensor feeds the data every odd hour, another one in even hours. One company provid... |
How to Create a Dark Mode for a Custom Android App in Kotlin? - GeeksforGeeks | 14 Oct, 2020
The dark mode is a feature that allows you to switch the color theme of an app or a whole OS to black or something on the brink of it. Beyond the joys of invigorating a tired design, one may wish to choose because it makes watching the device screen way more comfortable and relaxing on the eyes. Typical pi... | [
{
"code": null,
"e": 25179,
"s": 25151,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 26399,
"s": 25179,
"text": "The dark mode is a feature that allows you to switch the color theme of an app or a whole OS to black or something on the brink of it. Beyond the joys of invigorat... |
Higher Order Numeric Differential Equations(Python) | by Rahul Tarak | Towards Data Science | By the nature of the topic, it is expected to have an understanding of calculus and basic programming to achieve this.
Install anaconda from https://www.anaconda.com/distribution/
import numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3D # For 3D Plotting of Systems
I’d encourage you to p... | [
{
"code": null,
"e": 291,
"s": 172,
"text": "By the nature of the topic, it is expected to have an understanding of calculus and basic programming to achieve this."
},
{
"code": null,
"e": 352,
"s": 291,
"text": "Install anaconda from https://www.anaconda.com/distribution/"
},
... |
Database encryption in Java - GeeksforGeeks | 02 Sep, 2020
Basically, encryption is the process or conversion of user data in code or more specifically in the cyphertext form in order to prevent unauthorized access, So, encryption is very much important in today’s world where we all are working on large datasets stored in databases and the credentials of the datab... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 24331,
"s": 23948,
"text": "Basically, encryption is the process or conversion of user data in code or more specifically in the cyphertext form in order to prevent unauthorized access, So, en... |
Adding user Authentication in Next.js using NextAuth - GeeksforGeeks | 18 Oct, 2021
In this article, we will learn How we can add user authentication in our NextJS project. NextJS is a React-based framework. It has the power to Develop beautiful Web applications for different platforms like Windows, Linux, and mac. The linking of dynamic paths helps in rendering your NextJS components con... | [
{
"code": null,
"e": 25560,
"s": 25532,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 25879,
"s": 25560,
"text": "In this article, we will learn How we can add user authentication in our NextJS project. NextJS is a React-based framework. It has the power to Develop beautiful W... |
Gini Index vs Information Entropy | by Andrew Hershy | Towards Data Science | I recently published a project analyzing the performance between logistic regression and random forest. While working on the random forest component, I wanted expand on measures of impurity/information-gain, particularly Gini Index and Entropy. It’s not as well known as some other topics in machine learning, but I thin... | [
{
"code": null,
"e": 489,
"s": 47,
"text": "I recently published a project analyzing the performance between logistic regression and random forest. While working on the random forest component, I wanted expand on measures of impurity/information-gain, particularly Gini Index and Entropy. It’s not as... |
Concatenation process in DFA - GeeksforGeeks | 04 Jan, 2022
Prerequisite – Designing finite automata Designing a DFA for the set of string over {a, b} such that string of the language start with “a” and end with “b”. There two desired language will be formed:
L1 = {a, aab, aabab, .......}
L2 = {b, bbab, bbabab, .......}
In L1, starting element is “a” and in L2, e... | [
{
"code": null,
"e": 31190,
"s": 31162,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 31391,
"s": 31190,
"text": "Prerequisite – Designing finite automata Designing a DFA for the set of string over {a, b} such that string of the language start with “a” and end with “b”. There ... |
How to upload an image using HTML and JavaScript in firebase ? - GeeksforGeeks | 02 Nov, 2021
Firebase is a product of Google which helps developers to build, manage, and grow their apps easily. It helps developers to build their apps faster and in a more secure way. No programming is required on the firebase side which makes it easy to use its features more efficiently. It provides cloud storage. ... | [
{
"code": null,
"e": 26679,
"s": 26651,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 27025,
"s": 26679,
"text": "Firebase is a product of Google which helps developers to build, manage, and grow their apps easily. It helps developers to build their apps faster and in a more s... |
Delete all odd nodes of a Circular Linked List - GeeksforGeeks | 07 Feb, 2022
Prerequisite: Delete all the even nodes of a Circular Linked ListGiven a circular singly linked list containing N nodes, the task is to delete all the odd nodes from the list.
Examples:
Input: 572->112->21->5->1->6 Output: 572 -> 112 -> 6 Explanation: All the odd valued nodes have been deletedInput: 9->1... | [
{
"code": null,
"e": 26568,
"s": 26540,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 26745,
"s": 26568,
"text": "Prerequisite: Delete all the even nodes of a Circular Linked ListGiven a circular singly linked list containing N nodes, the task is to delete all the odd nodes fr... |
Java Program to Convert Celsius into Fahrenheit - GeeksforGeeks | 24 Nov, 2020
Celsius scale is a temperature scale that is based on the freezing point of water at 0 °C and the boiling point of water at 100 °C. Fahrenheit scale is a temperature scale that has a freezing point of water at 32 °F and the boiling point of water at 212 °F.
Examples:
Input : 0
Output: 32
Input :-40
Output:... | [
{
"code": null,
"e": 23582,
"s": 23554,
"text": "\n24 Nov, 2020"
},
{
"code": null,
"e": 23840,
"s": 23582,
"text": "Celsius scale is a temperature scale that is based on the freezing point of water at 0 °C and the boiling point of water at 100 °C. Fahrenheit scale is a temperatu... |
How to get the list of font family (or Name of Fonts) in Matplotlib? | o get the list of font family in Matplotlib, we can take the following steps −
Iterate fonts manager ttflist and print the names.
Iterate fonts manager afmlist and print the names.
import matplotlib.font_manager as fm
for f in fm.fontManager.ttflist:
print(f.name)
for f in fm.fontManager.afmlist:
print(f.name)
ST... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "o get the list of font family in Matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1192,
"s": 1141,
"text": "Iterate fonts manager ttflist and print the names."
},
{
"code": null,
"e": 1243,
"s": ... |
Can we add a column to a table from another table in MySQL? | Yes, we can add a column to a table from another table. Let us first create two tables. The query to create a table is as follows −
<FirstTable>
mysql> create table FirstTable
-> (
-> UserId int,
-> UserName varchar(20)
-> );
Query OK, 0 rows affected (1.48 sec)
Now create the second table. The query to cr... | [
{
"code": null,
"e": 1194,
"s": 1062,
"text": "Yes, we can add a column to a table from another table. Let us first create two tables. The query to create a table is as follows −"
},
{
"code": null,
"e": 1207,
"s": 1194,
"text": "<FirstTable>"
},
{
"code": null,
"e": ... |
Firebase - Queries | Firebase offers various ways of ordering data. In this chapter, we will show simple query examples. We will use the same data from our previous chapters.
To order data by name, we can use the following code.
Let us consider the following example.
var playersRef = firebase.database().ref("players/");
playersRef.orderBy... | [
{
"code": null,
"e": 2320,
"s": 2166,
"text": "Firebase offers various ways of ordering data. In this chapter, we will show simple query examples. We will use the same data from our previous chapters."
},
{
"code": null,
"e": 2374,
"s": 2320,
"text": "To order data by name, we ca... |
What is unsigned Right Shift Operator (>>>) in JavaScript? | This operator is just like the >>operator, except that the bits shifted in on the left are always zero i.e. xeroes are filled in from the left.
You can try to run the following code to learn how to work with unsigned right shift operator −
<html>
<body>
<script>
var a =-14;
var b =2; // Shift... | [
{
"code": null,
"e": 1206,
"s": 1062,
"text": "This operator is just like the >>operator, except that the bits shifted in on the left are always zero i.e. xeroes are filled in from the left."
},
{
"code": null,
"e": 1302,
"s": 1206,
"text": "You can try to run the following code ... |
Merge Intervals in Python | Suppose we have a collection of intervals, we have to merge all overlapping intervals. So if the intervals are like [[1,3], [2,6], [8,10], [15,18]], then the intervals after merging will be [[1,6],[8,10],[15,18]]. This is because there were two intervals those are overlapping, the intervals are [1,3] and [2,6], these a... | [
{
"code": null,
"e": 1401,
"s": 1062,
"text": "Suppose we have a collection of intervals, we have to merge all overlapping intervals. So if the intervals are like [[1,3], [2,6], [8,10], [15,18]], then the intervals after merging will be [[1,6],[8,10],[15,18]]. This is because there were two interval... |
Apache Spark - Quick Guide | Industries are using Hadoop extensively to analyze their data sets. The reason is that Hadoop framework is based on a simple programming model (MapReduce) and it enables a computing solution that is scalable, flexible, fault-tolerant and cost effective. Here, the main concern is to maintain speed in processing large da... | [
{
"code": null,
"e": 2176,
"s": 1771,
"text": "Industries are using Hadoop extensively to analyze their data sets. The reason is that Hadoop framework is based on a simple programming model (MapReduce) and it enables a computing solution that is scalable, flexible, fault-tolerant and cost effective.... |
Neo4j CQL - Creating Nodes | As discussed, a node is a data/record in a graph database. You can create a node in Neo4j using the CREATE clause. This chapter teaches you how to −
Create a single node
Create multiple nodes
Create a node with a label
Create a node with multiple labels
Create a node with properties
Returning the created node
You can c... | [
{
"code": null,
"e": 2488,
"s": 2339,
"text": "As discussed, a node is a data/record in a graph database. You can create a node in Neo4j using the CREATE clause. This chapter teaches you how to −"
},
{
"code": null,
"e": 2509,
"s": 2488,
"text": "Create a single node"
},
{
... |
find command in Linux with examples - GeeksforGeeks | 24 Nov, 2021
The find command in UNIX is a command line utility for walking a file hierarchy. It can be used to find files and directories and perform subsequent operations on them. It supports searching by file, folder, name, creation date, modification date, owner and permissions. By using the ‘-exec’ other UNIX comm... | [
{
"code": null,
"e": 24460,
"s": 24432,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24815,
"s": 24460,
"text": "The find command in UNIX is a command line utility for walking a file hierarchy. It can be used to find files and directories and perform subsequent operations on ... |
JCL - DD Statement | Datasets are mainframe files with records organised in a specific format. Datasets are stored on the Direct Access Storage Device (DASD) or Tapes of the mainframe and are basic data storage areas. If these data are required to be used/created in a batch program, then the file (i.e., dataset) physical name along with th... | [
{
"code": null,
"e": 2235,
"s": 1864,
"text": "Datasets are mainframe files with records organised in a specific format. Datasets are stored on the Direct Access Storage Device (DASD) or Tapes of the mainframe and are basic data storage areas. If these data are required to be used/created in a batch... |
Entity Framework - Data Annotations | DataAnnotations is used to configure the classes which will highlight the most commonly needed configurations. DataAnnotations are also understood by a number of .NET applications, such as ASP.NET MVC which allows these applications to leverage the same annotations for client-side validations. DataAnnotation attributes... | [
{
"code": null,
"e": 3393,
"s": 3032,
"text": "DataAnnotations is used to configure the classes which will highlight the most commonly needed configurations. DataAnnotations are also understood by a number of .NET applications, such as ASP.NET MVC which allows these applications to leverage the same... |
What are decorators and how are they used in JavaScript ? - GeeksforGeeks | 13 Aug, 2021
Decorators are the way of wrapping one piece of code with another or apply a wrapper around a function in JavaScript. Decorators are the design pattern that allows behavior to be added to an individual object, either statically or dynamically without affecting the behavior of other objects from the same cl... | [
{
"code": null,
"e": 37579,
"s": 37551,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 38201,
"s": 37579,
"text": "Decorators are the way of wrapping one piece of code with another or apply a wrapper around a function in JavaScript. Decorators are the design pattern that allows... |
How to check if a string has at least one letter and one number in Python? | The easiest way to check this in python is to use regular expressions. In order to check if the given string has atleast one letter and one number, we use re.match(regex, string).
import re
print(bool(re.match('^(?=.*[0-9]$)(?=.*[a-zA-Z])', 'hasAlphanum123')))
print(bool(re.match('^(?=.*[0-9])(?=.*[a-zA-Z]$)', 'some st... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "The easiest way to check this in python is to use regular expressions. In order to check if the given string has atleast one letter and one number, we use re.match(regex, string)."
},
{
"code": null,
"e": 1391,
"s": 1242,
"text": "im... |
OOP in Python | Set 3 (Inheritance, examples of object, issubclass and super) - GeeksforGeeks | 10 Feb, 2020
We have discussed following topics on Object Oriented Programming in Python
Object Oriented Programming in Python | set-1
Object Oriented Programming in Python | Set 2 (Data Hiding and Object Printing)
In this article, Inheritance is introduced.
One of the major advantages of Object Oriented Programming is... | [
{
"code": null,
"e": 23909,
"s": 23881,
"text": "\n10 Feb, 2020"
},
{
"code": null,
"e": 23985,
"s": 23909,
"text": "We have discussed following topics on Object Oriented Programming in Python"
},
{
"code": null,
"e": 24031,
"s": 23985,
"text": "Object Oriente... |
Recursion - GeeksforGeeks | 01 Jun, 2021
Recursion : The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function.... Read More
Fun(2) = 2 * Fun(3) and Fun(3) = 2 * Fun(4) ....(i)
Fun(4) = 4 ......(ii)
From equation (i) and (ii),
Fun(2) = 2 * 2 * Fun(4)
Fun(... | [
{
"code": null,
"e": 27530,
"s": 27502,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 27707,
"s": 27530,
"text": "Recursion : The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function.... |
How to generate random strings with upper case letters and digits in Python? | You can use random.choice(list_of_choices) to get a random character. Then loop over this and get a list and finally join this list to get a string. The list of choices here is Upper case letters and digits. For example:
import string
import random
def get_random_string(length):
random_list = []
for i in xrange... | [
{
"code": null,
"e": 1283,
"s": 1062,
"text": "You can use random.choice(list_of_choices) to get a random character. Then loop over this and get a list and finally join this list to get a string. The list of choices here is Upper case letters and digits. For example:"
},
{
"code": null,
... |
The New Line - Java | Practice | GeeksforGeeks | You are familiar with producing output using JAVA In this task, you'll be required to write three messages in three separate lines. Write Geeks for Geeks. But wait a minute!! You need to write each word of it in a separate line.
In the function printIndividualLine(), output each word of Geeks for Geeks in a separate li... | [
{
"code": null,
"e": 599,
"s": 226,
"text": "You are familiar with producing output using JAVA In this task, you'll be required to write three messages in three separate lines. Write Geeks for Geeks. But wait a minute!! You need to write each word of it in a separate line.\nIn the function printIndi... |
Python Data Structures Conversions (List , Set & Dictionary) | by Kieran Tan Kah Wang | Towards Data Science | In Python, there is primarily two data types mainly Atomic and Collective. Atomic data types are indivisible which represents only a single data value. Some examples are integer (int), floating point (float) and boolean (bool). Collective data types on the other hand are a collections of multiple data values which cons... | [
{
"code": null,
"e": 698,
"s": 172,
"text": "In Python, there is primarily two data types mainly Atomic and Collective. Atomic data types are indivisible which represents only a single data value. Some examples are integer (int), floating point (float) and boolean (bool). Collective data types on th... |
How to add SearchBar in React Native ? - GeeksforGeeks | 14 Jul, 2021
In this article we’ll add search functionality in React-Native. This can be regarded as a continuation to React native flatlist component/. In the aforementioned article we created a flatlist using Flatlist component, let’s make it searchable using SearchBar component. To add a SearchBar to your flatlist, ... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n14 Jul, 2021"
},
{
"code": null,
"e": 25255,
"s": 24909,
"text": "In this article we’ll add search functionality in React-Native. This can be regarded as a continuation to React native flatlist component/. In the aforementioned a... |
Find the Kth Node from the end in a given singly Linked List using C++ | A linked list is a linear data structure that has multiple nodes that are connected with each other. Each node consists of two fields Data Field and address of the next node. Let us assume we have given a singly linked list the task is to find the kth node from the end in a given singly linked list. For example,
Input ... | [
{
"code": null,
"e": 1376,
"s": 1062,
"text": "A linked list is a linear data structure that has multiple nodes that are connected with each other. Each node consists of two fields Data Field and address of the next node. Let us assume we have given a singly linked list the task is to find the kth n... |
Lynis - Security Tool for Audit and Hardening Linux Systems - GeeksforGeeks | 28 Feb, 2022
Lynis is an open-source security auditing tool for UNIX derivatives like Linux, Mac OS, BSD, other Unix-based operating systems etc. Performing extensive health scan of systems that support System Hardening and Compliance Testing. An open-source software with GPL License. This tool also scans for general s... | [
{
"code": null,
"e": 25761,
"s": 25733,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 26218,
"s": 25761,
"text": "Lynis is an open-source security auditing tool for UNIX derivatives like Linux, Mac OS, BSD, other Unix-based operating systems etc. Performing extensive health sc... |
numpy.sqrt() in Python - GeeksforGeeks | 27 Sep, 2019
numpy.sqrt(array[, out]) function is used to determine the positive square-root of an array, element-wise.
Syntax: numpy.sqrt()
Parameters:array : [array_like] Input values whose square-roots have to be determined.out : [ndarray, optional] Alternate array object in which to put the result; if provided, it ... | [
{
"code": null,
"e": 25389,
"s": 25361,
"text": "\n27 Sep, 2019"
},
{
"code": null,
"e": 25496,
"s": 25389,
"text": "numpy.sqrt(array[, out]) function is used to determine the positive square-root of an array, element-wise."
},
{
"code": null,
"e": 25517,
"s": 254... |
How can we split the name string into two parts by using MySQL SUBSTRING_INDEX() function? | To make it understand, we are using the following data from a table named ‘customerdetail’.
mysql> Select * from Customerdetail;
+----------------------+----------------------+-----------+---------------------+
| Name | FName | Address | Emailid |
+----------------------+---... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "To make it understand, we are using the following data from a table named ‘customerdetail’."
},
{
"code": null,
"e": 1872,
"s": 1154,
"text": "mysql> Select * from Customerdetail;\n+----------------------+----------------------+-----... |
Python - Assign values to initialized dictionary keys - GeeksforGeeks | 06 Mar, 2020
Sometimes, while working with python dictionaries, we can have a problem in which we need to initialize dictionary keys with values. We save a mesh of keys to be initialized. This usually happens during web development while working with JSON data. Lets discuss certain ways in which this task can be perfor... | [
{
"code": null,
"e": 24237,
"s": 24209,
"text": "\n06 Mar, 2020"
},
{
"code": null,
"e": 24549,
"s": 24237,
"text": "Sometimes, while working with python dictionaries, we can have a problem in which we need to initialize dictionary keys with values. We save a mesh of keys to be i... |
Difference between while(1) and while(0) in C language - GeeksforGeeks | 28 Mar, 2022
Prerequisite: while loop in C/C++In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given boolean condition. The boolean condition is either true or false.
while(1)
It is an infinite loop which will run till a break stateme... | [
{
"code": null,
"e": 25478,
"s": 25450,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 25718,
"s": 25478,
"text": "Prerequisite: while loop in C/C++In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based ... |
PostgreSQL - NOT IN operator - GeeksforGeeks | 28 Aug, 2020
The PostgreSQL NOT IN operator works exactly opposite to that of the IN operator. It is used to filter query results excluding the specified values from the list of values.
The syntax for using NOT IN operator with the WHERE clause to check against a list of values (except for the specified values) which r... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 25652,
"s": 25479,
"text": "The PostgreSQL NOT IN operator works exactly opposite to that of the IN operator. It is used to filter query results excluding the specified values from the list o... |
Python | Max/Min of tuple dictionary values - GeeksforGeeks | 24 Oct, 2019
Sometimes, while working with data, we can have a problem in which we need to find the min/max of tuple elements that are received as values of dictionary. We may have a problem to get index wise min/max. Let’s discuss certain ways in which this particular problem can be solved.
Method #1 : Using tuple() +... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n24 Oct, 2019"
},
{
"code": null,
"e": 24492,
"s": 24212,
"text": "Sometimes, while working with data, we can have a problem in which we need to find the min/max of tuple elements that are received as values of dictionary. We may ... |
How to write an if-else statement in a JSP page? | The if...else block starts out as an ordinary Scriptlet, but the Scriptlet is closed at each line with HTML text included between the Scriptlet tags.
Live Demo
<%! int day = 3; %>
<html>
<head>
<title>IF...ELSE Example</title>
</head>
<body>
<% if (day == 1 || day == 7) { %>
<p> Today is ... | [
{
"code": null,
"e": 1212,
"s": 1062,
"text": "The if...else block starts out as an ordinary Scriptlet, but the Scriptlet is closed at each line with HTML text included between the Scriptlet tags."
},
{
"code": null,
"e": 1223,
"s": 1212,
"text": " Live Demo"
},
{
"code":... |
How to create Wifi Toggle Button in ReactJS? - GeeksforGeeks | 05 Mar, 2021
The Wifi Toggle button means a Wi-Fi Button to turn On and Off Wifi. Material UI for React has this component available for us, and it is very easy to integrate. We can use the following approach in ReactJS to build a Wifi Toggle button.
Creating React Application And Installing Module:
Step 1: Create a Re... | [
{
"code": null,
"e": 24397,
"s": 24369,
"text": "\n05 Mar, 2021"
},
{
"code": null,
"e": 24635,
"s": 24397,
"text": "The Wifi Toggle button means a Wi-Fi Button to turn On and Off Wifi. Material UI for React has this component available for us, and it is very easy to integrate. W... |
Materialize - Environment Setup | In this chapter, we will discuss on the different aspects of setting up a congenial environment for Materialize.
We have set up the Materialize Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify... | [
{
"code": null,
"e": 2300,
"s": 2187,
"text": "In this chapter, we will discuss on the different aspects of setting up a congenial environment for Materialize."
},
{
"code": null,
"e": 2600,
"s": 2300,
"text": "We have set up the Materialize Programming environment online, so tha... |
Bubble Sort program in C# | Bubble sort is a simple sorting algorithm. This sorting algorithm is a comparison-based algorithm in which each pair of adjacent elements is compared and the elements are swapped if they are not in order.
Let’s say our int has 5 elements −
int[] arr = { 78, 55, 45, 98, 13 };
Now, let us perform Bubble Sort.
Start with ... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "Bubble sort is a simple sorting algorithm. This sorting algorithm is a comparison-based algorithm in which each pair of adjacent elements is compared and the elements are swapped if they are not in order."
},
{
"code": null,
"e": 1302,
"... |
Assembly - Basic Syntax | An assembly program can be divided into three sections −
The data section,
The data section,
The bss section, and
The bss section, and
The text section.
The text section.
The data section is used for declaring initialized data or constants. This data does not change at runtime. You can declare various constant values, ... | [
{
"code": null,
"e": 2142,
"s": 2085,
"text": "An assembly program can be divided into three sections −"
},
{
"code": null,
"e": 2160,
"s": 2142,
"text": "The data section,"
},
{
"code": null,
"e": 2178,
"s": 2160,
"text": "The data section,"
},
{
"cod... |
How to create and run Node.js project in VS code editor ? - GeeksforGeeks | 24 Aug, 2021
Following are some simple steps in order to create a simple NodeJS project and running it in VS Code editor.
Step 1: Create an empty folder and move it into that folder from your VS Code editor, use the following command.
mkdir demo
cd demo
code .
Step 2: Now create a file app.js file in your folder as sho... | [
{
"code": null,
"e": 23722,
"s": 23694,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 23831,
"s": 23722,
"text": "Following are some simple steps in order to create a simple NodeJS project and running it in VS Code editor."
},
{
"code": null,
"e": 23944,
"s": 2... |
How to set the top position of an element with JavaScript? | To set the top position, use the top property in JavaScript. You can try to run the following code to set the top position of a div with JavaScript −
<!DOCTYPE html>
<html>
<head>
<style>
#myID {
position: absolute;
}
</style>
</head>
<body>
<button onclick="dis... | [
{
"code": null,
"e": 1212,
"s": 1062,
"text": "To set the top position, use the top property in JavaScript. You can try to run the following code to set the top position of a div with JavaScript −"
},
{
"code": null,
"e": 1657,
"s": 1212,
"text": "<!DOCTYPE html>\n<html>\n <hea... |
Common Image Processing Techniques in Python | by Renu Khandelwal | Towards Data Science | In this article, you will learn
Common image processing techniques using PIL and OpenCV like converting the RGB image to the grayscale image, rotating the images, de-noising the images, detecting edges in an image and cropping the region of interest in an image
Searching objects in an image using Template Match of Open... | [
{
"code": null,
"e": 204,
"s": 172,
"text": "In this article, you will learn"
},
{
"code": null,
"e": 434,
"s": 204,
"text": "Common image processing techniques using PIL and OpenCV like converting the RGB image to the grayscale image, rotating the images, de-noising the images, ... |
Introducing notebookJS: seamless integration between Python and JavaScript in Computational Notebooks | by Jorge Piazentin Ono | Towards Data Science | Have you ever seen a data visualization and thought it would be great to use it in a Jupyter Notebook? I know I have, many times. Notebooks are the perfect place to experiment with data visualization, because they can contain all the data wrangling, preprocessing, pictures, and documentation in the same place. However,... | [
{
"code": null,
"e": 872,
"s": 172,
"text": "Have you ever seen a data visualization and thought it would be great to use it in a Jupyter Notebook? I know I have, many times. Notebooks are the perfect place to experiment with data visualization, because they can contain all the data wrangling, prepr... |
Consul - Using UI | In this chapter, we will learn how to use the Consul UI (User Interface) and understand its important components.
Consul provides us with a useful interface using that we can manage things at ease. You can easily bring up the consul user interface on any port you desire. The Consul UI can be divided into three importan... | [
{
"code": null,
"e": 1916,
"s": 1802,
"text": "In this chapter, we will learn how to use the Consul UI (User Interface) and understand its important components."
},
{
"code": null,
"e": 2143,
"s": 1916,
"text": "Consul provides us with a useful interface using that we can manage ... |
How to encode and decode a URL in JavaScript ? | 26 Nov, 2021
Encoding and Decoding URI and URI components is a usual task in web development while making a GET request to API with query params. Many times construct a URL string with query params and in order to understand it, the response server needs to decode this URL. Browsers automatically encode the URL i.e. it... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 487,
"s": 28,
"text": "Encoding and Decoding URI and URI components is a usual task in web development while making a GET request to API with query params. Many times construct a URL string with que... |
How to Get Length of Array in Excel VBA? | 22 Nov, 2021
We use UBound and LBound functions to get the length of an Array in Excel VBA. In this article, we will discuss them in detail.
Syntax: UBound() function
UBound (arrayname, [ dimension ])
Parameters:
arrayname: required. Array variable name
dimension: optional
Returns: Return upper limit of an array dimens... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 156,
"s": 28,
"text": "We use UBound and LBound functions to get the length of an Array in Excel VBA. In this article, we will discuss them in detail."
},
{
"code": null,
"e": 182,
"... |
How to insert a document with date in MongoDB? | To insert a document with date in MongoDB, use Date(). Following is the syntax
“yourFieldName”:new Date(yourDateValue);
Let us create a collection with documents. Following is the query
>db.insertDocumentWithDateDemo.insertOne({"UserName":"Larry","UserMessage":"Hi","UserMessagePostDate":new Date("2012-09-24")});
{
"... | [
{
"code": null,
"e": 1266,
"s": 1187,
"text": "To insert a document with date in MongoDB, use Date(). Following is the syntax"
},
{
"code": null,
"e": 1307,
"s": 1266,
"text": "“yourFieldName”:new Date(yourDateValue);"
},
{
"code": null,
"e": 1373,
"s": 1307,
... |
Java Tricky Output Questions | 16 Aug, 2019
Question 1: What will be the Output of the below code:
public class A { public static void main(String[] args) { if (true) break; }}
Choices:
a) Nothing
b) Error
Answer: b) ErrorReason: Break statement can only be used with loop or switch. So, using break with if statement causes... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Aug, 2019"
},
{
"code": null,
"e": 109,
"s": 54,
"text": "Question 1: What will be the Output of the below code:"
},
{
"code": "public class A { public static void main(String[] args) { if (true) brea... |
Pafy – Getting Thumbnail | 20 Jul, 2020
In this article we will see how we can get the thumbnail of the given youtube video in pafy. Pafy is a python library to download YouTube content and retrieve metadata. Pafy object is the object which contains all the information about the given video. Thumbnails are reduced-size versions of pictures or vi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 462,
"s": 28,
"text": "In this article we will see how we can get the thumbnail of the given youtube video in pafy. Pafy is a python library to download YouTube content and retrieve metadata. Pafy o... |
How to Use Callable Statement in Java to Call Stored Procedure? | 16 Sep, 2021
The CallableStatement of JDBC API is used to call a stored procedure. A Callable statement can have output parameters, input parameters, or both. The prepareCall() method of connection interface will be used to create CallableStatement object.
Following are the steps to use Callable Statement in Java to ca... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Sep, 2021"
},
{
"code": null,
"e": 272,
"s": 28,
"text": "The CallableStatement of JDBC API is used to call a stored procedure. A Callable statement can have output parameters, input parameters, or both. The prepareCall() method of c... |
Difference Between Static and Non Static Nested Class in Java | 17 Feb, 2022
Nested classes are divided into two categories namely static and non-static. Nested classes that are declared static are called static nested classes. Non-static nested classes are called inner classes.
A class can either be static or non-static in java. So there is a lot of difference between making a cla... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 257,
"s": 54,
"text": "Nested classes are divided into two categories namely static and non-static. Nested classes that are declared static are called static nested classes. Non-static nested class... |
Personalized Task Manager in Python | 22 Jul, 2021
In this article, we are going to create a task management software in Python. This software is going to be very useful for those who don’t want to burden themselves with which task they have done and which they are left with. Being a coder we have to keep in mind which competition is going on, which course... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 567,
"s": 54,
"text": "In this article, we are going to create a task management software in Python. This software is going to be very useful for those who don’t want to burden themselves with whic... |
Python counter and dictionary intersection example (Make a string using deletion and rearrangement) | 11 May, 2022
Given two strings, find if we can make first string from second by deleting some characters from second and rearranging remaining characters. Examples:
Input : s1 = ABHISHEKsinGH
: s2 = gfhfBHkooIHnfndSHEKsiAnG
Output : Possible
Input : s1 = Hello
: s2 = dnaKfhelddf
Output : Not Possible
Inpu... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 206,
"s": 54,
"text": "Given two strings, find if we can make first string from second by deleting some characters from second and rearranging remaining characters. Examples:"
},
{
"code": ... |
How to access private/protected method outside a class in C++ | 05 Aug, 2021
Prerequisites: Access Modifiers in C++, Runtime Polymorphism
Private: The class members declared as private can be accessed only by the functions inside the class. They are not allowed to be accessed directly by any object or function outside the class. Only the member functions or the friend functions are... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 115,
"s": 54,
"text": "Prerequisites: Access Modifiers in C++, Runtime Polymorphism"
},
{
"code": null,
"e": 417,
"s": 115,
"text": "Private: The class members declared as priva... |
SAS | COMPRESS Function with Examples | 29 Jul, 2019
COMPRESS function is basically used to compress/removes all the spaces/blanks in a character string. In other words, it removes leading, between and trailing spaces from the strings.
The COMPRESS function allows null arguments. A null argument is treated as a string that features a length of zero.
Example:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2019"
},
{
"code": null,
"e": 211,
"s": 28,
"text": "COMPRESS function is basically used to compress/removes all the spaces/blanks in a character string. In other words, it removes leading, between and trailing spaces from the s... |
Create a Gif Search Engine Using JavaScript | 28 Dec, 2020
In this article, we will create a Gif Search Engine using JavaScript. The basic application of Gif search Engine is to search the images from the given user input keywords and the output of the images will be loaded on the same page with different aspect ratios and sizes provided by Giphy. To get the outpu... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 417,
"s": 54,
"text": "In this article, we will create a Gif Search Engine using JavaScript. The basic application of Gif search Engine is to search the images from the given user input keywords an... |
Python | Handling recursion limit | 26 May, 2021
When you execute a recursive function in Python on a large input ( > 10^4), you might encounter a “maximum recursion depth exceeded error”. This is a common error when executing algorithms such as DFS, factorial, etc. on large inputs. This is also common in competitive programming on multiple platforms whe... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 2902,
"s": 52,
"text": "When you execute a recursive function in Python on a large input ( > 10^4), you might encounter a “maximum recursion depth exceeded error”. This is a common error when execu... |
Ruby | Constructors | 03 May, 2022
A constructor is a special method of the class which gets automatically invoked whenever an instance of the class is created. Like methods, a constructor may also contain the group of instructions or a method which will execute at the time of object creation.
Constructors are used to initialize the instanc... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 313,
"s": 53,
"text": "A constructor is a special method of the class which gets automatically invoked whenever an instance of the class is created. Like methods, a constructor may also contain the... |
How to Create Navigation Links using HTML5 ? | 14 Jul, 2020
In this article, we create a navigation link by using the <nav> tag in the document. The nav element represents a section of the page whose purpose is to provide navigational links, either in the current document or to other documents. The links in the “nav” element may point to other webpages or to differ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jul, 2020"
},
{
"code": null,
"e": 475,
"s": 28,
"text": "In this article, we create a navigation link by using the <nav> tag in the document. The nav element represents a section of the page whose purpose is to provide navigational ... |
How to use the SetValue(,) method of array class in C#? | The SetValue() method sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer.
Firstly, set the array.
Array arr = Array.CreateInstance(typeof(String), 6);
No set values to the element using the SetValue() method.
arr.SetValue("One", 0);
arr.SetValu... | [
{
"code": null,
"e": 1212,
"s": 1062,
"text": "The SetValue() method sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer."
},
{
"code": null,
"e": 1236,
"s": 1212,
"text": "Firstly, set the array."
},
... |
Missing Number in Python | Suppose we have a list of numbers from 0 to n. There is one number that is missing. We have to find the missing number in an efficient approach. So if A = [0, 1, 2, 3, 4, 5, 7, 8, 9], missing number is 6.
To solve this, we will use the binary search approach.
sort the list in ascending order
high = length of A, and low... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "Suppose we have a list of numbers from 0 to n. There is one number that is missing. We have to find the missing number in an efficient approach. So if A = [0, 1, 2, 3, 4, 5, 7, 8, 9], missing number is 6."
},
{
"code": null,
"e": 1322,
"... |
URLField – Django Forms | 13 Feb, 2020
URLField in Django Forms is a URL field, for input of URLs from an user. This field is intended for use in representing a model URLField in forms. The default widget for this input is URLInput. It uses URLValidator to validate that the given value is a valid URL.
Syntax
field_name = forms.URLField(**option... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2020"
},
{
"code": null,
"e": 292,
"s": 28,
"text": "URLField in Django Forms is a URL field, for input of URLs from an user. This field is intended for use in representing a model URLField in forms. The default widget for this ... |
Python OpenCV | cv2.rectangle() method | 13 Aug, 2019
OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.rectangle() method is used to draw a rectangle on any image.
Syntax: cv2.rectangle(image, start_point, end_point, color, thickness)
Parameters:image: It is the image on which rectangle is to be drawn.start_point: ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 208,
"s": 53,
"text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.rectangle() method is used to draw a rectangle on any image."
},
{
"code... |
Spoofcheck – Domain Spoofer Checker in kali linux | 21 Jul, 2021
Spoofcheck is a python based tool that is used to check whether the domain can be spoofed or not. This is the best tool for web developers who are creating websites and web applications and want to host on web servers. The script checks SPF and DMARC history of weak configurations and settings of the domai... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 985,
"s": 53,
"text": "Spoofcheck is a python based tool that is used to check whether the domain can be spoofed or not. This is the best tool for web developers who are creating websites and web a... |
Reduced Row Echelon Form (rref) Matrix in MATLAB | 14 May, 2021
Reduced Row Echelon Form of a matrix is used to find the rank of a matrix and further allows to solve a system of linear equations. A matrix is in Row Echelon form if
All rows consisting of only zeroes are at the bottom.
The first nonzero element of a nonzero row is always strictly to the right of the firs... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 195,
"s": 28,
"text": "Reduced Row Echelon Form of a matrix is used to find the rank of a matrix and further allows to solve a system of linear equations. A matrix is in Row Echelon form if"
},
... |
Python | numpy.nanmean() function | 01 Jun, 2021
numpy.nanmean() function can be used to calculate the mean of array ignoring the NaN value. If array have NaN value and we can find out the mean without effect of NaN value.
Syntax: numpy.nanmean(a, axis=None, dtype=None, out=None, keepdims=))Parameters: a: [arr_like] input array axis: we can use axis=1 m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 203,
"s": 28,
"text": "numpy.nanmean() function can be used to calculate the mean of array ignoring the NaN value. If array have NaN value and we can find out the mean without effect of NaN value. "... |
Length of longest increasing subsequence in a string | 02 Jun, 2021
Given a string S, the task is to find the length of the longest increasing subsequence present in the given string.
A sequence of characters placed in increasing order of their ASCII values is called an increasing sequence.
Examples:
Input: S = “abcfgffs”Output: 6Explanation: Subsequence “abcfgs” is the lo... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 168,
"s": 52,
"text": "Given a string S, the task is to find the length of the longest increasing subsequence present in the given string."
},
{
"code": null,
"e": 276,
"s": 168,
... |
GATE | GATE-CS-2016 (Set 1) | Question 64 | 14 Feb, 2018
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the ma... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Feb, 2018"
},
{
"code": null,
"e": 674,
"s": 52,
"text": "For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per ... |
Can C++ reference member be declared without being initialized with declaration? | 26 Apr, 2021
To many readers, this might sound the same thing, i.e.
class_type *var = NULL;
*var = &some_work;
is same as
class_type *var = &some_work;
But in actual, it is not. When the declaration and initialization are done at the same step, the compiler calls the copy constructor whereas if done in another step... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 109,
"s": 52,
"text": "To many readers, this might sound the same thing, i.e. "
},
{
"code": null,
"e": 195,
"s": 109,
"text": "class_type *var = NULL;\n*var = &some_work;\n\ni... |
How to use TextField Component in ReactJS ? | 10 Feb, 2021
TextField component is a complete form control including a label, input, and help text. Material UI for React has this component available for us and it is very easy to integrate. We can use TextField Component in ReactJS using the following approach:
Creating React Application And Installing Module:
Step ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Feb, 2021"
},
{
"code": null,
"e": 280,
"s": 28,
"text": "TextField component is a complete form control including a label, input, and help text. Material UI for React has this component available for us and it is very easy to integr... |
How to fill all input fields automatically from database by entering input in one textbox using PHP ? | 08 Feb, 2021
XAMPP is a free and open-source cross-platform web server solution developed by Apache Friends, consisting mainly of the Apache HTTP Server, MySQL database, and interpreter for scripts written in the PHP programming language. The XAMPP server helps to start Apache and MySQL and connect them with the PHP fi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Feb, 2021"
},
{
"code": null,
"e": 363,
"s": 52,
"text": "XAMPP is a free and open-source cross-platform web server solution developed by Apache Friends, consisting mainly of the Apache HTTP Server, MySQL database, and interpreter f... |
C# Program to Sort a List of String Names Using the LINQ OrderBy() Method | 06 Dec, 2021
Given a list of string names, now our task is to sort the names given in the list using the OrderBy() method of LINQ. This method is used to sort the elements in the collection in ascending order. While using this method in the LINQ query you don’t need to add an extra condition to sort the list in ascendi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Dec, 2021"
},
{
"code": null,
"e": 345,
"s": 28,
"text": "Given a list of string names, now our task is to sort the names given in the list using the OrderBy() method of LINQ. This method is used to sort the elements in the collectio... |
How to create a style tag using JavaScript? | 02 Sep, 2021
The document.createElement(‘style’) method is used to create the style element using JavaScript. The steps to create style element are listed below:
Steps:
Create a style element using the following syntax Syntax:
document.createElement('style');
Apply the CSS styles.
Append this style element to the hea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 177,
"s": 28,
"text": "The document.createElement(‘style’) method is used to create the style element using JavaScript. The steps to create style element are listed below:"
},
{
"code": null... |
Print all palindrome permutations of a string | 30 Jun, 2022
Given a string, we need to print all possible palindromes that can be generated using letters of that string. Examples:
Input: str = "aabcb"
Output: abcba bacab
Input: str = "aabbcadad"
Output: aabdcdbaa aadbcbdaa abadcdaba
abdacadba adabcbada adbacabda
baadcdaab badacadab bdaacaadb
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 174,
"s": 54,
"text": "Given a string, we need to print all possible palindromes that can be generated using letters of that string. Examples:"
},
{
"code": null,
"e": 395,
"s": 174... |
Log transformation of an image using Python and OpenCV | 09 Mar, 2020
Logarithm value of a number is a number that raises power to a base number which gives the same number as in input. Simply, the logarithm is the inversion of exponential value of a number.
log(exp(x)) = x
Let’s see an example,
By applying logarithm in both sides,
log(2^3) = log(8)
3 * log(2) = log(8)
3 = l... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n09 Mar, 2020"
},
{
"code": null,
"e": 242,
"s": 53,
"text": "Logarithm value of a number is a number that raises power to a base number which gives the same number as in input. Simply, the logarithm is the inversion of exponential valu... |
Find Duplicates in MS SQL Server | 08 Sep, 2020
We could use the following methods to find duplicate values in a table.
GROUP BY clause.
ROW_NUMBER() function.
1. Using the GROUP BY clause to find the duplicate values :
Syntax :
SELECT col1, col2, ...COUNT(*)
FROM table_name
GROUP BY col1, col2, ...
HAVING COUNT(*) > 1;
Example –Let us create a table na... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Sep, 2020"
},
{
"code": null,
"e": 100,
"s": 28,
"text": "We could use the following methods to find duplicate values in a table."
},
{
"code": null,
"e": 117,
"s": 100,
"text": "GROUP BY clause."
},
{
"co... |
Find sum in range L to R in given sequence of integers | 22 Nov, 2021
Given an array arr[] of integers and a sequence of the form:
[ 2, 3, 0, 1, 6, 7, 4, 5, ... ].
Also given two integer L and R such that . The task is to find the sum of all numbers in given range from L to R.Examples:
Input : L = 0, R = 5
Output : 19
Explanation :
The arr[] is {2, 3, 0, 1, 6, 7}.
sum... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 91,
"s": 28,
"text": "Given an array arr[] of integers and a sequence of the form: "
},
{
"code": null,
"e": 126,
"s": 91,
"text": "[ 2, 3, 0, 1, 6, 7, 4, 5, ... ]. "
},
{
... |
How to change PowerShell ISE font Size using command? | To change the font size of the PowerShell ISE editor using the command, we need to use the cmdlet $PSISE which is only loaded inside the PowerShell ISE console. You won’t find it in the main PowerShell console.
Once you run this command, there are various properties available. For example,
PS C:\> $psISE
CurrentPowerSh... | [
{
"code": null,
"e": 1398,
"s": 1187,
"text": "To change the font size of the PowerShell ISE editor using the command, we need to use the cmdlet $PSISE which is only loaded inside the PowerShell ISE console. You won’t find it in the main PowerShell console."
},
{
"code": null,
"e": 1478,... |
Java Program to Print all Unique Words of a String | 26 Apr, 2022
Java program to print all unique words present in the string. The task is to print all words occurring only once in the string.
Illustration:
Input : Welcome to Geeks for Geeks.
Output : Welcome
to
for
Input : Java is great.Python is also great.
Output : Java
Python
a... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Apr, 2022"
},
{
"code": null,
"e": 181,
"s": 53,
"text": "Java program to print all unique words present in the string. The task is to print all words occurring only once in the string."
},
{
"code": null,
"e": 195,
... |
Matplotlib – Slider Widget | 16 Jul, 2021
Matplotlib provides several widgets to make interactive plots. Among these widgets, the Slider widget is discussed here. The Slider provides control over the visual properties of the plot. Slider() is used to place a slider representing a floating point range in a plot on provided axes.
Syntax:
class matp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "Matplotlib provides several widgets to make interactive plots. Among these widgets, the Slider widget is discussed here. The Slider provides control over the visual properties... |
Python program to get the nth weekday after a given date | 27 Dec, 2021
Given a date and weekday index, the task is to write a Python program to get the date for the given day of the week occurring after the given date. The weekday index is based on the below table:
Examples:
Input : test_date = datetime.datetime(2017, 3, 14), weekday_idx = 4
Output : 2017-03-17
Explanation :... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 223,
"s": 28,
"text": "Given a date and weekday index, the task is to write a Python program to get the date for the given day of the week occurring after the given date. The weekday index is based ... |
Get Yesterday’s date using Python | 02 Sep, 2021
Prerequisite: datetime moduleIn Python, date and time are not a data type of its own, but a module named datetime can be imported to work with the date as well as time. Datetime module comes built into Python, so there is no need to install it externally.
To work with date, datetime module provides the da... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Prerequisite: datetime moduleIn Python, date and time are not a data type of its own, but a module named datetime can be imported to work with the date as well as time. Dateti... |
Print all the sub diagonal elements of the given square matrix | 27 Apr, 2021
Given a square matrix mat[][] of size n * n. The task is to print all the elements which lie on the sub-diagonal of the given matrix.Examples:
Input: mat[][] = { {1, 2, 3}, {3, 3, 4, }, {2, 4, 6}} Output: 3 4Input: mat[][] = { {1, 2, 3, 4}, {3, 3, 4, 4}, {2, 4, 6, 3}, {1, 1, 1, 3}} Output: 3 4 1
Appr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2021"
},
{
"code": null,
"e": 173,
"s": 28,
"text": "Given a square matrix mat[][] of size n * n. The task is to print all the elements which lie on the sub-diagonal of the given matrix.Examples: "
},
{
"code": null,
... |
Linear Algebra for Deep Learning. The Math behind every deep learning... | by Vihar Kurama | Towards Data Science | The Math behind every deep learning program.
Deep Learning is a subdomain of machine learning, concerned with the algorithm which imitates the function and structure of the brain called the artificial neural network.
Linear algebra is a form of continuous rather than discrete mathematics, many computer scientists have ... | [
{
"code": null,
"e": 216,
"s": 171,
"text": "The Math behind every deep learning program."
},
{
"code": null,
"e": 388,
"s": 216,
"text": "Deep Learning is a subdomain of machine learning, concerned with the algorithm which imitates the function and structure of the brain called ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.