title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
UGC-NET | UGC NET CS 2017 Jan – III | Question 46
04 Apr, 2018 A software project was estimated at 352 Function Points (FP). A four person team will be assigned to this project consisting of an architect, two programmers, and a tester. The salary of the architect is ` 80,000 per month, the programmer ₹ 60,000 per month and the tester ₹ 50,000 per month. The average pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Apr, 2018" }, { "code": null, "e": 830, "s": 52, "text": "A software project was estimated at 352 Function Points (FP). A four person team will be assigned to this project consisting of an architect, two programmers, and a tester. T...
Printing source code of a C program itself
11 Feb, 2018 How to print source code of a C program itself? Note this is different from Quine problem. Here we need to modify any C program in a way that it prints whole source code. Explanation :We can use the concepts of file handling to print the source code of the program as output. The idea being : displaying the...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Feb, 2018" }, { "code": null, "e": 225, "s": 54, "text": "How to print source code of a C program itself? Note this is different from Quine problem. Here we need to modify any C program in a way that it prints whole source code." ...
jQuery element Selector
11 Jul, 2022 jQuery is an open-source JavaScript library that simplifies the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript. Elaborating the terms, it simplifies HTML document traversing and manipulation, browser event handling, DOM animations, Ajax interact...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jul, 2022" }, { "code": null, "e": 383, "s": 28, "text": "jQuery is an open-source JavaScript library that simplifies the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript. E...
How to plot a simple vector field in Matplotlib ?
20 Apr, 2022 The quantity incorporating both magnitude and direction is known as Vectors. In simple words, we can say, Vector Field is an engagement or collaboration of such vectors in a subset of space. Vector fields are the key aspects of understanding our real-life surrounding. For more intuition, you can think of a...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Apr, 2022" }, { "code": null, "e": 321, "s": 52, "text": "The quantity incorporating both magnitude and direction is known as Vectors. In simple words, we can say, Vector Field is an engagement or collaboration of such vectors in a ...
matplotlib.pyplot.polar() in Python
22 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 polar() function in pyplot module of matplotlib library is used to make a polar plot. Syntax: matplotlib.pyp...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 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...
Tailwind CSS Height
23 Mar, 2022 This class accepts lots of values in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS height Property. This class is used to set the height of an element. The height class does not contain padding, margin, and the border of elements. Height classes: h-0:...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 315, "s": 28, "text": "This class accepts lots of values in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS height Property. This class is used ...
ASP.NET Core - Identity Configuration
In this chapter, we will install and configure the Identity framework, which takes just a little bit of work. If you go to the Visual Studio and create a new ASP.NET Core application, and you select the full web application template with authentication set to individual user accounts, that new project will include all ...
[ { "code": null, "e": 2966, "s": 2595, "text": "In this chapter, we will install and configure the Identity framework, which takes just a little bit of work. If you go to the Visual Studio and create a new ASP.NET Core application, and you select the full web application template with authentication ...
How to validate if input in input field has ASCII characters using express-validator ?
24 Dec, 2021 In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer inputs, these are some examples of validation. In a certain input field, only Ascii characters are allowed i.e. there is not allowed a...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Dec, 2021" }, { "code": null, "e": 477, "s": 28, "text": "In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer in...
Creating a one-dimensional NumPy array
02 Sep, 2020 One dimensional array contains elements only in one dimension. In other words, the shape of the NumPy array should contain only one value in the tuple. Let us see how to create 1 dimensional NumPy arrays. Method 1: First make a list then pass it in numpy.array() Python3 # importing the moduleimport numpy a...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2020" }, { "code": null, "e": 233, "s": 28, "text": "One dimensional array contains elements only in one dimension. In other words, the shape of the NumPy array should contain only one value in the tuple. Let us see how to creat...
Find sum of even factors of a number
23 Jun, 2022 Given a number n, the task is to find the even factor sum of a number.Examples: Input : 30 Output : 48 Even dividers sum 2 + 6 + 10 + 30 = 48 Input : 18 Output : 26 Even dividers sum 2 + 6 + 18 = 26 Prerequisite : Sum of factorsAs discussed in above mentioned previous post, sum of factors of a number ...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 136, "s": 54, "text": "Given a number n, the task is to find the even factor sum of a number.Examples: " }, { "code": null, "e": 256, "s": 136, "text": "Input : 30\nOutput : 48...
Users in Linux System Administration
05 Jan, 2019 Users are accounts that can be used to login into a system. Each user is identified by a unique identification number or UID by the system. All the information of users in a system are stored in /etc/passwd file. The hashed passwords for users are stored in /etc/shadow file. Users can be divided into two c...
[ { "code": null, "e": 53, "s": 25, "text": "\n05 Jan, 2019" }, { "code": null, "e": 329, "s": 53, "text": "Users are accounts that can be used to login into a system. Each user is identified by a unique identification number or UID by the system. All the information of users in a ...
MySQL Select Statement DISTINCT for Multiple Columns?
To understand the MySQL select statement DISTINCT for multiple columns, let us see an example and create a table. The query to create a table is as follows mysql> create table selectDistinctDemo -> ( -> InstructorId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> StudentId int, -> TechnicalSubject varchar(100) ...
[ { "code": null, "e": 1218, "s": 1062, "text": "To understand the MySQL select statement DISTINCT for multiple columns, let us see an example and create a table. The query to create a table is as follows" }, { "code": null, "e": 1428, "s": 1218, "text": "mysql> create table select...
3 Super Simple Projects to Learn Natural Language Processing using Python | by Eric Kleppen | Towards Data Science
Working in Data Science and having a background in Technical Writing, I was drawn to the field of Natural Language Processing (NLP). Machines understanding language fascinates me, and I often ponder which algorithms Aristotle would have used to build a rhetorical analysis machine if he had the chance. If you’re new to ...
[ { "code": null, "e": 655, "s": 172, "text": "Working in Data Science and having a background in Technical Writing, I was drawn to the field of Natural Language Processing (NLP). Machines understanding language fascinates me, and I often ponder which algorithms Aristotle would have used to build a rh...
How to get Source Code of any website ? - GeeksforGeeks
11 Sep, 2021 A Website is defined as a collection of web pages. A website can be designed using HTML, CSS, Bootstrap, etc. HTML language decides what will appear on the webpage and CSS language depicts how it will appear. In other words, HTML place elements on the webpage, and CSS styles it. Bootstrap is pre-compiled C...
[ { "code": null, "e": 24814, "s": 24786, "text": "\n11 Sep, 2021" }, { "code": null, "e": 25236, "s": 24814, "text": "A Website is defined as a collection of web pages. A website can be designed using HTML, CSS, Bootstrap, etc. HTML language decides what will appear on the webpage...
Get unique values from a list in Python
A list in python is a number of items placed with in [] which may or may not have same data types. It can also contain duplicates. In this article we will see how to extract only the unique values from a list. In this approach we will first create a new empty list and then keep appending elements to this new list only ...
[ { "code": null, "e": 1272, "s": 1062, "text": "A list in python is a number of items placed with in [] which may or may not have same data types. It can also contain duplicates. In this article we will see how to extract only the unique values from a list." }, { "code": null, "e": 1583, ...
How to raise an error within MySQL?
MySQL has introduced signals similar to an exception in other languages. Let us first see the syntax of signal. SIGNAL SQLSTATE ' PredefinedValueforSignalError' SET MESSAGE_TEXT = 'AnyMessageInformation'; Above, we have set our own error message text as well. We will apply the above query to get an error message with...
[ { "code": null, "e": 1174, "s": 1062, "text": "MySQL has introduced signals similar to an exception in other languages. Let us first see the syntax of signal." }, { "code": null, "e": 1269, "s": 1174, "text": "SIGNAL SQLSTATE ' PredefinedValueforSignalError' \nSET MESSAGE_TEXT = ...
Social Media Sentiment Analysis using Machine Learning : Part — II | by Deepak Das | Towards Data Science
Hello everyone, so let’s start right where we left off in Part — I. In this post we will discuss how we can extract features from our textual dataset by using Bag-of-Words and TF-IDF. Then we will see how we can apply Machine Learning models using these features to predict whether a tweet falls into the Positive: ‘0’ o...
[ { "code": null, "e": 240, "s": 172, "text": "Hello everyone, so let’s start right where we left off in Part — I." }, { "code": null, "e": 519, "s": 240, "text": "In this post we will discuss how we can extract features from our textual dataset by using Bag-of-Words and TF-IDF. Th...
How to write and render LaTeX math formulas on Medium | by Shuyi Yang | Towards Data Science
Every day, many practitioners share technical tutorials and findings by creating contents on Medium. However, posting articles with math formulas (eg. equations written in LaTeX) is a struggle since it is not supported on Medium. The most common solution to this limitation is transforming your formulas in images and ad...
[ { "code": null, "e": 609, "s": 172, "text": "Every day, many practitioners share technical tutorials and findings by creating contents on Medium. However, posting articles with math formulas (eg. equations written in LaTeX) is a struggle since it is not supported on Medium. The most common solution ...
Async and Await in Dart Programming
Async and Await keywords are used to provide a declarative way to define the asynchronous function and use their results. The async keyword is used when we want to declare a function as asynchronous and the await keyword is used only on asynchronous functions. void main() async { .. } If the function has a declared ret...
[ { "code": null, "e": 1184, "s": 1062, "text": "Async and Await keywords are used to provide a declarative way to define the asynchronous function and use their results." }, { "code": null, "e": 1323, "s": 1184, "text": "The async keyword is used when we want to declare a function...
Python - Filter tuple with all same elements - GeeksforGeeks
07 Oct, 2021 Given List of tuples, filter tuples that have same values. Input : test_list = [(5, 6, 5, 5), (6, 6, 6), (9, 10)] Output : [(6, 6, 6)] Explanation : 1 tuple with same elements. Input : test_list = [(5, 6, 5, 5), (6, 5, 6), (9, 10)] Output : [] Explanation : No tuple with same elements. Method #1 : Using l...
[ { "code": null, "e": 24119, "s": 24091, "text": "\n07 Oct, 2021" }, { "code": null, "e": 24178, "s": 24119, "text": "Given List of tuples, filter tuples that have same values." }, { "code": null, "e": 24296, "s": 24178, "text": "Input : test_list = [(5, 6, 5, ...
Animate border-color property with CSS
To implement animation on the border-color property with CSS, you can try to run the following code Live Demo <!DOCTYPE html> <html> <head> <style> div { width: 500px; height: 300px; background: yellow; border: 10px solid gray; animation: mya...
[ { "code": null, "e": 1162, "s": 1062, "text": "To implement animation on the border-color property with CSS, you can try to run the following code" }, { "code": null, "e": 1172, "s": 1162, "text": "Live Demo" }, { "code": null, "e": 1726, "s": 1172, "text": "<...
AbstractList remove() Method in Java with Examples - GeeksforGeeks
26 Nov, 2018 The remove(int index) method of java.util.AbstractList class is used to remove an element from an abstract list from a specific position or index. Syntax: AbstractList.remove(int index) Parameters: The parameter index is of integer data type and specifies the position of the element to be removed from the ...
[ { "code": null, "e": 23299, "s": 23271, "text": "\n26 Nov, 2018" }, { "code": null, "e": 23446, "s": 23299, "text": "The remove(int index) method of java.util.AbstractList class is used to remove an element from an abstract list from a specific position or index." }, { "c...
How to define the breaks for a histogram using ggplot2 in R?
To manually define the breaks for a histogram using ggplot2, we can use breaks argument in the geom_histogram function. While creating the number of breaks we must be careful about the starting point and the difference between values for breaks. This will define the number of bars for histogram so it should be taken se...
[ { "code": null, "e": 1447, "s": 1062, "text": "To manually define the breaks for a histogram using ggplot2, we can use breaks argument in the geom_histogram function. While creating the number of breaks we must be careful about the starting point and the difference between values for breaks. This wi...
.NET Core API for the Angular Tour of Heroes App — Introduction | by Richard Peterson | Towards Data Science
This article assumes that you have already built the Angular official tutorial — Tour of Heroes app. If you have not built this, you should check the Angular docs, or download from here. Everything else will be taken care of in this series of articles! In this series, we will embark on a magical exploration of .NET Cor...
[ { "code": null, "e": 425, "s": 172, "text": "This article assumes that you have already built the Angular official tutorial — Tour of Heroes app. If you have not built this, you should check the Angular docs, or download from here. Everything else will be taken care of in this series of articles!" ...
Go - The Switch Statement
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case. In Go programming, switch statements are of two types − Expression Switch − In expression switch, a case contains expressions, which i...
[ { "code": null, "e": 2123, "s": 1937, "text": "A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case." }, { "code": null, "e": 2179, "s": 2123, "text...
MATLAB - GNU Octave Tutorial
GNU Octave is a high-level programming language like MATLAB and it is mostly compatible with MATLAB. It is also used for numerical computations. Octave has the following common features with MATLAB − matrices are fundamental data type it has built-in support for complex numbers it has built-in math functions and librar...
[ { "code": null, "e": 2286, "s": 2141, "text": "GNU Octave is a high-level programming language like MATLAB and it is mostly compatible with MATLAB. It is also used for numerical computations." }, { "code": null, "e": 2341, "s": 2286, "text": "Octave has the following common featu...
Bootstrap 5 Modal - GeeksforGeeks
11 Sep, 2020 Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Modals are used to add dialogs to your site for lightboxes, user notifications, or completely custom content. Modals are built with HTML, CSS, and JavaScript. They’re positioned over everything...
[ { "code": null, "e": 28049, "s": 28021, "text": "\n11 Sep, 2020" }, { "code": null, "e": 28451, "s": 28049, "text": "Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Modals are used to add dialogs to your site for l...
HTML canvas strokeRect() Method
The strokeRect() method of the HTML canvas is used to create a rectangle on a web page. 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 − context.s...
[ { "code": null, "e": 1347, "s": 1062, "text": "The strokeRect() method of the HTML canvas is used to create a rectangle on a web page. 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....
How to start service using Alarm Manager in android?
This example demonstrates how do I start a service using alarm manager in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Lin...
[ { "code": null, "e": 1145, "s": 1062, "text": "This example demonstrates how do I start a service using alarm manager in android." }, { "code": null, "e": 1274, "s": 1145, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required det...
Python Number Systems Example - 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 According to the mathematics we have four typ...
[ { "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, ...
How to write Java program to add two matrices
To add two matrices − Create an empty matrix At each position in the new matrix, assign the sum of the values in the same position from the given two matrices i.e. if A[i][j] and B[i][j] are the two given matrices then, the value of c[i][j] should be A[i][j] + B[i][j] Live Demo public class AddingTwoMatrices{ public...
[ { "code": null, "e": 1084, "s": 1062, "text": "To add two matrices −" }, { "code": null, "e": 1107, "s": 1084, "text": "Create an empty matrix" }, { "code": null, "e": 1331, "s": 1107, "text": "At each position in the new matrix, assign the sum of the values i...
How to implement the Fibonacci series using lambda expression in Java?
The Fibonacci is a sequence of numbers in which every number after the first two numbers is the sum of the two preceding numbers like 0, 1, 1, 2, 3, 5, 8, 13, 21 and so on. The sequence of Fibonacci numbers defined by using "F(n)=F(n-1)+F(n-2)". In the below example, we can implement the Fibonacci series with the help ...
[ { "code": null, "e": 1308, "s": 1062, "text": "The Fibonacci is a sequence of numbers in which every number after the first two numbers is the sum of the two preceding numbers like 0, 1, 1, 2, 3, 5, 8, 13, 21 and so on. The sequence of Fibonacci numbers defined by using \"F(n)=F(n-1)+F(n-2)\"." },...
PyCaret 2.1 is here — What’s new? | by Moez Ali | Towards Data Science
We are excited to announce PyCaret 2.1 — update for the month of Aug 2020. PyCaret is an open-source, low-code machine learning library in Python that automates the machine learning workflow. It is an end-to-end machine learning and model management tool that speeds up the machine learning experiment cycle and makes yo...
[ { "code": null, "e": 247, "s": 172, "text": "We are excited to announce PyCaret 2.1 — update for the month of Aug 2020." }, { "code": null, "e": 515, "s": 247, "text": "PyCaret is an open-source, low-code machine learning library in Python that automates the machine learning work...
Enhancements for Switch Statement in Java 13 - GeeksforGeeks
24 Oct, 2020 Java 12 improved the traditional switch statement and made it more useful. Java 13 further introduced new features. Before going into the details of new features, let’s have a look at the drawbacks faced by the traditional Switch statement. 1. Default fall through due to missing break The default fall-thro...
[ { "code": null, "e": 25262, "s": 25234, "text": "\n24 Oct, 2020" }, { "code": null, "e": 25503, "s": 25262, "text": "Java 12 improved the traditional switch statement and made it more useful. Java 13 further introduced new features. Before going into the details of new features, ...
How to Read Data from Firebase Firestore in Android? - GeeksforGeeks
17 Jan, 2021 In the previous article, we have seen on How to Add Data to Firebase Firestore in Android. This is the continuation of this series. Now we will see How to Read this added data inside our Firebase Firestore. Now we will move towards the implementation of this reading data in Android Firebase. We will be c...
[ { "code": null, "e": 26480, "s": 26449, "text": " \n17 Jan, 2021\n" }, { "code": null, "e": 26774, "s": 26480, "text": "In the previous article, we have seen on How to Add Data to Firebase Firestore in Android. This is the continuation of this series. Now we will see How to Read ...
How to create a comment in a pull request using ocktokit? - GeeksforGeeks
13 Dec, 2021 Introduction: The Octokit client can be used to send requests to GitHub’s REST API and queries to GitHub’s GraphQL API. The octokit package integrates the three main Octokit libraries: API client (REST API requests, GraphQL API queries, Authentication)App client (GitHub App & installations, Webhooks, OAuth...
[ { "code": null, "e": 26915, "s": 26887, "text": "\n13 Dec, 2021" }, { "code": null, "e": 27100, "s": 26915, "text": "Introduction: The Octokit client can be used to send requests to GitHub’s REST API and queries to GitHub’s GraphQL API. The octokit package integrates the three ma...
Explaining Your Machine Learning Models with SHAP and LIME! | by David Hundley | Towards Data Science
Hello there all! Welcome back again to another data science quick tip. This particular post is most interesting for me not only because this is the most complex subject we’ve tackled to date, but it’s also one that I just spent the last few hours learning myself. And of course, what better way to learn than to figure o...
[ { "code": null, "e": 526, "s": 172, "text": "Hello there all! Welcome back again to another data science quick tip. This particular post is most interesting for me not only because this is the most complex subject we’ve tackled to date, but it’s also one that I just spent the last few hours learning...
ssh - Unix, Linux Command
ssh connects and logs into the specified hostname (with optional user name). The user must prove his/her identity to the remote machine using one of several methods depending on the protocol version used (see below). If command is specified, it is executed on the remote host instead of a login shell. The options...
[ { "code": null, "e": 10798, "s": 10577, "text": "\nssh\nconnects and logs into the specified\n hostname\n(with optional\n user\nname).\nThe user must prove\nhis/her identity to the remote machine using one of several methods\ndepending on the protocol version used (see below).\n" }, { "code"...
Google Charts - Stacked Column Chart
Following is an example of a stacked column chart. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example. We've used isStacked configuration to show stacked chart. // Set chart options var options = { isStacked: true }; googlech...
[ { "code": null, "e": 2456, "s": 2261, "text": "Following is an example of a stacked column chart. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example." }, { "code": null, "e": 2514, "s": 2456, ...
How Region of Interest (ROI) works in OpenCV using C++?
To separate a particular portion from the image, we have to locate the area first. Then we have to copy that area from the main image to another matrix. This is how the ROI in OpenCV works. In this example, two matrices have been declared at the beginning. After that, an image named 'image_name.jpg' has been loaded int...
[ { "code": null, "e": 1252, "s": 1062, "text": "To separate a particular portion from the image, we have to locate the area first. Then we\nhave to copy that area from the main image to another matrix. This is how the ROI in\nOpenCV works." }, { "code": null, "e": 1588, "s": 1252, ...
Bitonic Sort - GeeksforGeeks
12 Apr, 2022 Background Bitonic Sort is a classic parallel algorithm for sorting. Bitonic sort does O(n Log 2n) comparisons. The number of comparisons done by Bitonic sort are more than popular sorting algorithms like Merge Sort [ does O(nLogn) comparisons], but Bitonice sort is better for parallel implementation beca...
[ { "code": null, "e": 23634, "s": 23606, "text": "\n12 Apr, 2022" }, { "code": null, "e": 23645, "s": 23634, "text": "Background" }, { "code": null, "e": 23704, "s": 23645, "text": "Bitonic Sort is a classic parallel algorithm for sorting. " }, { "code"...
Calculating n-th real root using binary search - GeeksforGeeks
28 Mar, 2022 Given two number x and n, find n-th root of x. Examples: Input : 5 2Output : 2.2360679768025875 Input : x = 5, n = 3Output : 1.70997594668 In order to calculate nth root of a number, we can use the following procedure. If x lies in the range [0, 1) then we set the lower limit low = x and upper limit h...
[ { "code": null, "e": 24906, "s": 24878, "text": "\n28 Mar, 2022" }, { "code": null, "e": 24954, "s": 24906, "text": "Given two number x and n, find n-th root of x. " }, { "code": null, "e": 24965, "s": 24954, "text": "Examples: " }, { "code": null, ...
How to prevent Cloning to break a Singleton Class Pattern?
A Singleton pattern states that a class can have a single instance and multiple instances are not permitted to be created. For this purpose, we make the constructor of the class a private and return a instance via a static method. But using cloning, we can still create multiple instance of a class. See the example belo...
[ { "code": null, "e": 1386, "s": 1062, "text": "A Singleton pattern states that a class can have a single instance and multiple instances are not permitted to be created. For this purpose, we make the constructor of the class a private and return a instance via a static method. But using cloning, we ...
Capitalize first letter of a column in Pandas dataframe - GeeksforGeeks
06 Dec, 2018 Analyzing real-world data is somewhat difficult because we need to take various things into consideration. Apart from getting the useful data from large datasets, keeping data in required format is also very important. One might encounter a situation where we need to capitalize any specific column in given...
[ { "code": null, "e": 24956, "s": 24928, "text": "\n06 Dec, 2018" }, { "code": null, "e": 25175, "s": 24956, "text": "Analyzing real-world data is somewhat difficult because we need to take various things into consideration. Apart from getting the useful data from large datasets, ...
Properties getOrDefault(key, defaultValue) method in Java with Examples - GeeksforGeeks
10 Dec, 2019 The getOrDefault(key, defaultValue) method of Properties class is used to get the value mapped to this key, passed as the parameter, in this Properties object. This method will fetch the corresponding value to this key, if present, and return it. If there is no such mapping, then it returns the defaultValu...
[ { "code": null, "e": 23971, "s": 23943, "text": "\n10 Dec, 2019" }, { "code": null, "e": 24281, "s": 23971, "text": "The getOrDefault(key, defaultValue) method of Properties class is used to get the value mapped to this key, passed as the parameter, in this Properties object. Thi...
Understand Text Summarization and create your own summarizer in python | by Praveen Dubey | Towards Data Science
We all interact with applications which uses text summarization. Many of those applications are for the platform which publishes articles on daily news, entertainment, sports. With our busy schedule, we prefer to read the summary of those article before we decide to jump in for reading entire article. Reading a summary...
[ { "code": null, "e": 568, "s": 172, "text": "We all interact with applications which uses text summarization. Many of those applications are for the platform which publishes articles on daily news, entertainment, sports. With our busy schedule, we prefer to read the summary of those article before w...
How to Convert Decimal to Binary?
Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Whereas Binary number is most familiar number system to the digital systems, networking, and computer professionals. It is base 2 which has only 2 symbols: 0 and 1, these digit...
[ { "code": null, "e": 1431, "s": 1062, "text": "Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Whereas Binary number is most familiar number system to the digital systems, networking, and computer profess...
Basic Text Summarization in Python | by Graham Harrison | Towards Data Science
Text summarization is a sub-set of text mining and natural language processing that aims to take long corpus of text and transform them into a summary that can be easily and quickly read and understood without losing the meaning of the original text. In particular text summarisation “tokenizes” words (i.e. converts the...
[ { "code": null, "e": 423, "s": 172, "text": "Text summarization is a sub-set of text mining and natural language processing that aims to take long corpus of text and transform them into a summary that can be easily and quickly read and understood without losing the meaning of the original text." }...
Java SAX Parser - Modify XML Document
Here is the input XML file that we need to modify by appending <Result>Pass<Result/> at the end of </marks> tag. <?xml version = "1.0"?> <class> <student rollno = "393"> <firstname>dinkar</firstname> <lastname>kad</lastname> <nickname>dinkar</nickname> <marks>85</marks> </student> <...
[ { "code": null, "e": 2436, "s": 2323, "text": "Here is the input XML file that we need to modify by appending <Result>Pass<Result/> at the end of </marks> tag." }, { "code": null, "e": 2987, "s": 2436, "text": "<?xml version = \"1.0\"?>\n<class>\n <student rollno = \"393\">\n ...
BufferedReader mark() method in Java with Examples - GeeksforGeeks
05 Jun, 2020 The mark() method of BufferedReader class in Java is used to mark the current position in the buffer reader stream. The reset() method of the same BufferedReader class is also called subsequently, after the mark() method is called. The reset() method fixes the position at the last marked position so that s...
[ { "code": null, "e": 24480, "s": 24452, "text": "\n05 Jun, 2020" }, { "code": null, "e": 24815, "s": 24480, "text": "The mark() method of BufferedReader class in Java is used to mark the current position in the buffer reader stream. The reset() method of the same BufferedReader c...
Average of Levels in Binary Tree in C++
Suppose we have a non-empty binary tree; we have to find the average value of the nodes on each level in the return the average values as an array. So, if the input is like then the output will be [3, 14.5, 11]. To solve this, we will follow these steps − Define an array result Define an array result Define one queue q...
[ { "code": null, "e": 1210, "s": 1062, "text": "Suppose we have a non-empty binary tree; we have to find the average value of the nodes on each level in the return the average values as an array." }, { "code": null, "e": 1235, "s": 1210, "text": "So, if the input is like" }, {...
Length of the smallest substring which contains all vowels - GeeksforGeeks
08 Jun, 2021 Given string str consisting of only lowercase English alphabets, the task is to find the substring of the smallest length which contains all the vowels. If no such substring is found, print -1. Example: Input: str = “babeivoucu” Output: 7 Explanation: Smallest substring which contains each vowel atleast ...
[ { "code": null, "e": 26357, "s": 26329, "text": "\n08 Jun, 2021" }, { "code": null, "e": 26551, "s": 26357, "text": "Given string str consisting of only lowercase English alphabets, the task is to find the substring of the smallest length which contains all the vowels. If no such...
Introducing LOB Locators - GeeksforGeeks
28 Jun, 2019 Large object (LOB) locators let you reference a LOB in Transact-SQL statements rather than referencing the LOB itself as the size of a text can be unitext, or image LOB can be many megabytes. Using a LOB locator in Transact-SQL statements helps to reduce network traffic between the client and SAP ASE and a...
[ { "code": null, "e": 25067, "s": 25039, "text": "\n28 Jun, 2019" }, { "code": null, "e": 25580, "s": 25067, "text": "Large object (LOB) locators let you reference a LOB in Transact-SQL statements rather than referencing the LOB itself as the size of a text can be unitext, or imag...
Analysis of Algorithms | Set 3 (Asymptotic Notations) - GeeksforGeeks
12 Nov, 2021 We have discussed Asymptotic Analysis, and Worst, Average, and Best Cases of Algorithms. The main idea of asymptotic analysis is to have a measure of the efficiency of algorithms that don’t depend on machine-specific constants and don’t require algorithms to be implemented and time taken by programs to be ...
[ { "code": null, "e": 35839, "s": 35811, "text": "\n12 Nov, 2021" }, { "code": null, "e": 36374, "s": 35839, "text": "We have discussed Asymptotic Analysis, and Worst, Average, and Best Cases of Algorithms. The main idea of asymptotic analysis is to have a measure of the efficienc...
HTML | <iframe> marginwidth Attribute - GeeksforGeeks
07 Nov, 2019 The HTML <iframe> margin width Attribute is used to specifies the left and right margin of the content in an Iframe Element. Syntax: <iframe marginwidth="pixels"> Attribute Values: pixels: It contains the value i.e pixel which specifies the right and left a margin of the content in an Iframe Element. Note:...
[ { "code": null, "e": 26155, "s": 26127, "text": "\n07 Nov, 2019" }, { "code": null, "e": 26280, "s": 26155, "text": "The HTML <iframe> margin width Attribute is used to specifies the left and right margin of the content in an Iframe Element." }, { "code": null, "e": 2...
Default value of Vector in C++ STL - GeeksforGeeks
23 Apr, 2020 Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. Vector elements are placed in contiguous storage so that they can be accessed and traversed using iterators. By default...
[ { "code": null, "e": 25368, "s": 25340, "text": "\n23 Apr, 2020" }, { "code": null, "e": 25747, "s": 25368, "text": "Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automat...
How to Compress and Extract Files Using the tar Command on Linux - GeeksforGeeks
29 Jun, 2021 An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside. .tar – archive files are usually not compressed. .tar.gz – archive file compressed with gzip tool .tar.bz2 – archive file compressed with bzip2 tool Syntax: tar options...
[ { "code": null, "e": 25725, "s": 25694, "text": " \n29 Jun, 2021\n" }, { "code": null, "e": 25862, "s": 25725, "text": "An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside." }, { "code": n...
Applying Multinomial Naive Bayes to NLP Problems - GeeksforGeeks
05 Aug, 2021 Naive Bayes Classifier Algorithm is a family of probabilistic algorithms based on applying Bayes’ theorem with the “naive” assumption of conditional independence between every pair of a feature. Bayes theorem calculates probability P(c|x) where c is the class of the possible outcomes and x is the given ins...
[ { "code": null, "e": 25888, "s": 25860, "text": "\n05 Aug, 2021" }, { "code": null, "e": 26647, "s": 25888, "text": "Naive Bayes Classifier Algorithm is a family of probabilistic algorithms based on applying Bayes’ theorem with the “naive” assumption of conditional independence b...
C# | Count the number of key/value pairs in the Hashtable - GeeksforGeeks
01 Feb, 2019 The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the collection. Hashtable.Count Property is used to get the total number of the key/value pairs contained in the Hashtable. Syntax: myTable.Count ...
[ { "code": null, "e": 25915, "s": 25887, "text": "\n01 Feb, 2019" }, { "code": null, "e": 26199, "s": 25915, "text": "The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the...
Python | Pandas Series.nbytes - GeeksforGeeks
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": 25537, "s": 25509, "text": "\n28 Jan, 2019" }, { "code": null, "e": 25751, "s": 25537, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
File Handling in C#
A file is a collection of data stored in a disk with a specific name and a directory path. When a file is opened for reading or writing, it becomes a stream. In C#, you need to create a FileStream object to create a new file or open an existing file. The syntax for creating a FileStream object is as follows − FileStrea...
[ { "code": null, "e": 1220, "s": 1062, "text": "A file is a collection of data stored in a disk with a specific name and a directory path. When a file is opened for reading or writing, it becomes a stream." }, { "code": null, "e": 1373, "s": 1220, "text": "In C#, you need to creat...
Style options for the HTML5 Date picker
The date picker in HTML5 basically works very similar to how the JavaScript Libraries did, when we focus on the field a calendar will pop out, and then we can navigate through the months and years to select the date. Therefore, if you want the date input to use more spacing and a color scheme you could add the followin...
[ { "code": null, "e": 1279, "s": 1062, "text": "The date picker in HTML5 basically works very similar to how the JavaScript Libraries did, when we focus on the field a calendar will pop out, and then we can navigate through the months and years to select the date." }, { "code": null, "e":...
Clockwise rotation of Doubly Linked List by N places - GeeksforGeeks
08 Jun, 2021 Given a doubly-linked list and an integer N, the task is to rotate the linked list clockwise by N nodes.Examples: Input: N = 2 Output: Approach: To rotate the Doubly linked list first check whether the given N is greater than the length of the list or not. If N is greater than the size of the lis...
[ { "code": null, "e": 26313, "s": 26285, "text": "\n08 Jun, 2021" }, { "code": null, "e": 26429, "s": 26313, "text": "Given a doubly-linked list and an integer N, the task is to rotate the linked list clockwise by N nodes.Examples: " }, { "code": null, "e": 26444, ...
Android Animations using Java - GeeksforGeeks
23 Feb, 2021 The animation is a method in which a collection of images is combined in a specific way and processed then they appear as moving images. Building animations make on-screen objects seems to be alive. Android has quite a few tools to help you create animations with relative ease. So in this article, let’s le...
[ { "code": null, "e": 25258, "s": 25230, "text": "\n23 Feb, 2021" }, { "code": null, "e": 25611, "s": 25258, "text": "The animation is a method in which a collection of images is combined in a specific way and processed then they appear as moving images. Building animations make o...
How do I find an element that contains specific text in Selenium WebDriver (Python)?
We can find an element that contains specific text with Selenium webdriver in Python using the xpath. This locator has functions that help to verify a specific text contained within an element. The function text() in xpath is used to locate a webelement depending on the text visible on the page. Another function contai...
[ { "code": null, "e": 1256, "s": 1062, "text": "We can find an element that contains specific text with Selenium webdriver in Python using the xpath. This locator has functions that help to verify a specific text contained within an element." }, { "code": null, "e": 1481, "s": 1256, ...
Create AI for Your Own Board Game From Scratch — Minimax — Part 2 | by Haryo Akbarianto Wibowo | Towards Data Science
Hi, How’s life? Welcome to the second part of the series of articles about project on making EvoPawness (Temporary Name) board game. Here, we will implement on how to add AI to to the game. In this article, we will focus on implementing some classic algorithms. It’s minimax and alpha beta pruning minimax. We will recap...
[ { "code": null, "e": 610, "s": 172, "text": "Hi, How’s life? Welcome to the second part of the series of articles about project on making EvoPawness (Temporary Name) board game. Here, we will implement on how to add AI to to the game. In this article, we will focus on implementing some classic algor...
How to set the size of the background image with JavaScript?
To set the size of the background image in JavaScript, use the backgroundSize property. It allows you to set the image size for the background. You can try to run the following code to learn how to set the size of the background image: Live Demo <!DOCTYPE html> <html> <head> <style> #box { ...
[ { "code": null, "e": 1206, "s": 1062, "text": "To set the size of the background image in JavaScript, use the backgroundSize property. It allows you to set the image size for the background." }, { "code": null, "e": 1298, "s": 1206, "text": "You can try to run the following code ...
Cohesion in C#
Cohesion in C# shows the relationship within modules. It shows the functional strength of the modules. The greater the cohesion, the better will be the program design. It is the dependency between the modules internal elements like methods and internal modules. High cohesion will allow you to reuse classes and method. ...
[ { "code": null, "e": 1230, "s": 1062, "text": "Cohesion in C# shows the relationship within modules. It shows the functional strength of the modules. The greater the cohesion, the better will be the program design." }, { "code": null, "e": 1382, "s": 1230, "text": "It is the depe...
How to Make ECDF Plot with ggplot2 in R? - GeeksforGeeks
17 Oct, 2021 Empirical Cumulative Distribution Function Plot (ECDF) helps us to visualize one or more distributions. ECDF plot is a great alternative for histograms and it has the ability to show the full range of data without the need for various parameters. In this article, we will discuss how to draw an ECDF plot us...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n17 Oct, 2021" }, { "code": null, "e": 25489, "s": 25242, "text": "Empirical Cumulative Distribution Function Plot (ECDF) helps us to visualize one or more distributions. ECDF plot is a great alternative for histograms and it has ...
Program to find the Discount Percentage in C++
In this problem, we are given two numbers that define the marked price(M) and selling price(S) of a certain product. Our task is to create a program to find the Discount Percentage in C++. Discount is the amount that is deducted from the actual price (marked price) on a product. The formula for discount is, discount = ...
[ { "code": null, "e": 1251, "s": 1062, "text": "In this problem, we are given two numbers that define the marked price(M) and selling price(S) of a certain product. Our task is to create a program to\nfind the Discount Percentage in C++." }, { "code": null, "e": 1342, "s": 1251, "...
Count ways to express a number as sum of consecutive numbers in C++
Given an integer n as input. The goal is to find the number of ways in which we can represent ‘num’ as the sum of two or more consecutive natural numbers. For example, if n is 3 it can be represented as sum ( 1+2 ) so total 1 way. For Example num=6 Count of ways to express a number as sum of consecutive numbers are: 1 ...
[ { "code": null, "e": 1293, "s": 1062, "text": "Given an integer n as input. The goal is to find the number of ways in which we can represent ‘num’ as the sum of two or more consecutive natural numbers. For example, if n is 3 it can be represented as sum ( 1+2 ) so total 1 way." }, { "code": ...
How to write functions in Python that accept any number of arguments
You want to write a function that accepts any number of input arguments. The * argument in python can accepts any number of arguments. We will understand this with an example of finding out the average of any given two or more numbers. In the below example, rest_arg is a tuple of all the extra arguments (in our case nu...
[ { "code": null, "e": 1135, "s": 1062, "text": "You want to write a function that accepts any number of input arguments." }, { "code": null, "e": 1480, "s": 1135, "text": "The * argument in python can accepts any number of arguments. We will understand this with an example of find...
Erlang - spawn
This is used to create a new process and initialize it. spawn(Function) Function − The function which needs to be spawned. Function − The function which needs to be spawned. This method returns a process id. -module(helloworld). -export([start/0]). start() -> spawn(fun() -> server("Hello") end). server(Message...
[ { "code": null, "e": 2357, "s": 2301, "text": "This is used to create a new process and initialize it." }, { "code": null, "e": 2374, "s": 2357, "text": "spawn(Function)\n" }, { "code": null, "e": 2425, "s": 2374, "text": "Function − The function which needs t...
Algorithms | Sorting | Question 1 - GeeksforGeeks
28 Jun, 2021 What is recurrence for worst case of QuickSort and what is the time complexity in Worst case?(A) Recurrence is T(n) = T(n-2) + O(n) and time complexity is O(n^2)(B) Recurrence is T(n) = T(n-1) + O(n) and time complexity is O(n^2)(C) Recurrence is T(n) = 2T(n/2) + O(n) and time complexity is O(nLogn)(D) Rec...
[ { "code": null, "e": 23845, "s": 23817, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24487, "s": 23845, "text": "What is recurrence for worst case of QuickSort and what is the time complexity in Worst case?(A) Recurrence is T(n) = T(n-2) + O(n) and time complexity is O(n^2)(B...
Convert to Strictly increasing integer array with minimum changes in C++
In this tutorial, we will be discussing a program to convert to strictly increasing integer array with minimum changes. For this we will be provided with an array. Our task is to change the elements of the array to be in strictly increasing order by minimum number of changes in the elements. Live Demo #include <bits/s...
[ { "code": null, "e": 1182, "s": 1062, "text": "In this tutorial, we will be discussing a program to convert to strictly increasing integer array with minimum changes." }, { "code": null, "e": 1355, "s": 1182, "text": "For this we will be provided with an array. Our task is to cha...
Dice Throw | DP-30 - GeeksforGeeks
24 Feb, 2022 Given n dice each with m faces, numbered from 1 to m, find the number of ways to get sum X. X is the summation of values on each face when all the dice are thrown. The Naive approach is to find all the possible combinations of values from n dice and keep on counting the results that sum to X. This problem ...
[ { "code": null, "e": 24728, "s": 24700, "text": "\n24 Feb, 2022" }, { "code": null, "e": 24892, "s": 24728, "text": "Given n dice each with m faces, numbered from 1 to m, find the number of ways to get sum X. X is the summation of values on each face when all the dice are thrown....
Kibana - Environment Setup
To start working with Kibana we need to install Logstash, Elasticsearch and Kibana. In this chapter, we will try to understand the installation of the ELK stack here. We would discuss the following installations here − Elasticsearch Installation Logstash Installation Kibana Installation A detailed documentation on Elas...
[ { "code": null, "e": 2272, "s": 2105, "text": "To start working with Kibana we need to install Logstash, Elasticsearch and Kibana. In this chapter, we will try to understand the installation of the ELK stack here." }, { "code": null, "e": 2324, "s": 2272, "text": "We would discus...
Difference between regular functions and arrow functions in JavaScript
According to MDN, An arrow function expression is a syntactically compact alternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords. Arrow function expressions are ill suited as methods, and they cannot be used as constructors. There are 3 subt...
[ { "code": null, "e": 1366, "s": 1062, "text": "According to MDN, An arrow function expression is a syntactically compact alternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords. Arrow function expressions are ill suited as...
Useful pip commands for Data Science | by Parul Pandey | Towards Data Science
An in-depth article was published in the February of 2020 by Sebastian Raschka et al. that studies the role and importance of Python in the Machine Learning ecosystem. The paper titled Machine Learning in Python: Main Developments and Technology Trends in Data Science, Machine Learning, and Artificial Intelligence put ...
[ { "code": null, "e": 555, "s": 171, "text": "An in-depth article was published in the February of 2020 by Sebastian Raschka et al. that studies the role and importance of Python in the Machine Learning ecosystem. The paper titled Machine Learning in Python: Main Developments and Technology Trends in...
Dart Programming - Syntax
Syntax defines a set of rules for writing programs. Every language specification defines its own syntax. A Dart program is composed of − Variables and Operators Classes Functions Expressions and Programming Constructs Decision Making and Looping Constructs Comments Libraries and Packages Typedefs Data structures repres...
[ { "code": null, "e": 2662, "s": 2525, "text": "Syntax defines a set of rules for writing programs. Every language specification defines its own syntax. A Dart program is composed of −" }, { "code": null, "e": 2686, "s": 2662, "text": "Variables and Operators" }, { "code":...
Remove duplicates from a dataframe in PySpark
16 Dec, 2021 In this article, we are going to drop the duplicate data from dataframe using pyspark in Python Before starting we are going to create Dataframe for demonstration: Python3 # importing moduleimport pyspark # importing sparksession from pyspark.sql modulefrom pyspark.sql import SparkSession # creating sparks...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2021" }, { "code": null, "e": 124, "s": 28, "text": "In this article, we are going to drop the duplicate data from dataframe using pyspark in Python" }, { "code": null, "e": 192, "s": 124, "text": "Before sta...
Phong model (Specular Reflection) in Computer Graphics
07 Apr, 2021 Prerequisite – Basic Illumination Models Phong model of reflection :When we look at illuminated shiny surfaces, such as glittering surfaces, polished metal sheets, apple etc, we found a kind of bright spot at certain viewing point locations. This phenomenon is called specular reflection. Look at the follow...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Apr, 2021" }, { "code": null, "e": 69, "s": 28, "text": "Prerequisite – Basic Illumination Models" }, { "code": null, "e": 317, "s": 69, "text": "Phong model of reflection :When we look at illuminated shiny surfac...
How to Schedule Python Scripts As Cron Jobs With Crontab
18 Jul, 2021 In this article, we will discuss how to schedule Python scripts with crontab. The Cron job utility is a time-based job scheduler in Unix-like operating systems. Cron allows Linux and Unix users to run commands or scripts at a given time and date. One can schedule scripts to be executed periodically. The cr...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jul, 2021" }, { "code": null, "e": 106, "s": 28, "text": "In this article, we will discuss how to schedule Python scripts with crontab." }, { "code": null, "e": 568, "s": 106, "text": "The Cron job utility is a ti...
Stream.max() method in Java with Examples
06 Dec, 2018 Stream.max() returns the maximum element of the stream based on the provided Comparator. A Comparator is a comparison function, which imposes a total ordering on some collection of objects. max() is a terminal operation which combines stream elements and returns a summary result. So, max() is a special cas...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Dec, 2018" }, { "code": null, "e": 415, "s": 54, "text": "Stream.max() returns the maximum element of the stream based on the provided Comparator. A Comparator is a comparison function, which imposes a total ordering on some collect...
How to open popup using Angular and Bootstrap ?
31 May, 2020 Adding Bootstrap to your Angular application is an easy process. Just write the following command in your Angular CLI. It will add bootstrap into your node_modules folder. ng add @ng-bootstrap/ng-bootstrap Approach: Import NgbModal module in the TypeScript file of the corresponding component, and then we ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2020" }, { "code": null, "e": 200, "s": 28, "text": "Adding Bootstrap to your Angular application is an easy process. Just write the following command in your Angular CLI. It will add bootstrap into your node_modules folder." ...
Multiset of Pairs in C++ with Examples
19 Dec, 2021 What is Multiset? A multiset is an associative container that can hold a number of elements in a specific order. Unlike a set, a multiset can contain multiple occurrences of the same element. Some of the functions associated with a multiset: begin(): Returns an iterator to the first element in the multis...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Dec, 2021" }, { "code": null, "e": 46, "s": 28, "text": "What is Multiset?" }, { "code": null, "e": 220, "s": 46, "text": "A multiset is an associative container that can hold a number of elements in a specific or...
How to create a DataFrame in Python?
Dataframe is a 2D data structure. Dataframe is used to represent data in tabular format in rows and columns. It is like a spreadsheet or a sql table. Dataframe is a Pandas object. To create a dataframe, we need to import pandas. Dataframe can be created using dataframe() function. The dataframe() takes one or two param...
[ { "code": null, "e": 1367, "s": 1187, "text": "Dataframe is a 2D data structure. Dataframe is used to represent data in tabular format in rows and columns. It is like a spreadsheet or a sql table. Dataframe is a Pandas object." }, { "code": null, "e": 1724, "s": 1367, "text": "To...
How to skip over an element in .map() ?
23 Jul, 2020 The map() function in JavaScript is used to generate a new array by calling function for every array element. Note: map() method calls the function for every array element in order. map() does not execute for array element that has no values. map() does not change the original array. There are various ways...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Jul, 2020" }, { "code": null, "e": 163, "s": 53, "text": "The map() function in JavaScript is used to generate a new array by calling function for every array element." }, { "code": null, "e": 169, "s": 163, "tex...
Use of realloc()
28 May, 2017 Size of dynamically allocated memory can be changed by using realloc(). As per the C99 standard: void *realloc(void *ptr, size_t size); realloc deallocates the old object pointed to by ptr and returns a pointer to a new object that has the size specified by size. The contents of the new object is identical...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 May, 2017" }, { "code": null, "e": 124, "s": 52, "text": "Size of dynamically allocated memory can be changed by using realloc()." }, { "code": null, "e": 149, "s": 124, "text": "As per the C99 standard:" }, ...
strpbrk() in C
02 May, 2018 This function finds the first character in the string s1 that matches any character specified in s2 (It excludes terminating null-characters). Syntax : char *strpbrk(const char *s1, const char *s2) Parameters : s1 : string to be scanned. s2 : string containing the characters to match. Return Value : It ...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 May, 2018" }, { "code": null, "e": 195, "s": 52, "text": "This function finds the first character in the string s1 that matches any character specified in s2 (It excludes terminating null-characters)." }, { "code": null, ...
React-Bootstrap Dropdown Component
04 May, 2021 React-Bootstrap is a front-end framework that was designed keeping react in mind. Dropdown Component provides a way to displaying lists of links or more actions within a menu when clicked over it. We can use the following approach in ReactJS to use the react-bootstrap Dropdown Component. Dropdown Props: al...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 May, 2021" }, { "code": null, "e": 317, "s": 28, "text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. Dropdown Component provides a way to displaying lists of links or more actions within a menu ...
Sylvester’s sequence
21 Jun, 2022 In number system, Sylvester’s sequence is an integer sequence in which each member of the sequence is the product of the previous members, plus one. Given a positive integer N. The task is to print the first N member of the sequence. Since numbers can be very big, use %10^9 + 7.Examples: Input : N = 6 Ou...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 Jun, 2022" }, { "code": null, "e": 344, "s": 53, "text": "In number system, Sylvester’s sequence is an integer sequence in which each member of the sequence is the product of the previous members, plus one. Given a positive integer ...
How to create superuser in Django?
05 Sep, 2020 Django provides us Admin Panel for it’s users. So we need not worry about creating a separate Admin page or providing authentication feature as Django provides us that feature. Before using this feature, you must have migrated your project, otherwise the superuser database will not be created. How to creat...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 323, "s": 28, "text": "Django provides us Admin Panel for it’s users. So we need not worry about creating a separate Admin page or providing authentication feature as Django provides us that feature...
Django Models
11 Apr, 2022 A Django model is the built-in feature that Django uses to create tables, their fields, and various constraints. In short, Django Models is the SQL of Database one uses with Django. SQL (Structured Query Language) is complex and involves a lot of different queries for creating, deleting, updating or any ot...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Apr, 2022" }, { "code": null, "e": 871, "s": 54, "text": "A Django model is the built-in feature that Django uses to create tables, their fields, and various constraints. In short, Django Models is the SQL of Database one uses with ...
HTML | Design Form
17 Mar, 2022 What is HTML Form : HTML Form is a document which stores information of a user on a web server using interactive controls. An HTML form contains different kind of information such as username, password, contact number, email id etc. The elements used in an HTML form are check box, input box, radio buttons,...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Mar, 2022" }, { "code": null, "e": 505, "s": 54, "text": "What is HTML Form : HTML Form is a document which stores information of a user on a web server using interactive controls. An HTML form contains different kind of information...
Pearson Product Moment Correlation
06 Jul, 2022 The Pearson product-moment correlation coefficient (or Pearson correlation coefficient) is a measure of the strength of a linear association between two variables and is denoted by r. Basically, a Pearson product-moment correlation attempts to draw a line of best fit through the data of two variables, and ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2022" }, { "code": null, "e": 519, "s": 28, "text": "The Pearson product-moment correlation coefficient (or Pearson correlation coefficient) is a measure of the strength of a linear association between two variables and is denot...
Tryit Editor v3.7
Tryit: Display a less-than sign
[]
Collapse multiple Columns in Pandas - GeeksforGeeks
08 Mar, 2019 While operating dataframes in Pandas, we might encounter a situation to collapse the columns. Let it becumulated data of multiple columns or collapse based on some other requirement. Let’s see how to collapse multiple columns in Pandas. Following steps are to be followed to collapse multiple columns in Pan...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n08 Mar, 2019" }, { "code": null, "e": 24449, "s": 24212, "text": "While operating dataframes in Pandas, we might encounter a situation to collapse the columns. Let it becumulated data of multiple columns or collapse based on some...
Practical Guide to Ensemble Learning | by Idil Ismiguzel | Towards Data Science
Ensemble learning is a technique used in machine learning to combine multiple models into a group model, in other words into an ensemble model. The ensemble model aims to perform better than each model alone or if not, to perform at least as well as the best individual model in the group. In this article, you will lear...
[ { "code": null, "e": 462, "s": 172, "text": "Ensemble learning is a technique used in machine learning to combine multiple models into a group model, in other words into an ensemble model. The ensemble model aims to perform better than each model alone or if not, to perform at least as well as the b...
Commonly Asked C++ Interview Questions
Here we will see some important C++ interview questions. What are the differences between C and C++? What are the differences between C and C++? What are the differences between pointers and references? What are the differences between pointers and references? The main differences between pointers and references are - ...
[ { "code": null, "e": 1119, "s": 1062, "text": "Here we will see some important C++ interview questions." }, { "code": null, "e": 1163, "s": 1119, "text": "What are the differences between C and C++?" }, { "code": null, "e": 1207, "s": 1163, "text": "What are t...