title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
SortedList with Examples in C#? | The SortedList class in C# represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index.
Following are the properties of the SortedList class −
Following are some of the methods of the Sorted class −
Let us now see some examples −
To get the number of elements contained ... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "The SortedList class in C# represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index."
},
{
"code": null,
"e": 1255,
"s": 1200,
"text": "Following are the properties of the SortedLi... |
Mutex vs Semaphore | Mutex and Semaphore both provide synchronization services but they are not the same. Details about both Mutex and Semaphore are given below −
Mutex is a mutual exclusion object that synchronizes access to a resource. It is created with a unique name at the start of a program. The Mutex is a locking mechanism that makes... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "Mutex and Semaphore both provide synchronization services but they are not the same. Details about both Mutex and Semaphore are given below −"
},
{
"code": null,
"e": 1540,
"s": 1204,
"text": "Mutex is a mutual exclusion object that ... |
A Practical Guide to Linear Regression | by Destin Gong | Towards Data Science | Linear regression is a typical regression algorithm that is responsible for numeric prediction. It is distinct to classification models — such as decision tree, support vector machine or neural network. In a nutshell, a linear regression finds the optimal linear relationship between independent variables and dependent ... | [
{
"code": null,
"e": 538,
"s": 172,
"text": "Linear regression is a typical regression algorithm that is responsible for numeric prediction. It is distinct to classification models — such as decision tree, support vector machine or neural network. In a nutshell, a linear regression finds the optimal... |
Android Hello World Example | Android Hello World Run on Emulator | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we will see our first Andro... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Count numbers from range whose prime factors are only 2 and 3 - GeeksforGeeks | 18 Nov, 2021
Given two positive integers L and R, the task is to count the elements from the range [L, R] whose prime factors are only 2 and 3.Examples:
Input: L = 1, R = 10 Output: 6 2 = 2 3 = 3 4 = 2 * 2 6 = 2 * 3 8 = 2 * 2 * 2 9 = 3 * 3Input: L = 100, R = 200 Output: 5
Approach: Start a loop from L to R and fo... | [
{
"code": null,
"e": 25514,
"s": 25486,
"text": "\n18 Nov, 2021"
},
{
"code": null,
"e": 25656,
"s": 25514,
"text": "Given two positive integers L and R, the task is to count the elements from the range [L, R] whose prime factors are only 2 and 3.Examples: "
},
{
"code":... |
Area of a polygon with given n ordered vertices in C++ | In this program, we have to find the area of a polygon. The coordinates of the vertices of this polygon are given. Before we move further lets brushup old concepts for a better understanding of the concept that follows.
The area is the quantitative representation of the extent of any two-dimensional figure.
Polygon is ... | [
{
"code": null,
"e": 1282,
"s": 1062,
"text": "In this program, we have to find the area of a polygon. The coordinates of the vertices of this polygon are given. Before we move further lets brushup old concepts for a better understanding of the concept that follows."
},
{
"code": null,
"... |
Select and Deselect Text Inside an Element using JavaScript | Following is the code to select and deselect text inside an element using JavaScript −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-family: "Segoe UI", Tahoma, Gen... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "Following is the code to select and deselect text inside an element using JavaScript −"
},
{
"code": null,
"e": 1160,
"s": 1149,
"text": " Live Demo"
},
{
"code": null,
"e": 2133,
"s": 1160,
"text": "<!DOCTYPE htm... |
5 Data Transformers to know from Scikit-Learn | by Cornellius Yudha Wijaya | Towards Data Science | If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here.
As Data scientists, we are often faced with many situations where we faced difficulty when exploring data and developing machine learning. The struggl... | [
{
"code": null,
"e": 342,
"s": 172,
"text": "If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here."
},
{
"code": null,
"e": 715,
"s": 342,
"text": "As Data scientis... |
How to get attribute of an element when using the 'click' event in jQuery? | To get attribute of an element, use the attr() method in jQuery. You can try to run the following code to get attribute of an element using the ‘click’ event −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(func... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "To get attribute of an element, use the attr() method in jQuery. You can try to run the following code to get attribute of an element using the ‘click’ event −"
},
{
"code": null,
"e": 1232,
"s": 1222,
"text": "Live Demo"
},
{
... |
Namedtuple in Python | The NamedTuple is another class, under the collections module. Like the dictionary type objects, it contains keys and that are mapped to some values. In this case we can access the elements using keys and indexes.
To use it at first we need to import it the collections standard library module.
import collections
In th... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "The NamedTuple is another class, under the collections module. Like the dictionary type objects, it contains keys and that are mapped to some values. In this case we can access the elements using keys and indexes."
},
{
"code": null,
"e": 13... |
How tracking apps analyse your GPS data: a hands-on tutorial in Python | by Steven Van Dorpe | Towards Data Science | Sport tracking applications and the social networks accompanying them are all over the place nowadays. Everyone wants to make the biggest or the fastest effort on apps like Nike+ Run or Strava. But have you ever wondered where all these fancy statistics come from, or how they are calculated?
Let’s start with explaining... | [
{
"code": null,
"e": 464,
"s": 171,
"text": "Sport tracking applications and the social networks accompanying them are all over the place nowadays. Everyone wants to make the biggest or the fastest effort on apps like Nike+ Run or Strava. But have you ever wondered where all these fancy statistics c... |
Print all possible combinations of r elements in a given array of size n in C++ | In this problem, we are given an array of size n and a positive integer r. Our
task is to print all possible combinations of the elements of the array of size
r.
Let’s take an example to understand the problem −
Input: {5,6,7,8} ; r = 3
Output : {5,6,7}, {5,6,8}, {5,7,8}, {6,7,8}
To solve this problem an approach would... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "In this problem, we are given an array of size n and a positive integer r. Our\ntask is to print all possible combinations of the elements of the array of size\nr."
},
{
"code": null,
"e": 1274,
"s": 1224,
"text": "Let’s take an exam... |
C# | How to get all elements of a List that match the conditions specified by the predicate - GeeksforGeeks | 01 Feb, 2019
List<T>.FindAll(Predicate<T>) Method is used to get all the elements that match the conditions defined by the specified predicate.
Properties of List:
It is different from the arrays. A list can be resized dynamically but arrays cannot.
List class can accept null as a valid value for reference types and it... | [
{
"code": null,
"e": 24103,
"s": 24075,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24234,
"s": 24103,
"text": "List<T>.FindAll(Predicate<T>) Method is used to get all the elements that match the conditions defined by the specified predicate."
},
{
"code": null,
... |
p5.js | duration() Function - GeeksforGeeks | 17 Jan, 2020
The duration() function is an inbuilt function in p5.js library. This function is used to return the duration of a sound file in seconds which is loaded the audio on the web. Basically when you trigger this function then it will return the time in the second dot microsecond format of that audio’s playing t... | [
{
"code": null,
"e": 26627,
"s": 26599,
"text": "\n17 Jan, 2020"
},
{
"code": null,
"e": 26939,
"s": 26627,
"text": "The duration() function is an inbuilt function in p5.js library. This function is used to return the duration of a sound file in seconds which is loaded the audio ... |
Ruby | Enumerator each_with_index function - GeeksforGeeks | 06 Jan, 2020
The each_with_index function in Ruby is used to Iterate over the object with its index and returns value of the given object.
Syntax: A.each_with_indexHere, A is the initialised object.
Parameters: This function does not accept any parameters.
Returns: the value of the given object.
Example 1:
# Initialisi... | [
{
"code": null,
"e": 25115,
"s": 25087,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 25241,
"s": 25115,
"text": "The each_with_index function in Ruby is used to Iterate over the object with its index and returns value of the given object."
},
{
"code": null,
"e": ... |
Node.js os.constants - GeeksforGeeks | 01 Feb, 2022
The os.constants is an inbuilt application programming interface of the os module which is used to get operating system specified constants for error code, signal constants, priority constant, dlopen constants, etc.Syntax:
os.constants
Return Value: It returns an object that contains operating system spe... | [
{
"code": null,
"e": 25781,
"s": 25753,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 26006,
"s": 25781,
"text": "The os.constants is an inbuilt application programming interface of the os module which is used to get operating system specified constants for error code, signal ... |
How to pad a String in Java - GeeksforGeeks | 04 Apr, 2020
Given a string str of some specific length, the task is to pad this string with the given character ch, inorder to make the string of length L.
Note: Padding has to be done in all three formats: Left Padding, Right Padding and Center Padding.
Example:
Input: str = “Geeksforgeeks”, ch =’-‘, L = 20Output:Lef... | [
{
"code": null,
"e": 26145,
"s": 26117,
"text": "\n04 Apr, 2020"
},
{
"code": null,
"e": 26289,
"s": 26145,
"text": "Given a string str of some specific length, the task is to pad this string with the given character ch, inorder to make the string of length L."
},
{
"code... |
How to check if a variable is an array in JavaScript? - GeeksforGeeks | 20 Jul, 2021
In JavaScript, we can check if a variable is an array by using 3 methods, using the isArray method, using the instanceof operator and using checking the constructor type if it matches an Array object.
Method 1: Using the isArray methodThe Array.isArray() method checks whether the passed variable is an Arra... | [
{
"code": null,
"e": 31305,
"s": 31277,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 31506,
"s": 31305,
"text": "In JavaScript, we can check if a variable is an array by using 3 methods, using the isArray method, using the instanceof operator and using checking the constructo... |
JavaScript | Function Invocation - GeeksforGeeks | 07 Mar, 2019
JavaScript Function Invocation is used to executes the function code and it is common to use the term “call a function” instead of “invoke a function”. The code inside a function is executed when the function is invoked.
Syntax:
Invoking a Function as a Function:function myFunction( var ) {
return var;... | [
{
"code": null,
"e": 26567,
"s": 26539,
"text": "\n07 Mar, 2019"
},
{
"code": null,
"e": 26788,
"s": 26567,
"text": "JavaScript Function Invocation is used to executes the function code and it is common to use the term “call a function” instead of “invoke a function”. The code in... |
Functions that are executed before and after main() in C - GeeksforGeeks | 28 May, 2017
With GCC family of C compilers, we can mark some functions to execute before and after main(). So some startup code can be executed before main() starts, and some cleanup code can be executed after main() ends. For example, in the following program, myStartupFun() is called before main() and myCleanupFun()... | [
{
"code": null,
"e": 25973,
"s": 25945,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 26305,
"s": 25973,
"text": "With GCC family of C compilers, we can mark some functions to execute before and after main(). So some startup code can be executed before main() starts, and some ... |
How to remove object from array of objects using JavaScript ? - GeeksforGeeks | 31 Dec, 2019
Given a JavaScript array containing objects in and the task is to delete certain objects from array of objects. There are two approaches to solve this problem which are discussed below:
Approach 1:
Use array.forEach() method to traverse every object of the array.
For each object use delete obj.property to ... | [
{
"code": null,
"e": 25853,
"s": 25825,
"text": "\n31 Dec, 2019"
},
{
"code": null,
"e": 26039,
"s": 25853,
"text": "Given a JavaScript array containing objects in and the task is to delete certain objects from array of objects. There are two approaches to solve this problem whic... |
Minimum sum of two numbers formed from digits of an array - GeeksforGeeks | 20 Apr, 2022
Given an array of digits (values are from 0 to 9), find the minimum possible sum of two numbers formed from digits of the array. All digits of given array must be used to form the two numbers.
Examples:
Input: [6, 8, 4, 5, 2, 3]
Output: 604
The minimum sum is formed by numbers
358 and 246
Input: [5, 3, ... | [
{
"code": null,
"e": 26503,
"s": 26475,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 26696,
"s": 26503,
"text": "Given an array of digits (values are from 0 to 9), find the minimum possible sum of two numbers formed from digits of the array. All digits of given array must be ... |
How to select text nodes using jQuery ? - GeeksforGeeks | 15 Nov, 2019
Text nodes are a type of node that denotes the actual text inside an element. The textNodes of any element can be selected using jQuery by selecting all the nodes and using the filter() method to check the nodeType property.
The required element is first selected using the jQuery selector. The contents() m... | [
{
"code": null,
"e": 26886,
"s": 26858,
"text": "\n15 Nov, 2019"
},
{
"code": null,
"e": 27111,
"s": 26886,
"text": "Text nodes are a type of node that denotes the actual text inside an element. The textNodes of any element can be selected using jQuery by selecting all the nodes ... |
What is PathVariable in the Spring Boot? - GeeksforGeeks | 23 Nov, 2021
Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security purposes or building large distribution projects. One of the advantages of using JAVA is that Java tries to connect every concept in ... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 25637,
"s": 25225,
"text": "Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether fo... |
Vue.js | v-show directive - GeeksforGeeks | 22 Jun, 2020
The v-show directive is a Vue.js directive used to toggle the display CSS property of a element with our data. If the data is true it will make it visible else it will make it invisible. First, we will create a div element with id as app and let’s apply the v-show directive to this element with data as a m... | [
{
"code": null,
"e": 25589,
"s": 25561,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 26031,
"s": 25589,
"text": "The v-show directive is a Vue.js directive used to toggle the display CSS property of a element with our data. If the data is true it will make it visible else it ... |
Understanding File System - GeeksforGeeks | 03 Mar, 2020
Prerequisite – File Systems in Operating System
Files and folders are the non-detachable part of human life. We daily go through these two name and use them unknowingly. These files do have different types, that has been evolved as the requirement of the user and developers changed. Some tech giants build ... | [
{
"code": null,
"e": 25627,
"s": 25599,
"text": "\n03 Mar, 2020"
},
{
"code": null,
"e": 25675,
"s": 25627,
"text": "Prerequisite – File Systems in Operating System"
},
{
"code": null,
"e": 26088,
"s": 25675,
"text": "Files and folders are the non-detachable p... |
Instruction Word Size in Microprocessor - GeeksforGeeks | 21 Aug, 2019
The 8085 instruction set is classified into 3 categories by considering the length of the instructions. In 8085, the length is measured in terms of “byte” rather then “word” because 8085 microprocessor has 8-bit data bus. Three types of instruction are: 1-byte instruction, 2-byte instruction, and 3-byte in... | [
{
"code": null,
"e": 25731,
"s": 25703,
"text": "\n21 Aug, 2019"
},
{
"code": null,
"e": 26049,
"s": 25731,
"text": "The 8085 instruction set is classified into 3 categories by considering the length of the instructions. In 8085, the length is measured in terms of “byte” rather t... |
Burrows - Wheeler Data Transform Algorithm - GeeksforGeeks | 08 Aug, 2019
What is the Burrows-Wheeler Transform?The BWT is a data transformation algorithm that restructures data in such a way that the transformed message is more compressible. Technically, it is a lexicographical reversible permutation of the characters of a string. It is first of the three steps to be performed ... | [
{
"code": null,
"e": 26073,
"s": 26045,
"text": "\n08 Aug, 2019"
},
{
"code": null,
"e": 26520,
"s": 26073,
"text": "What is the Burrows-Wheeler Transform?The BWT is a data transformation algorithm that restructures data in such a way that the transformed message is more compress... |
Java | How to create your own Helper Class? - GeeksforGeeks | 11 Feb, 2018
Helper Class is a Java class which includes basic error handling, some helper functions etc. Helper class contains functions that help in assisting the program. This Class intends to give quick implementation of basic functions such that programmers do not have to implement again and again. It is easy to A... | [
{
"code": null,
"e": 25237,
"s": 25209,
"text": "\n11 Feb, 2018"
},
{
"code": null,
"e": 25744,
"s": 25237,
"text": "Helper Class is a Java class which includes basic error handling, some helper functions etc. Helper class contains functions that help in assisting the program. Th... |
Java - Current Date and Time - GeeksforGeeks | 13 May, 2022
In Java, there is a built-in class known as the Date class and we can import java.time package to work with date and time API. Here we are supposed to print current date and time. There can be multiple ways to print the current date and time.
Using Date ClassUsing get() method of Calendar classUsing calend... | [
{
"code": null,
"e": 25250,
"s": 25222,
"text": "\n13 May, 2022"
},
{
"code": null,
"e": 25493,
"s": 25250,
"text": "In Java, there is a built-in class known as the Date class and we can import java.time package to work with date and time API. Here we are supposed to print curren... |
Python Program for Dijkstra’s shortest path algorithm | Greedy Algo-7 | 24 Feb, 2022
Given a graph and a source vertex in the graph, find the shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to Prim’s algorithm for minimum spanning tree. Like Prim’s MST, we generate an SPT (shortest path tree) with a given source as root. We maintain two se... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 1246,
"s": 52,
"text": "Given a graph and a source vertex in the graph, find the shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to Prim’s algorit... |
Parenthesis Checker | Practice | GeeksforGeeks | Given an expression string x. Examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp.
For example, the function should return 'true' for exp = “[()]{}{[()()]()}” and 'false' for exp = “[(])”.
Example 1:
Input:
{([])}
Output:
true
Explanation:
{ ( [ ] ) }. Same colored brackets can form... | [
{
"code": null,
"e": 462,
"s": 238,
"text": "Given an expression string x. Examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp.\nFor example, the function should return 'true' for exp = “[()]{}{[()()]()}” and 'false' for exp = “[(])”."
},
{
"code": null,
... |
pwd module in Python | 02 Aug, 2019
pwd module in Python provides access to the Unix user account and password database. Each entry stored in Unix user account and password database is reported as a tuple-like object whose attributes are similar as the members of passwd structure defined in <pwd.h> header file.
Following are the attributes o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 305,
"s": 28,
"text": "pwd module in Python provides access to the Unix user account and password database. Each entry stored in Unix user account and password database is reported as a tuple-like o... |
Django Templates | 27 Sep, 2021
Templates are the third and most important part of Django’s MVT Structure. A template in Django is basically written in HTML, CSS, and Javascript in a .html file. Django framework efficiently handles and generates dynamically HTML web pages that are visible to the end-user. Django mainly functions with a b... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 699,
"s": 52,
"text": "Templates are the third and most important part of Django’s MVT Structure. A template in Django is basically written in HTML, CSS, and Javascript in a .html file. Django fram... |
Difference between DOM parentNode and parentElement in JavaScript | 16 Oct, 2019
parentNode:The parent node property is read only property which returns us the name of the parent node of the selected node as a node object. The Node object represents a single node in the document tree and a node can be an element node, text node or more.Syntax:node.parentNodeReturn Value: The parent nod... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Oct, 2019"
},
{
"code": null,
"e": 1217,
"s": 28,
"text": "parentNode:The parent node property is read only property which returns us the name of the parent node of the selected node as a node object. The Node object represents a sin... |
JavaScript String with Quotes | 31 Oct, 2021
Strings are the sequence of characters, symbols, and numbers. In JavaScript, the user can write strings either in ‘single quote‘ or in “double quote“. However, both print the same result on the terminal.
'GeeksforGeeks' === "GeeksforGeeks"
In some cases, users may need to print some part of the string with... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Oct, 2021"
},
{
"code": null,
"e": 258,
"s": 54,
"text": "Strings are the sequence of characters, symbols, and numbers. In JavaScript, the user can write strings either in ‘single quote‘ or in “double quote“. However, both print the... |
Check whether an array can be made strictly decreasing by modifying at most one element | 05 Nov, 2021
Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly decreasing by modifying at most one element.Examples:
Input: arr[] = {12, 9, 10, 5, 2} Output: Yes {12, 11, 10, 5, 2} is one of the valid solutions.Input: arr[] = {1, 2, 3, 4} Output: No
Appr... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 223,
"s": 54,
"text": "Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly decreasing by modifying at most one element.Examples: "
},... |
Middle of three using minimum comparisons | 07 Jul, 2022
Given three distinct numbers a, b and c find the number with a value in middle.
Examples:
Input : a = 20, b = 30, c = 40
Output : 30
Input : a = 12, n = 32, c = 11
Output : 12
Simple Approach:
C++
Java
Python3
C#
PHP
Javascript
// CPP program to find middle of three distinct// numbers#include <bits/stdc+... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 132,
"s": 52,
"text": "Given three distinct numbers a, b and c find the number with a value in middle."
},
{
"code": null,
"e": 142,
"s": 132,
"text": "Examples:"
},
{
"... |
Select top in MS SQL Server | 09 Jul, 2020
Prerequisite – Select in MS SQL ServerSuppose that a user wants to extract the top students from the whole institution but has to use some complex queries to extract the data. To avoid complexity, the user can use ‘Select Top’.‘Select Top’ extracts the limited number of rows. This results in accurate data ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Jul, 2020"
},
{
"code": null,
"e": 369,
"s": 28,
"text": "Prerequisite – Select in MS SQL ServerSuppose that a user wants to extract the top students from the whole institution but has to use some complex queries to extract the data.... |
Perl | sprintf() Function | 07 May, 2019
sprintf() function in Perl uses Format provided by the user to return the formatted string with the use of the values in the list. This function is identical to printf but it returns the formatted string instead of printing it.
Syntax: sprintf Format, List
Returns: a formatted scalar string
Example 1:
#!/u... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 May, 2019"
},
{
"code": null,
"e": 281,
"s": 53,
"text": "sprintf() function in Perl uses Format provided by the user to return the formatted string with the use of the values in the list. This function is identical to printf but it... |
Espionage – Network Packet And Traffic Interceptor | 12 Jan, 2022
Espionage is a free and open-source tool available on GitHub. This is a free tool that can be downloaded and installed free of cost. Espionage is a network sniffer. Espionage performs sniffing on data packets of the network. Espionage is used to intercept data packets at the time when data is passed throug... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 768,
"s": 28,
"text": "Espionage is a free and open-source tool available on GitHub. This is a free tool that can be downloaded and installed free of cost. Espionage is a network sniffer. Espionage ... |
How to add a patch in a plot in Python ? | 16 Mar, 2021
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 590,
"s": 28,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed t... |
Construct a Doubly linked linked list from 2D Matrix | 15 Jun, 2022
Given a 2D matrix, the task is to convert it into a doubly-linked list with four pointers that are next, previous, up, and down, each node of this list should be connected to its next, previous, up, and down nodes.Examples:
Input: 2D matrix
1 2 3
4 5 6
7 8 9
Output:
Approach: The main idea is to construct... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 278,
"s": 54,
"text": "Given a 2D matrix, the task is to convert it into a doubly-linked list with four pointers that are next, previous, up, and down, each node of this list should be connected to... |
AngularJS | ng-pattern Directive - GeeksforGeeks | 29 Mar, 2019
The ng-pattern Directive in AngularJS is used to add up pattern (regex pattern) validator to ngModel on input HTML element. It is used to set the pattern validation error key if input field data does not match a RegExp that is found by evaluating the Angular expression specified in the ngpattern attribute ... | [
{
"code": null,
"e": 25134,
"s": 25106,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 25448,
"s": 25134,
"text": "The ng-pattern Directive in AngularJS is used to add up pattern (regex pattern) validator to ngModel on input HTML element. It is used to set the pattern validatio... |
An Overview Of Julia’s Operators. A quick look at all of the operators... | by Emmett Boudreau | Towards Data Science | For those interested in Julia, the world of Julia can be a confusing and scary one to enter. This is not only true of the methodology that Julia is normally written with, utilizing different programming concepts like multiple dispatch, but this is also true for more basic mathematical functions, such as addition or sub... | [
{
"code": null,
"e": 501,
"s": 171,
"text": "For those interested in Julia, the world of Julia can be a confusing and scary one to enter. This is not only true of the methodology that Julia is normally written with, utilizing different programming concepts like multiple dispatch, but this is also tr... |
Optimize Warehouse Value Added Services with Python | by Samir Saci | Towards Data Science | Most of the challenges faced by Distribution Centers (DC) handling Luxury Products, Garments or high-value goods are during Inbound Process.
We will take the example of a DC storing imported Luxury Bags, Garments and Shoes that need:
Machine 1 — Anti-theft tag: put a self alarm tag to protect your goods against theft i... | [
{
"code": null,
"e": 313,
"s": 172,
"text": "Most of the challenges faced by Distribution Centers (DC) handling Luxury Products, Garments or high-value goods are during Inbound Process."
},
{
"code": null,
"e": 406,
"s": 313,
"text": "We will take the example of a DC storing impo... |
Python PostgreSQL - Drop Table | You can drop a table from PostgreSQL database using the DROP TABLE statement.
Following is the syntax of the DROP TABLE statement in PostgreSQL −
DROP TABLE table_name;
Assume we have created two tables with name CRICKETERS and EMPLOYEES using the following queries −
postgres=# CREATE TABLE CRICKETERS (
First_Name ... | [
{
"code": null,
"e": 2168,
"s": 2090,
"text": "You can drop a table from PostgreSQL database using the DROP TABLE statement."
},
{
"code": null,
"e": 2236,
"s": 2168,
"text": "Following is the syntax of the DROP TABLE statement in PostgreSQL −"
},
{
"code": null,
"e":... |
C++ Array Library - at() Function | The C++ function std::array::at() returns a reference to the element present at location N in given array container.
Following is the declaration for std::array::at() function form std::array header.
reference at(size_type n);
cont_referece at(size_t n) const;
N − index of an element in the array.
Returns a element pre... | [
{
"code": null,
"e": 2720,
"s": 2603,
"text": "The C++ function std::array::at() returns a reference to the element present at location N in given array container."
},
{
"code": null,
"e": 2803,
"s": 2720,
"text": "Following is the declaration for std::array::at() function form s... |
Choosing between TensorFlow/Keras, BigQuery ML, and AutoML Natural Language for text classification | by Lak Lakshmanan | Towards Data Science | Google Cloud Platform offers you three1 ways to carry out machine learning:
Keras with a TensorFlow backend to build custom, deep learning models that are trained on Cloud ML Engine
BigQuery ML to build custom ML models on structured data using just SQL
Auto ML to train state-of-the-art deep learning models on your dat... | [
{
"code": null,
"e": 122,
"s": 46,
"text": "Google Cloud Platform offers you three1 ways to carry out machine learning:"
},
{
"code": null,
"e": 228,
"s": 122,
"text": "Keras with a TensorFlow backend to build custom, deep learning models that are trained on Cloud ML Engine"
},... |
Find the two repeating elements in a given array - GeeksforGeeks | 13 Mar, 2022
You are given an array of n+2 elements. All elements of the array are in range 1 to n. And all elements occur once except two numbers which occur twice. Find the two repeating numbers.
Example:
Input: arr = [4, 2, 4, 5, 2, 3, 1] n = 5Output:4 2Explanation:The above array has n + 2 = 7 elements with all el... | [
{
"code": null,
"e": 41276,
"s": 41248,
"text": "\n13 Mar, 2022"
},
{
"code": null,
"e": 41462,
"s": 41276,
"text": "You are given an array of n+2 elements. All elements of the array are in range 1 to n. And all elements occur once except two numbers which occur twice. Find the t... |
Overview of Text Similarity Metrics in Python | by Sanket Gupta | Towards Data Science | While working on natural language models for search engines, I have frequently asked questions “How similar are these two words?”, “How similar are these two sentences?” , “How similar are these two documents?”. I have already talked about custom word embeddings in a previous post, where word meanings are taken into co... | [
{
"code": null,
"e": 615,
"s": 172,
"text": "While working on natural language models for search engines, I have frequently asked questions “How similar are these two words?”, “How similar are these two sentences?” , “How similar are these two documents?”. I have already talked about custom word emb... |
C# | Enumeration (or enum) - GeeksforGeeks | 21 Sep, 2021
Enumeration (or enum) is a value data type in C#. It is mainly used to assign the names or string values to integral constants, that make a program easy to read and maintain. For example, the 4 suits in a deck of playing cards may be 4 enumerators named Club, Diamond, Heart, and Spade, belonging to an enum... | [
{
"code": null,
"e": 23784,
"s": 23756,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 24403,
"s": 23784,
"text": "Enumeration (or enum) is a value data type in C#. It is mainly used to assign the names or string values to integral constants, that make a program easy to read an... |
CSS Tutorial | CSS is the language we use to style an HTML document.
CSS describes how HTML elements should be displayed.
This tutorial will teach you CSS from basic to advanced.
This CSS tutorial contains hundreds of CSS examples.
With our online editor, you can edit the CSS, and click on a button to view the result.
Click on the "T... | [
{
"code": null,
"e": 54,
"s": 0,
"text": "CSS is the language we use to style an HTML document."
},
{
"code": null,
"e": 107,
"s": 54,
"text": "CSS describes how HTML elements should be displayed."
},
{
"code": null,
"e": 164,
"s": 107,
"text": "This tutorial ... |
Mask Detection using YOLOv5. Explanation of key concepts followed by... | by Sean Yap | Towards Data Science | I recently completed DeepLearningAI’s Convolutional Neural Network course taught by Andrew Ng on Coursera and a portion of the course dwelled into the field of Computer Vision. I was fascinated by the capability of computer vision and how it can be integrated into our daily lives which motivated me to dive deeper into ... | [
{
"code": null,
"e": 553,
"s": 171,
"text": "I recently completed DeepLearningAI’s Convolutional Neural Network course taught by Andrew Ng on Coursera and a portion of the course dwelled into the field of Computer Vision. I was fascinated by the capability of computer vision and how it can be integr... |
Find the maximum path sum between two leaves of a binary tree | 23 Jun, 2022
Given a binary tree in which each node element contains a number. Find the maximum possible sum from one leaf node to another.
The maximum sum path may or may not go through root. For example, in the following binary tree, the maximum sum is 27(3 + 6 + 9 + 0 – 1 + 10). Expected time complexity is O(n). If... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "Given a binary tree in which each node element contains a number. Find the maximum possible sum from one leaf node to another. "
},
{
"code": null,
"e": 457,
... |
Get the first 3 rows of a given DataFrame | 20 Aug, 2020
Let us first create a dataframe and then we will try to get first 3 rows of this dataframe using several methods.
Code: Creating a Dataframe.
Python3
# import pandas libraryimport pandas as pd # dictionaryrecord = { "Name": ["Tom", "Jack", "Lucy", "Bob", "Jerry", "Alice", "Thomas", "B... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 142,
"s": 28,
"text": "Let us first create a dataframe and then we will try to get first 3 rows of this dataframe using several methods."
},
{
"code": null,
"e": 170,
"s": 142,
"... |
Bitwise AND of N binary strings | 04 Jul, 2022
Given an array arr[] of binary strings, the task is to calculate the bitwise AND of all of these strings and print the resultant string.
Examples:
Input: arr[] = {"101", "110110", "111"}
Output: 000100
(000101) & (110110) & (000111) = 000100
Input: arr[] = {"110010101", "111101001"}
Output: 110000001
App... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 189,
"s": 52,
"text": "Given an array arr[] of binary strings, the task is to calculate the bitwise AND of all of these strings and print the resultant string."
},
{
"code": null,
"e": ... |
Brutespray – Port Scanning and Automated Brute Force Tool | 23 Sep, 2021
Brute-Forcing is the technique of matching the credentials like Usernames, Passwords, OTPs for unauthenticated access to the target domain. The list of words are been tested against the target to get the exact credentials. All this process is done through automated tools.
Brutespray is an automated tool t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 302,
"s": 28,
"text": "Brute-Forcing is the technique of matching the credentials like Usernames, Passwords, OTPs for unauthenticated access to the target domain. The list of words are been tested a... |
Difference between synchronous and asynchronous method of fs module | 31 Aug, 2021
NodeJS provides us with an inbuilt fs (File System) module for various file handling operations like read a file, write a file, delete a file etc. fs module can be installed using the below statement:
Syntax:
npm install fs --save
Note: The npm in the above command stands for node package manager from wher... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 253,
"s": 52,
"text": "NodeJS provides us with an inbuilt fs (File System) module for various file handling operations like read a file, write a file, delete a file etc. fs module can be installed ... |
Maximum Bipartite Matching | 28 Jun, 2022
A matching in a Bipartite Graph is a set of the edges chosen in such a way that no two edges share an endpoint. A maximum matching is a matching of maximum size (maximum number of edges). In a maximum matching, if any edge is added to it, it is no longer a matching. There can be more than one maximum match... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 394,
"s": 52,
"text": "A matching in a Bipartite Graph is a set of the edges chosen in such a way that no two edges share an endpoint. A maximum matching is a matching of maximum size (maximum numb... |
Difference between addEventListener and onclick in JavaScript | 15 Aug, 2021
The addEventListener() and onclick both listen for an event. Both can execute a callback function when a button is clicked. However, they are not the same. In this article, we are going to understand the differences between them.
addEventListener(): The addEventListener() method attaches an event handler t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Aug, 2021"
},
{
"code": null,
"e": 282,
"s": 52,
"text": "The addEventListener() and onclick both listen for an event. Both can execute a callback function when a button is clicked. However, they are not the same. In this article, w... |
Spring Boot – Thymeleaf with Example | 13 Jun, 2022
Thymeleaf is a server-side Java-based template engine for both web and standalone environments, capable of processing HTML, XML, JavaScript, CSS and even plain text. It is more powerful than JPS and responsible for dynamic content rendering on UI. The engine allows a parallel work of the backend and fronte... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 637,
"s": 52,
"text": "Thymeleaf is a server-side Java-based template engine for both web and standalone environments, capable of processing HTML, XML, JavaScript, CSS and even plain text. It is mo... |
Convert a String to Integer Array in C/C++ | 31 Aug, 2020
Given a string str containing numbers separated with “, “. The task is to convert it into an integer array and find the sum of that array.
Examples:
Input : str = "2, 6, 3, 14"
Output : arr[] = {2, 6, 3, 14}
Sum of the array is = 2 + 6 + 3 + 14 = 25
Input : str = "125, 4, 24, 5543, 111"
Output : arr[] = ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 193,
"s": 54,
"text": "Given a string str containing numbers separated with “, “. The task is to convert it into an integer array and find the sum of that array."
},
{
"code": null,
"e"... |
What is entryComponents in angular ngModule ? | 14 May, 2020
The entryComponent is the component which loads angular by force, that means these components are not referenced in the HTML template. In most of the cases, Angular loads a component when it is explicitly declared in the component template. But this is not the case with entryComponents. The entryComponents... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 May, 2020"
},
{
"code": null,
"e": 532,
"s": 28,
"text": "The entryComponent is the component which loads angular by force, that means these components are not referenced in the HTML template. In most of the cases, Angular loads a co... |
Preorder, Postorder and Inorder Traversal of a Binary Tree using a single Stack | 18 Jan, 2022
Given a binary tree, the task is to print all the nodes of the binary tree in Pre-order, Post-order, and In-order iteratively using only one stack traversal.
Examples:
Input:
Output:Preorder Traversal: 1 2 3Inorder Traversal: 2 1 3Postorder Traversal: 2 3 1
Input:
Output:Preorder traversal: 1 2 4 5 3 6 7In... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 210,
"s": 52,
"text": "Given a binary tree, the task is to print all the nodes of the binary tree in Pre-order, Post-order, and In-order iteratively using only one stack traversal."
},
{
"c... |
Python – How to Extract all the digits from a String | When it is required to extract strings with a digit, a list comprehension and ‘isdigit’ method is used.
Below is a demonstration of the same −
my_string = "python is 12 fun 2 learn"
print("The string is : ")
print(my_string)
my_result = [int(i) for i in my_string.split() if i.isdigit()]
print("The numbers list is :"... | [
{
"code": null,
"e": 1291,
"s": 1187,
"text": "When it is required to extract strings with a digit, a list comprehension and ‘isdigit’ method is used."
},
{
"code": null,
"e": 1330,
"s": 1291,
"text": "Below is a demonstration of the same −"
},
{
"code": null,
"e": 15... |
How to display all files in a directory using Node.js ? | 21 May, 2020
The files present in a directory can be displayed using two approaches in Node.js that are discussed below:
Method 1: Using fs.readdirSync() method: The fs.readdirSync() is a method that is available in the file system module of Node.js. It is used for reading the contents of a directory. It returns an arr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 May, 2020"
},
{
"code": null,
"e": 161,
"s": 53,
"text": "The files present in a directory can be displayed using two approaches in Node.js that are discussed below:"
},
{
"code": null,
"e": 409,
"s": 161,
"text"... |
C# | Math.Sqrt() Method | 08 Nov, 2019
In C#, Math.Sqrt() is a Math class method which is used to calculate the square root of the specified number.Sqrt is a slower computation. It can be cached for a performance boost.Syntax:
public static double Sqrt(double d)
Parameter:
d: Number whose square root is to be calculated and type of this parame... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Nov, 2019"
},
{
"code": null,
"e": 242,
"s": 54,
"text": "In C#, Math.Sqrt() is a Math class method which is used to calculate the square root of the specified number.Sqrt is a slower computation. It can be cached for a performance ... |
cpp command in Linux with Examples | 15 May, 2019
cpp is the C language preprocessor, it is automatically used by your C compiler to transform your program before compilation. It is also termed as a macro processor because it is used to give abbreviations for the longer piece of code. It can only be used with C, C++ and Objective-C source code. Using with... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 394,
"s": 28,
"text": "cpp is the C language preprocessor, it is automatically used by your C compiler to transform your program before compilation. It is also termed as a macro processor because it... |
Calculate maximum value using ‘+’ or ‘*’ sign between two numbers in a string | 16 Jun, 2022
Given a string of numbers, the task is to find the maximum value from the string, you can add a ‘+’ or ‘*’ sign between any two numbers.Examples:
Input : 01231
Output :
((((0 + 1) + 2) * 3) + 1) = 10
In above manner, we get the maximum value i.e. 10
Input : 891
Output :73
As 8*9*1 = 72 and 8*9+1 = 73.S... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 200,
"s": 52,
"text": "Given a string of numbers, the task is to find the maximum value from the string, you can add a ‘+’ or ‘*’ sign between any two numbers.Examples: "
},
{
"code": null... |
Python – Convert 2D list to 3D at K slicing | 03 Jul, 2020
Sometimes, while working with Python lists, we can have a problem in which we need to convert a 2D list to 3D, at every Kth list. This type of problem is peculiar, but can have application in various data domains. Let’s discuss certain ways in which this task can be performed.
Input : test_list = [[6, 5], ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 306,
"s": 28,
"text": "Sometimes, while working with Python lists, we can have a problem in which we need to convert a 2D list to 3D, at every Kth list. This type of problem is peculiar, but can hav... |
Multiply two numbers represented as linked lists into a third list | 11 May, 2022
Given two numbers represented by linked lists, write a function that returns the head of the new linked list that represents the number that is the product of those numbers.
Examples:
Input : 9->4->6
8->4
Output : 7->9->4->6->4
Input : 9->9->9->4->6->9
9->9->8->4->9
Output : 9->9->7->9->5... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 226,
"s": 52,
"text": "Given two numbers represented by linked lists, write a function that returns the head of the new linked list that represents the number that is the product of those numbers."... |
How Does OutOfMemory Error Happen and How to Solve it in Android? | 19 Jun, 2021
Continuing our journey from understanding the OutOfMemory Error from the previous article we now check on the main reasons which cause the OOM Error in Android Studio. Every Android developer must have encountered the OutOfMemoryError, sometimes known as OOM. If you haven’t yet encountered an OOM in your A... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jun, 2021"
},
{
"code": null,
"e": 540,
"s": 28,
"text": "Continuing our journey from understanding the OutOfMemory Error from the previous article we now check on the main reasons which cause the OOM Error in Android Studio. Every A... |
Conversion of Java Maps to List | 28 Oct, 2021
A Map is an object that maps keys to values or is a collection of attribute-value pairs. The list is an ordered collection of objects and the List can contain duplicate values. The Map has two values (a key and value), while a List only has one value (an element). So we can generate two lists as listed:
Li... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Oct, 2021"
},
{
"code": null,
"e": 333,
"s": 28,
"text": "A Map is an object that maps keys to values or is a collection of attribute-value pairs. The list is an ordered collection of objects and the List can contain duplicate values... |
Python – Color Inversion using Pillow | 27 May, 2022
Color Inversion (Image Negative) is the method of inverting pixel values of an image. Image inversion does not depend on the color mode of the image, i.e. inversion works on channel level. When inversion is used on a multi color image (RGB, CMYK etc) then each channel is treated separately, and the final r... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 551,
"s": 28,
"text": "Color Inversion (Image Negative) is the method of inverting pixel values of an image. Image inversion does not depend on the color mode of the image, i.e. inversion works on c... |
Android - Button Control | A Button is a Push-button which can be pressed, or clicked, by the user to perform an action.
Following are the important attributes related to Button control. You can check Android official documentation for complete list of attributes and related methods which you can use to change these attributes are run time.
Inhe... | [
{
"code": null,
"e": 3701,
"s": 3607,
"text": "A Button is a Push-button which can be pressed, or clicked, by the user to perform an action."
},
{
"code": null,
"e": 3923,
"s": 3701,
"text": "Following are the important attributes related to Button control. You can check Android ... |
Eigenvalues and Eigenvectors in MATLAB - GeeksforGeeks | 20 Nov, 2021
Eigenvalues and Eigenvectors are properties of a square matrix.
Let is an N*N matrix, X be a vector of size N*1 and be a scalar.
Then the values X, satisfying the equation are eigenvectors and eigenvalues of matrix A respectively.
A matrix of size N*N possess N eigenvalues
Every eigenvalue correspond... | [
{
"code": null,
"e": 24378,
"s": 24347,
"text": " \n20 Nov, 2021\n"
},
{
"code": null,
"e": 24442,
"s": 24378,
"text": "Eigenvalues and Eigenvectors are properties of a square matrix."
},
{
"code": null,
"e": 24508,
"s": 24442,
"text": "Let is an N*N matrix, X... |
Introduction of Finite Automata - GeeksforGeeks | 06 Oct, 2021
Finite Automata(FA) is the simplest machine to recognize patterns. The finite automata or finite state machine is an abstract machine that has five elements or tuples. It has a set of states and rules for moving from one state to another but it depends upon the applied input symbol. Basically, it is an abs... | [
{
"code": null,
"e": 29443,
"s": 29415,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 29859,
"s": 29443,
"text": "Finite Automata(FA) is the simplest machine to recognize patterns. The finite automata or finite state machine is an abstract machine that has five elements or tup... |
How to delete the azure blob (File) using Azure CLI in PowerShell? | To delete the Azure blob using Azure CLI, we can use “az storage blob” command with the “delete” parameter. Before running this command, we first need to make sure that the azure account is connected (az login) and the proper subscription is set (az account set).
To work with the azure storage account we need to authen... | [
{
"code": null,
"e": 1326,
"s": 1062,
"text": "To delete the Azure blob using Azure CLI, we can use “az storage blob” command with the “delete” parameter. Before running this command, we first need to make sure that the azure account is connected (az login) and the proper subscription is set (az acc... |
TypeScript - Objects | An object is an instance which contains set of key value pairs. The values can be scalar values or functions or even array of other objects. The syntax is given below −
var object_name = {
key1: “value1”, //scalar value
key2: “value”,
key3: function() {
//functions
},
key4:[“content1”, “conte... | [
{
"code": null,
"e": 2217,
"s": 2048,
"text": "An object is an instance which contains set of key value pairs. The values can be scalar values or functions or even array of other objects. The syntax is given below −"
},
{
"code": null,
"e": 2393,
"s": 2217,
"text": "var object_na... |
NATURALINNERJOIN function | Performs an inner join of a table with another table. The tables are joined on common columns (by name) in the two tables. The two tables are to be related by one of these common columns.
If the two tables have no common column names, or if there is no relation between the two tables, an error is returned.
DAX NATURALI... | [
{
"code": null,
"e": 2189,
"s": 2001,
"text": "Performs an inner join of a table with another table. The tables are joined on common columns (by name) in the two tables. The two tables are to be related by one of these common columns."
},
{
"code": null,
"e": 2309,
"s": 2189,
"te... |
How to Create a Composite Primary Key in SQL Server? - GeeksforGeeks | 12 Dec, 2021
In this article, We will learn what is a Composite Primary Key and How will create a Composite Primary Key. As We know a Primary key is the Candidate key that is selected to uniquely identify a row in a table. A And Primary Key does not allow NULL value.
When two or more Columns are together Identify the ... | [
{
"code": null,
"e": 24188,
"s": 24160,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 24444,
"s": 24188,
"text": "In this article, We will learn what is a Composite Primary Key and How will create a Composite Primary Key. As We know a Primary key is the Candidate key that is s... |
Tryit Editor v3.7 | HTML form elements
Tryit: HTML select element | [
{
"code": null,
"e": 29,
"s": 10,
"text": "HTML form elements"
}
] |
Playit | #myDIV { background-color:lightblue; transform:rotate(10deg);} | [] |
Cassandra - Data Model | The data model of Cassandra is significantly different from what we normally see in an RDBMS. This chapter provides an overview of how Cassandra stores its data.
Cassandra database is distributed over several machines that operate together. The outermost container is known as the Cluster. For failure handling, every no... | [
{
"code": null,
"e": 2449,
"s": 2287,
"text": "The data model of Cassandra is significantly different from what we normally see in an RDBMS. This chapter provides an overview of how Cassandra stores its data."
},
{
"code": null,
"e": 2769,
"s": 2449,
"text": "Cassandra database i... |
How to calculate timestamp difference in hours with MongoDB? | To calculate timestamp difference, use aggregate framework. Let us first create a collection with documents −
> db.timestampDifferenceDemo.insertOne({
"MovieBeginningTime": new ISODate("2019-05-12 10:20:30"),
"MovieEndingTime":new ISODate("2019-05-12 12:30:20")
});
{
"acknowledged" : true,
"insertedId" : Ob... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "To calculate timestamp difference, use aggregate framework. Let us first create a collection with documents −"
},
{
"code": null,
"e": 1666,
"s": 1172,
"text": "> db.timestampDifferenceDemo.insertOne({\n \"MovieBeginningTime\": new... |
Ruby | Enumerable sort() function - GeeksforGeeks | 05 Dec, 2019
The sort() of enumerable is an inbuilt method in Ruby returns an array which contains the enum items in a sorted order. The comparisons are done using operator or the optional block. The block must implement a comparison between a and b and return an integer less than 0 when b follows a, 0 when a and b are... | [
{
"code": null,
"e": 23700,
"s": 23672,
"text": "\n05 Dec, 2019"
},
{
"code": null,
"e": 24188,
"s": 23700,
"text": "The sort() of enumerable is an inbuilt method in Ruby returns an array which contains the enum items in a sorted order. The comparisons are done using operator or ... |
Date class in Java (With Examples) - GeeksforGeeks | 02 Jan, 2019
The class Date represents a specific instant in time, with millisecond precision. The Date class of java.util package implements Serializable, Cloneable and Comparable interface. It provides constructors and methods to deal with date and time with java.
Constructors
Date() : Creates date object representin... | [
{
"code": null,
"e": 24402,
"s": 24374,
"text": "\n02 Jan, 2019"
},
{
"code": null,
"e": 24656,
"s": 24402,
"text": "The class Date represents a specific instant in time, with millisecond precision. The Date class of java.util package implements Serializable, Cloneable and Compar... |
HTML | DOM Input FileUpload required Property - GeeksforGeeks | 13 Dec, 2021
The Input FileUpload required Property is used to set or return whether a file in the file upload field must be selected/uploaded before submitting a form.This property reflects the HTML required attribute.
Syntax:
Return the required property:fileuploadObject.required
fileuploadObject.required
Set the req... | [
{
"code": null,
"e": 26164,
"s": 26136,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 26371,
"s": 26164,
"text": "The Input FileUpload required Property is used to set or return whether a file in the file upload field must be selected/uploaded before submitting a form.This pro... |
HashSet retainAll() method in Java with Example | 24 Dec, 2018
The retainAll() method of java.util.HashSet class is used to retain from this set all of its elements that are contained in the specified collection.
Syntax:
public boolean retainAll(Collection c)
Parameters: This method takes collection c as a parameter containing elements to be retained from this set.
Re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Dec, 2018"
},
{
"code": null,
"e": 178,
"s": 28,
"text": "The retainAll() method of java.util.HashSet class is used to retain from this set all of its elements that are contained in the specified collection."
},
{
"code": nul... |
LINQ | Sorting Operator | OrderByDescending | 22 May, 2019
In LINQ, sorting operators are used to rearrange the given sequence in ascending or descending order based on one or more attributes. There are 5 different types of sorting operators are available in LINQ:
OrderByOrderByDescendingThenByThenByDescendingReverse
OrderBy
OrderByDescending
ThenBy
ThenByDescendi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 234,
"s": 28,
"text": "In LINQ, sorting operators are used to rearrange the given sequence in ascending or descending order based on one or more attributes. There are 5 different types of sorting op... |
How to add header row to a Pandas Dataframe? | 17 Jun, 2021
A header necessarily stores the names or headings for each of the columns. It basically helps the user to identify the role of the respective column in the data frame. The top row containing column names is called the header row of the data frame. There are basically two approaches to add a header row in P... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 421,
"s": 53,
"text": "A header necessarily stores the names or headings for each of the columns. It basically helps the user to identify the role of the respective column in the data frame. The to... |
Performance of a Network | 27 Sep, 2021
Performance of a network pertains to the measure of service quality of a network as perceived by the user. There are different ways to measure the performance of a network, depending upon the nature and design of the network. The characteristics that measure the performance of a network are :
Bandwidth
Th... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 347,
"s": 52,
"text": "Performance of a network pertains to the measure of service quality of a network as perceived by the user. There are different ways to measure the performance of a network, d... |
Set retainAll() method in Java with Example | 31 Dec, 2018
The retainAll() method of java.util.Set interface is used to retain from this set all of its elements that are contained in the specified collection.
Syntax:
public boolean retainAll(Collection c)
Parameters: This method takes collection c as a parameter containing elements to be retained from this set.
Re... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Dec, 2018"
},
{
"code": null,
"e": 204,
"s": 54,
"text": "The retainAll() method of java.util.Set interface is used to retain from this set all of its elements that are contained in the specified collection."
},
{
"code": nu... |
How to remove a key and its value from an associative array in PHP ? | 20 Sep, 2019
Given an associative array containing array elements and the task is to remove a key and its value from the associative array.
Examples:
Input : array( "name" => "Anand", "roll"=> "1")
Output : Array (
[roll] => 1
)
Input : array( "1" => "Add", "2" => "Multiply", "3" => "Divide")
Output : Array (
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Sep, 2019"
},
{
"code": null,
"e": 155,
"s": 28,
"text": "Given an associative array containing array elements and the task is to remove a key and its value from the associative array."
},
{
"code": null,
"e": 165,
"s... |
Find the sum of series 3, 7, 13, 21, 31.... | 22 Mar, 2021
Given a number N. The task is to find the sum of below series upto nth term.
3, 7, 13, 21, 31, ....
Examples:
Input : N = 3
Output : 23
Input : N = 25
Output : 5875
Approach:
Subtracting the above two equations, we have:
Below is the implementation of the above approach:
C++
Java
Python 3
C... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Mar, 2021"
},
{
"code": null,
"e": 132,
"s": 54,
"text": "Given a number N. The task is to find the sum of below series upto nth term. "
},
{
"code": null,
"e": 157,
"s": 132,
"text": "3, 7, 13, 21, 31, .... "
... |
How to merge table cells in HTML ? | 20 Dec, 2020
The purpose of this article is to merge table cells in HTML. It can be done by using the rowspan and colspan attribute in HTML. The rowspan is used to merge or combine the number of cells in a row whereas the colspan is used to merge column cells in a table.
Example 1: In this example, we will merge two... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Dec, 2020"
},
{
"code": null,
"e": 290,
"s": 28,
"text": "The purpose of this article is to merge table cells in HTML. It can be done by using the rowspan and colspan attribute in HTML. The rowspan is used to merge or combine the nu... |
Even-odd turn game with two integers | 13 May, 2022
Given three positive integers X, Y and P. Here P denotes the number of turns. Whenever the turn is odd X is multiplied by 2 and in every even turn Y is multiplied by 2. The task is to find the value of max(X, Y) ÷ min(X, Y) after the complete P turns.Examples :
Input : X = 1, Y = 2, P = 1
Output : 1
As t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 May, 2022"
},
{
"code": null,
"e": 316,
"s": 52,
"text": "Given three positive integers X, Y and P. Here P denotes the number of turns. Whenever the turn is odd X is multiplied by 2 and in every even turn Y is multiplied by 2. The t... |
Node.js – Base64 Encoding & Decoding | The buffer object can be encoded and decoded into Base64 string. The buffer class can be used to encode a string into a series of bytes. The Buffer.from() method takes a string as an input and converts it into Base64.
The converted bytes can be changed again into String. The toString() method is used for converting the... | [
{
"code": null,
"e": 1405,
"s": 1187,
"text": "The buffer object can be encoded and decoded into Base64 string. The buffer class can be used to encode a string into a series of bytes. The Buffer.from() method takes a string as an input and converts it into Base64."
},
{
"code": null,
"e"... |
Python Bokeh – Plotting a Scatter Plot on a Graph | 10 Jul, 2020
Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.
Bokeh can be used to plot a scatter plot on a graph. Plotting squa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 269,
"s": 28,
"text": "Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.