title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
GATE | GATE CS 2013 | Question 11 - GeeksforGeeks | 28 Jun, 2021
Match the problem domains in GROUP I with the solution technologies in GROUP II
GROUP I GROUP II
(P) Service oriented computing (1) Interoperability
(Q) Heterogeneous communicating systems (2) BPMN
(R) Information representation ... | [
{
"code": null,
"e": 24075,
"s": 24047,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24155,
"s": 24075,
"text": "Match the problem domains in GROUP I with the solution technologies in GROUP II"
},
{
"code": null,
"e": 24461,
"s": 24155,
"text": "GROUP I ... |
How to create user defined exceptions in C#? | Like any other programming language, in C#, you can easily create user-defined exception. User-defined exception classes are derived from the Exception class.
In the below example, the exception created is not a built-in exception.
TempIsZeroException
You can try to run the following code to learn how to create user de... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "Like any other programming language, in C#, you can easily create user-defined exception. User-defined exception classes are derived from the Exception class."
},
{
"code": null,
"e": 1294,
"s": 1221,
"text": "In the below example, t... |
How to find the first and last character of a string in Java - GeeksforGeeks | 23 Jul, 2020
Given a string str, the task is to print the first and the last character of the string.
Examples:
Input: str = “GeeksForGeeks”
Output:
First: G
Last: s
Explanation: The first character of the given string is ‘G’ and the last character of given string is ‘s’.
Input: str = “Java”
Output:
First: J
Last: a
E... | [
{
"code": null,
"e": 24262,
"s": 24234,
"text": "\n23 Jul, 2020"
},
{
"code": null,
"e": 24351,
"s": 24262,
"text": "Given a string str, the task is to print the first and the last character of the string."
},
{
"code": null,
"e": 24361,
"s": 24351,
"text": "E... |
Displaying 3D images in Python - GeeksforGeeks | 06 Jul, 2021
In this article, we will discuss how to display 3D images using different methods, (i.e 3d projection, view_init() method, and using a loop) in Python.
Matplotlib: It is a plotting library for Python programming it serves as a visualization utility library, Matplotlib is built on NumPy arrays, and designed... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 24444,
"s": 24292,
"text": "In this article, we will discuss how to display 3D images using different methods, (i.e 3d projection, view_init() method, and using a loop) in Python."
},
{
... |
Neo4j - With Clause | You can chain the query arts together using the WITH clause.
Following is the syntax of the WITH clause.
MATCH (n)
WITH n
ORDER BY n.property
RETURN collect(n.property)
Following is a sample Cypher Query which demonstrates the usage of the WITH clause.
MATCH (n)
WITH n
ORDER BY n.name DESC LIMIT 3
RETURN collec... | [
{
"code": null,
"e": 2400,
"s": 2339,
"text": "You can chain the query arts together using the WITH clause."
},
{
"code": null,
"e": 2444,
"s": 2400,
"text": "Following is the syntax of the WITH clause."
},
{
"code": null,
"e": 2513,
"s": 2444,
"text": "MATCH ... |
How to create an empty tuple in Python? | You can create empty tuple object by giving no elements in parentheses in assignment statement. Empty tuple object is also created by tuple() built-in function without any arguments
>>> T1 = ()
>>> T1
()
>>> T1 = tuple()
>>> T1
() | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "You can create empty tuple object by giving no elements in parentheses in assignment statement. Empty tuple object is also created by tuple() built-in function without any arguments"
},
{
"code": null,
"e": 1293,
"s": 1244,
"text": "... |
ggplot: Grammar of Graphics in Python with Plotnine | by Alan Jones | Towards Data Science | Do you wish that Python could emulate the superb visualizations that ggplot gives you in the R language? Well, it can.
We are going to explore the capabilities of Plotnine, a visualization library for Python that is based on ggplot2.
Being able to visualize your data gives you the ability to better understand it. It gi... | [
{
"code": null,
"e": 290,
"s": 171,
"text": "Do you wish that Python could emulate the superb visualizations that ggplot gives you in the R language? Well, it can."
},
{
"code": null,
"e": 405,
"s": 290,
"text": "We are going to explore the capabilities of Plotnine, a visualizati... |
How to Tune the Hyperparameters for Better Performance | by Soner Yıldırım | Towards Data Science | There are various ready-to-use machine learning algorithms. They all have their pros and cons. For a given task, it is the job of the machine learning engineer or data scientist to select the optimal algorithm and make the most out of it.
A critical part of making the most out of a model is hyperparameter tuning. The p... | [
{
"code": null,
"e": 411,
"s": 172,
"text": "There are various ready-to-use machine learning algorithms. They all have their pros and cons. For a given task, it is the job of the machine learning engineer or data scientist to select the optimal algorithm and make the most out of it."
},
{
"c... |
C++ Relational Operators | Try the following example to understand all the relational operators available in C++.
Copy and paste the following C++ program in test.cpp file and compile and run this program.
#include <iostream>
using namespace std;
main() {
int a = 21;
int b = 10;
int c ;
if( a == b ) {
cout << "Line 1 - a is e... | [
{
"code": null,
"e": 2405,
"s": 2318,
"text": "Try the following example to understand all the relational operators available in C++."
},
{
"code": null,
"e": 2497,
"s": 2405,
"text": "Copy and paste the following C++ program in test.cpp file and compile and run this program."
... |
Apply style to the parent if it has a child with CSS and HTML | Parent selectors are not present in CSS3. There is a proposed CSS4 selector, $, to do so, which could look like this (Selecting the li element) −
ul $li ul.sub { ... }
As an alternative, with jQuery, a one-liner you could make use of would be this. The: has() selector selects all elements that have one or more elements... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "Parent selectors are not present in CSS3. There is a proposed CSS4 selector, $, to do so, which could look like this (Selecting the li element) −"
},
{
"code": null,
"e": 1230,
"s": 1208,
"text": "ul $li ul.sub { ... }"
},
{
... |
Program for Mean and median of an unsorted array - GeeksforGeeks | 23 Aug, 2021
Given n size unsorted array, find it’s mean and median.
Mean of an array = (sum of all elements) / (number of elements)
Median of a sorted array of size n is defined as the middle element when n is odd and average of middle two elements when n is even.Since the array is not sorted here, we sort the array ... | [
{
"code": null,
"e": 24865,
"s": 24837,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 24922,
"s": 24865,
"text": "Given n size unsorted array, find it’s mean and median. "
},
{
"code": null,
"e": 24986,
"s": 24922,
"text": "Mean of an array = (sum of all el... |
Setting the position of TKinter labels | 12 Jan, 2021
Tkinter is the standard GUI library for Python. Tkinter in Python comes with a lot of good widgets. Widgets are standard GUI elements, and the Label will also come under these WidgetsNote: For more information, refer to Python GUI – tkinter
Tkinter Label is a widget that is used to implement display boxes... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jan, 2021"
},
{
"code": null,
"e": 270,
"s": 28,
"text": "Tkinter is the standard GUI library for Python. Tkinter in Python comes with a lot of good widgets. Widgets are standard GUI elements, and the Label will also come under these... |
Basis Path Testing | Basis path testing, a structured testing or white box testing technique used for designing test cases intended to examine all possible paths of execution at least once. Creating and executing tests for all possible paths results in 100% statement coverage and 100% branch coverage.
Function fn_delete_element (int value,... | [
{
"code": null,
"e": 6161,
"s": 5879,
"text": "Basis path testing, a structured testing or white box testing technique used for designing test cases intended to examine all possible paths of execution at least once. Creating and executing tests for all possible paths results in 100% statement covera... |
Find the only repetitive element between 1 to n-1 | 27 Jun, 2022
We are given an array arr[] of size n. Numbers are from 1 to (n-1) in random order. The array has only one repetitive element. We need to find the repetitive element.
Examples:
Input : a[] = {1, 3, 2, 3, 4}
Output : 3
Input : a[] = {1, 5, 1, 2, 3, 4}
Output : 1
Method 1 (Simple) We use two nested loops.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 219,
"s": 52,
"text": "We are given an array arr[] of size n. Numbers are from 1 to (n-1) in random order. The array has only one repetitive element. We need to find the repetitive element."
},
... |
Sorting a 2D Array according to values in any given column in Java | 11 Dec, 2018
We are given a 2D array of order N X M and a column number K ( 1<=K<=m). Our task is to sort the 2D array according to values in the Column K.
Examples:
Input : If our 2D array is given as (Order 4X4)
39 27 11 42
10 93 91 90
54 78 56 89
24 64 20 65
Sorting it by ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 197,
"s": 54,
"text": "We are given a 2D array of order N X M and a column number K ( 1<=K<=m). Our task is to sort the 2D array according to values in the Column K."
},
{
"code": null,
... |
Python PIL | ImageDraw.Draw.ellipse() | 02 Aug, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageDraw module provide simple 2D graphics for Image objects. You can use this module to create new images, annotate or retouch existing images, and to generate graphics on the fly for web use.
Ima... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 332,
"s": 28,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageDraw module provide simple 2D graphics for Image objects. You... |
PostgreSQL - UNIONS Clause | The PostgreSQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows.
To use UNION, each SELECT must have the same number of columns selected, the same number of column expressions, the same data type, and have them in the same order but they do not h... | [
{
"code": null,
"e": 3098,
"s": 2959,
"text": "The PostgreSQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows."
},
{
"code": null,
"e": 3306,
"s": 3098,
"text": "To use UNION, each SELECT must have the sam... |
Ruby | String gsub Method | 12 Dec, 2019
gsub is a String class method in Ruby which is used to return a copy of the given string with all occurrences of pattern substituted for the second argument.
Syntax: str.gsub(pattern, replacement)
Parameters: Here, str is the given string. pattern may be specified regex or character set to be removed. repl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Dec, 2019"
},
{
"code": null,
"e": 186,
"s": 28,
"text": "gsub is a String class method in Ruby which is used to return a copy of the given string with all occurrences of pattern substituted for the second argument."
},
{
"co... |
Help function in Python | 17 Sep, 2021
The Python help function is used to display the documentation of modules, functions, classes, keywords, etc.
help([object])
object: Call help of the given object.
If the help function is passed without an argument, then the interactive help utility starts up on the console.
Let us check the documentation ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 163,
"s": 53,
"text": "The Python help function is used to display the documentation of modules, functions, classes, keywords, etc. "
},
{
"code": null,
"e": 178,
"s": 163,
"tex... |
Java program to find IP address of your computer | 09 Nov, 2021
An IP(Internet Protocol) address is an identifier assigned to each computer and another device (e.g., router, mobile, etc) connected to a TCP/IP network that is used to locate and identify the node in communication with other nodes on the network. IP addresses are usually written and displayed in human-rea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 423,
"s": 52,
"text": "An IP(Internet Protocol) address is an identifier assigned to each computer and another device (e.g., router, mobile, etc) connected to a TCP/IP network that is used to locat... |
Modify a binary tree to get preorder traversal using right pointers only | 27 May, 2022
Given a binary tree. Modify it in such a way that after modification you can have a preorder traversal of it using only the right pointers. During modification, you can use right as well as left pointers. Examples:
Input : 10
/ \
8 2
/ \
3 5
Output : 10... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 271,
"s": 54,
"text": "Given a binary tree. Modify it in such a way that after modification you can have a preorder traversal of it using only the right pointers. During modification, you can use r... |
Class getName() method in Java with Examples | 27 Jan, 2022
The getName() method of java.lang.Class class is used to get the name of this entity. This entity can be a class, an array, an interface, etc. The method returns the name of the entity as a String.Syntax:
public String getName()
Parameter: This method does not accept any parameter.Return Value: This meth... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 235,
"s": 28,
"text": "The getName() method of java.lang.Class class is used to get the name of this entity. This entity can be a class, an array, an interface, etc. The method returns the name of t... |
\pmatrix - Tex Command | \pmatrix - Used to create matrix enclosed in parentheses.
{ \pmatrix { <math> & <math> ... \cr <repeat as needed> }}
\pmatrix command is used to create matrix enclosed in parentheses; alignment occurs at the ampersands; a double-backslash can be used in place of the \cr; the final \\ or \cr is optional
A = \pmatrix{
a... | [
{
"code": null,
"e": 8178,
"s": 8120,
"text": "\\pmatrix - Used to create matrix enclosed in parentheses."
},
{
"code": null,
"e": 8237,
"s": 8178,
"text": "{ \\pmatrix { <math> & <math> ... \\cr <repeat as needed> }}"
},
{
"code": null,
"e": 8424,
"s": 8237,
... |
Why Java Interfaces Cannot Have Constructor But Abstract Classes Can Have? | 29 Aug, 2021
Prerequisite: Interface and Abstract class in Java.
A Constructor is a special member function used to initialize the newly created object. It is automatically called when an object of a class is created.
Why interfaces can not have the constructor?
An Interface is a complete abstraction of class. All data... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Aug, 2021"
},
{
"code": null,
"e": 104,
"s": 52,
"text": "Prerequisite: Interface and Abstract class in Java."
},
{
"code": null,
"e": 257,
"s": 104,
"text": "A Constructor is a special member function used to in... |
How to Sort data by Column in a CSV File in Python ? | 06 Jun, 2021
In this article, we will discuss how to sort CSV by column(s) using Python.
Method 1: Using sort_values()
We can take the header name as per our requirement, the axis can be either 0 or 1, where 0 means ‘rows’ and ‘1’ means ‘column’. Ascending can be either True/False and if True, it gets arranged in ascen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 104,
"s": 28,
"text": "In this article, we will discuss how to sort CSV by column(s) using Python."
},
{
"code": null,
"e": 134,
"s": 104,
"text": "Method 1: Using sort_values()"... |
Pascal - Basic Syntax | You have seen a basic structure of pascal program, so it will be easy to understand other basic building blocks of the pascal programming language.
A variable definition is put in a block beginning with a var keyword, followed by definitions of the variables as follows:
var
A_Variable, B_Variable ... : Variable_Type;
P... | [
{
"code": null,
"e": 2231,
"s": 2083,
"text": "You have seen a basic structure of pascal program, so it will be easy to understand other basic building blocks of the pascal programming language."
},
{
"code": null,
"e": 2354,
"s": 2231,
"text": "A variable definition is put in a ... |
Explain else-if ladder statement in C language | This is the most general way of writing a multi-way decision.
Refer the syntax given below −
if (condition1)
stmt1;
else if (condition2)
stmt2;
- - - - -
- - - - -
else if (condition n)
stmtn;
else
stmt x;
Refer the algorithm given below −
START
Step 1: Declare int variables.
Step 2: Read a,b,c,d values at runtime
Step... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "This is the most general way of writing a multi-way decision."
},
{
"code": null,
"e": 1155,
"s": 1124,
"text": "Refer the syntax given below −"
},
{
"code": null,
"e": 1268,
"s": 1155,
"text": "if (condition1)\ns... |
Can we extend interfaces in Java? Explain? | An interface in Java is similar to class but, it contains only abstract methods and fields which are final and static.
Just like classes you can extend one interface from another using the extends keyword as shown below −
interface ArithmeticCalculations{
public abstract int addition(int a, int b);
public abstrac... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "An interface in Java is similar to class but, it contains only abstract methods and fields which are final and static."
},
{
"code": null,
"e": 1284,
"s": 1181,
"text": "Just like classes you can extend one interface from another usi... |
Python | Pandas Timestamp.to_datetime64 - GeeksforGeeks | 17 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Timestamp.to_datetime64() function return a numpy.datetime64 object with ‘ns’ precisio... | [
{
"code": null,
"e": 24649,
"s": 24621,
"text": "\n17 Jan, 2019"
},
{
"code": null,
"e": 24863,
"s": 24649,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
Canonical Huffman Coding - GeeksforGeeks | 19 Aug, 2021
Huffman Coding is a lossless data compression algorithm where each character in the data is assigned a variable length prefix code. The least frequent character gets the largest code and the most frequent one gets the smallest code. Encoding the data using this technique is very easy and efficient. However... | [
{
"code": null,
"e": 25841,
"s": 25813,
"text": "\n19 Aug, 2021"
},
{
"code": null,
"e": 26930,
"s": 25841,
"text": "Huffman Coding is a lossless data compression algorithm where each character in the data is assigned a variable length prefix code. The least frequent character ge... |
Size of ROM for n-bit Adder/Subtractor - GeeksforGeeks | 15 Feb, 2021
ROM is a read-only memory which is used to store the data. The memory in the ROM is organized as a two-dimensional array of memory cells. The memory will read or write the contents of one of the rows of the array. This row is specified by an Address which are bits. The value read or written is called Data.... | [
{
"code": null,
"e": 26049,
"s": 26021,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 26358,
"s": 26049,
"text": "ROM is a read-only memory which is used to store the data. The memory in the ROM is organized as a two-dimensional array of memory cells. The memory will read or w... |
Put spaces between words starting with capital letters - GeeksforGeeks | 25 Jun, 2021
You are given an array of characters which is basically a sentence. However, there is no space between different words and the first letter of every word is in uppercase. You need to print this sentence after following amendments: (i) Put a single space between these words. (ii) Convert the uppercase lette... | [
{
"code": null,
"e": 26037,
"s": 26009,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 26361,
"s": 26037,
"text": "You are given an array of characters which is basically a sentence. However, there is no space between different words and the first letter of every word is in upp... |
PHP | date_sub() Function - GeeksforGeeks | 28 Nov, 2019
The date_sub() is an inbuilt function in PHP which is used to subtract some days, months, years, hours, minutes, and seconds from given date. The function returns a DateTime object on success and returns FALSE on failure.
Syntax:
date_sub($object, $interval)
Parameters: The date_sub() function accepts two ... | [
{
"code": null,
"e": 42139,
"s": 42111,
"text": "\n28 Nov, 2019"
},
{
"code": null,
"e": 42361,
"s": 42139,
"text": "The date_sub() is an inbuilt function in PHP which is used to subtract some days, months, years, hours, minutes, and seconds from given date. The function returns ... |
Python | sympy.atan() method - GeeksforGeeks | 17 Jan, 2022
In simpy, atan() method is an inverse tangent function. Using the atan(x) method in simpy module, we can compute the inverse tangent or arctangent of x.
Syntax : sympy.atan(x)
Return : Returns the arc tangent of x
Code #1:Below is the example using atan() method to find inverse tangent function.
Python3
... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 25690,
"s": 25537,
"text": "In simpy, atan() method is an inverse tangent function. Using the atan(x) method in simpy module, we can compute the inverse tangent or arctangent of x."
},
{
... |
Find the size of a Dictionary in Python - GeeksforGeeks | 17 May, 2020
Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element, Dictionary holds key:value pair. Key value is provided in the dictionary to make it more optimized. The size of a Dictionary means t... | [
{
"code": null,
"e": 26033,
"s": 26005,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 26488,
"s": 26033,
"text": "Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as ... |
Playfair Cipher with Examples - GeeksforGeeks | 24 Dec, 2021
The Playfair cipher was the first practical digraph substitution cipher. The scheme was invented in 1854 by Charles Wheatstone but was named after Lord Playfair who promoted the use of the cipher. In playfair cipher unlike traditional cipher we encrypt a pair of alphabets(digraphs) instead of a single alph... | [
{
"code": null,
"e": 25733,
"s": 25705,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 26292,
"s": 25733,
"text": "The Playfair cipher was the first practical digraph substitution cipher. The scheme was invented in 1854 by Charles Wheatstone but was named after Lord Playfair wh... |
HTML <slot> Tag - GeeksforGeeks | 18 Oct, 2021
The slot is the element part of the web component technology which is a placeholder inside a component that you simply can fill together with your own markup, which allows you to make separate DOM trees and represent them together.
Syntax:
<slot>
<h1>Heading</h1>
</slot>
Attributes:
name: It describes ... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 26371,
"s": 26139,
"text": "The slot is the element part of the web component technology which is a placeholder inside a component that you simply can fill together with your own markup, whic... |
Check if Particular Key Exists in Java HashMap - GeeksforGeeks | 20 Nov, 2021
HashMap in Java is the realization of the Hash Table data structure of sorts. It is composed of Key and Value pairs which are symbolically represented as <K,V> where K stands for Key and V for Value. It is an implementation of the Maps Interface and is advantageous in the ways that it provides constant-tim... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n20 Nov, 2021"
},
{
"code": null,
"e": 25706,
"s": 25225,
"text": "HashMap in Java is the realization of the Hash Table data structure of sorts. It is composed of Key and Value pairs which are symbolically represented as <K,V> whe... |
PyQt5 QDateTimeEdit – Setting Display format - GeeksforGeeks | 14 Jul, 2020
In this article we will see how we can set display format of date to the QDateTimeEdit. Display format property holds the format used to display the time/date of the date time edit. By default, we see date in format like 01-01-2000 although by setting display format we can make this date as 1 Jan 2020.
In ... | [
{
"code": null,
"e": 25751,
"s": 25723,
"text": "\n14 Jul, 2020"
},
{
"code": null,
"e": 26055,
"s": 25751,
"text": "In this article we will see how we can set display format of date to the QDateTimeEdit. Display format property holds the format used to display the time/date of t... |
dos.h header in C with examples - GeeksforGeeks | 20 Jul, 2021
dos.h is a header file of C Language. This library has functions that are used for handling interrupts, producing sound, date and time functions, etc. It is Borland specific and works in compilers like Turbo C Compiler.Below are the functions supported by this library:
delay(): The delay() function in C is... | [
{
"code": null,
"e": 25453,
"s": 25425,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 25723,
"s": 25453,
"text": "dos.h is a header file of C Language. This library has functions that are used for handling interrupts, producing sound, date and time functions, etc. It is Borlan... |
How to create a Spotlight Effect using HTML and CSS ? - GeeksforGeeks | 23 Feb, 2021
In this article, we are going to create a spotlight effect over the image when we hover over it. This is mainly based on HTML, CSS and JavaScript. The below steps have to be followed to create this effect.
HTML Section: In this section, we will create a container elements for the background image and the m... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 26827,
"s": 26621,
"text": "In this article, we are going to create a spotlight effect over the image when we hover over it. This is mainly based on HTML, CSS and JavaScript. The below steps ... |
MultiFernet Module in Python - GeeksforGeeks | 20 Apr, 2021
Cryptography is the process or technique of converting plaintext into ciphertext to protect information from the hackers during transmission from one computer to another. Python cryptography module allows the conversion of plaintext or message (in bytes) into ciphertext using the fernet module. The fernet ... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n20 Apr, 2021"
},
{
"code": null,
"e": 26255,
"s": 25555,
"text": "Cryptography is the process or technique of converting plaintext into ciphertext to protect information from the hackers during transmission from one computer to a... |
7 JavaScript Concepts That Every Web Developer Should Know - GeeksforGeeks | 13 Dec, 2021
JavaScript is Everywhere. Millions of webpages are built on JavaScript and it’s not going anywhere at least for now. On one side HTML and CSS give styling to the web pages but on the other side, it’s the magic of JavaScript that makes your web page alive. Today this language is not just limited to your web... | [
{
"code": null,
"e": 26283,
"s": 26255,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 26893,
"s": 26283,
"text": "JavaScript is Everywhere. Millions of webpages are built on JavaScript and it’s not going anywhere at least for now. On one side HTML and CSS give styling to the w... |
cal command in Linux with Examples - GeeksforGeeks | 28 Jul, 2021
If a user wants a quick view of the calendar in the Linux terminal, cal is the command for you. By default, the cal command shows the current month calendar as output.
cal command is a calendar command in Linux which is used to see the calendar of a specific month or a whole year.
Syntax:
cal [ [ month ... | [
{
"code": null,
"e": 25342,
"s": 25314,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25511,
"s": 25342,
"text": "If a user wants a quick view of the calendar in the Linux terminal, cal is the command for you. By default, the cal command shows the current month calendar as out... |
How to set Maximum Date in the DateTimePicker in C#? - GeeksforGeeks | 02 Aug, 2019
In Windows Forms, the DateTimePicker control is used to select and display date/time with a specific format in your form. In DateTimePicker control, you can set the maximum date and time that can be selected in the DateTimePicker using the MaxDate Property. The default value of this property is December 31... | [
{
"code": null,
"e": 25239,
"s": 25211,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 25611,
"s": 25239,
"text": "In Windows Forms, the DateTimePicker control is used to select and display date/time with a specific format in your form. In DateTimePicker control, you can set th... |
What is MySQL NOT NULL constraint and how can we declare a field NOT NULL while creating a table? | Actually, MySQL NOT NULL constraint restricts a column of the table from having a NULL value. Once we applied NOT NULL constraint to a column, then we cannot pass a null value to that column. It cannot be declared on the whole table i.e., in other words, we can say that NOT NULL is a column level constraint.
For declar... | [
{
"code": null,
"e": 1372,
"s": 1062,
"text": "Actually, MySQL NOT NULL constraint restricts a column of the table from having a NULL value. Once we applied NOT NULL constraint to a column, then we cannot pass a null value to that column. It cannot be declared on the whole table i.e., in other words... |
Node.js v8.deserialize() Method - GeeksforGeeks | 28 Jul, 2020
The v8.deserialize() method is an inbuilt application programming interface of the v8 module which is used to deserialize a buffered data into JS value using default deserializer.
Syntax:
v8.deserialize( buffer );
Parameters: This method accepts one parameter as mentioned above and described below:
buffer:... | [
{
"code": null,
"e": 37256,
"s": 37228,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 37436,
"s": 37256,
"text": "The v8.deserialize() method is an inbuilt application programming interface of the v8 module which is used to deserialize a buffered data into JS value using defau... |
JavaFX Label setLabelFor() method example | In JavaFX, you can create a label by instantiating the javafx.scene.control.Label class. This class provides a method named labelFor(). Using this method, you can set the current label as a label for another control node.
This method comes handy while setting, mnemonics, and accelerator parsing.
In the following JavaFX... | [
{
"code": null,
"e": 1284,
"s": 1062,
"text": "In JavaFX, you can create a label by instantiating the javafx.scene.control.Label class. This class provides a method named labelFor(). Using this method, you can set the current label as a label for another control node."
},
{
"code": null,
... |
Implementing Photomosaics in Python | The photomosaic is a technique, where we can split our image into a grid of squares. Each square will be replaced by some other images or colors. So when we want to see the actual image from a certain distance, we can see the actual image, but if we come closer, we can see the grid of different colored blocks.
In this ... | [
{
"code": null,
"e": 1374,
"s": 1062,
"text": "The photomosaic is a technique, where we can split our image into a grid of squares. Each square will be replaced by some other images or colors. So when we want to see the actual image from a certain distance, we can see the actual image, but if we com... |
How to create a module in Java 9? | The module is a package of code and data. The module's code has organized into multiple packages and each package contains java classes and interfaces. The module's data includes resource files and other static information. An important feature of the module is that it contains "module-info.class" file that describes t... | [
{
"code": null,
"e": 1586,
"s": 1062,
"text": "The module is a package of code and data. The module's code has organized into multiple packages and each package contains java classes and interfaces. The module's data includes resource files and other static information. An important feature of the m... |
static Keyword in Java | Static Variables
The static keyword is used to create variables that will exist independently of any instances created for the class. Only one copy of the static variable exists regardless of the number of instances of the class.
Static variables are also known as class variables. Local variables cannot be declared sta... | [
{
"code": null,
"e": 1079,
"s": 1062,
"text": "Static Variables"
},
{
"code": null,
"e": 1292,
"s": 1079,
"text": "The static keyword is used to create variables that will exist independently of any instances created for the class. Only one copy of the static variable exists rega... |
Adaptive Histogram Equalization in Image Processing Using MATLAB - GeeksforGeeks | 22 Nov, 2021
Histogram Equalization is a mathematical technique to widen the dynamic range of the histogram. Sometimes the histogram is spanned over a short range, by equalization the span of the histogram is widened. In digital image processing, the contrast of an image is enhanced using this very technique.
Adaptive... | [
{
"code": null,
"e": 24670,
"s": 24642,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 24969,
"s": 24670,
"text": "Histogram Equalization is a mathematical technique to widen the dynamic range of the histogram. Sometimes the histogram is spanned over a short range, by equalizat... |
Design Turing Machine to reverse string consisting of a’s and b’s | Our aim is to design a Turing machine (TM) to reverse a string consisting of a’s and b’s over an alphabet {a,b}.
Input − aabbab
Output − babbaa
Step 1: Move to the last symbol, replace x for a or x for b and move right to convert the corresponding B to „a‟ or „b‟ accordingly.
Step 2: Move left until the symbol... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "Our aim is to design a Turing machine (TM) to reverse a string consisting of a’s and b’s over an alphabet {a,b}."
},
{
"code": null,
"e": 1190,
"s": 1175,
"text": "Input − aabbab"
},
{
"code": null,
"e": 1206,
"s": 11... |
Datasets in Python. 5 packages that provide easy access to... | by Zolzaya Luvsandorj | Towards Data Science | There are useful Python packages that allow loading publicly available datasets with just a few lines of code. In this post, we will look at 5 packages that give instant access to a range of datasets. For each package, we will look at how to check out its list of available datasets and how to load an example dataset to... | [
{
"code": null,
"e": 513,
"s": 172,
"text": "There are useful Python packages that allow loading publicly available datasets with just a few lines of code. In this post, we will look at 5 packages that give instant access to a range of datasets. For each package, we will look at how to check out its... |
Construct a linked list from 2D matrix - GeeksforGeeks | 07 Jun, 2021
Given a matrix. Convert it into a linked list matrix such that each node is connected to its next right and down node.Example:
Input : 2D matrix
1 2 3
4 5 6
7 8 9
Output :
1 -> 2 -> 3 -> NULL
| | |
v v v
4 -> 5 -> 6 -> NULL
| | |
v v v
7 -> 8 -> 9 -> NULL
| | |
v v v... | [
{
"code": null,
"e": 31012,
"s": 30984,
"text": "\n07 Jun, 2021"
},
{
"code": null,
"e": 31141,
"s": 31012,
"text": "Given a matrix. Convert it into a linked list matrix such that each node is connected to its next right and down node.Example: "
},
{
"code": null,
"e... |
Get record count for all tables in MySQL database? | To get the count of all the records in MySQL tables, we can use TABLE_ROWS with aggregate function SUM. The syntax is as follows.
SELECT SUM(TABLE_ROWS)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'yourDatabaseName';
Apply the above syntax in order to get the count of records for all tables. The query is ... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "To get the count of all the records in MySQL tables, we can use TABLE_ROWS with aggregate function SUM. The syntax is as follows."
},
{
"code": null,
"e": 1293,
"s": 1192,
"text": "SELECT SUM(TABLE_ROWS)\n FROM INFORMATION_SCHEMA.T... |
8086 program to Print a 16 bit Decimal number - GeeksforGeeks | 17 Jun, 2021
Problem: Write a 8086 program to Print a 16 bit Decimal number.
Examples:
Input: d1 = 655
Output: 655
Input: d1 = 234
Output:234
Explanation:
load the value stored into registerdivide the value by 10push the remainder into the stackincrease the countrepeat the steps until the value of the register is g... | [
{
"code": null,
"e": 24763,
"s": 24735,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 24827,
"s": 24763,
"text": "Problem: Write a 8086 program to Print a 16 bit Decimal number."
},
{
"code": null,
"e": 24838,
"s": 24827,
"text": "Examples: "
},
{
"... |
Android - Hello World Example | Let us start actual programming with Android Framework. Before you start writing your first example using Android SDK, you have to make sure that you have set-up your Android development environment properly as explained in Android - Environment Set-up tutorial. I also assume that you have a little bit working knowledg... | [
{
"code": null,
"e": 3950,
"s": 3607,
"text": "Let us start actual programming with Android Framework. Before you start writing your first example using Android SDK, you have to make sure that you have set-up your Android development environment properly as explained in Android - Environment Set-up ... |
Make Selenium wait 10 seconds. | We can make Selenium wait for 10 seconds. This can be done by using the Thread.sleep method. Here, the wait time (10 seconds) is passed as a parameter to the method.
We can also use the synchronization concept in Selenium for waiting. There are two kinds of wait − implicit and explicit. Both these are of dynamic nature... | [
{
"code": null,
"e": 1228,
"s": 1062,
"text": "We can make Selenium wait for 10 seconds. This can be done by using the Thread.sleep method. Here, the wait time (10 seconds) is passed as a parameter to the method."
},
{
"code": null,
"e": 1512,
"s": 1228,
"text": "We can also use ... |
Remove Primary Key in MySQL? | To remove primary key in MySQL, use tje drop primary key command. To understand the concept, let us create a table with column as primary key.
mysql> create table PrimaryKeyDemo
-> (
-> id int not null,
-> Primary key(id)
-> );
Query OK, 0 rows affected (0.60 sec)
Let us check the description of the table w... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "To remove primary key in MySQL, use tje drop primary key command. To understand the concept, let us create a table with column as primary key."
},
{
"code": null,
"e": 1339,
"s": 1205,
"text": "mysql> create table PrimaryKeyDemo\n ... |
How to Run Animations in Altair and Streamlit | by Angelica Lo Duca | Towards Data Science | Altair is a very popular Python library for data visualisation. Through Altair, you can build very complex charts with few lines of code, since the library follows the guide lines provided by the Vega-lite grammar.
Unfortunately, Altair does not support native animations, because of the complexity of rendering them thr... | [
{
"code": null,
"e": 387,
"s": 172,
"text": "Altair is a very popular Python library for data visualisation. Through Altair, you can build very complex charts with few lines of code, since the library follows the guide lines provided by the Vega-lite grammar."
},
{
"code": null,
"e": 508... |
How to create a timer using tkinter? | In this example, we will create a timer using Python Tkinter. For displaying time, we will use the Time Module in Python.
Initially, we will follow these steps to create the timer,
Create three entry widget each for Hours, Minute and Seconds and set the value ‘00’ by default.
Create a Button for setting the timer. It w... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "In this example, we will create a timer using Python Tkinter. For displaying time, we will use the Time Module in Python."
},
{
"code": null,
"e": 1243,
"s": 1184,
"text": "Initially, we will follow these steps to create the timer,"
... |
Find temperature of missing days using given sum and average - GeeksforGeeks | 01 Apr, 2021
Given integers x and y which denotes the average temperature of the week except for days Day1 and Day2 respectively, and the sum of the temperature of Day1 and Day2 as S, the task is to find the temperature of the days Day1 and Day2.Examples:
Input: x = 15, y = 10, S = 50 Output: Day1 = 10, Day2 = 40 Exp... | [
{
"code": null,
"e": 25231,
"s": 25203,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 25476,
"s": 25231,
"text": "Given integers x and y which denotes the average temperature of the week except for days Day1 and Day2 respectively, and the sum of the temperature of Day1 and Day... |
3D Point Cloud processing tutorial by F. Poux | Towards Data Science | In this article, I will give you my two favourite 3D processes for quickly structuring and sub-sampling point cloud data with python. You will also be able to automate, export, visualize and integrate results into your favourite 3D software, without any coding experience. I will focus on code optimization while using a... | [
{
"code": null,
"e": 612,
"s": 172,
"text": "In this article, I will give you my two favourite 3D processes for quickly structuring and sub-sampling point cloud data with python. You will also be able to automate, export, visualize and integrate results into your favourite 3D software, without any c... |
Convert number to reversed array of digits JavaScript | Let’s say, we have to write a function that takes in a number and returns an array of numbers
with elements as the digits of the number but in reverse order. We will convert the number into a
string, then split it to get an array of strings of digit, then we will convert the string into numbers,
reverse the array and f... | [
{
"code": null,
"e": 1400,
"s": 1062,
"text": "Let’s say, we have to write a function that takes in a number and returns an array of numbers\nwith elements as the digits of the number but in reverse order. We will convert the number into a\nstring, then split it to get an array of strings of digit, ... |
Creating a MySQL Table in NodeJS using Sequelize | Sequealize follows the promise-based Node.js ORM for different servers like – Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server.
Following are some of the main features of NodeJS sequelize −
Transaction Support
Transaction Support
Relations
Relations
Eager and Lazy Loading
Eager and Lazy Loading
Read Replicati... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Sequealize follows the promise-based Node.js ORM for different servers like – Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server."
},
{
"code": null,
"e": 1262,
"s": 1200,
"text": "Following are some of the main features of N... |
Set Column Ordering in Bootstrap | Write the columns in an order, and show them in another one. You can easily change the order of built-in grid columns with .col-md-push-* and .col-md-pull-*modifier classes where * range from 1 to 11.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/b... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "Write the columns in an order, and show them in another one. You can easily change the order of built-in grid columns with .col-md-push-* and .col-md-pull-*modifier classes where * range from 1 to 11."
},
{
"code": null,
"e": 1274,
"s": ... |
Error and Exception Handling in Python: Fundamentals for Data Scientists | by Erdem Isbilen | Towards Data Science | There are mainly three kinds of distinguishable errors in Python: syntax errors, exceptions and logical errors.
Syntax errors are similar to grammar or spelling errors in a Language. If there is such an error in your code, Python cannot start to execute your code. You get a clear error message stating what is wrong and... | [
{
"code": null,
"e": 159,
"s": 47,
"text": "There are mainly three kinds of distinguishable errors in Python: syntax errors, exceptions and logical errors."
},
{
"code": null,
"e": 445,
"s": 159,
"text": "Syntax errors are similar to grammar or spelling errors in a Language. If t... |
Data Structures and Algorithms | Set 30 - GeeksforGeeks | 27 Mar, 2017
Following questions have been asked in GATE CS 2013 exam.
1) Which of the following statements is/are TRUE for an undirected graph?P: Number of odd degree vertices is evenQ: Sum of degrees of all vertices is even
A) P OnlyB) Q OnlyC) Both P and QD) Neither P nor Q
Answer (C)Q is true: Since the graph is un... | [
{
"code": null,
"e": 24388,
"s": 24360,
"text": "\n27 Mar, 2017"
},
{
"code": null,
"e": 24446,
"s": 24388,
"text": "Following questions have been asked in GATE CS 2013 exam."
},
{
"code": null,
"e": 24601,
"s": 24446,
"text": "1) Which of the following statem... |
How to catch ValueError using Exception in Python? | A ValueError is used when a function receives a value that has the right type but an invalid value.
The given code can be rewritten as follows to handle the exception and find its type.
import sys
try:
n = int('magnolia')
except Exception as e:
print e
print sys.exc_type
invalid literal for int() with base 10: 'magnoli... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "A ValueError is used when a function receives a value that has the right type but an invalid value."
},
{
"code": null,
"e": 1248,
"s": 1162,
"text": "The given code can be rewritten as follows to handle the exception and find its ty... |
C# | Adding new node or value at the start of LinkedList<T> - GeeksforGeeks | 01 Feb, 2019
LinkedList<T>.AddFirst Method is used to add a new node or value at the starting of the LinkedList<T>. There are 2 methods in the overload list of this method as follows:
AddFirst(LinkedList<T>)AddFirst(T)
AddFirst(LinkedList<T>)
AddFirst(T)
This method is used to add the specified new node at the starting... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24082,
"s": 23911,
"text": "LinkedList<T>.AddFirst Method is used to add a new node or value at the starting of the LinkedList<T>. There are 2 methods in the overload list of this method as f... |
PhantomJS - Environment Setup | PhantomJS is a free software and is distributed under the BSD License. It is easy to install and it offers multiple features to execute the scripts. PhantomJS can be easily run on multiple platforms such as Windows, Linux, and Mac.
For downloading PhantomJS, you can go to – http://phantomjs.org/ and then click on the d... | [
{
"code": null,
"e": 2376,
"s": 2144,
"text": "PhantomJS is a free software and is distributed under the BSD License. It is easy to install and it offers multiple features to execute the scripts. PhantomJS can be easily run on multiple platforms such as Windows, Linux, and Mac."
},
{
"code":... |
SQL - TRUNCATE TABLE Command | The SQL TRUNCATE TABLE command is used to delete complete data from an existing table.
You can also use DROP TABLE command to delete complete table but it would remove complete table structure form the database and you would need to re-create this table once again if you wish you store some data.
The basic syntax of a ... | [
{
"code": null,
"e": 2540,
"s": 2453,
"text": "The SQL TRUNCATE TABLE command is used to delete complete data from an existing table."
},
{
"code": null,
"e": 2751,
"s": 2540,
"text": "You can also use DROP TABLE command to delete complete table but it would remove complete table... |
Java - isLowerCase() Method | The method determines whether the specified char value is lowercase.
boolean isLowerCase(char ch)
Here is the detail of parameters −
ch − Primitive character type.
ch − Primitive character type.
This method returns true, if the passed character is really in lowercase.
public class Test {
public static void main(St... | [
{
"code": null,
"e": 2446,
"s": 2377,
"text": "The method determines whether the specified char value is lowercase."
},
{
"code": null,
"e": 2476,
"s": 2446,
"text": "boolean isLowerCase(char ch)\n"
},
{
"code": null,
"e": 2511,
"s": 2476,
"text": "Here is the... |
LISP - Comparison Operators | Following table shows all the relational operators supported by LISP that compares between numbers. However unlike relational operators in other languages, LISP comparison operators may take more than two operands and they work on numbers only.
Assume variable A holds 10 and variable B holds 20, then −
Create a new sou... | [
{
"code": null,
"e": 2305,
"s": 2060,
"text": "Following table shows all the relational operators supported by LISP that compares between numbers. However unlike relational operators in other languages, LISP comparison operators may take more than two operands and they work on numbers only."
},
... |
Tryit Editor v3.6 - Show Python | mydb = mysql.connector.connect( | [] |
Rust - Error Handling - GeeksforGeeks | 18 Jul, 2021
An error is basically an unexpected behavior or event that may lead a program to produce undesired output or terminate abruptly. Errors are things that no one wants in their program. We can try to find and analyze parts of the program that can cause errors. Once we found those parts then we can define how ... | [
{
"code": null,
"e": 23548,
"s": 23520,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 24172,
"s": 23548,
"text": "An error is basically an unexpected behavior or event that may lead a program to produce undesired output or terminate abruptly. Errors are things that no one want... |
QueryRunner interface | The org.apache.commons.dbutils.QueryRunner class is the central class in the DBUtils library. It executes SQL queries with pluggable strategies for handling ResultSets. This class is thread safe.
Following is the declaration for org.apache.commons.dbutils.QueryRunner class −
public class QueryRunner
extends Abstract... | [
{
"code": null,
"e": 2348,
"s": 2152,
"text": "The org.apache.commons.dbutils.QueryRunner class is the central class in the DBUtils library. It executes SQL queries with pluggable strategies for handling ResultSets. This class is thread safe."
},
{
"code": null,
"e": 2428,
"s": 2348,... |
fmt.Sscan() Function in Golang With Examples - GeeksforGeeks | 05 May, 2020
In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Sscan() function in Go language scans the specified texts and store the successive space-separated texts into successive arguments. Moreover, this function is defined under the fmt pa... | [
{
"code": null,
"e": 24069,
"s": 24041,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 24459,
"s": 24069,
"text": "In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Sscan() function in Go language scans t... |
\varphi - Tex Command | \varphi - Used to create varphi symbol.
{ \varphi}
\varphi command draws varphi symbol.
\varphi
φ
\varphi
φ
\varphi
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
M... | [
{
"code": null,
"e": 8026,
"s": 7986,
"text": "\\varphi - Used to create varphi symbol."
},
{
"code": null,
"e": 8037,
"s": 8026,
"text": "{ \\varphi}"
},
{
"code": null,
"e": 8074,
"s": 8037,
"text": "\\varphi command draws varphi symbol."
},
{
"code"... |
Data Structures - Environment Setup | If you are still willing to set up your environment for C programming language, you need the following two tools available on your computer, (a) Text Editor and (b) The C Compiler.
This will be used to type your program. Examples of few editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or... | [
{
"code": null,
"e": 2761,
"s": 2580,
"text": "If you are still willing to set up your environment for C programming language, you need the following two tools available on your computer, (a) Text Editor and (b) The C Compiler."
},
{
"code": null,
"e": 2905,
"s": 2761,
"text": "T... |
Find the mean vector of a Matrix in C++ | Suppose we have a matrix of order M x N, we have to find the mean vector of the given matrix. So if the matrix is like −
Then the mean vector is [4, 5, 6] As the mean of each column is (1 + 4 + 7)/3 = 4, (2 + 5 + 8)/3 = 5, and (3 + 6 + 9)/3 = 6
From the example, we can easily identify that if we calculate the mean of e... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "Suppose we have a matrix of order M x N, we have to find the mean vector of the given matrix. So if the matrix is like −"
},
{
"code": null,
"e": 1307,
"s": 1183,
"text": "Then the mean vector is [4, 5, 6] As the mean of each column ... |
Python Object Comparison : “is” vs “==” | 10 Sep, 2018
Both “is” and “==” are used for object comparison in Python. The operator “==” compares values of two objects, while “is” checks if two objects are same (In other words two references to same object).
# Python program to demonstrate working of # "==" # Two different objects having same valuesx1 = [10, 20,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Sep, 2018"
},
{
"code": null,
"e": 229,
"s": 28,
"text": "Both “is” and “==” are used for object comparison in Python. The operator “==” compares values of two objects, while “is” checks if two objects are same (In other words two re... |
Reversing a Stack using two empty Stacks | 24 Aug, 2021
Given a stack S, the task is to reverse the stack S using two additional stacks.
Example:
Input: S={1, 2, 3, 4, 5}Output: 5 4 3 2 1Explanation:The initial stack S:1→top2345After reversing it, use two additional stacks:5→top4321
Input: S={1, 25, 17}Output: 17 25 1
Approach: Follow the steps below to solve t... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 134,
"s": 53,
"text": "Given a stack S, the task is to reverse the stack S using two additional stacks."
},
{
"code": null,
"e": 143,
"s": 134,
"text": "Example:"
},
{
"... |
Python | Check if tuple has any None value | 26 Nov, 2019
Sometimes, while working with Python, we can have a problem in which we have a record and we need to check if it contains all valid values i.e has any None value. This kind of problem is common in data preprocessing steps. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 315,
"s": 28,
"text": "Sometimes, while working with Python, we can have a problem in which we have a record and we need to check if it contains all valid values i.e has any None value. This kind of... |
How to find arctangent with Examples | 21 Oct, 2020
The arctangent is the inverse of the tangent function. It returns the angle whose tangent is the given number.
catan() is an inbuilt function in <complex.h> header file which returns the complex inverse tangent (or arc tangent) of any constant, which divides the imaginary axis on the basis of the inverse t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Oct, 2020"
},
{
"code": null,
"e": 139,
"s": 28,
"text": "The arctangent is the inverse of the tangent function. It returns the angle whose tangent is the given number."
},
{
"code": null,
"e": 580,
"s": 139,
"tex... |
Harshad (Or Niven) Number | 17 Jun, 2022
An integer number in base 10 which is divisible by the sum of its digits is said to be a Harshad Number. An n-harshad number is an integer number divisible by the sum of its digit in base n.Below are the first few Harshad Numbers represented in base 10:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 18, 20.........Give... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 437,
"s": 52,
"text": "An integer number in base 10 which is divisible by the sum of its digits is said to be a Harshad Number. An n-harshad number is an integer number divisible by the sum of its ... |
Python reversed() function | 23 Sep, 2021
Python reversed() method returns an iterator that accesses the given sequence in the reverse order.
reversed(sequ)
sequ : Sequence to be reversed.
returns an iterator that accesses the given sequence in the reverse order.
Here we use tuple and range.
Python3
# Python code to demonstrate working of# reve... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 153,
"s": 53,
"text": "Python reversed() method returns an iterator that accesses the given sequence in the reverse order."
},
{
"code": null,
"e": 169,
"s": 153,
"text": "rever... |
How to deal with error “$ operator is invalid for atomic vectors” in R? | This error occurs because $ operator is not designed to access vector elements. If we use $ operator to access the vector elements then R does not understand it and consider it invalid, therefore, we must be very careful about where we should use $ operator. It happens when we give a name to our elements and start thin... | [
{
"code": null,
"e": 1653,
"s": 1187,
"text": "This error occurs because $ operator is not designed to access vector elements. If we use $ operator to access the vector elements then R does not understand it and consider it invalid, therefore, we must be very careful about where we should use $ oper... |
How to import SASS through npm ? | 02 Oct, 2020
Introduction to SASS: SASS stands for ‘Syntactically awesome style sheets’. It is an extension of CSS, that makes it easy to use variables of CSS, nested rules, inline import, and many other important features
SASS has two syntax options:
SCSS (Sassy CSS): It uses the .scss file extension and is fully comp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Oct, 2020"
},
{
"code": null,
"e": 238,
"s": 28,
"text": "Introduction to SASS: SASS stands for ‘Syntactically awesome style sheets’. It is an extension of CSS, that makes it easy to use variables of CSS, nested rules, inline import,... |
HTML | <font> face Attribute | 28 May, 2019
The HTML <font> face Attribute is used to specify the font family of the text inside <font> element.
Syntax:
<font face="font_family">
Attribute Values: It contains single value font_family which is used to specify the font family. Several font family can be used by separating comma.
Note: The <font> face ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 May, 2019"
},
{
"code": null,
"e": 129,
"s": 28,
"text": "The HTML <font> face Attribute is used to specify the font family of the text inside <font> element."
},
{
"code": null,
"e": 137,
"s": 129,
"text": "Synta... |
numpy.random.uniform() in Python | 18 Aug, 2020
With the help of numpy.random.uniform() method, we can get the random samples from uniform distribution and returns the random samples as numpy array by using this method.
Uniform distribution
Syntax : numpy.random.uniform(low=0.0, high=1.0, size=None)
Return : Return the random samples as numpy array.
Exa... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 225,
"s": 53,
"text": "With the help of numpy.random.uniform() method, we can get the random samples from uniform distribution and returns the random samples as numpy array by using this method."
... |
Logger addHandler() method in Java with Examples | 24 Jun, 2021
addHandler() method of a Logger class used to add a log Handler to receive logging messages. A Handler is a component of JVM that takes care of actual logging to the defined output writers like a file, console out etc. one or more Handlers can be added to a Logger. When different types of messages are logg... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 541,
"s": 28,
"text": "addHandler() method of a Logger class used to add a log Handler to receive logging messages. A Handler is a component of JVM that takes care of actual logging to the defined o... |
nslookup command in Linux with Examples | 09 Nov, 2021
Nslookup (stands for “Name Server Lookup”) is a useful command for getting information from the DNS server. It is a network administration tool for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or any other specific DNS record. It is also used to troubleshoot DNS-related... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 373,
"s": 54,
"text": "Nslookup (stands for “Name Server Lookup”) is a useful command for getting information from the DNS server. It is a network administration tool for querying the Domain Name S... |
Boundary Value Analysis – Triangle Problem | 11 Jun, 2021
Boundary Value Analysis (BVA) is a black box software testing technique where test cases are designed using boundary values. BVA is based on the single fault assumption, also known as critical fault assumption which states that failures are rarely the product of two or more simultaneous faults. Hence while... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 483,
"s": 28,
"text": "Boundary Value Analysis (BVA) is a black box software testing technique where test cases are designed using boundary values. BVA is based on the single fault assumption, also ... |
Software Engineering | Software Quality | 30 Sep, 2019
Traditionally, a high-quality product is outlined in terms of its fitness of purpose. That is, a high-quality product will specifically what the users need it to try to. For code merchandise, the fitness of purpose is typically taken in terms of satisfaction of the wants arranged down within the SRS docume... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2019"
},
{
"code": null,
"e": 684,
"s": 28,
"text": "Traditionally, a high-quality product is outlined in terms of its fitness of purpose. That is, a high-quality product will specifically what the users need it to try to. For c... |
Is it possible to manually set the attribute value of a Web Element using Selenium? | Yes it is possible to manually set the attribute value of a web element in Selenium webdriver using the JavaScript Executor. Selenium can run JavaScript commands with the help of the executeScript method.
First, we shall identify the element on which we want to manually set the attribute value with the JavaScript comma... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "Yes it is possible to manually set the attribute value of a web element in Selenium webdriver using the JavaScript Executor. Selenium can run JavaScript commands with the help of the executeScript method."
},
{
"code": null,
"e": 1484,
"... |
Reading a text file into an Array in Node.js | We can read a text file and return its content as an Array using node.js. We can use this array content to either process its lines or just for the sake of reading. We can use the 'fs' module to deal with the reading of file. The fs.readFile() and fs.readFileSync() methods are used for the reading files. We can also re... | [
{
"code": null,
"e": 1421,
"s": 1062,
"text": "We can read a text file and return its content as an Array using node.js. We can use this array content to either process its lines or just for the sake of reading. We can use the 'fs' module to deal with the reading of file. The fs.readFile() and fs.re... |
The easiest way to download YouTube videos using Python | by Eryk Lewinson | Towards Data Science | In one of my first articles on Medium, I showed how to train a Convolutional Neural Network to classify images coming from old GameBoy games — Mario and Wario. After over a year, I wanted to revisit one aspect of the process — downloading videos (and potentially audio) from YouTube videos and extracting frames as image... | [
{
"code": null,
"e": 432,
"s": 47,
"text": "In one of my first articles on Medium, I showed how to train a Convolutional Neural Network to classify images coming from old GameBoy games — Mario and Wario. After over a year, I wanted to revisit one aspect of the process — downloading videos (and poten... |
How to Easily Use Gradient Accumulation in Keras Models | by Raz Rotenberg | Towards Data Science | In another article, we covered what is gradient accumulation in deep learning and how it can solve issues when running neural networks with large batch sizes.
In this article, we will first see how you can easily use the generic gradient accumulation tool we implemented and used at Run:AI. Then, we will deep-dive into ... | [
{
"code": null,
"e": 331,
"s": 172,
"text": "In another article, we covered what is gradient accumulation in deep learning and how it can solve issues when running neural networks with large batch sizes."
},
{
"code": null,
"e": 562,
"s": 331,
"text": "In this article, we will fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.