title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
JavaScript Date getYear() Method
Javascript date getYear() method returns the year in the specified date according to universal time. The getYear is no longer used and has been replaced by the getYear method. The value returned by getYear is the current year minus 1900. JavaScript 1.2 and earlier versions return either a 2-digit or 4-digit year. For e...
[ { "code": null, "e": 2642, "s": 2466, "text": "Javascript date getYear() method returns the year in the specified date according to universal time. The getYear is no longer used and has been replaced by the getYear method." }, { "code": null, "e": 2937, "s": 2642, "text": "The va...
Check if a jquery has been loaded or not - GeeksforGeeks
06 Dec, 2019 Given a document, The task is to determine whether JQuery has been loaded or not, If not then load it dynamically using JavaScript. Below are the examples to check:Approach: First check if it is loaded. If not loaded then load it dynamically, create a script element and add properties like(type, src) to it...
[ { "code": null, "e": 24213, "s": 24185, "text": "\n06 Dec, 2019" }, { "code": null, "e": 24387, "s": 24213, "text": "Given a document, The task is to determine whether JQuery has been loaded or not, If not then load it dynamically using JavaScript. Below are the examples to check...
Python program to reverse each word in a sentence?
Here we use python built in function. First we split the sentence into a list of word. Then reverse each word and creating a new list ,here we use python list comprehension technique and last joining the new list of words and create an new sentence. Input :: PYTHON PROGRAM Output :: NOHTYP MARGORP Step 1 : input a sen...
[ { "code": null, "e": 1312, "s": 1062, "text": "Here we use python built in function. First we split the sentence into a list of word. Then reverse each word and creating a new list ,here we use python list comprehension technique and last joining the new list of words and create an new sentence." ...
Dog Breed prediction using CNNs and transfer learning | by Jesse Fredrickson | Towards Data Science
In this article, I will demonstrate how to use keras and tensorflow to build, train, and test a Convolutional Neural Network capable of identifying the breed of a dog in a supplied image. Success will be defined by high validation and test accuracy, with precision and recall scores differentiating between models with s...
[ { "code": null, "e": 508, "s": 171, "text": "In this article, I will demonstrate how to use keras and tensorflow to build, train, and test a Convolutional Neural Network capable of identifying the breed of a dog in a supplied image. Success will be defined by high validation and test accuracy, with ...
Creating a Transparent window in Python Tkinter
Python is the most popular language for developing and creating functional and desktop applications. It has a rich library of different modules and functions which provides extensibility and accessibility to create and develop applications. Tkinter is the most commonly used library for creating GUI-based applications. ...
[ { "code": null, "e": 1303, "s": 1062, "text": "Python is the most popular language for developing and creating functional and\ndesktop applications. It has a rich library of different modules and functions which\nprovides extensibility and accessibility to create and develop applications." }, { ...
Deploy a machine learning model using flask | by Hemang Vyas | Towards Data Science
As a beginner in machine learning, it might be easy for anyone to get enough resources about all the algorithms for machine learning and deep learning but when I started to look for references to deploy ML model to production I did not find really any good resources which could help me to deploy my model as I am very n...
[ { "code": null, "e": 666, "s": 172, "text": "As a beginner in machine learning, it might be easy for anyone to get enough resources about all the algorithms for machine learning and deep learning but when I started to look for references to deploy ML model to production I did not find really any goo...
Distance of nearest cell having 1 | Practice | GeeksforGeeks
Given a binary grid. Find the distance of nearest 1 in the grid for each cell. The distance is calculated as |i1 – i2| + |j1 – j2|, where i1, j1 are the row number and column number of the current cell and i2, j2 are the row number and column number of the nearest cell having value 1. Example 1: Input: grid = {{0,1,1...
[ { "code": null, "e": 526, "s": 238, "text": "Given a binary grid. Find the distance of nearest 1 in the grid for each cell.\nThe distance is calculated as |i1 – i2| + |j1 – j2|, where i1, j1 are the row number and column number of the current cell and i2, j2 are the row number and column number of t...
React useEffect
The useEffect Hook allows you to perform side effects in your components. Some examples of side effects are: fetching data, directly updating the DOM, and timers. useEffect accepts two arguments. The second argument is optional. useEffect(<function>, <dependency>) Let's use a timer as an example. Use setTimeout() to co...
[ { "code": null, "e": 74, "s": 0, "text": "The useEffect Hook allows you to perform side effects in your components." }, { "code": null, "e": 163, "s": 74, "text": "Some examples of side effects are: fetching data, directly updating the DOM, and timers." }, { "code": null,...
Node.js - Buffers
Pure JavaScript is Unicode friendly, but it is not so for binary data. While dealing with TCP streams or the file system, it's necessary to handle octet streams. Node provides Buffer class which provides instances to store raw data similar to an array of integers but corresponds to a raw memory allocation outside the V...
[ { "code": null, "e": 2346, "s": 2018, "text": "Pure JavaScript is Unicode friendly, but it is not so for binary data. While dealing with TCP streams or the file system, it's necessary to handle octet streams. Node provides Buffer class which provides instances to store raw data similar to an array o...
Basics of FileStream in C# - GeeksforGeeks
02 Jul, 2020 The FileStream is a class used for reading and writing files in C#. It is part of the System.IO namespace. To manipulate files using FileStream, you need to create an object of FileStream class. This object has four parameters; the Name of the File, FileMode, FileAccess, and FileShare. The Syntax to declar...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n02 Jul, 2020" }, { "code": null, "e": 24198, "s": 23911, "text": "The FileStream is a class used for reading and writing files in C#. It is part of the System.IO namespace. To manipulate files using FileStream, you need to create...
Software Engineering - Quick Guide
Let us first understand what software engineering stands for. The term is made of two words, software and engineering. Software is more than just a program code. A program is an executable code, which serves some computational purpose. Software is considered to be collection of executable programming code, associated l...
[ { "code": null, "e": 2156, "s": 2037, "text": "Let us first understand what software engineering stands for. The term is made of two words, software and engineering." }, { "code": null, "e": 2462, "s": 2156, "text": "Software is more than just a program code. A program is an exec...
How to Mitigate Overfitting with Feature Selection | by Rukshan Pramoditha | Towards Data Science
This is the final part of the “Addressing the problem of overfitting” article series. Today, we’re continuing from Part 4. Last time, in the 3rd step of Part 4, we’ve built a random forest model on the “heart disease” dataset. There, we used all 13 features of the dataset. Today, we’ll modify that model by considering ...
[ { "code": null, "e": 400, "s": 46, "text": "This is the final part of the “Addressing the problem of overfitting” article series. Today, we’re continuing from Part 4. Last time, in the 3rd step of Part 4, we’ve built a random forest model on the “heart disease” dataset. There, we used all 13 feature...
factorial() in Python
Finding the factorial of a number is a frequent requirement in data analysis and other mathematical analysis involving python. The factorial is always found for a positive integer by multiplying all the integers starting from 1 till the given number. There can be three approaches to find this as shown below. We can use...
[ { "code": null, "e": 1372, "s": 1062, "text": "Finding the factorial of a number is a frequent requirement in data analysis and other mathematical analysis involving python. The factorial is always found for a positive integer by multiplying all the integers starting from 1 till the given number. Th...
How to return an array from a function in C++?
C++ does not return entire array but it can return pointer to an array. Outside the function, address of local variable cannot be returned. By making local variable static, it can return the address of local variable. The following is the syntax to return a pointer. int * function_name() { body } Here, function_name − ...
[ { "code": null, "e": 1280, "s": 1062, "text": "C++ does not return entire array but it can return pointer to an array. Outside the function, address of local variable cannot be returned. By making local variable static, it can return the address of local variable." }, { "code": null, "e"...
HTML canvas fill() Method
The fill() method in HTML canvas is used to fill the current drawing path. The default is black. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height and width respectively. Following is the syntax− c...
[ { "code": null, "e": 1356, "s": 1062, "text": "The fill() method in HTML canvas is used to fill the current drawing path. The default is black. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the ca...
Lodash _.renameKeys() Method - GeeksforGeeks
30 Sep, 2020 The Lodash _.renameKeys() method takes an object and a mapping object and returns a new object where the keys of the given object have been renamed as the corresponding value in the keyMap. Syntax: _.renameKeys(obj, mapObj); Parameters: This method accept two parameters as mentioned above and described bel...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n30 Sep, 2020" }, { "code": null, "e": 25490, "s": 25300, "text": "The Lodash _.renameKeys() method takes an object and a mapping object and returns a new object where the keys of the given object have been renamed as the correspo...
\color - Tex Command
\color - Used to specify color for mathematics. { \color #1 #2 } \color command is used to specify color for mathematics. \color{red}{ \frac{1+\sqrt{5}}{2} } 1+52 \color{#0000FF}AB AB \color{red}{ \frac{1+\sqrt{5}}{2} } 1+52 \color{red}{ \frac{1+\sqrt{5}}{2} } \color{#0000FF}AB AB \color{#0000FF}AB 1...
[ { "code": null, "e": 8034, "s": 7986, "text": "\\color - Used to specify color for mathematics." }, { "code": null, "e": 8051, "s": 8034, "text": "{ \\color #1 #2 }" }, { "code": null, "e": 8108, "s": 8051, "text": "\\color command is used to specify color for...
SQLite - Logical Operators
Consider COMPANY table with the following records − ID NAME AGE ADDRESS SALARY ---------- ---------- ---------- ---------- ---------- 1 Paul 32 California 20000.0 2 Allen 25 Texas 15000.0 3 Teddy 23 Norway...
[ { "code": null, "e": 2690, "s": 2638, "text": "Consider COMPANY table with the following records −" }, { "code": null, "e": 3196, "s": 2690, "text": "ID NAME AGE ADDRESS SALARY\n---------- ---------- ---------- ---------- ----------\n1 Pa...
How to sort grouped Pandas dataframe by group size ? - GeeksforGeeks
28 Apr, 2021 In this article, we will discuss how to sort grouped data based on group size in Pandas. Here we will pass the inputs through the list as a dictionary data structure. groupby(): groupby() is used to group the data based on the column values. size(): This is used to get the size of the data frame. sort_valu...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n28 Apr, 2021" }, { "code": null, "e": 24381, "s": 24292, "text": "In this article, we will discuss how to sort grouped data based on group size in Pandas." }, { "code": null, "e": 24459, "s": 24381, "text": "H...
Introduction to Quantum Programming | by Quentin Truong | Towards Data Science
Quantum computers exist! And so does quantum programming! In this article, I’ll walk you through everything you need to know to get started with quantum programming. I’ll start off with some context about how quantum computers differ from computers like your laptop, then explain the fundamentals of quantum programming,...
[ { "code": null, "e": 576, "s": 171, "text": "Quantum computers exist! And so does quantum programming! In this article, I’ll walk you through everything you need to know to get started with quantum programming. I’ll start off with some context about how quantum computers differ from computers like y...
Decision Coverage Testing
Decision coverage or Branch coverage is a testing method, which aims to ensure that each one of the possible branch from each decision point is executed at least once and thereby ensuring that all reachable code is executed. That is, every decision is taken each way, true and false. It helps in validating all the branc...
[ { "code": null, "e": 5970, "s": 5745, "text": "Decision coverage or Branch coverage is a testing method, which aims to ensure that each one of the possible branch from each decision point is executed at least once and thereby ensuring that all reachable code is executed." }, { "code": null, ...
How to Create a Responsive Like Button in ReactJS? - GeeksforGeeks
09 Oct, 2020 React is a JavaScript library used to develop interactive user interfaces. We will be making a Like feature using React JS. Modules required: npm React Font Awesome npm install --save @fortawesome/react-fontawesome Basic setup: Start a project by the following command: NPX: It is a package runner tool tha...
[ { "code": null, "e": 25322, "s": 25294, "text": "\n09 Oct, 2020" }, { "code": null, "e": 25464, "s": 25322, "text": "React is a JavaScript library used to develop interactive user interfaces. We will be making a Like feature using React JS. Modules required:" }, { "code":...
KnockoutJS - Event Binding
This binding is used to listen to specific DOM event and call associated with the handler function based on it. Syntax event: <{DOM-event: handler-function}> Parameters Parameter is inclusive of a JavaScript object, containing DOM event which will be listened to and a handler function which needs to be invoked based o...
[ { "code": null, "e": 1964, "s": 1852, "text": "This binding is used to listen to specific DOM event and call associated with the handler function based on it." }, { "code": null, "e": 1971, "s": 1964, "text": "Syntax" }, { "code": null, "e": 2011, "s": 1971, "...
Array Nesting in C++
Suppose we have a zero-indexed array A of length N that contains all integers from 0 to N-1. We have to find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], ... } subjected to the rule below. Now consider the first element in S starts with the selection of element A[i] of index = i, the...
[ { "code": null, "e": 1678, "s": 1062, "text": "Suppose we have a zero-indexed array A of length N that contains all integers from 0 to N-1. We have to find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], ... } subjected to the rule below. Now consider the first eleme...
How to process a DataFrame with millions of rows in seconds? | by Roman Orac | Towards Data Science
Data Science is having its renaissance moment. It's hard to keep track of all new Data Science tools that have the potential to change the way Data Science gets done. I learned about this new Data Processing Engine only recently in a conversation with a colleague, also a Data Scientist. We had a discussion about Big Da...
[ { "code": null, "e": 339, "s": 172, "text": "Data Science is having its renaissance moment. It's hard to keep track of all new Data Science tools that have the potential to change the way Data Science gets done." }, { "code": null, "e": 590, "s": 339, "text": "I learned about thi...
Immutable Map in Java - GeeksforGeeks
11 Dec, 2018 ImmutableMap, as suggested by the name, is a type of Map which is immutable. It means that the content of the map are fixed or constant after declaration, that is, they are read-only. If any attempt made to add, delete and update elements in the Map, UnsupportedOperationException is thrown. An ImmutableMap...
[ { "code": null, "e": 24220, "s": 24192, "text": "\n11 Dec, 2018" }, { "code": null, "e": 24404, "s": 24220, "text": "ImmutableMap, as suggested by the name, is a type of Map which is immutable. It means that the content of the map are fixed or constant after declaration, that is,...
JSTL - XML <x:forEach> Tag
The <x:forEach> tag is used to loop over nodes in an XML document. The <x:forEach> tag has the following attributes − The following example shows the use of the <x:forEach> tag − <%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix = "x" uri = "http://java.sun.com/jsp/jstl/xml" %> <ht...
[ { "code": null, "e": 2306, "s": 2239, "text": "The <x:forEach> tag is used to loop over nodes in an XML document." }, { "code": null, "e": 2357, "s": 2306, "text": "The <x:forEach> tag has the following attributes −" }, { "code": null, "e": 2418, "s": 2357, "t...
Scraping websites with Newspaper3k in Python - GeeksforGeeks
23 Jan, 2022 Web Scraping is a powerful tool to gather information from a website. To scrape multiple URLs, we can use a Python library called Newspaper3k. The Newspaper3k package is a Python library used for Web Scraping articles, It is built on top of requests and for parsing lxml. This module is a modified and bette...
[ { "code": null, "e": 25671, "s": 25643, "text": "\n23 Jan, 2022" }, { "code": null, "e": 26053, "s": 25671, "text": "Web Scraping is a powerful tool to gather information from a website. To scrape multiple URLs, we can use a Python library called Newspaper3k. The Newspaper3k pack...
Inheritance of Interface in Java with Examples - GeeksforGeeks
10 Jun, 2020 Inheritance is an important pillar of OOPs(Object Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields and methods) of another class. Like a class, an interface can have methods and variables, but the methods declared in an interface are by default...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n10 Jun, 2020" }, { "code": null, "e": 26568, "s": 26217, "text": "Inheritance is an important pillar of OOPs(Object Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields a...
How to Install and Use Htop on Linux? - GeeksforGeeks
09 Apr, 2021 For Linux systems, Htop is an interactive system control, process viewer, and process manager. It was created as a replacement for the Linux program top, and it has a lot of the same features as the top, but with a lot more flexibility in terms of how system processes can be interpreted. Unlike top, htop d...
[ { "code": null, "e": 24872, "s": 24844, "text": "\n09 Apr, 2021" }, { "code": null, "e": 25361, "s": 24872, "text": "For Linux systems, Htop is an interactive system control, process viewer, and process manager. It was created as a replacement for the Linux program top, and it ha...
Concatenated string with uncommon characters in Python?
Here two strings are given, first we have to remove all the common element from the first string and uncommon characters of the second string have to be concatenated with uncommon element of first string. Input >> first string::AABCD Second string:: MNAABP Output >> CDMNP Uncommonstring(s1,s2) /* s1 and s2 are two str...
[ { "code": null, "e": 1267, "s": 1062, "text": "Here two strings are given, first we have to remove all the common element from the first string and uncommon characters of the second string have to be concatenated with uncommon element of first string." }, { "code": null, "e": 1336, "...
How to generate PDF file using PHP ? - GeeksforGeeks
02 Jul, 2021 In this article, we will learn how to generate PDF files with PHP by using FPDF. It is a free PHP class that contains many functions for creating and modifying PDFs. The FPDF class includes many features like page formats, page headers, footers, automatic page break, line break, image support, colors, link...
[ { "code": null, "e": 24581, "s": 24553, "text": "\n02 Jul, 2021" }, { "code": null, "e": 24906, "s": 24581, "text": "In this article, we will learn how to generate PDF files with PHP by using FPDF. It is a free PHP class that contains many functions for creating and modifying PDF...
jQuery keypress() with Examples
The keypress method in jQuery is used to trigger the keypress event. It occurs when a keyboard key is pressed down. The syntax is as follows − $(selector).keypress(func) Let us now see an example to implement the jQuery keypress() method− Live Demo <!DOCTYPE html> <html> <head> <style> <script src="https://ajax.google...
[ { "code": null, "e": 1178, "s": 1062, "text": "The keypress method in jQuery is used to trigger the keypress event. It occurs when a keyboard key is pressed down." }, { "code": null, "e": 1205, "s": 1178, "text": "The syntax is as follows −" }, { "code": null, "e": 12...
The Problem of Vanishing Gradients | by Animesh Agarwal | Towards Data Science
Vanishing gradients occur while training deep neural networks using gradient-based optimization methods. It occurs due to the nature of the backpropagation algorithm that is used to train the neural network. Explain the problem of vanishing gradients: We will understand why the problem of vanishing gradients exists. We...
[ { "code": null, "e": 379, "s": 171, "text": "Vanishing gradients occur while training deep neural networks using gradient-based optimization methods. It occurs due to the nature of the backpropagation algorithm that is used to train the neural network." }, { "code": null, "e": 795, "...
Say Goodbye to Excel? A Simple Evaluation of Python Grid Studio Using COVID-19 Data | by Christopher Tao | Towards Data Science
Recently, I found an excellent open-source project “Grid Studio”. This library combines the advantages of the spreadsheet and Python in terms of data analytics. Have you been thinking that When you use MS Excel, you want to use your Python skills and libraries such as Numpy, Pandas, SciPy, Matplotlib and Scikit-learn t...
[ { "code": null, "e": 333, "s": 172, "text": "Recently, I found an excellent open-source project “Grid Studio”. This library combines the advantages of the spreadsheet and Python in terms of data analytics." }, { "code": null, "e": 361, "s": 333, "text": "Have you been thinking th...
Check if all array elements are distinct - GeeksforGeeks
16 Jun, 2021 Given an array, check whether all elements in an array are distinct or not.Examples: Input : 1, 3, 2, 4 Output : Yes Input : "Geeks", "for", "Geeks" Output : No Input : "All", "Not", "Equal" Output : Yes One simple solution is to use two nested loops. For every element, check if it repeats or not. If...
[ { "code": null, "e": 24741, "s": 24713, "text": "\n16 Jun, 2021" }, { "code": null, "e": 24828, "s": 24741, "text": "Given an array, check whether all elements in an array are distinct or not.Examples: " }, { "code": null, "e": 24949, "s": 24828, "text": "Inp...
Bayesian method (1). The prior distribution | by Xichu Zhang | Towards Data Science
It is easy to find a huge amount of good articles on the introduction of Bayesian statistics. However, most of them introduce only what Bayesian statistics is and how does Bayesian inference work and not many mathematical details are involved. In addition, it is a fun and challenging area to explore. Therefore, I am pl...
[ { "code": null, "e": 467, "s": 165, "text": "It is easy to find a huge amount of good articles on the introduction of Bayesian statistics. However, most of them introduce only what Bayesian statistics is and how does Bayesian inference work and not many mathematical details are involved. In addition...
Import and Merge Multiple CSV Files in R - GeeksforGeeks
17 Jun, 2021 In this article, we will be looking at the approach to merge multiple CSV files in the R programming language. dplyr: This is a structure of data manipulation that provides a uniform set of verbs, helping to resolve the most frequent data manipulation hurdles. plyr: plyr is an R package that makes it simpl...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n17 Jun, 2021" }, { "code": null, "e": 26598, "s": 26487, "text": "In this article, we will be looking at the approach to merge multiple CSV files in the R programming language." }, { "code": null, "e": 26748, "s":...
Machine Learning Models as Micro Services in Docker | by Sambit Mahapatra | Towards Data Science
One of the biggest underrated challenges in machine learning development is the deployment of the trained models in production that too in a scalable way. One joke on it I have read is “Most common way, Machine Learning gets deployed today is powerpoint slides :)”. Docker is a containerization platform which packages a...
[ { "code": null, "e": 438, "s": 172, "text": "One of the biggest underrated challenges in machine learning development is the deployment of the trained models in production that too in a scalable way. One joke on it I have read is “Most common way, Machine Learning gets deployed today is powerpoint s...
Exploratory Data Analysis in R for beginners (Part 2) | by Joe Tran | Towards Data Science
In my previous article, ‘Exploratory Data Analysis in R for beginners (Part 1)’, I have introduced a basic step-by-step approach from data importing to cleaning and visualization. Here is a quick summary of Part 1: Import data appropriately with fileEncoding and na.strings arguments. I showed how it is different from t...
[ { "code": null, "e": 387, "s": 172, "text": "In my previous article, ‘Exploratory Data Analysis in R for beginners (Part 1)’, I have introduced a basic step-by-step approach from data importing to cleaning and visualization. Here is a quick summary of Part 1:" }, { "code": null, "e": 545...
Introduction to OpenVINO. A comprehensive guide for understanding... | by Dhairya Kumar | Towards Data Science
A comprehensive guide for understanding the functioning of the OpenVINO toolkit OpenVINO stands for Open Visual Inference and Neural Network Optimization. It is a toolkit provided by Intel to facilitate faster inference of deep learning models. It helps developers to create cost-effective and robust computer vision app...
[ { "code": null, "e": 127, "s": 47, "text": "A comprehensive guide for understanding the functioning of the OpenVINO toolkit" }, { "code": null, "e": 689, "s": 127, "text": "OpenVINO stands for Open Visual Inference and Neural Network Optimization. It is a toolkit provided by Inte...
How to disable ONLY_FULL_GROUP_BY in MySQL?
You can enable ONLY_FULL_GROUP_BY in MySQL as shown in the following query − mysql> SET sql_mode = 'ONLY_FULL_GROUP_BY'; Query OK, 0 rows affected (0.01 sec) As shown above, we can enable ONLY_FULL_GROUP_BY with the help of SET command. To disable ONLY_FULL_GROUP_BY with the help of the following query − mysql> SET GLO...
[ { "code": null, "e": 1139, "s": 1062, "text": "You can enable ONLY_FULL_GROUP_BY in MySQL as shown in the following query −" }, { "code": null, "e": 1220, "s": 1139, "text": "mysql> SET sql_mode = 'ONLY_FULL_GROUP_BY';\nQuery OK, 0 rows affected (0.01 sec)" }, { "code": n...
Angular PrimeNG Dropdown Component - GeeksforGeeks
11 Sep, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dropdown component in Angular ngx Bootstrap. We will also lea...
[ { "code": null, "e": 24148, "s": 24117, "text": " \n11 Sep, 2021\n" }, { "code": null, "e": 24579, "s": 24148, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make r...
Min Stack in Python
Here we will see how to make a stack, that can perform push, pop, top, and retrieve the min element in constant time. So the functions will be push(x), pop(), top() and getMin() To solve this, we will follow these steps − Initialize the stack by min element as infinity For push operation push(x)if x < min, then update ...
[ { "code": null, "e": 1240, "s": 1062, "text": "Here we will see how to make a stack, that can perform push, pop, top, and retrieve the min element in constant time. So the functions will be push(x), pop(), top() and getMin()" }, { "code": null, "e": 1284, "s": 1240, "text": "To s...
Java Program to Remove an Element from ArrayList using ListIterator - GeeksforGeeks
20 Dec, 2021 ListIterator.remove() method removes the last element from the list that was returned by next() or previous() cursor positions. It can be called only once per call to next or previous. It can be made only if the operation — add(E) has not called after the last call to next or previous. Internal working in ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n20 Dec, 2021" }, { "code": null, "e": 23844, "s": 23557, "text": "ListIterator.remove() method removes the last element from the list that was returned by next() or previous() cursor positions. It can be called only once per call...
Building Face Recognition Model Under 30 Minutes | by Parth Rajesh Dedhia | Towards Data Science
In this blog post, I am going to give a walk-through of some implementation details of the face recognition model. I have also designed a browser-based UI for adding a new person to the database. Explaining the web-development part is out of the scope for this blog. This post assumes an understanding of the Siamese Net...
[ { "code": null, "e": 439, "s": 172, "text": "In this blog post, I am going to give a walk-through of some implementation details of the face recognition model. I have also designed a browser-based UI for adding a new person to the database. Explaining the web-development part is out of the scope for...
Create AI for Your Own Board Game From Scratch — Preparation — Part 1 | by Haryo Akbarianto Wibowo | Towards Data Science
Hello everyone! This is my second article in medium about Artificial Intelligence (AI). I want to share to everyone about how the progress of my little project that I do on my free time. It is a board game that I come up with. EvoPawness (Temporary Name) is inspired from a chess game. It is a simple game. However, my a...
[ { "code": null, "e": 860, "s": 172, "text": "Hello everyone! This is my second article in medium about Artificial Intelligence (AI). I want to share to everyone about how the progress of my little project that I do on my free time. It is a board game that I come up with. EvoPawness (Temporary Name) ...
How to write a jQuery selector for the label of a checkbox?
To write a jQuery selector for the label of a checkbox, use the for attribute of label element. You can try to run the following code to learn how to write a jQuery selector for the label of a checkbox: Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js...
[ { "code": null, "e": 1158, "s": 1062, "text": "To write a jQuery selector for the label of a checkbox, use the for attribute of label element." }, { "code": null, "e": 1265, "s": 1158, "text": "You can try to run the following code to learn how to write a jQuery selector for the ...
DATE_ADD() Function in MySQL - GeeksforGeeks
25 Nov, 2020 DATE_ADD() function in MySQL is used to add a specified time or date interval to a specified date and then return the date. Syntax: DATE_ADD(date, INTERVAL value addunit) Parameter: This function accepts two parameters which are illustrated below: date –Specified date to be modified. value addunit –Here ...
[ { "code": null, "e": 23824, "s": 23796, "text": "\n25 Nov, 2020" }, { "code": null, "e": 23948, "s": 23824, "text": "DATE_ADD() function in MySQL is used to add a specified time or date interval to a specified date and then return the date." }, { "code": null, "e": 23...
Pinging an IP address in Java | Set 1
29 Jun, 2017 PING stands for Packet InterNet Groper in computer networking field. It’s a computer network administration software used to test the reachability of a host on an Internet Protocol (IP) network. It measures the round-trip time for messages sent from the originating host to a destination computer that are e...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jun, 2017" }, { "code": null, "e": 385, "s": 52, "text": "PING stands for Packet InterNet Groper in computer networking field. It’s a computer network administration software used to test the reachability of a host on an Internet Pr...
Python Number cos() Method
Python number method cos() returns the cosine of x radians. Following is the syntax for cos() method − cos(x) Note − This function is not accessible directly, so we need to import math module and then we need to call this function using math static object. x − This must be a numeric value. x − This must be a numeric ...
[ { "code": null, "e": 2439, "s": 2378, "text": "Python number method cos() returns the cosine of x radians." }, { "code": null, "e": 2482, "s": 2439, "text": "Following is the syntax for cos() method −" }, { "code": null, "e": 2490, "s": 2482, "text": "cos(x)\...
Remove every k-th node of the linked list
11 Jun, 2022 Given a singly linked list, Your task is to remove every K-th node of the linked list. Assume that K is always less than or equal to length of Linked List.Examples : Input : 1->2->3->4->5->6->7->8 k = 3 Output : 1->2->4->5->7->8 As 3 is the k-th node after its deletion list would be 1->2->4->5...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jun, 2022" }, { "code": null, "e": 220, "s": 52, "text": "Given a singly linked list, Your task is to remove every K-th node of the linked list. Assume that K is always less than or equal to length of Linked List.Examples : " }, ...
Python program to calculate BMI(Body Mass Index) of your Body
We have to enter our height and weight. Our task is to calculate BMI using formula. Step 1: input height and weight of your body. Step 2: then applying the formula for calculation BMI. Step 3: display BMI. height = float(input("Enter your height(m): ")) weight = float(input("Enter your weight(kg): ")) print("Your BMI ...
[ { "code": null, "e": 1271, "s": 1187, "text": "We have to enter our height and weight. Our task is to calculate BMI using formula." }, { "code": null, "e": 1394, "s": 1271, "text": "Step 1: input height and weight of your body.\nStep 2: then applying the formula for calculation B...
Web Driver Methods in Selenium Python
19 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 May, 2020" }, { "code": null, "e": 792, "s": 53, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium...
Rune in Golang
11 Apr, 2022 In the past, we only had one character set, and that was known as ASCII (American Standard Code for Information Interchange). There, we used 7 bits to represent 128 characters, including upper and lowercase English letters, digits, and a variety of punctuations and device-control characters. Due to this ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Apr, 2022" }, { "code": null, "e": 826, "s": 28, "text": "In the past, we only had one character set, and that was known as ASCII (American Standard Code for Information Interchange). There, we used 7 bits to represent 128 characters...
Implementation of lower_bound and upper_bound on Set of Pairs in C++
22 Jul, 2020 Prerequisite: set lower_bound() function in C++ STL, set upper_bound() function in C++ STL lower_bound() returns an iterator pointing to the first element in the range [first, last) which has a value greater than or equals to the given value “val”. But in set of Pairs lower_bound() for pair(x, y) will retu...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jul, 2020" }, { "code": null, "e": 144, "s": 53, "text": "Prerequisite: set lower_bound() function in C++ STL, set upper_bound() function in C++ STL" }, { "code": null, "e": 736, "s": 144, "text": "lower_bound() ...
ES6 | Operators
07 Mar, 2022 An expression is a special kind of statement that evaluates to a value. Every expression consists of Operands: Represents the data. Operator: which performs certain operations on operands. Consider the following expression – 2 / 3, in the expression, 2 and 3 are operands and the symbol /is the operator.J...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Mar, 2022" }, { "code": null, "e": 131, "s": 28, "text": "An expression is a special kind of statement that evaluates to a value. Every expression consists of " }, { "code": null, "e": 162, "s": 131, "text": "Ope...
Thread joinable() function in C++
26 Oct, 2018 Thread::joinable is an in-built function in C++ std::thread. It is an observer function which means it observes a state and then returns the corresponding output and checks whether the thread object is joinable or not. A thread object is said to be joinable if it identifies/represent an active thread of ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Oct, 2018" }, { "code": null, "e": 247, "s": 28, "text": "Thread::joinable is an in-built function in C++ std::thread. It is an observer function which means it observes a state and then returns the corresponding output and checks wh...
Why is Scanner skipping nextLine() after use of other next functions?
02 Sep, 2021 The nextLine() method of java.util.Scanner class advances this scanner past the current line and returns the input that was skipped. This function prints the rest of the current line, leaving out the line separator at the end. The next is set to after the line separator. Since this method continues to sear...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Sep, 2021" }, { "code": null, "e": 507, "s": 52, "text": "The nextLine() method of java.util.Scanner class advances this scanner past the current line and returns the input that was skipped. This function prints the rest of the curr...
MathF.Round() Method in C# with Examples | Set – 1
04 Apr, 2019 In C#, MathF.Round() is a MathF class method which is used to round a value to the nearest integer or to the particular number of fractional digits. This method can be overloaded by changing the number and type of arguments passed. There are 4 methods in the overload list of the MathF.Round() method. MathF...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Apr, 2019" }, { "code": null, "e": 330, "s": 28, "text": "In C#, MathF.Round() is a MathF class method which is used to round a value to the nearest integer or to the particular number of fractional digits. This method can be overloa...
Python | Pandas Series.is_unique
28 Jan, 2019 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique bu...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jan, 2019" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
Pearson Correlation Testing in R Programming
23 Dec, 2021 Correlation is a statistical measure that indicates how strongly two variables are related. It involves the relationship between multiple variables as well. For instance, if one is interested to know whether there is a relationship between the heights of fathers and sons, a correlation coefficient can be c...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Dec, 2021" }, { "code": null, "e": 505, "s": 28, "text": "Correlation is a statistical measure that indicates how strongly two variables are related. It involves the relationship between multiple variables as well. For instance, if o...
Getting the current date and time with timestamp in local and other timezones in Golang
22 Jun, 2020 We can get the current date and time with a timestamp in local with the help of Location() function and other timezones in Golang with the help of LoadLocation() function. The LoadLocation() takes a string(city name) as parameter and returns the place..location() takes no parameter and return location .tim...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2020" }, { "code": null, "e": 400, "s": 28, "text": "We can get the current date and time with a timestamp in local with the help of Location() function and other timezones in Golang with the help of LoadLocation() function. The...
Underscore.js _.isEmpty() Function
20 Dec, 2021 _.isEmpty() function: It is used to check whether a list, array, string, object etc is empty or not. It first finds out the length of the passed argument and then decides. If length is zero, then the output is true otherwise false. Syntax: _.isEmpty(object) Parameters:It takes only one argument which is t...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Dec, 2021" }, { "code": null, "e": 50, "s": 28, "text": "_.isEmpty() function:" }, { "code": null, "e": 129, "s": 50, "text": "It is used to check whether a list, array, string, object etc is empty or not." }, ...
Python – Regex Lookbehind
24 Feb, 2021 Regex Lookbehind is used as an assertion in Python regular expressions(re) to determine success or failure whether the pattern is behind i.e to the right of the parser’s current position. They don’t match anything. Hence, Regex Lookbehind and lookahead are termed as a zero-width assertion. Syntax: # Positi...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Feb, 2021" }, { "code": null, "e": 319, "s": 28, "text": "Regex Lookbehind is used as an assertion in Python regular expressions(re) to determine success or failure whether the pattern is behind i.e to the right of the parser’s curre...
How to Create Splash Screen Without an Extra Activity in Android?
18 Jul, 2021 A splash screen is the first screen of the app when it is opened. It is used to display some basic introductory information such as the company logo, content, etc just before the app loads completely. In this article, we will follow the best practice to create a Splash screen that is without creating an ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jul, 2021" }, { "code": null, "e": 508, "s": 28, "text": "A splash screen is the first screen of the app when it is opened. It is used to display some basic introductory information such as the company logo, content, etc just before ...
Defaultdict in Python
08 Jul, 2022 Dictionary in Python is an unordered collection of data values that are used to store data values like a map. Unlike other Data Types that hold only single value as an element, the Dictionary holds key-value pair. In Dictionary, the key must be unique and immutable. This means that a Python Tuple can be a ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 504, "s": 54, "text": "Dictionary in Python is an unordered collection of data values that are used to store data values like a map. Unlike other Data Types that hold only single value as an elemen...
HTML <Textarea>maxlength attribute
09 Jan, 2020 The HTML <Textarea>maxlength attribute is used to specify the maximum number of characters enters into the Textarea element. Syntax: <Textarea maxlength ="number"> Attribute Value: Example: <!DOCTYPE html> <html> <head> <title>Textarea maxlength Attribute</title> <style> } fieldset { ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jan, 2020" }, { "code": null, "e": 153, "s": 28, "text": "The HTML <Textarea>maxlength attribute is used to specify the maximum number of characters enters into the Textarea element." }, { "code": null, "e": 161, "s":...
PostgreSQL – Size of value
28 Aug, 2020 The size of a value means the space needed to store a specific value in the database table.In this article we will look into function that is used to get the size of the PostgreSQL database value.The pg_column_size() function is used to get the size of a value. Syntax: select pg_column_size(no. of values :...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 290, "s": 28, "text": "The size of a value means the space needed to store a specific value in the database table.In this article we will look into function that is used to get the size of the Postg...
Python | ScreenManager in Kivy using .kv file
16 Jan, 2022 Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. The screen manager is a widget which is used to managing multiple scre...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jan, 2022" }, { "code": null, "e": 289, "s": 52, "text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it do...
Kotlin Regular Expression
22 Sep, 2021 Regular Expressions are a fundamental part of almost every programming language and Kotlin is no exception to it. In Kotlin, the support for regular expression is provided through Regex class. An object of this class represents a regular expression, that can be used for string matching purposes. class Re...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Sep, 2021" }, { "code": null, "e": 327, "s": 28, "text": "Regular Expressions are a fundamental part of almost every programming language and Kotlin is no exception to it. In Kotlin, the support for regular expression is provided thr...
How to specify a fixed background-image in CSS ?
02 Jul, 2021 In this article, we are going to see how to specify a fixed background image in CSS. To keep your background fixed, scroll, or local in CSS, we have to use the background-attachment property. Background-attachment: This property is used in CSS to set a background image as fixed or scroll. The default value...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jul, 2021" }, { "code": null, "e": 246, "s": 54, "text": "In this article, we are going to see how to specify a fixed background image in CSS. To keep your background fixed, scroll, or local in CSS, we have to use the background-att...
MySQL Tryit Editor v1.0
SELECT Orders.OrderID, Customers.CustomerName FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of...
[ { "code": null, "e": 46, "s": 0, "text": "SELECT Orders.OrderID, Customers.CustomerName" }, { "code": null, "e": 58, "s": 46, "text": "FROM Orders" }, { "code": null, "e": 124, "s": 58, "text": "INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID;...
How to Use fastai to Evaluate DICOM Medical Files | by Charlie Craine | Towards Data Science
Get started in Kaggle medical-based competitions Kaggle competitions can be really intense and just gaining domain knowledge can take quite a good amount of work upfront. I have quite a bit of experience using fastai, now, that doesn’t mean I always use it for a final competition entry, but it is a great tool for quick...
[ { "code": null, "e": 221, "s": 172, "text": "Get started in Kaggle medical-based competitions" }, { "code": null, "e": 343, "s": 221, "text": "Kaggle competitions can be really intense and just gaining domain knowledge can take quite a good amount of work upfront." }, { "...
Create multiple buttons with "different" command function in Tkinter
A Button can be initialized using the for loop in a Tkinter application. Let us suppose that we want to create multiple buttons, each with different commands or operations defined in it. We have to first initialize the Button inside a for loop. The iterator will return the object for which multiple instances of the but...
[ { "code": null, "e": 1403, "s": 1062, "text": "A Button can be initialized using the for loop in a Tkinter application. Let us suppose that we want to create multiple buttons, each with different commands or operations defined in it. We have to first initialize the Button inside a for loop. The iter...
Ceil and Floor functions in C++ - GeeksforGeeks
04 Apr, 2018 In mathematics and computer science, the floor and ceiling functions map a real number to the greatest preceding or the least succeeding integer, respectively. floor(x) : Returns the largest integer that is smaller than or equal to x (i.e : rounds downs the nearest integer). // Here x is the floating point...
[ { "code": null, "e": 24075, "s": 24047, "text": "\n04 Apr, 2018" }, { "code": null, "e": 24235, "s": 24075, "text": "In mathematics and computer science, the floor and ceiling functions map a real number to the greatest preceding or the least succeeding integer, respectively." ...
CSS Positioning Elements - GeeksforGeeks
01 Nov, 2021 The position property in CSS tells about the method of positioning for an element or an HTML entity. There are five different types of position property available in CSS: Fixed Static Relative Absolute Sticky The positioning of an element can be done using the top, right, bottom, and left properties. These...
[ { "code": null, "e": 27990, "s": 27962, "text": "\n01 Nov, 2021" }, { "code": null, "e": 28161, "s": 27990, "text": "The position property in CSS tells about the method of positioning for an element or an HTML entity. There are five different types of position property available ...
Difference between List, Set and Map in Java
27 Sep, 2021 List interface in Java is a sub-interface of the Java collections interface. It contains the index-based methods to insert, update, delete, and search the elements. It can have duplicate elements also. We can also store the null elements in the list. List preserves the insertion order, it allows positional...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Sep, 2021" }, { "code": null, "e": 564, "s": 54, "text": "List interface in Java is a sub-interface of the Java collections interface. It contains the index-based methods to insert, update, delete, and search the elements. It can ha...
Python program to read character by character from a file
24 Jan, 2022 Given a text file. The task is to read the text from the file character by character.Function used: Syntax: file.read(length)Parameters: An integer value specified the length of data to be read from the file.Return value: Returns the read bytes in form of a string. Examples 1: Suppose the text file look...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jan, 2022" }, { "code": null, "e": 153, "s": 52, "text": "Given a text file. The task is to read the text from the file character by character.Function used: " }, { "code": null, "e": 321, "s": 153, "text": "Synt...
Python Plotly – How to add multiple Y-axes?
12 Jan, 2022 In this article let’s see how to add multiple y-axes of different scales in Plotly charts in Python. Currently, Plotly Express does not support multiple Y axes on a single figure. So, we shall use Plotly go. Plotly provides a function called make_subplots() to plot charts with multiple Y – axes. Syntax: p...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 129, "s": 28, "text": "In this article let’s see how to add multiple y-axes of different scales in Plotly charts in Python." }, { "code": null, "e": 326, "s": 129, "text": "Curre...
How to create softlink of a file using Python?
The method os.symlink(src, dst) creates a symbolic link dst pointing to src. For example, if you have a file called photo.jpg and want to create a softlink/symbolic link to it called my_photo.jpg, then you could simply use: >>> import os >>> os.symlink('photo.jpg', 'my_photo.jpg') Now if you list the files in that dire...
[ { "code": null, "e": 1411, "s": 1187, "text": "The method os.symlink(src, dst) creates a symbolic link dst pointing to src. For example, if you have a file called photo.jpg and want to create a softlink/symbolic link to it called my_photo.jpg, then you could simply use:" }, { "code": null, ...
Comments In Scala
25 Jan, 2022 Comments are entities, in our code, that the interpreter/compiler ignores. We generally use them to explain the code, and also to hide code details. It means comments will not be the part of the code. It will not be executed, rather it will be used only to explain the code in detail.In other words, The sca...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jan, 2022" }, { "code": null, "e": 631, "s": 28, "text": "Comments are entities, in our code, that the interpreter/compiler ignores. We generally use them to explain the code, and also to hide code details. It means comments will not...
Number of Coins | Practice | GeeksforGeeks
Given a value V and array coins[] of size M, the task is to make the change for V cents, given that you have an infinite supply of each of coins{coins1, coins2, ..., coinsm} valued coins. Find the minimum number of coins to make the change. If not possible to make change then return -1. Example 1: Input: V = 30, M = 3...
[ { "code": null, "e": 526, "s": 238, "text": "Given a value V and array coins[] of size M, the task is to make the change for V cents, given that you have an infinite supply of each of coins{coins1, coins2, ..., coinsm} valued coins. Find the minimum number of coins to make the change. If not possibl...
Types of Schedules based Recoverability in DBMS
26 Apr, 2021 Generally, there are three types of schedule given as follows: 1. Recoverable Schedule – A schedule is said to be recoverable if it is recoverable as name suggest. Only reads are allowed before write operation on same data. Only reads (Ti->Tj) is permissible. Example – S1: R1(x), W1(x), R2(x), R1(y),...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Apr, 2021" }, { "code": null, "e": 116, "s": 52, "text": "Generally, there are three types of schedule given as follows: " }, { "code": null, "e": 316, "s": 118, "text": "1. Recoverable Schedule – A schedule is s...
How to find the maximum element of a Vector using STL in C++?
19 Mar, 2019 Given a vector, find the maximum element of this vector using STL in C++. Example: Input: {1, 45, 54, 71, 76, 12} Output: 76 Input: {1, 7, 5, 4, 6, 12} Output: 12 Approach: Max or Maximum element can be found with the help of *max_element() function provided in STL. Syntax: *max_element (first_index, las...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Mar, 2019" }, { "code": null, "e": 126, "s": 52, "text": "Given a vector, find the maximum element of this vector using STL in C++." }, { "code": null, "e": 135, "s": 126, "text": "Example:" }, { "code": ...
How to get file content and other details in AngularJS?
14 Aug, 2020 We can get the file content by using some basic angular functions and other details like the name and size of the file in AngularJS. To understand it look into the below example where both HTML and JS files are implemented. Note: Consider below two files are of same component in angular. app.module.html: <...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Aug, 2020" }, { "code": null, "e": 276, "s": 52, "text": "We can get the file content by using some basic angular functions and other details like the name and size of the file in AngularJS. To understand it look into the below exam...
Program to find correlation coefficient
20 Jul, 2021 Given two array elements and we have to find the correlation coefficient between two arrays. The correlation coefficient is an equation that is used to determine the strength of the relation between two variables. The correlation coefficient is sometimes called as cross-correlation coefficient. Correlation...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jul, 2021" }, { "code": null, "e": 511, "s": 54, "text": "Given two array elements and we have to find the correlation coefficient between two arrays. The correlation coefficient is an equation that is used to determine the strength...
Distributing M items in a circle of size N starting from K-th position
31 Jan, 2022 M items are to be delivered in a circle of size N. Find the position where the M-th item will be delivered if we start from a given position K. Note that items are distributed at adjacent positions starting from K.Examples : Input : N = 5 // Size of circle M = 2 // Number of items K = 1 /...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Jan, 2022" }, { "code": null, "e": 279, "s": 52, "text": "M items are to be delivered in a circle of size N. Find the position where the M-th item will be delivered if we start from a given position K. Note that items are distribute...
Print all possible consecutive numbers with sum N
13 May, 2022 Given a number N. The task is to print all possible consecutive numbers that add up to N. Examples : Input: N = 100 Output: 9 10 11 12 13 14 15 16 18 19 20 21 22 Input: N = 125 Output: 8 9 10 11 12 13 14 15 16 17 23 24 25 26 27 62 63 One important fact is we can not find consecutive numbers above N/...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 May, 2022" }, { "code": null, "e": 142, "s": 52, "text": "Given a number N. The task is to print all possible consecutive numbers that add up to N." }, { "code": null, "e": 154, "s": 142, "text": "Examples : " ...
Method Overriding in Scala
25 Apr, 2019 Method Overriding in Scala is identical to the method overriding in Java but in Scala, the overriding features are further elaborated as here, both methods as well as var or val can be overridden. If a subclass has the method name identical to the method name defined in the parent class then it is known to...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Apr, 2019" }, { "code": null, "e": 507, "s": 28, "text": "Method Overriding in Scala is identical to the method overriding in Java but in Scala, the overriding features are further elaborated as here, both methods as well as var or v...
How to customize links for pagination in Bootstrap ?
24 Sep, 2021 In many websites, we notice that when we search for something then all the related content is shown but if the number of content is large then it will make the website longer. To solve this, there is pagination in the webpage i.e, the contents are divided into many pages and on clicking the user can navig...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Sep, 2021" }, { "code": null, "e": 229, "s": 52, "text": "In many websites, we notice that when we search for something then all the related content is shown but if the number of content is large then it will make the website longer...
C function argument and return values
30 May, 2022 Prerequisite: Functions in C/C++ A function in C can be called either with arguments or without arguments. These functions may or may not return values to the calling functions. All C functions can be called either with arguments or without arguments in a C program. Also, they may or may not return any val...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 May, 2022" }, { "code": null, "e": 427, "s": 52, "text": "Prerequisite: Functions in C/C++ A function in C can be called either with arguments or without arguments. These functions may or may not return values to the calling functio...
How to Create a Database Connection?
15 Dec, 2021 Java Database Connectivity is a standard API or we can say an application interface present between the Java programming language and the various databases like Oracle, SQL, PostgreSQL, MongoDB, etc. It basically connects the front end(for interacting with the users) with the backend for storing data enter...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Dec, 2021" }, { "code": null, "e": 459, "s": 28, "text": "Java Database Connectivity is a standard API or we can say an application interface present between the Java programming language and the various databases like Oracle, SQL, P...
How we can import Python modules without installing?
Yes there are ways to import Python modules without installing. If you are not able to install modules on a machine(due to not having enough permissions), you could use either virtualenv or save the module files in another directory and use the following code to allow Python to search for modules in the given module: >...
[ { "code": null, "e": 1381, "s": 1062, "text": "Yes there are ways to import Python modules without installing. If you are not able to install modules on a machine(due to not having enough permissions), you could use either virtualenv or save the module files in another directory and use the followin...
How to draw a violin plot in R?
A violin plot is similar to a boxplot but looks like a violin and shows the distribution of the data for different categories. It shows the density of the data values at different points. In R, we can draw a violin plot with the help of ggplot2 package as it has a function called geom_violin for this purpose. Consider ...
[ { "code": null, "e": 1373, "s": 1062, "text": "A violin plot is similar to a boxplot but looks like a violin and shows the distribution of the data for different categories. It shows the density of the data values at different points. In R, we can draw a violin plot with the help of ggplot2 package ...
ES6 - Collections Set Method add()
This method appends a new element with the given value to the Set object. mySet.add(value); Value − item to add to the list. Value − item to add to the list. Set Object. var set = new Set(); set.add(10); set.add(10); // duplicate not added set.add(10); // duplicate not added set.add(20); set.add(30); console.log...
[ { "code": null, "e": 2351, "s": 2277, "text": "This method appends a new element with the given value to the Set object." }, { "code": null, "e": 2370, "s": 2351, "text": "mySet.add(value);\n" }, { "code": null, "e": 2403, "s": 2370, "text": "Value − item to a...
Array in Python | Set 2 (Important Functions) - GeeksforGeeks
13 May, 2020 Array in Python | Set 1 (Introduction and Functions) Below are some more functions. 1. typecode :- This function returns the data type by which array is initialised. 2. itemsize :- This function returns size in bytes of a single array element. 3. buffer_info() :- Returns a tuple representing the address in...
[ { "code": null, "e": 25691, "s": 25663, "text": "\n13 May, 2020" }, { "code": null, "e": 25744, "s": 25691, "text": "Array in Python | Set 1 (Introduction and Functions)" }, { "code": null, "e": 25775, "s": 25744, "text": "Below are some more functions." }, ...
Python | Matrix Product - GeeksforGeeks
30 Dec, 2020 Getting the product of list is quite common problem and has been dealt with and discussed many times, but sometimes, we require to better it and total product, i.e. including those of nested list as well. Let’s try and get the total product and solve this particular problem. Method #1 : Using list comprehe...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n30 Dec, 2020" }, { "code": null, "e": 25837, "s": 25561, "text": "Getting the product of list is quite common problem and has been dealt with and discussed many times, but sometimes, we require to better it and total product, i.e...
Merge Two Binary Trees by doing Node Sum (Recursive and Iterative) - GeeksforGeeks
17 Apr, 2022 Given two binary trees. We need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the merged node. Otherwise, the non-null node will be used as the node of new tree. Example: Input: Tree 1 Tree 2 ...
[ { "code": null, "e": 37093, "s": 37065, "text": "\n17 Apr, 2022" }, { "code": null, "e": 37336, "s": 37093, "text": "Given two binary trees. We need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the ...
Introduction to SQLite - GeeksforGeeks
10 May, 2019 SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine. It is the most used database engine in the world. It is an in-process library and its code is publicly available. It is free for use for any purpose, commercial or private. It is basically an embedded...
[ { "code": null, "e": 25983, "s": 25955, "text": "\n10 May, 2019" }, { "code": null, "e": 26634, "s": 25983, "text": "SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine. It is the most used database engine in the world. It is ...