title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
UPPER() function in SQL Server
09 Dec, 2020 UPPER() :This function in SQL Server helps to convert all the letters of the given string to Uppercase. If the given string contains special characters or numeric values, then they will remain unchanged by this function. Syntax : UPPER( str ) Parameters : str – The string which will be converted to upperca...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Dec, 2020" }, { "code": null, "e": 249, "s": 28, "text": "UPPER() :This function in SQL Server helps to convert all the letters of the given string to Uppercase. If the given string contains special characters or numeric values, then...
How to Sort a TreeSet with User Defined Objects in Java?
08 Feb, 2022 Comparator interface sorts the objects of user-defined classes. An object of the Comparator class is capable of comparing two objects of two different classes. Following function compare obj1 with obj2 TreeSet implements the SortedSet interface. So, duplicate values are not allowed. Objects in a TreeSet ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Feb, 2022" }, { "code": null, "e": 230, "s": 28, "text": "Comparator interface sorts the objects of user-defined classes. An object of the Comparator class is capable of comparing two objects of two different classes. Following funct...
Program to find simple interest
21 Jun, 2022 What is ‘Simple Interest’? Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments. Simple Interest formula: Simple interest formula is given by:...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2022" }, { "code": null, "e": 299, "s": 28, "text": "What is ‘Simple Interest’? Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate...
Working with Binary Files in R Programming
04 Sep, 2021 In the computer science world, text files contain data that can easily be understood by humans. It includes letters, numbers, and other characters. On the other hand, binary files contain 1s and 0s that only computers can interpret. The information stored in a binary file can’t be read by humans as the byt...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Sep, 2021" }, { "code": null, "e": 753, "s": 28, "text": "In the computer science world, text files contain data that can easily be understood by humans. It includes letters, numbers, and other characters. On the other hand, binary f...
How to print all the values of an array in PHP ?
01 Jun, 2020 We have given an array containing some array elements and the task is to print all the values of an array arr in PHP. In order to do this task, we have the following approaches in PHP: Approach 1: Using foreach loop: The foreach loop is used to iterate the array elements. The foreach loop though iterates o...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jun, 2020" }, { "code": null, "e": 213, "s": 28, "text": "We have given an array containing some array elements and the task is to print all the values of an array arr in PHP. In order to do this task, we have the following approache...
Java Program for Sieve of Eratosthenes
05 May, 2021 Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example, if n is 10, the output should be “2, 3, 5, 7”. If n is 20, the output should be “2, 3, 5, 7, 11, 13, 17, 19”. Java // Java program to print all primes smaller than or equal to// n using...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 May, 2021" }, { "code": null, "e": 284, "s": 52, "text": "Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example, if n is 10, the output should be “2, 3, 5, 7”. If n is ...
Linux Virtualization : Linux Containers (lxc)
23 Feb, 2022 Pre-requisites: Earlier i talked about chroot jails and resource throttling using cgroups. If you haven’t read them yet, then i strongly suggest to go through them before proceeding ahead. https://www.youtube.com/watch?v=sK5i-N34im8 A very good presentation by docker team. This will refresh some of the c...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Feb, 2022" }, { "code": null, "e": 70, "s": 52, "text": "Pre-requisites: " }, { "code": null, "e": 243, "s": 70, "text": "Earlier i talked about chroot jails and resource throttling using cgroups. If you haven’t...
Write a program to print all permutations of a given string
07 Jul, 2022 A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation. Source: Mathworld(http://mathworld.wolfram.com/Permutation.html) Chapters descriptions off, select...
[ { "code": null, "e": 59, "s": 28, "text": " \n07 Jul, 2022\n" }, { "code": null, "e": 267, "s": 59, "text": "A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A str...
Find a rotation with maximum hamming distance - GeeksforGeeks
27 Apr, 2022 Given an array of n elements, create a new array which is a rotation of the given array, and hamming distance between both the arrays is maximum. Hamming distance between two arrays or strings of equal length is the number of positions at which the corresponding characters (elements) are different.Note: Th...
[ { "code": null, "e": 41274, "s": 41246, "text": "\n27 Apr, 2022" }, { "code": null, "e": 41635, "s": 41274, "text": "Given an array of n elements, create a new array which is a rotation of the given array, and hamming distance between both the arrays is maximum. Hamming distance ...
Do my data follow a normal distribution? | by Antoine Soetewey | Towards Data Science
The normal distribution is a function that defines how a set of measurements is distributed around the center of these measurements (i.e., the mean). Many natural phenomena in real life can be approximated by a bell-shaped frequency distribution known as the normal distribution or the Gaussian distribution. The normal ...
[ { "code": null, "e": 481, "s": 172, "text": "The normal distribution is a function that defines how a set of measurements is distributed around the center of these measurements (i.e., the mean). Many natural phenomena in real life can be approximated by a bell-shaped frequency distribution known as ...
Perl – Introduction to Debugger
10 Jul, 2020 Perl is a general-purpose, high level interpreted and dynamic programming language. Since Perl is a lot similar to other widely used languages syntactically, it is easier to code and learn in Perl. But perfect programs are hard to get in the very first attempt. They have to go through various steps of debu...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 444, "s": 28, "text": "Perl is a general-purpose, high level interpreted and dynamic programming language. Since Perl is a lot similar to other widely used languages syntactically, it is easier to c...
How to remove multiple elements from array in JavaScript ?
10 Oct, 2019 Given an array containing array elements and the task is to remove multiple elements from the array using JavaScript. The indexes of elements are given which need to be removed from the JavaScript array. Approach 1: Store the index of array elements into another array which need to be removed. Start a loop...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Oct, 2019" }, { "code": null, "e": 232, "s": 28, "text": "Given an array containing array elements and the task is to remove multiple elements from the array using JavaScript. The indexes of elements are given which need to be remove...
PostgreSQL – CREATE DOMAIN
06 Sep, 2021 PostgreSQL supports the creation of user-defined data types using the following statements: CREATE DOMAIN:It creates a user-defined data type that can have optional constraints. CREATE TYPE:It is often applied to create a composite type (data type that are mixes of two or more data types) using stored ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 122, "s": 28, "text": "PostgreSQL supports the creation of user-defined data types using the following statements: " }, { "code": null, "e": 210, "s": 122, "text": "CREATE DOMAI...
Advanced Pointer in C - GeeksQuiz
07 Mar, 2018 void fun(int **pptr) { static int q = 10; *pptr = &q; } int main() { int r = 20; int *p = &r; fun(&p); printf("%d", *p); return 0; } #include <string.h> #include <stdio.h> #include <stdlib.h> void fun(char** str_ref) { (*str_ref)++; } int main() { char *str = (void *)malloc(100*s...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n07 Mar, 2018" }, { "code": null, "e": 29727, "s": 29577, "text": "void fun(int **pptr)\n{\n static int q = 10;\n *pptr = &q;\n}\n\nint main()\n{\n int r = 20;\n int *p = &r;\n fun(&p);\n printf(\"%d\", *p);\n return 0;\n}\...
K’th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
24 Jun, 2022 We recommend reading the following post as a prerequisite of this post. K’th Smallest/Largest Element in Unsorted Array | Set 1 Given an array and a number k where k is smaller than the size of the array, we need to find the k’th smallest element in the given array. It is given that all array elements are ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 124, "s": 52, "text": "We recommend reading the following post as a prerequisite of this post." }, { "code": null, "e": 180, "s": 124, "text": "K’th Smallest/Largest Element in ...
Implementation of Artificial Neural Network for OR Logic Gate with 2-bit Binary Input
15 Dec, 2021 Artificial Neural Network (ANN) is a computational model based on the biological neural networks of animal brains. ANN is modeled with three types of layers: an input layer, hidden layers (one or more), and an output layer. Each layer comprises nodes (like biological neurons) are called Artificial Neurons....
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Dec, 2021" }, { "code": null, "e": 701, "s": 28, "text": "Artificial Neural Network (ANN) is a computational model based on the biological neural networks of animal brains. ANN is modeled with three types of layers: an input layer, h...
Ohm’s Law
20 May, 2021 Ohm’s law states the connection between current and potential drop. Georg Simon Ohm, a German scientist was the primary to verify Ohm’s law through an experiment. Ohm’s law is one of the foremost basic and necessary laws of electrical circuits. Ohm’s law states that the voltage across a conductor is direct...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 May, 2021" }, { "code": null, "e": 273, "s": 28, "text": "Ohm’s law states the connection between current and potential drop. Georg Simon Ohm, a German scientist was the primary to verify Ohm’s law through an experiment. Ohm’s law is...
Node.js querystring.escape() Method
08 Mar, 2021 The querystring.escape( ) function is used to produce a percent-encoded query string from a normal string. This method is very similar to the browser’s encodeURIComponent functions. This method performs percent-encoding on the given string it means it encodes any string into a URL query string by using the...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2021" }, { "code": null, "e": 531, "s": 28, "text": "The querystring.escape( ) function is used to produce a percent-encoded query string from a normal string. This method is very similar to the browser’s encodeURIComponent func...
delete and free() in C++
28 Nov, 2021 delete and free() in have similar functionalities programming languages but they are different. In C++, the delete operator should only be used either for the pointers pointing to the memory allocated using new operator or for a NULL pointer, and free() should only be used either for the pointers pointing ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Nov, 2021" }, { "code": null, "e": 421, "s": 52, "text": "delete and free() in have similar functionalities programming languages but they are different. In C++, the delete operator should only be used either for the pointers pointi...
XHTML | Introduction
04 Jul, 2022 XHTML stands for EXtensible HyperText Markup Language. It is the next step to evolution of internet. The XHTML was developed by World Wide Web Consortium (W3C). It helps web developers to make the transition from HTML to XML. Using XHTML, developers can enter the XML world with all the features of it, and ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jul, 2022" }, { "code": null, "e": 776, "s": 52, "text": "XHTML stands for EXtensible HyperText Markup Language. It is the next step to evolution of internet. The XHTML was developed by World Wide Web Consortium (W3C). It helps web ...
JavaScript | Change the text of a span element
23 May, 2019 Given an HTML document and the task is to change the text of span element. There are two property used to change the content. HTML DOM textContent Property: This property set/return the text content of the defined node, and all its descendants. By setting the textContent property, the child nodes the remov...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2019" }, { "code": null, "e": 154, "s": 28, "text": "Given an HTML document and the task is to change the text of span element. There are two property used to change the content." }, { "code": null, "e": 788, "s"...
How to remove focus around buttons on click?
22 Apr, 2019 To remove focus around the button outline:none property is used. Syntax: button { // Remove focus around button outline:none; } Outline property: Outline is an element property which draws a line around element but outside the border. It does not take space from the width of an element like bord...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2019" }, { "code": null, "e": 93, "s": 28, "text": "To remove focus around the button outline:none property is used." }, { "code": null, "e": 101, "s": 93, "text": "Syntax:" }, { "code": null, "e"...
Maximum product of 4 adjacent elements in matrix
15 Jun, 2022 Given a square matrix, find the maximum product of four adjacent elements of the matrix. The adjacent elements of the matrix can be top, down, left, right, diagonal, or anti-diagonal. The four or more numbers should be adjacent to each other. Note: n should be greater than or equal to 4 i.e n >= 4 Example...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 296, "s": 52, "text": "Given a square matrix, find the maximum product of four adjacent elements of the matrix. The adjacent elements of the matrix can be top, down, left, right, diagonal, or anti-...
Inline-level Elements and Inline Boxes in CSS
Inline-level elements have their CSS display property set to either ‘inline, ‘inline-table’, or ‘inline-block’ and these elements do not force a line break above and below themselves. Inline-level boxes are generated by each inline-level element which is a part of the positioning scheme as well as contains child boxes....
[ { "code": null, "e": 1508, "s": 1187, "text": "Inline-level elements have their CSS display property set to either ‘inline, ‘inline-table’, or ‘inline-block’ and these elements do not force a line break above and below themselves. Inline-level boxes are generated by each inline-level element which i...
Machine Control Instructions in Microprocessor
29 Jun, 2021 These type of instructions control machine functions such as Halt, Interrupt, or do nothing. This type of instructions alters the different type of operations executed in the processor. Following are the type of Machine control instructions: 1. NOP (No operation) 2. HLT (Halt) 3. DI (Disable interrupts)...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Jun, 2021" }, { "code": null, "e": 240, "s": 53, "text": "These type of instructions control machine functions such as Halt, Interrupt, or do nothing. This type of instructions alters the different type of operations executed in the...
XOR of a subarray (range of elements)
26 Apr, 2021 Given an array arr[] of n integers and some queries. Each query is of the form (L, R), where L and R are indices of the array. Find XOR value of the subarray arr[L...R], i.e., the value which is obtained when all the elements in the range [L, R] are XORed. Assume 0-based indexing and each array element is ...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Apr, 2021" }, { "code": null, "e": 400, "s": 54, "text": "Given an array arr[] of n integers and some queries. Each query is of the form (L, R), where L and R are indices of the array. Find XOR value of the subarray arr[L...R], i.e....
C++ program to draw a traffic light simulation using computer graphics
21 Sep, 2021 In computers, graphics.h can be used to provide direct functions to draw different coordinates, like circles, rectangles, etc. Using these shapes, different objects can be drawn. This article focuses on how to make a traffic light simulation in Turbo C++. Functions Used: delay(n): It is used to hold the sa...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Sep, 2021" }, { "code": null, "e": 310, "s": 54, "text": "In computers, graphics.h can be used to provide direct functions to draw different coordinates, like circles, rectangles, etc. Using these shapes, different objects can be dr...
Merge two sorted linked list without duplicates
29 Dec, 2020 Merge two sorted linked list of size n1 and n2. The duplicates in two linked list should be present only once in the final sorted linked list. Examples: Input : list1: 1->1->4->5->7 list2: 2->4->7->9 Output : 1 2 4 5 7 9 Source: Microsoft on Campus Placement and Interview Questions Approach: Foll...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Dec, 2020" }, { "code": null, "e": 195, "s": 52, "text": "Merge two sorted linked list of size n1 and n2. The duplicates in two linked list should be present only once in the final sorted linked list." }, { "code": null, ...
Maximum count of pairs which generate the same sum
31 May, 2021 Given an array arr[], the task is to count maximum count of pairs which give the same sum.Examples: Input: arr[] = {1, 2, 3, 4} Output: 2 (1, 2) = 3 (1, 3) = 4 (1, 4), (2 + 3) = 5 (2, 4) = 6 (3, 4) = 7Input: arr[] = {1, 8, 3, 11, 4, 9, 2, 7} Output: 3 Approach: Create a map to store the frequency o...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2021" }, { "code": null, "e": 130, "s": 28, "text": "Given an array arr[], the task is to count maximum count of pairs which give the same sum.Examples: " }, { "code": null, "e": 284, "s": 130, "text": "Inpu...
Inplace Operators in Python | Set 1 (iadd(), isub(), iconcat()...)
10 Feb, 2020 Python in its definition provides methods to perform inplace operations, i.e doing assignment and computation in a single statement using “operator” module. For example, x += y is equivalent to x = operator.iadd(x, y) Some Important Inplace operations : 1. iadd() :- This function is used to assign and add...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Feb, 2020" }, { "code": null, "e": 222, "s": 52, "text": "Python in its definition provides methods to perform inplace operations, i.e doing assignment and computation in a single statement using “operator” module. For example," }...
Matplotlib.axes.Axes.set_axis_off() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
What is dbt?. Your guide to analytics engineering and... | by Madison Schott | Towards Data Science
A little over a year ago I transferred into a new data engineering role in a different part of the company I was at. I knew going into it that I would be working with a lot more Python and SQL than I did in my previous role. Being a lover of data and analytics, this was exciting. I had never actually used SQL in my eng...
[ { "code": null, "e": 573, "s": 172, "text": "A little over a year ago I transferred into a new data engineering role in a different part of the company I was at. I knew going into it that I would be working with a lot more Python and SQL than I did in my previous role. Being a lover of data and anal...
A step-by-step tutorial using K-means to extract image color themes | by Viola Mao | Towards Data Science
Many people are struggling when choosing Powerpoint theme colors. We are not color experts and the default color palette has been used in many presentations. More importantly, we want something that is natural, and comfortable. There are articles about fashion designers using Nature’s color for their inspiration. We co...
[ { "code": null, "e": 330, "s": 172, "text": "Many people are struggling when choosing Powerpoint theme colors. We are not color experts and the default color palette has been used in many presentations." }, { "code": null, "e": 636, "s": 330, "text": "More importantly, we want so...
Difference between length of Array and size of ArrayList in Java - GeeksforGeeks
15 Mar, 2019 Array has length property which provides the length of the Array or Array object. It is the total space allocated in memory during the initialization of the array. Array is static so when we create an array of size n then n blocks are created of array type and JVM initializes every block by default value. ...
[ { "code": null, "e": 25346, "s": 25318, "text": "\n15 Mar, 2019" }, { "code": null, "e": 25693, "s": 25346, "text": "Array has length property which provides the length of the Array or Array object. It is the total space allocated in memory during the initialization of the array....
closegraph() function in C - GeeksforGeeks
23 Jan, 2018 The header file graphics.h contains closegraph() function which closes the graphics mode, deallocates all memory allocated by graphics system and restores the screen to the mode it was in before you called initgraph. Syntax : void closegraph(); Below is the implementation of closegraph() in C. // C Implem...
[ { "code": null, "e": 24580, "s": 24552, "text": "\n23 Jan, 2018" }, { "code": null, "e": 24797, "s": 24580, "text": "The header file graphics.h contains closegraph() function which closes the graphics mode, deallocates all memory allocated by graphics system and restores the scre...
A Guide to K-Means Clustering in Python | Towards Data Science
K-means clustering is an unsupervised ML algorithm that we can use to split our dataset into logical groupings — called clusters. Because it is unsupervised, we don’t need to rely on having labeled data to train with. These clusters are created by splitting the data into clearly distinct groups where the values that ma...
[ { "code": null, "e": 390, "s": 172, "text": "K-means clustering is an unsupervised ML algorithm that we can use to split our dataset into logical groupings — called clusters. Because it is unsupervised, we don’t need to rely on having labeled data to train with." }, { "code": null, "e": ...
How to sort bars in a bar plot in ascending order (Matplotlib)?
To sort bars in a bar plot in ascending order, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Make a list of data for bar plots. Make a list of data for bar plots. Create a bar plot...
[ { "code": null, "e": 1143, "s": 1062, "text": "To sort bars in a bar plot in ascending order, we can take the following steps −" }, { "code": null, "e": 1219, "s": 1143, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": nul...
Remaining Life Estimation with Keras | by Marco Cerliani | Towards Data Science
Predict rare events is becoming an important topic of research and development in a lot of Artificial Intelligent solutions. Survival Analysis, Customer churn prediction, Predictive Maintenance and Anomaly Detection are some examples of the most popular fields of application that deal with rare events. Given these scen...
[ { "code": null, "e": 679, "s": 172, "text": "Predict rare events is becoming an important topic of research and development in a lot of Artificial Intelligent solutions. Survival Analysis, Customer churn prediction, Predictive Maintenance and Anomaly Detection are some examples of the most popular f...
Program to find largest of three numbers - JavaScript
We are required to write a JavaScript function that takes in three or more numbers and returns the largest of those numbers. For example: If the input numbers are − 4, 6, 7, 2, 3 Then the output should be − 7 Let’s write the code for this function − // using spread operator to cater any number of elements const findGre...
[ { "code": null, "e": 1187, "s": 1062, "text": "We are required to write a JavaScript function that takes in three or more numbers and returns the largest of those numbers." }, { "code": null, "e": 1227, "s": 1187, "text": "For example: If the input numbers are −" }, { "co...
What does raw_input() function do in python?
The function raw_input() presents a prompt to the user (the optional arg of raw_input([arg])), gets input from the user and returns the data input by the user in a string. For example, name = raw_input("What is your name? ") print "Hello, %s." % name This differs from input() in that the latter tries to interpret the i...
[ { "code": null, "e": 1247, "s": 1062, "text": "The function raw_input() presents a prompt to the user (the optional arg of raw_input([arg])), gets input from the user and returns the data input by the user in a string. For example," }, { "code": null, "e": 1313, "s": 1247, "text"...
An Introduction to Bayesian Inference in PyStan | by Matthew West | Towards Data Science
The many virtues of Bayesian approaches in data science are seldom understated. Unlike the comparatively dusty frequentist tradition that defined statistics in the 20th century, Bayesian approaches match more closely the inference that human brains perform, by combining data-driven likelihoods with prior beliefs about ...
[ { "code": null, "e": 882, "s": 172, "text": "The many virtues of Bayesian approaches in data science are seldom understated. Unlike the comparatively dusty frequentist tradition that defined statistics in the 20th century, Bayesian approaches match more closely the inference that human brains perfor...
How to use Card Component in ReactJS?
08 Sep, 2021 Cards contain content and actions about a single subject. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Card Component in ReactJS using the following approach. Creating React Application And Installing Module: Step 1: Create a React application ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 250, "s": 28, "text": "Cards contain content and actions about a single subject. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Card Comp...
HTML | <input> placeholder Attribute
09 May, 2019 The <input> placeholder attribute in HTML is used to specify the expected value to be displayed before user input in the input element. Syntax: <input placeholder="text"> Attribute Values: This attribute contains a single value text which specifies a short hint that describes the expected value of the inp...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 May, 2019" }, { "code": null, "e": 164, "s": 28, "text": "The <input> placeholder attribute in HTML is used to specify the expected value to be displayed before user input in the input element." }, { "code": null, "e": 17...
Python – Rows with all List elements
12 Nov, 2020 Given a Matrix, get all the rows with all the list elements. Input : test_list = [[7, 6, 3, 2], [5, 6], [2, 1, 8], [6, 1, 2]], sub_list = [1, 2] Output : [[2, 1, 8], [6, 1, 2]] Explanation : Extracted lists have 1 and 2. Input : test_list = [[7, 6, 3, 2], [5, 6], [2, 1, 8], [6, 1, 2]], sub_list = [2, 6] Ou...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Nov, 2020" }, { "code": null, "e": 89, "s": 28, "text": "Given a Matrix, get all the rows with all the list elements." }, { "code": null, "e": 249, "s": 89, "text": "Input : test_list = [[7, 6, 3, 2], [5, 6], [2, ...
Matplotlib.pyplot.yticks() in Python
12 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. The annotate() function in pyplot module of matplotlib library is used to get and set the current tick locations...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2020" }, { "code": null, "e": 223, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT...
Multidimensional array in JavaScript
27 Jul, 2021 Multidimensional arrays are not directly provided in JavaScript. If we want to use anything which acts as a multidimensional array then we need to create a multidimensional array by using another one-dimensional array. So multidimensional arrays in JavaScript is known as arrays inside another array. We nee...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jul, 2021" }, { "code": null, "e": 655, "s": 28, "text": "Multidimensional arrays are not directly provided in JavaScript. If we want to use anything which acts as a multidimensional array then we need to create a multidimensional ar...
Subtract days from Date object in JavaScript
25 Aug, 2021 Given a date and the task is to subtract days from date. To subtract days from date in JavaScript, some methods are used which are described below: JavaScript getDate() Method: This method returns the day of the month (from 1 to 31) for the defined date.Syntax:Date.getDate() Return value: It returns a numb...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 176, "s": 28, "text": "Given a date and the task is to subtract days from date. To subtract days from date in JavaScript, some methods are used which are described below:" }, { "code": null,...
Python getpass Module
There are two functions defined in getpass module of Python’s standard library. They are useful whenever a terminal based application needs to be executed only after validating user credentials. This function prompts the user to enter a password. By default the keys entered by user in the terminal are not echoed. Also ...
[ { "code": null, "e": 1382, "s": 1187, "text": "There are two functions defined in getpass module of Python’s standard library. They are useful whenever a terminal based application needs to be executed only after validating user credentials." }, { "code": null, "e": 1625, "s": 1382, ...
Java Program to Count trailing zeroes in factorial of a number
14 Jun, 2022 Given an integer n, write a function that returns count of trailing zeroes in n!. Examples : Input: n = 5 Output: 1 Factorial of 5 is 120 which has one trailing 0. Input: n = 20 Output: 4 Factorial of 20 is 2432902008176640000 which has 4 trailing zeroes. Input: n = 100 Output: 24 Trailing 0s in n! = C...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jun, 2022" }, { "code": null, "e": 122, "s": 28, "text": "Given an integer n, write a function that returns count of trailing zeroes in n!. Examples :" }, { "code": null, "e": 314, "s": 122, "text": "Input: n = 5...
Functional Programming in JavaScript
05 Jan, 2021 Functional Programming(FP) is as old as programming but some of us think that it is discovered recently because we found some parts in mathematics but not in the programming world. But nowadays functional programming is in trend. Almost every programming language including Java, Python, JavaScript, etc. is...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Jan, 2021" }, { "code": null, "e": 610, "s": 52, "text": "Functional Programming(FP) is as old as programming but some of us think that it is discovered recently because we found some parts in mathematics but not in the programming ...
JavaFX | TabPane Class
31 Aug, 2018 TabPane class is a part of JavaFX. TabPane allows switching between several tabs. TabPane acts as a container of tabs. The positions of the tabs can be specified using the setSide() function. when the tabs do not fit in the TabPane, a menu button appears at the upper right corner of TabPane which displays ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2018" }, { "code": null, "e": 364, "s": 28, "text": "TabPane class is a part of JavaFX. TabPane allows switching between several tabs. TabPane acts as a container of tabs. The positions of the tabs can be specified using the set...
How to set background color for an elements using jQuery ?
31 Dec, 2020 In this article, we will set the background color for an element using jQuery. To add the background color, we use css() method. The css() method in JQuery is used to change style property of the selected element. The css() in JQuery can be used in different ways. The css() method can be used to check the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Dec, 2020" }, { "code": null, "e": 391, "s": 28, "text": "In this article, we will set the background color for an element using jQuery. To add the background color, we use css() method. The css() method in JQuery is used to change s...
How to check an element contains a class using jQuery? - GeeksforGeeks
23 Apr, 2019 Method 1: Using hasClass() method: The hasClass() is an inbuilt method in jQuery which check whether the elements with the specified class name exists or not. It returns a boolean value specifying whether the class exists in the element or not. This can be used to check for multiple classes. Syntax: $('ele...
[ { "code": null, "e": 25403, "s": 25375, "text": "\n23 Apr, 2019" }, { "code": null, "e": 25696, "s": 25403, "text": "Method 1: Using hasClass() method: The hasClass() is an inbuilt method in jQuery which check whether the elements with the specified class name exists or not. It r...
Running Apache Superset at Scale. A set of recommendations and starting... | by Mahdi Karabiben | Towards Data Science
When it comes to the Business Intelligence (BI) ecosystem, proprietary tools were the standard for a very long period. Tableau, Power BI, and more recently Looker, were the go-to solutions for enterprise BI use cases. But then, Apache Superset happened. Frustrated with the multiple inconveniences of relying on a propri...
[ { "code": null, "e": 426, "s": 172, "text": "When it comes to the Business Intelligence (BI) ecosystem, proprietary tools were the standard for a very long period. Tableau, Power BI, and more recently Looker, were the go-to solutions for enterprise BI use cases. But then, Apache Superset happened." ...
How to validate the path with the PowerShell function parameter?
To validate the file or folder path inside the PowerShell function parameter, we need to use the ValidateScript command. Generally, we write the script as below to validate the path. function Validate-Path{ param( [parameter(Mandatory)] [String]$Path ) if(Test-Path $Path) {Write-Output "Path is val...
[ { "code": null, "e": 1245, "s": 1062, "text": "To validate the file or folder path inside the PowerShell function parameter, we need to use the ValidateScript command. Generally, we write the script as below to validate the path." }, { "code": null, "e": 1429, "s": 1245, "text": ...
Delete only some rows from a table based on a condition in MySQL
Let us first create a table − mysql> create table DemoTable -> ( -> Id int, -> Name varchar(20) -> ); Query OK, 0 rows affected (0.60 sec) Insert some records in the table using insert command: Insert some records in the table using insert command: mysql> insert into DemoTable values(100,'Bob'); Query OK, 1...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1213, "s": 1092, "text": "mysql> create table DemoTable\n -> (\n -> Id int,\n -> Name varchar(20)\n -> );\nQuery OK, 0 rows affected (0.60 sec)" }, { "code": null...
Data Types | Practice | GeeksforGeeks
Working with Data Types is very important in the programming world. Here, we will learn to manipulate the basic data types in CPP. You will be given four different variables of different data types: a (int), b (float), c (double), l (long long), d (string). Your task is to do step-wise operations as given below: 1. Div...
[ { "code": null, "e": 801, "s": 278, "text": "Working with Data Types is very important in the programming world. Here, we will learn to manipulate the basic data types in CPP.\nYou will be given four different variables of different data types: a (int), b (float), c (double), l (long long), d (strin...
C++ Map Library - insert() Function
The C++ function std::map::insert() extends container by inserting new element in map. This function increases container size by one. Following is the declaration for std::map::insert() function form std::map header. pair<iterator,bool> insert (const value_type& val); pair<iterator,bool> insert (const value_type& val)...
[ { "code": null, "e": 2737, "s": 2603, "text": "The C++ function std::map::insert() extends container by inserting new element in map. This function increases container size by one." }, { "code": null, "e": 2820, "s": 2737, "text": "Following is the declaration for std::map::inser...
JSP - The page Directive
The page directive is used to provide instructions to the container that pertain to the current JSP page. You may code the page directives anywhere in your JSP page. By convention, page directives are coded at the top of the JSP page. Following is the basic syntax of page directive − <%@ page attribute = "value" %> Yo...
[ { "code": null, "e": 2474, "s": 2239, "text": "The page directive is used to provide instructions to the container that pertain to the current JSP page. You may code the page directives anywhere in your JSP page. By convention, page directives are coded at the top of the JSP page." }, { "cod...
How do I kill all the processes in MySQL “show processlist”?
We can kill the processes with the help of the ‘kill’ command. However, you need to kill those processes one by one, since MySQL does not have any massive kill command. To check how many processes exist, use ‘show processlist’ mysql> show processlist; The following is the output. +----+-----------------+---------------...
[ { "code": null, "e": 1231, "s": 1062, "text": "We can kill the processes with the help of the ‘kill’ command. However, you need to kill those processes one by one, since MySQL does not have any massive kill command." }, { "code": null, "e": 1289, "s": 1231, "text": "To check how ...
Dart Programming - Interfaces
An interface defines the syntax that any entity must adhere to. Interfaces define a set of methods available on an object. Dart does not have a syntax for declaring interfaces. Class declarations are themselves interfaces in Dart. Classes should use the implements keyword to be able to use an interface. It is mandator...
[ { "code": null, "e": 2756, "s": 2525, "text": "An interface defines the syntax that any entity must adhere to. Interfaces define a set of methods available on an object. Dart does not have a syntax for declaring interfaces. Class declarations are themselves interfaces in Dart." }, { "code": ...
How to create a progress bar in different colors in Bootstrap ? - GeeksforGeeks
22 Sep, 2021 Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. The progress bar is a pictorial representation that tells about the details of any goal or task i.e. it is used to represent the progress of a task or any operation that displays how much of th...
[ { "code": null, "e": 25538, "s": 25510, "text": "\n22 Sep, 2021" }, { "code": null, "e": 26087, "s": 25538, "text": "Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. The progress bar is a pictorial representation th...
How to make a ListView in android?
Before getting into listview example, we should know about listview, Listview is a collection of items pulled from arraylist, list or any databases. Most uses of listview is a collection of items in vertical format, we can scroll up/down and click on any item. This example demonstrate about How to make a ListView in an...
[ { "code": null, "e": 1323, "s": 1062, "text": "Before getting into listview example, we should know about listview, Listview is a collection of items pulled from arraylist, list or any databases. Most uses of listview is a collection of items in vertical format, we can scroll up/down and click on an...
\nolimits - Tex Command
\nolimits - Used to change the default placement of limits; only allowed on items of class OP. { \nolimits} \nolimits command is used to change the default placement of limits; only allowed on items of class OP. \sum_{k=1}^n a_k ∑k=1nak \sum\nolimits_{k=1}^n a_k ∑k=1nak \sum_{k=1}^n a_k ∑k=1nak \sum_{k=1}^...
[ { "code": null, "e": 8082, "s": 7986, "text": "\\nolimits - Used to change the default placement of limits; only allowed on items of class OP." }, { "code": null, "e": 8095, "s": 8082, "text": "{ \\nolimits}" }, { "code": null, "e": 8200, "s": 8095, "text": "...
What are Named Pipes or FIFO in Linux/Unix systems?
Pipes were meant for communication between related processes. We Cannot use pipes for unrelated process communication. Then to achieve unrelated processes communication, the simple answer is Named Pipes. Even though this works for related processes, it gives no meaning to use the named pipes for related process communi...
[ { "code": null, "e": 1390, "s": 1062, "text": "Pipes were meant for communication between related processes. We Cannot use pipes for unrelated process communication. Then to achieve unrelated processes communication, the simple answer is Named Pipes. Even though this works for related processes, it ...
Loading Data from OpenStreetMap with Python and the Overpass API | by Nikolai Janakiev | Towards Data Science
Have you ever wondered where most Biergarten in Germany are or how many banks are hidden in Switzerland? OpenStreetMap is a great open source map of the world which can give us some insight into these and similar questions. There is a lot of data hidden, full of useful labels and geographic information, but how do we g...
[ { "code": null, "e": 517, "s": 171, "text": "Have you ever wondered where most Biergarten in Germany are or how many banks are hidden in Switzerland? OpenStreetMap is a great open source map of the world which can give us some insight into these and similar questions. There is a lot of data hidden, ...
Find all unique pairs of maximum and second maximum elements over all sub-arrays in O(NlogN) - GeeksforGeeks
10 Dec, 2021 Let represent the ordered pair of the second maximum and the maximum element of an array respectively. We need to find all such unique pairs overall contiguous sub-arrays of a given array. Examples: Input: Arr = [ 1, 2, 3, 4, 5 ] Output: (1, 2) (2, 3) (3, 4) (4, 5) Input: Arr = [ 1, 1, 2 ] Output: (1, 1)...
[ { "code": null, "e": 25588, "s": 25560, "text": "\n10 Dec, 2021" }, { "code": null, "e": 25777, "s": 25588, "text": "Let represent the ordered pair of the second maximum and the maximum element of an array respectively. We need to find all such unique pairs overall contiguous sub...
Difference between b++ and b=b+1 - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this tutorial, we’ll try to understand the...
[ { "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, ...
futex() - Unix, Linux System Call
Unix - Home Unix - Getting Started Unix - File Management Unix - Directories Unix - File Permission Unix - Environment Unix - Basic Utilities Unix - Pipes & Filters Unix - Processes Unix - Communication Unix - The vi Editor Unix - What is Shell? Unix - Using Variables Unix - Special Variables Unix - Using Arrays Unix -...
[ { "code": null, "e": 1466, "s": 1454, "text": "Unix - Home" }, { "code": null, "e": 1489, "s": 1466, "text": "Unix - Getting Started" }, { "code": null, "e": 1512, "s": 1489, "text": "Unix - File Management" }, { "code": null, "e": 1531, "s": 1...
Data Mining - Query Language
The Data Mining Query Language (DMQL) was proposed by Han, Fu, Wang, et al. for the DBMiner data mining system. The Data Mining Query Language is actually based on the Structured Query Language (SQL). Data Mining Query Languages can be designed to support ad hoc and interactive data mining. This DMQL provides commands ...
[ { "code": null, "e": 2643, "s": 2110, "text": "The Data Mining Query Language (DMQL) was proposed by Han, Fu, Wang, et al. for the DBMiner data mining system. The Data Mining Query Language is actually based on the Structured Query Language (SQL). Data Mining Query Languages can be designed to suppo...
Financial Accounting - Quick Guide
Financial accounting deals with recording and maintaining every monetary transaction of an organization. However, sometimes, a few entries might be either incorrect or used at the wrong place. In financial accounting, the process of correcting such mistakes is known as Rectification of Errors. Two most common types of ...
[ { "code": null, "e": 2460, "s": 2165, "text": "Financial accounting deals with recording and maintaining every monetary transaction of an organization. However, sometimes, a few entries might be either incorrect or used at the wrong place. In financial accounting, the process of correcting such mist...
Perl Numeric Equality Operators Example
These are also called relational operators. Assume variable $a holds 10 and variable $b holds 20 then, lets check the following numeric equality operators − == (equal to) Checks if the value of two operands are equal or not, if yes then condition becomes true. Example − ($a == $b) is not true. != (not equal to) Checks ...
[ { "code": null, "e": 2377, "s": 2220, "text": "These are also called relational operators. Assume variable $a holds 10 and variable $b holds 20 then, lets check the following numeric equality operators −" }, { "code": null, "e": 2391, "s": 2377, "text": "== (equal to)" }, { ...
Bubble Sort Program in C
We shall see the implementation of bubble sort in C programming language here. #include <stdio.h> #include <stdbool.h> #define MAX 10 int list[MAX] = {1,8,4,6,0,3,5,2,7,9}; void display() { int i; printf("["); // navigate through all items for(i = 0; i < MAX; i++) { printf("%d ",list[i]); } ...
[ { "code": null, "e": 2659, "s": 2580, "text": "We shall see the implementation of bubble sort in C programming language here." }, { "code": null, "e": 4039, "s": 2659, "text": "#include <stdio.h>\n#include <stdbool.h>\n\n#define MAX 10\n\nint list[MAX] = {1,8,4,6,0,3,5,2,7,9};\n\...
How can we remove PRIMARY KEY constraint from a column of an existing MySQL table?
We can remove PRIMARY KEY constraint from a column of an existing table by using DROP keyword along with ALTER TABLE statement. Suppose we have a table ‘Player’ having a PRIMARY KEY constraint on column ‘ID’ as follows − mysql> DESCRIBE Player; +-------+-------------+------+-----+---------+-------+ | Field | Type ...
[ { "code": null, "e": 1315, "s": 1187, "text": "We can remove PRIMARY KEY constraint from a column of an existing table by using DROP keyword along with ALTER TABLE statement." }, { "code": null, "e": 1408, "s": 1315, "text": "Suppose we have a table ‘Player’ having a PRIMARY KEY ...
HDFS Commands
04 Apr, 2019 HDFS is the primary or major component of the Hadoop ecosystem which is responsible for storing large data sets of structured or unstructured data across various nodes and thereby maintaining the metadata in the form of log files. To use the HDFS commands, first you need to start the Hadoop services using ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Apr, 2019" }, { "code": null, "e": 382, "s": 52, "text": "HDFS is the primary or major component of the Hadoop ecosystem which is responsible for storing large data sets of structured or unstructured data across various nodes and th...
Promises in Node.js
26 Apr, 2022 Introduction: Callback functions are used for Asynchronous events. Whenever any asynchronous event has to be taken place it is generally preferred to use callbacks (if data is not nested or inter-dependent). Following is the simplest example where we could visualize how we may use a callback:- Example: ja...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Apr, 2022" }, { "code": null, "e": 262, "s": 54, "text": "Introduction: Callback functions are used for Asynchronous events. Whenever any asynchronous event has to be taken place it is generally preferred to use callbacks (if data i...
Prime or not in Python
17 Aug, 2017 Every programmer comes across the problem of checking whether a number is prime and indeed it’s one of the basic level program in any language. I also tried it in many different languages, but the best language that I found to implement it is Python. It’s just one single line and the program does it all. I...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Aug, 2017" }, { "code": null, "e": 407, "s": 54, "text": "Every programmer comes across the problem of checking whether a number is prime and indeed it’s one of the basic level program in any language. I also tried it in many differ...
Program to implement ASCII lookup table
22 Jun, 2022 ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as ‘a’ or ‘@’ or an action of some sort. ASCII lookup table is a tabular representation of corresponding values associated to a ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2022" }, { "code": null, "e": 722, "s": 28, "text": "ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character suc...
Profiling in Python
08 Nov, 2019 Python provides many excellent modules to measure the statistics of a program. This makes us know where the program is spending too much time and what to do inorder to optimize it. It is better to optimize the code inorder to increase the efficiency of a program. So, perform some standard tests to ensure o...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Nov, 2019" }, { "code": null, "e": 414, "s": 28, "text": "Python provides many excellent modules to measure the statistics of a program. This makes us know where the program is spending too much time and what to do inorder to optimiz...
NP-Completeness | Set 1 (Introduction)
17 Jun, 2022 We have been writing about efficient algorithms to solve complex problems, like shortest path, Euler graph, minimum spanning tree, etc. Those were all success stories of algorithm designers. In this post, failure stories of computer science are discussed. Can all computational problems be solved by a comp...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Jun, 2022" }, { "code": null, "e": 309, "s": 52, "text": "We have been writing about efficient algorithms to solve complex problems, like shortest path, Euler graph, minimum spanning tree, etc. Those were all success stories of algo...
NumPy - Array From Existing Data
In this chapter, we will discuss how to create an array from existing data. This function is similar to numpy.array except for the fact that it has fewer parameters. This routine is useful for converting Python sequence into ndarray. numpy.asarray(a, dtype = None, order = None) The constructor takes the following para...
[ { "code": null, "e": 2319, "s": 2243, "text": "In this chapter, we will discuss how to create an array from existing data." }, { "code": null, "e": 2477, "s": 2319, "text": "This function is similar to numpy.array except for the fact that it has fewer parameters. This routine is ...
Scaling Machine Learning from 0 to millions of users — part 1 | by Julien Simon | Towards Data Science
I suppose most Machine Learning (ML) models are conceived on a whiteboard or a napkin, and born on a laptop. As the fledgling creatures start babbling their first predictions, we’re filled with pride and high hopes for their future abilities. Alas, we know deep down in our heart that that not all of them will be succes...
[ { "code": null, "e": 511, "s": 172, "text": "I suppose most Machine Learning (ML) models are conceived on a whiteboard or a napkin, and born on a laptop. As the fledgling creatures start babbling their first predictions, we’re filled with pride and high hopes for their future abilities. Alas, we kno...
Basics of JSON with GoLang - GeeksforGeeks
06 Jan, 2022 JSON is a widely used format for data interchange. Golang provides multiple encoding and decoding APIs to work with JSON including to and from built-in and custom data types using the encoding/json package. Data Types: The default Golang data types for decoding and encoding JSON are as follows: bool for ...
[ { "code": null, "e": 25813, "s": 25785, "text": "\n06 Jan, 2022" }, { "code": null, "e": 26021, "s": 25813, "text": "JSON is a widely used format for data interchange. Golang provides multiple encoding and decoding APIs to work with JSON including to and from built-in and custom ...
A Better Way To Approach Competitive Programming - GeeksforGeeks
11 May, 2022 This article helps to all those who want to begin with Competitive Programming. The only prerequisite one need is the knowledge of a programming language. Now, Let us find a better approach to Competitive Programming. Please note: One should read the proper Input and Output format because most of the begin...
[ { "code": null, "e": 26391, "s": 26363, "text": "\n11 May, 2022" }, { "code": null, "e": 26546, "s": 26391, "text": "This article helps to all those who want to begin with Competitive Programming. The only prerequisite one need is the knowledge of a programming language." }, ...
SQL Query to Find Duplicate Names in a Table - GeeksforGeeks
28 Oct, 2021 Duplicate records in a database can be problematic sometimes as they create confusion or they might generate wrong outputs as well. So, it is better to remove all the duplicate records from the database as it will save our time and space. However, the best practice is to put unique constraints (Primary key...
[ { "code": null, "e": 26088, "s": 26060, "text": "\n28 Oct, 2021" }, { "code": null, "e": 26438, "s": 26088, "text": "Duplicate records in a database can be problematic sometimes as they create confusion or they might generate wrong outputs as well. So, it is better to remove all ...
Factor Tree of a given Number - GeeksforGeeks
12 Apr, 2022 Factor Tree is an intuitive method to understand the factors of a number. It shows how all the factors are been derived from the number. It is a special diagram where you find the factors of a number, then the factors of those numbers, etc until you can’t factor anymore. The ends are all the prime factors ...
[ { "code": null, "e": 26727, "s": 26699, "text": "\n12 Apr, 2022" }, { "code": null, "e": 27068, "s": 26727, "text": "Factor Tree is an intuitive method to understand the factors of a number. It shows how all the factors are been derived from the number. It is a special diagram wh...
Python | Numpy ndarray.__abs__() - GeeksforGeeks
05 Mar, 2019 With the help of Numpy ndarray.__abs__(), one can find the absolute value of each and every element in an array. Suppose we have a values 1.34, with the help of ndarray.__abs__() it will converted into 1. Syntax: ndarray.__abs__(self) Return: floor(self) Example #1 :In this example we can see that after ap...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n05 Mar, 2019" }, { "code": null, "e": 24497, "s": 24292, "text": "With the help of Numpy ndarray.__abs__(), one can find the absolute value of each and every element in an array. Suppose we have a values 1.34, with the help of nd...
Disk Partitioning in Linux - GeeksforGeeks
25 Jan, 2021 Disk Partitioning is the process of dividing a disk into one or more logical areas, often known as partitions, on which the user can work separately. It is one step of disk formatting. If a partition is created, the disk will store the information about the location and size of partitions in the partition ...
[ { "code": null, "e": 25781, "s": 25753, "text": "\n25 Jan, 2021" }, { "code": null, "e": 26330, "s": 25781, "text": "Disk Partitioning is the process of dividing a disk into one or more logical areas, often known as partitions, on which the user can work separately. It is one ste...
How to use the NumPy sum function? - GeeksforGeeks
27 Apr, 2022 NumPy’s sum() function is extremely useful for summing all elements of a given array in Python. In this article, we’ll be going over how to utilize this function and how to quickly use this to advance your code’s functionality. Let’s go over how to use these functions and the benefits of using this functio...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n27 Apr, 2022" }, { "code": null, "e": 25791, "s": 25563, "text": "NumPy’s sum() function is extremely useful for summing all elements of a given array in Python. In this article, we’ll be going over how to utilize this function a...
PHP | MySQL LIMIT Clause - GeeksforGeeks
11 Feb, 2018 In MySQL the LIMIT clause is used with the SELECT statement to restrict the number of rows in the result set. The Limit Clause accepts one or two arguments which are offset and count.The value of both the parameters can be zero or positive integers. Offset:It is used to specify the offset of the first row ...
[ { "code": null, "e": 25565, "s": 25537, "text": "\n11 Feb, 2018" }, { "code": null, "e": 25815, "s": 25565, "text": "In MySQL the LIMIT clause is used with the SELECT statement to restrict the number of rows in the result set. The Limit Clause accepts one or two arguments which a...
Program to Assign grades to a student using Nested If Else - GeeksforGeeks
28 May, 2021 Given an integer array marks, which comprises of marks scored by a student (out of 100) in different subjects, the task is to assign a grade to the student. The grade is found out by taking the percentage of the marks scored by the student. The percentage is calculated as: The grade is assigned using th...
[ { "code": null, "e": 26525, "s": 26497, "text": "\n28 May, 2021" }, { "code": null, "e": 26800, "s": 26525, "text": "Given an integer array marks, which comprises of marks scored by a student (out of 100) in different subjects, the task is to assign a grade to the student. The gr...
Python | Frequency of numbers in String - GeeksforGeeks
22 Apr, 2020 Sometimes, while working with Strings, we can have a problem in which we need to check how many of numerics are present in strings. This is a common problem and have application across many domains like day-day programming and data science. Lets discuss certain ways in which this task can be performed. Met...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25841, "s": 25537, "text": "Sometimes, while working with Strings, we can have a problem in which we need to check how many of numerics are present in strings. This is a common problem and ha...
Wand deskew() function - Python - GeeksforGeeks
18 Aug, 2021 The deskew() function is an inbuilt function in the Python Wand ImageMagick library which is used to remove skew artifacts common with most scanning & optical import devices. Syntax: edge(threshold) Parameters: This function accepts single parameter as mentioned above and defined below: threshold: Thi...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Aug, 2021" }, { "code": null, "e": 25713, "s": 25537, "text": "The deskew() function is an inbuilt function in the Python Wand ImageMagick library which is used to remove skew artifacts common with most scanning & optical impo...
D-TECT - Web Applications Penetration Testing Tool - GeeksforGeeks
24 Oct, 2021 Information Gathering and Vulnerability Scanning are the processes of Penetration Testing that must be performed by every Security Individual. This can be done via automated tools. A D-TECT tool is an automated tool that can be helpful in this Information Collection and Finding Vulnerabilities in Web appli...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n24 Oct, 2021" }, { "code": null, "e": 26307, "s": 25651, "text": "Information Gathering and Vulnerability Scanning are the processes of Penetration Testing that must be performed by every Security Individual. This can be done via...
SQL Query to Find all the Students with Marks Greater than Average Marks - GeeksforGeeks
19 Apr, 2021 Query in SQL is like a statement that performs a task. Here, we need to write a query to find all the students whose marks are greater than the average marks of students. We will first create a database named “geeks” then we will create a table “Students” in that database. We can create a Database using th...
[ { "code": null, "e": 25235, "s": 25207, "text": "\n19 Apr, 2021" }, { "code": null, "e": 25406, "s": 25235, "text": "Query in SQL is like a statement that performs a task. Here, we need to write a query to find all the students whose marks are greater than the average marks of st...
Can we define an enum inside a class in Java?
Enumerations in Java represents a group of named constants, you can create an enumeration using the following syntax enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY } Yes, we can define an enumeration inside a class. You can retrieve the values in an enumeration using the values() method. ...
[ { "code": null, "e": 1179, "s": 1062, "text": "Enumerations in Java represents a group of named constants, you can create an enumeration using the following syntax" }, { "code": null, "e": 1259, "s": 1179, "text": "enum Days {\n SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRI...
PERL and CGI Tutorial
The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script. The CGI specs are currently maintained by the NCSA and NCSA defines CGI is as follows − The Common Gateway Interface, or CGI, is a standard for external gateway programs to in...
[ { "code": null, "e": 2365, "s": 2220, "text": "The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script." }, { "code": null, "e": 2453, "s": 2365, "text": "The CGI specs are currently maintaine...
Dictionary Data Type in Python
Python's dictionaries are kind of hash table type. They work like associative arrays or hashes found in Perl and consist of key-value pairs. A dictionary key can be almost any Python type, but are usually numbers or strings. Values, on the other hand, can be any arbitrary Python object. Dictionaries are enclosed by cur...
[ { "code": null, "e": 1350, "s": 1062, "text": "Python's dictionaries are kind of hash table type. They work like associative arrays or hashes found in Perl and consist of key-value pairs. A dictionary key can be almost any Python type, but are usually numbers or strings. Values, on the other hand, c...
Materialize - Typography
Materialize uses Roboto 2.0 as a standard font. It can be overridden using the following CSS style. html { font-family: GillSans, Calibri, Trebuchet, sans-serif; } Following are the examples of headings, blockquotes and free-flow but responsive text. <!DOCTYPE html> <html> <head> <title>The Materialize Typo...
[ { "code": null, "e": 2287, "s": 2187, "text": "Materialize uses Roboto 2.0 as a standard font. It can be overridden using the following CSS style." }, { "code": null, "e": 2354, "s": 2287, "text": "html {\n font-family: GillSans, Calibri, Trebuchet, sans-serif;\n}" }, { ...
MySQL - Connection
You can establish the MySQL database using the mysql binary at the command prompt. Here is a simple example to connect to the MySQL server from the command prompt − [root@host]# mysql -u root -p Enter password:****** This will give you the mysql> command prompt where you will be able to execute any SQL command. Follow...
[ { "code": null, "e": 2416, "s": 2333, "text": "You can establish the MySQL database using the mysql binary at the command prompt." }, { "code": null, "e": 2498, "s": 2416, "text": "Here is a simple example to connect to the MySQL server from the command prompt −" }, { "co...