title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python – Rearrange dictionary for consecutive value-keys
10 Sep, 2021 Sometimes, while working with Python dictionaries, we can have a problem in which we need to rearrange dictionary keys so as a value is followed by same key in dictionary. This problem can have application in competitive programming algorithms and Graph problems. Let’s discuss certain ways in which this ta...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Sep, 2021" }, { "code": null, "e": 357, "s": 28, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to rearrange dictionary keys so as a value is followed by same key in dictionary. Thi...
Pattern pattern() method in Java with Examples
30 Jul, 2019 The pattern() method of the Pattern class in Java is used to get the regular expression which is compiled to create this pattern. We use a regular expression to create the pattern and this method used to get the same source expression. Syntax: public String pattern() Parameters: This method does not accep...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2019" }, { "code": null, "e": 264, "s": 28, "text": "The pattern() method of the Pattern class in Java is used to get the regular expression which is compiled to create this pattern. We use a regular expression to create the pat...
LocalDate getDayOfWeek() method in Java
28 Nov, 2018 The getDayOfWeek() method of LocalDate class in Java gets the day-of-week field, which is an enum DayOfWeek. Syntax: public DayOfWeek getDayOfWeek() Parameter: This method does not accepts any parameter. Return Value: The function returns the day of the week and not null. Below programs illustrate the get...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2018" }, { "code": null, "e": 137, "s": 28, "text": "The getDayOfWeek() method of LocalDate class in Java gets the day-of-week field, which is an enum DayOfWeek." }, { "code": null, "e": 145, "s": 137, "text"...
p5.js | Enqueue Operation in Queue
04 Oct, 2021 What is Queue? A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. It takes constant time to add o...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Oct, 2021" }, { "code": null, "e": 369, "s": 28, "text": "What is Queue? A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of ...
Top Down Integration Testing
Top-down integration testing is an integration testing technique used in order to simulate the behaviour of the lower-level modules that are not yet integrated. Stubs are the modules that act as temporary replacement for a called module and give the same output as that of the actual product. The replacement for the 'ca...
[ { "code": null, "e": 6172, "s": 5879, "text": "Top-down integration testing is an integration testing technique used in order to simulate the behaviour of the lower-level modules that are not yet integrated. Stubs are the modules that act as temporary replacement for a called module and give the sam...
Difference between ng-container and ng-template in AngularJS
03 Jun, 2020 Both ng-container and ng-template can be used to create responsive and dynamic components. Angular provides a set of structural directives that can be used with both ng-template and ng-container such as: ng-if ng-for ng-switch. These structural directives are used to alter the structure of the DOM by condi...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jun, 2020" }, { "code": null, "e": 232, "s": 28, "text": "Both ng-container and ng-template can be used to create responsive and dynamic components. Angular provides a set of structural directives that can be used with both ng-templa...
Angular 4 - Pipes
In this chapter, we will discuss what are Pipes in Angular 4. Pipes were earlier called filters in Angular1 and called pipes in Angular 2 and 4. The | character is used to transform data. Following is the syntax for the same {{ Welcome to Angular 4 | lowercase}} It takes integers, strings, arrays, and date as input se...
[ { "code": null, "e": 2271, "s": 2126, "text": "In this chapter, we will discuss what are Pipes in Angular 4. Pipes were earlier called filters in Angular1 and called pipes in Angular 2 and 4." }, { "code": null, "e": 2351, "s": 2271, "text": "The | character is used to transform ...
Python MySQL – Insert into Table
06 Mar, 2020 MySQL is a Relational Database Management System (RDBMS) whereas the structured Query Language (SQL) is the language used for handling the RDBMS using commands i.e Creating, Inserting, Updating and Deleting the data from the databases. SQL commands are case insensitive i.e CREATE and create signify the sam...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Mar, 2020" }, { "code": null, "e": 346, "s": 28, "text": "MySQL is a Relational Database Management System (RDBMS) whereas the structured Query Language (SQL) is the language used for handling the RDBMS using commands i.e Creating, I...
shred command in Linux with Examples
17 May, 2020 When you delete a file from Linux or from any os, then the file is not deleted permanently from the hard disk. When a file is deleted it first gets moved to the trash and as soon as you clear off the trash the files get deleted for the file system. But the file is still there in your hard drive and it coul...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 May, 2020" }, { "code": null, "e": 376, "s": 53, "text": "When you delete a file from Linux or from any os, then the file is not deleted permanently from the hard disk. When a file is deleted it first gets moved to the trash and as ...
How to validate if input in input field has base64 encoded string using express-validator ?
27 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. If In a certain input field only base 64 encoded string are allowed i.e there not allow...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 521, "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...
Global Variables in MATLAB
04 Jul, 2021 Variables in programming are generally storage spaces to store a certain type of data. There are many types of variables, but two commonly used types are local and Global variables. Generally, each MATLAB function has its own local variables. But sometimes for the sake of programming, we need to change the...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jul, 2021" }, { "code": null, "e": 741, "s": 28, "text": "Variables in programming are generally storage spaces to store a certain type of data. There are many types of variables, but two commonly used types are local and Global vari...
How to catch FloatingPointError Exception in Python?
FloatingPointError is raised by floating point operations that result in errors, when floating point exception control (fpectl) is turned on. Enabling fpectl requires an interpreter compiled with the --with-fpectl flag. The given code is rewritten as follows to handle the exception and find its type. import sys import ...
[ { "code": null, "e": 1407, "s": 1187, "text": "FloatingPointError is raised by floating point operations that result in errors, when floating point exception control (fpectl) is turned on. Enabling fpectl requires an interpreter compiled with the --with-fpectl flag." }, { "code": null, "...
Graph and its representations
07 May, 2022 A graph is a data structure that consists of the following two components: 1. A finite set of vertices also called as nodes. 2. A finite set of ordered pair of the form (u, v) called as edge. The pair is ordered because (u, v) is not the same as (v, u) in case of a directed graph(di-graph). The pair of the...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 May, 2022" }, { "code": null, "e": 991, "s": 52, "text": "A graph is a data structure that consists of the following two components: 1. A finite set of vertices also called as nodes. 2. A finite set of ordered pair of the form (u, v...
Number of ways to insert two pairs of parentheses into a string of N characters - GeeksforGeeks
10 Mar, 2022 Given a string str of length N, the task is to find the number of ways to insert only 2 pairs of parentheses into the given string such that the resultant string is still valid.Examples: Input: str = “ab” Output: 6 ((a))b, ((a)b), ((ab)), (a)(b), (a(b)), a((b)) which are a total of 6 ways.Input: str = “a...
[ { "code": null, "e": 24301, "s": 24273, "text": "\n10 Mar, 2022" }, { "code": null, "e": 24490, "s": 24301, "text": "Given a string str of length N, the task is to find the number of ways to insert only 2 pairs of parentheses into the given string such that the resultant string i...
Python Program to Flatten a Nested List using Recursion
When it is required to flatten a given nested list using recursion technique, simple indexing, and the ‘isinstance’ method can be used along with recursion. The recursion computes output of small bits of the bigger problem, and combines these bits to give the solution to the bigger problem. Below is a demonstration for...
[ { "code": null, "e": 1219, "s": 1062, "text": "When it is required to flatten a given nested list using recursion technique, simple indexing, and the ‘isinstance’ method can be used along with recursion." }, { "code": null, "e": 1354, "s": 1219, "text": "The recursion computes ou...
How to deal with reusable components in Selenium Java?
We can deal with reusable components in Selenium Java with the help of inheritance concept. It is a parent child relationship where the child class inherits the properties and methods of the parent class. For Parent class. import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputSt...
[ { "code": null, "e": 1267, "s": 1062, "text": "We can deal with reusable components in Selenium Java with the help of inheritance concept. It is a parent child relationship where the child class inherits the properties and methods of the parent class." }, { "code": null, "e": 1285, "...
Predicting video game hits with Machine Learning | by Ignacio Chavarria | Towards Data Science
The following four heatmaps show how game sales vary according to critic scores, which are split into six scoring groups. Additionally, each heatmap segments the data further by one of the following features: genre, developer, publisher, and platform (in order of appearance). Under each heatmap, we identify the categor...
[ { "code": null, "e": 448, "s": 171, "text": "The following four heatmaps show how game sales vary according to critic scores, which are split into six scoring groups. Additionally, each heatmap segments the data further by one of the following features: genre, developer, publisher, and platform (in ...
Python - Calculate the count of column values of a Pandas DataFrame
To calculate the count of column values, use the count() method. At first, import the required Pandas library − import pandas as pd Create a DataFrame with two columns − dataFrame1 = pd.DataFrame( { "Car": ['BMW', 'Lexus', 'Audi', 'Tesla', 'Bentley', 'Jaguar'], "Units": [100, 150, 110, 80, 110, 90] } ...
[ { "code": null, "e": 1174, "s": 1062, "text": "To calculate the count of column values, use the count() method. At first, import the required Pandas library −" }, { "code": null, "e": 1194, "s": 1174, "text": "import pandas as pd" }, { "code": null, "e": 1232, "s"...
Bootstrap table-condensed class
Using the .table-condensed class, row padding is cut in half to condense the table. as seen in the following example. This is useful if you want any denser information. You can try to run the following code to implement table-condensed class in Bootstrap − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstr...
[ { "code": null, "e": 1231, "s": 1062, "text": "Using the .table-condensed class, row padding is cut in half to condense the table. as seen in the following example. This is useful if you want any denser information." }, { "code": null, "e": 1319, "s": 1231, "text": "You can try t...
How to define character constants in C#?
Character literals are enclosed in single quotes. For example, 'x' and can be stored in a simple variable of char type. A character literal can be a plain character (such as 'x'), an escape sequence (such as '\t'), or a universal character (such as '\u02C0'). Let us see an example how to define a character constant in ...
[ { "code": null, "e": 1322, "s": 1062, "text": "Character literals are enclosed in single quotes. For example, 'x' and can be stored in a simple variable of char type. A character literal can be a plain character (such as 'x'), an escape sequence (such as '\\t'), or a universal character (such as '\\...
How to match pattern over multiple lines in Python?
The re.DOTALL flag tells python to make the ‘.’ special character match all characters, including newline characters. import re paragraph = \ ''' This is a paragraph. It has multiple lines. ''' match = re.search(r'<p>.*</p>', paragraph, re.DOTALL) print match.group(0) Output This is a paragraph. It has multiple l...
[ { "code": null, "e": 1180, "s": 1062, "text": "The re.DOTALL flag tells python to make the ‘.’ special character match all characters, including newline characters." }, { "code": null, "e": 1337, "s": 1180, "text": "import re\nparagraph = \\\n'''\n This is a paragraph.\n It h...
CSS | Scroll Padding top - GeeksforGeeks
31 Oct, 2019 The Scroll Padding top is an inbuilt property in Scroll Snap module. This property set the scroll padding top longhand. This property acts as a magnet on the top of the sliding element that stick to the top of the view-port and stop the scrolling(forcefully) in that place. The Scroll Padding property is op...
[ { "code": null, "e": 24330, "s": 24302, "text": "\n31 Oct, 2019" }, { "code": null, "e": 24604, "s": 24330, "text": "The Scroll Padding top is an inbuilt property in Scroll Snap module. This property set the scroll padding top longhand. This property acts as a magnet on the top o...
Extracting colours from an image using k-means clustering | by Xander Lewis | Towards Data Science
I wanted to write some software that would allow me to extract a set of colours from an image, and do it in a way that seems natural and takes human perception into consideration. A colour scheme can often sum up the ‘vibe’ of an entire image, and so I thought it would be a useful thing to be able to do. So... I spent ...
[ { "code": null, "e": 477, "s": 171, "text": "I wanted to write some software that would allow me to extract a set of colours from an image, and do it in a way that seems natural and takes human perception into consideration. A colour scheme can often sum up the ‘vibe’ of an entire image, and so I th...
Sum of even numbers up to using recursive function in JavaScript
We have to write a recursive function that takes in a number n and returns the sum of all even numbers up to n. Let’s write the code for this function − const recursiveEvenSum = (num, sum = 0) => { num = num % 2 === 0 ? num : num - 1; if(num){ return recursiveEvenSum(num - 2, sum+num); } return sum; }...
[ { "code": null, "e": 1174, "s": 1062, "text": "We have to write a recursive function that takes in a number n and returns the sum of all even\nnumbers up to n." }, { "code": null, "e": 1215, "s": 1174, "text": "Let’s write the code for this function −" }, { "code": null, ...
How to change the Title of the console using PowerShell command?
For various reasons, you need to change the title of the PowerShell console. Like the title to describe the script. For example, System Information or Service Information. To change the PowerShell Console Title use the “WindowsTitle” property in RawUI. It is just a temporary change. When you close the console and open ...
[ { "code": null, "e": 1234, "s": 1062, "text": "For various reasons, you need to change the title of the PowerShell console. Like the title to describe the script. For example, System Information or Service Information." }, { "code": null, "e": 1430, "s": 1234, "text": "To change ...
Place k elements such that minimum distance is maximized in C++
In this problem, we are given an array of n points that lie on the same line. Our task is to place k elements of the array in such a way that the minimum distance between them is maximized. Let’s take an example to understand the problem, Input − array = {} Output − To solve this problem, we will find have to find the ...
[ { "code": null, "e": 1252, "s": 1062, "text": "In this problem, we are given an array of n points that lie on the same line. Our task is to place k elements of the array in such a way that the minimum distance between them is maximized." }, { "code": null, "e": 1301, "s": 1252, "...
Importance of clone() method in Java?
The clone() method is used to create a copy of an object of a class which implements Cloneable interface. By default, it does field-by-field copy as the Object class doesn't have any idea about the members of the particular class whose objects call this method. So, if the class has only primitive data type members then...
[ { "code": null, "e": 1711, "s": 1062, "text": "The clone() method is used to create a copy of an object of a class which implements Cloneable interface. By default, it does field-by-field copy as the Object class doesn't have any idea about the members of the particular class whose objects call this...
How can we remove a selected row from a JTable in Java?
A JTable is a subclass of JComponent class for displaying complex data structures. A JTable component can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. A JTable can generate TableModelListener, TableColumnModelListener, ListSelectionListener, CellEditorListener and R...
[ { "code": null, "e": 1515, "s": 1062, "text": "A JTable is a subclass of JComponent class for displaying complex data structures. A JTable component can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. A JTable can generate TableModelListener, TableC...
Install Anaconda on MacOS Big Sur | by Alice Zhao | Towards Data Science
I got a new MacBook Pro today and one of the first things I installed was Anaconda, which currently comes with Python 3.8. Unforutantely, I ran into issues when I tried to use conda commands in the Terminal. This post walks through how to resolve those issues and start using Anaconda on Big Sur. Anaconda Installation S...
[ { "code": null, "e": 469, "s": 172, "text": "I got a new MacBook Pro today and one of the first things I installed was Anaconda, which currently comes with Python 3.8. Unforutantely, I ran into issues when I tried to use conda commands in the Terminal. This post walks through how to resolve those is...
Rexx - XML
XML is a portable, open source language that allows programmers to develop applications that can be read by other applications, regardless of the operating system and/or developmental language. This is one of the most common languages used for exchanging data between applications. The Extensible Markup Language XML is ...
[ { "code": null, "e": 2621, "s": 2339, "text": "XML is a portable, open source language that allows programmers to develop applications that can be read by other applications, regardless of the operating system and/or developmental language. This is one of the most common languages used for exchangin...
XGBoost for Multi-class Classification | by Ernest Ng | Towards Data Science
Customer touch points are your brand’s points of customer contact, from start to finish. For example, customers may find your business through mail discount, SMS, email promotions etc. There are many types of touch points depending on your company’s marketing team! Touch point prediction is an important tool similar to...
[ { "code": null, "e": 438, "s": 172, "text": "Customer touch points are your brand’s points of customer contact, from start to finish. For example, customers may find your business through mail discount, SMS, email promotions etc. There are many types of touch points depending on your company’s marke...
unordered_multimap and its application
16 Jun, 2022 Allows Duplicates: We have discussed unordered_map in our previous post, but there is a limitation, we can not store duplicates in unordered_map, that is if we have a key-value pair already in our unordered_multimap and another pair is inserted, then both will be there whereas in case of unordered_map the ...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Jun, 2022" }, { "code": null, "e": 502, "s": 54, "text": "Allows Duplicates: We have discussed unordered_map in our previous post, but there is a limitation, we can not store duplicates in unordered_map, that is if we have a key-val...
Python NLTK | tokenize.WordPunctTokenizer()
30 Sep, 2019 With the help of nltk.tokenize.WordPunctTokenizer()() method, we are able to extract the tokens from string of words or sentences in the form of Alphabetic and Non-Alphabetic character by using tokenize.WordPunctTokenizer()() method. Syntax : tokenize.WordPunctTokenizer()()Return : Return the tokens from a...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2019" }, { "code": null, "e": 262, "s": 28, "text": "With the help of nltk.tokenize.WordPunctTokenizer()() method, we are able to extract the tokens from string of words or sentences in the form of Alphabetic and Non-Alphabetic ...
Operator grammar and precedence parser in TOC
15 Oct, 2020 A grammar that is used to define mathematical operators is called an operator grammar or operator precedence grammar. Such grammars have the restriction that no production has either an empty right-hand side (null productions) or two adjacent non-terminals in its right-hand side. Examples –This is an examp...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Oct, 2020" }, { "code": null, "e": 335, "s": 54, "text": "A grammar that is used to define mathematical operators is called an operator grammar or operator precedence grammar. Such grammars have the restriction that no production ha...
GATE | GATE-CS-2017 (Set 1) | Question 16
22 Jul, 2021 Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below: If the pre-emptive shortest remaining time first scheduling algorithm is used to schedule the processes, then the average waiting time across all processes is _______ millise...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2021" }, { "code": null, "e": 161, "s": 28, "text": "Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below:" }, { "code": null, "e": 342, ...
How to add time delay in Python?
23 Jun, 2022 In this article, we are going to discuss how to add delay in Python. In order to add time delay in our program code, we use the sleep() function from the time module. This is the in-built module in Python we don’t need to install externally. Time delay means we are adding delay during the execution time i...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 122, "s": 52, "text": "In this article, we are going to discuss how to add delay in Python. " }, { "code": null, "e": 295, "s": 122, "text": "In order to add time delay in our p...
Median of sliding window in an array
13 Jan, 2020 Given an array of integer arr[] and an integer k, the task is to find the median of each window of size k starting from the left and moving towards the right by one position each time. Examples: Input: arr[] = {-1, 5, 13, 8, 2, 3, 3, 1}, k = 3Output: 5 8 8 3 3 3 Input: arr[] = {-1, 5, 13, 8, 2, 3, 3, 1}, k...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jan, 2020" }, { "code": null, "e": 239, "s": 54, "text": "Given an array of integer arr[] and an integer k, the task is to find the median of each window of size k starting from the left and moving towards the right by one position ...
Whatsapp using Python!
21 Oct, 2021 Have you ever wished to automatically wish your friends on their birthdays, or send a set of messages to your friend ( or any Whatsapp contact! ) automatically at a pre-set time, or send your friends by sending thousands of random texts on WhatsApp! Using Browser Automation you can do all of it and much mo...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Oct, 2021" }, { "code": null, "e": 366, "s": 54, "text": "Have you ever wished to automatically wish your friends on their birthdays, or send a set of messages to your friend ( or any Whatsapp contact! ) automatically at a pre-set t...
Program for focal length of a lens
12 Apr, 2021 Write a program to determine the focal length of a lens.Focal length is the distance between the center of the lens to the principal foci. In order to determine the focal length of a lens we should know the distance between the lens and the image ( I ) and the distance between the lens and the object ( O )...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2021" }, { "code": null, "e": 436, "s": 28, "text": "Write a program to determine the focal length of a lens.Focal length is the distance between the center of the lens to the principal foci. In order to determine the focal leng...
Python – Get list of running processes
29 Dec, 2020 A Process is a program that is being executed (processed). A process may not have to be one run explicitly by the user, it could be a system process spawned by the operating system. Any applications that execute on an operating system firstly creates a process of its own in order to execute. In a typical O...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2020" }, { "code": null, "e": 991, "s": 28, "text": "A Process is a program that is being executed (processed). A process may not have to be one run explicitly by the user, it could be a system process spawned by the operating s...
Normal Probability Plot in R using ggplot2
14 Jan, 2022 A normal probability plot is a graphical representation of the data. A normal probability plot is used to check if the given data set is normally distributed or not. It is used to compare a data set with the normal distribution. If a given data set is normally distributed then it will reside in a shape lik...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jan, 2022" }, { "code": null, "e": 354, "s": 28, "text": "A normal probability plot is a graphical representation of the data. A normal probability plot is used to check if the given data set is normally distributed or not. It is use...
Perl | Variables
10 Aug, 2021 Variables in Perl are used to store and manipulate data throughout the program. When a variable is created it occupies memory space. The data type of a variable helps the interpreter to allocate memory and decide what to be stored in the reserved memory. Therefore, variables can store integers, decimals, o...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Aug, 2021" }, { "code": null, "e": 408, "s": 28, "text": "Variables in Perl are used to store and manipulate data throughout the program. When a variable is created it occupies memory space. The data type of a variable helps the inte...
How to Add or Remove class in jQuery ?
10 Aug, 2021 The addClass() or removeClass() methods are used to add the CSS classes when there is a need to add to our webpage when there is some event listener or to create some kind of effect. In this article, let us see how can we add a CSS class or remove a CSS class in jQuery. Syntax: Adding a class:$('selector')...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Aug, 2021" }, { "code": null, "e": 211, "s": 28, "text": "The addClass() or removeClass() methods are used to add the CSS classes when there is a need to add to our webpage when there is some event listener or to create some kind of ...
Create a Radial Bar Chart using Recharts in ReactJS
29 Jul, 2021 Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of React and D3 (Data-Driven Documents). Radial Bar chart is a categorical bar chart that is displayed in polar coordinates. It is...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jul, 2021" }, { "code": null, "e": 246, "s": 28, "text": "Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help ...
Fibonacci number in an array
24 Mar, 2021 We have been given an array and our task is to check if the element of array is present in Fibonacci series or not. If yes, then print that element. Examples: Input : 4, 2, 8, 5, 20, 1, 40, 13, 23 Output : 2 8 5 1 13 Here, Fibonacci series will be 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. Numbers that are pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Mar, 2021" }, { "code": null, "e": 213, "s": 52, "text": "We have been given an array and our task is to check if the element of array is present in Fibonacci series or not. If yes, then print that element. Examples: " }, { ...
GATE-CS-2005 - GeeksforGeeks
11 Oct, 2021 int ( * f) (int * ) f * (int * ) int It is a lattice but not a distributive lattice. Table for Join Operation of above Hesse diagram V |a b c d e ________________ a |a a a a a b |a b a a b c |a a c a c d |a a a d d e |a b c d e Table for Meet Operation of above Hesse diagram ^ |a b c d e ______________...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n11 Oct, 2021" }, { "code": null, "e": 29597, "s": 29577, "text": "int ( * f) (int * )" }, { "code": null, "e": 29614, "s": 29597, "text": "f * (int * ) int" }, { "code": null, "e": 30578, "s": ...
Python Program to Print Numbers in an Interval
11 May, 2020 Given a range of numbers, find all the numbers between them. Input : l = 2, u = 5Output : 2 3 4 5 Input : l = 10, u = 20Output : 10 11 12 13 14 15 16 17 18 19 20 The idea is to use range function in Python. # Python program to print all the numbers within an intervall = 10u = 20 for num in range(l, u + 1)...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 May, 2020" }, { "code": null, "e": 114, "s": 53, "text": "Given a range of numbers, find all the numbers between them." }, { "code": null, "e": 151, "s": 114, "text": "Input : l = 2, u = 5Output : 2 3 4 5" }, ...
What is Three dots(...) or Ellipsis in Python3
05 Sep, 2020 Ellipsis is a Python Object. It has no Methods. It is a singleton Object i.e, provides easy access to single instances. Various Use Cases of Ellipsis (...): Default Secondary Prompt in Python interpreter. Accessing and slicing multidimensional Arrays/NumPy indexing. In type hinting. Used as Pass Statement ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 148, "s": 28, "text": "Ellipsis is a Python Object. It has no Methods. It is a singleton Object i.e, provides easy access to single instances." }, { "code": null, "e": 185, "s": 148,...
How to select all links inside the paragraph using jQuery ?
06 Sep, 2021 In this article, we will see how to write code to select all links inside the paragraph using jQuery. To select all links inside paragraph element, we use parent descendant selector. This selector is used to selects every element that are descendant to a specific (parent) element. Syntax: $("parent descend...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 310, "s": 28, "text": "In this article, we will see how to write code to select all links inside the paragraph using jQuery. To select all links inside paragraph element, we use parent descendant se...
Intrusion Detection System Using Machine Learning Algorithms
14 Jan, 2022 Problem Statement: The task is to build a network intrusion detector, a predictive model capable of distinguishing between bad connections, called intrusions or attacks, and good normal connections. Introduction:Intrusion Detection System is a software application to detect network intrusion using various ...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jan, 2022" }, { "code": null, "e": 253, "s": 54, "text": "Problem Statement: The task is to build a network intrusion detector, a predictive model capable of distinguishing between bad connections, called intrusions or attacks, and ...
How to convert an array into JavaScript string?
To convert an array into JavaScript string, use the toString() method. JavaScript array toString() method returns a string representing the source code of the specified array and its elements. You can try to run the following code to convert an array into a string − Live Demo <html> <head> <title>JavaScript Ar...
[ { "code": null, "e": 1255, "s": 1062, "text": "To convert an array into JavaScript string, use the toString() method. JavaScript array toString() method returns a string representing the source code of the specified array and its elements." }, { "code": null, "e": 1329, "s": 1255, ...
Constrain a number within a given range in Arduino
The constrain() function in Arduino helps to, as the name suggests, constrain a number between an upper bound and a lower bound. constrain(val, min, max) where, val is the number to be constrained, min is the lower bound value, and max is the upper bound value If val is less than min, this function will return min. If ...
[ { "code": null, "e": 1191, "s": 1062, "text": "The constrain() function in Arduino helps to, as the name suggests, constrain a number between an upper bound and a lower bound." }, { "code": null, "e": 1216, "s": 1191, "text": "constrain(val, min, max)" }, { "code": null, ...
Rotate by 90 degree | Practice | GeeksforGeeks
Given a square matrix of size N x N. The task is to rotate it by 90 degrees in anti-clockwise direction without using any extra space. Example 1: Input: N = 3 matrix[][] = {{1, 2, 3}, {4, 5, 6} {7, 8, 9}} Output: Rotated Matrix: 3 6 9 2 5 8 1 4 7 Example 2: Input: N = 2 matrix[][] = {{1...
[ { "code": null, "e": 386, "s": 238, "text": "Given a square matrix of size N x N. The task is to rotate it by 90 degrees in anti-clockwise direction without using any extra space. \n\nExample 1:" }, { "code": null, "e": 518, "s": 386, "text": "Input:\nN = 3 \nmatrix[][] = {{1, 2,...
Program to print solid and hollow square patterns in C
In geometry, a square is a regular quadrilateral, which means that it has four equal sides and four equal angles. Solid and Hollow Square will appear as shown below For Solid Square − Accept the Number of Rows from the user to draw the Solid Square For each Row, Print * for each Column to draw the Solid Square For Holl...
[ { "code": null, "e": 1176, "s": 1062, "text": "In geometry, a square is a regular quadrilateral, which means that it has four equal sides and four equal angles." }, { "code": null, "e": 1227, "s": 1176, "text": "Solid and Hollow Square will appear as shown below" }, { "co...
XOR of two Binary Strings
30 Apr, 2021 Given two binary strings A and B of equal lengths, the task is to print a string which is the XOR of Binary Strings A and B.Examples: Input: A = “0001”, B = “0010” Output: 0011Input: A = “1010”, B = “0101” Output: 1111 Approach: The idea is to iterate over both the string character by character and i...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Apr, 2021" }, { "code": null, "e": 188, "s": 52, "text": "Given two binary strings A and B of equal lengths, the task is to print a string which is the XOR of Binary Strings A and B.Examples: " }, { "code": null, "e": 2...
Sum of XOR of all possible subsets
07 Jul, 2022 Given an array arr[] of size n, we need to find the sum of all the values that come from XORing all the elements of the subsets. Input : arr[] = {1, 5, 6} Output : 28 Total Subsets = 23 1 = 1 5 = 5 6 = 6 1 ^ 5 = 4 1 ^ 6 = 7 5 ^ 6 = 3 1 ^ 5 ^ 6 = 2 0(empty subset) Now SUM of all these XORs = 1 + 5 + 6 + 4...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2022" }, { "code": null, "e": 184, "s": 54, "text": "Given an array arr[] of size n, we need to find the sum of all the values that come from XORing all the elements of the subsets. " }, { "code": null, "e": 474, ...
Find all the numbers in a string using regular expression in Python
29 Dec, 2020 Given a string str containing numbers and alphabets, the task is to find all the numbers in str using regular expression. Examples: Input: abcd11gdf15hnnn678hh4Output: 11 15 678 4 Input: 1abcd133hhe0Output: 1 133 0 Approach: The idea is to use Python re library to extract the sub-strings from the given str...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2020" }, { "code": null, "e": 150, "s": 28, "text": "Given a string str containing numbers and alphabets, the task is to find all the numbers in str using regular expression." }, { "code": null, "e": 160, "s": 15...
Logging in Python
29 Dec, 2021 Logging is a means of tracking events that happen when some software runs. Logging is important for software developing, debugging, and running. If you don’t have any logging record and your program crashes, there are very few chances that you detect the cause of the problem. And if you detect the cause, i...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Dec, 2021" }, { "code": null, "e": 519, "s": 54, "text": "Logging is a means of tracking events that happen when some software runs. Logging is important for software developing, debugging, and running. If you don’t have any logging...
Write you own Power without using multiplication(*) and division(/) operators
11 Jun, 2022 Method 1 (Using Nested Loops)We can calculate power by using repeated addition. For example to calculate 5^6. 1) First 5 times add 5, we get 25. (5^2) 2) Then 5 times add 25, we get 125. (5^3) 3) Then 5 times add 125, we get 625 (5^4) 4) Then 5 times add 625, we get 3125 (5^5) 5) Then 5 times add 3125, we ...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jun, 2022" }, { "code": null, "e": 376, "s": 52, "text": "Method 1 (Using Nested Loops)We can calculate power by using repeated addition. For example to calculate 5^6. 1) First 5 times add 5, we get 25. (5^2) 2) Then 5 times add 25,...
Python | Sentiment Analysis using VADER
07 Oct, 2021 Sentiment Analysis is the process of ‘computationally’ determining whether a piece of writing is positive, negative or neutral. It’s also known as opinion mining, deriving the opinion or attitude of a speaker.Why sentiment analysis? Business: In marketing field companies use it to develop their strategie...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Oct, 2021" }, { "code": null, "e": 289, "s": 54, "text": "Sentiment Analysis is the process of ‘computationally’ determining whether a piece of writing is positive, negative or neutral. It’s also known as opinion mining, deriving th...
How to create footer to stay at the bottom of a Web page?
30 Jul, 2021 To create a footer to stay at the bottom of a web page We can fix the position of it at the bottom of the webpage so that, if you scroll down that webpage you can still view the footer from any position at the page.To make a footer fixed at the bottom of the webpage, you could use position: fixed. Syntax: ...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jul, 2021" }, { "code": null, "e": 353, "s": 54, "text": "To create a footer to stay at the bottom of a web page We can fix the position of it at the bottom of the webpage so that, if you scroll down that webpage you can still view ...
Node.js Process unhandledPromiseRejection Event
03 Nov, 2021 The process is the global object in Node.js that keeps track of and contains all the information of the particular node.js process that is executing at a particular time on the machine. The unhandledRejection event is emitted whenever a promise rejection is not handled. NodeJS warns the console about Unhan...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Nov, 2021" }, { "code": null, "e": 214, "s": 28, "text": "The process is the global object in Node.js that keeps track of and contains all the information of the particular node.js process that is executing at a particular time on th...
Voice Assistant using python
13 Jun, 2022 As we know Python is a suitable language for scriptwriters and developers. Let’s write a script for Voice Assistant using Python. The query for the assistant can be manipulated as per the user’s need. Speech recognition is the process of converting audio into text. This is commonly used in voice assistants...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 620, "s": 54, "text": "As we know Python is a suitable language for scriptwriters and developers. Let’s write a script for Voice Assistant using Python. The query for the assistant can be manipulat...
How to create a Queue in C#
18 Feb, 2019 Queue() Constructor is used to initializes a new instance of the Queue class which will be empty, and will have the default initial capacity, and uses the default growth factor. Queue represents a first-in, first out collection of object. It is used when you need first-in, first-out access of items. When y...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2019" }, { "code": null, "e": 556, "s": 28, "text": "Queue() Constructor is used to initializes a new instance of the Queue class which will be empty, and will have the default initial capacity, and uses the default growth facto...
C fopen() function with Examples
04 Sep, 2021 Pre-requisite: Basics of File Handling in CThe fopen() method in C is a library function that is used to open a file to perform various operations which include reading, writing etc. along with various modes. If the file exists then the particular file is opened else a new file is created. Syntax: FILE *f...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Sep, 2021" }, { "code": null, "e": 345, "s": 54, "text": "Pre-requisite: Basics of File Handling in CThe fopen() method in C is a library function that is used to open a file to perform various operations which include reading, writ...
Delete a column from a Pandas DataFrame
17 Jan, 2022 Deletion is one of the primary operations when it comes to data analysis. Very often we see that a particular attribute in the data frame is not at all useful for us while working on a specific analysis, rather having it may lead to problems and unnecessary change in the prediction. For example, if we want...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 576, "s": 28, "text": "Deletion is one of the primary operations when it comes to data analysis. Very often we see that a particular attribute in the data frame is not at all useful for us while wor...
Protected variable in Python
10 Jan, 2020 Prerequisites: Underscore ( _ ) in Python A Variable is an identifier that we assign to a memory location which is used to hold values in a computer program. Variables are named locations of storage in the program. Based on access specification, variables can be public, protected and private in a class. Pr...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jan, 2020" }, { "code": null, "e": 70, "s": 28, "text": "Prerequisites: Underscore ( _ ) in Python" }, { "code": null, "e": 333, "s": 70, "text": "A Variable is an identifier that we assign to a memory location wh...
HTML DOM getElementById() Method
25 Nov, 2021 The getElementById() method returns the elements that have given an ID which is passed to the function. This function is a widely used HTML DOM method in web designing to change the value of any particular element or get a particular element. If the passed ID to the function does not exist then it returns ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Nov, 2021" }, { "code": null, "e": 542, "s": 52, "text": "The getElementById() method returns the elements that have given an ID which is passed to the function. This function is a widely used HTML DOM method in web designing to cha...
Solving f(n)= (1) + (2*3) + (4*5*6) ... n using Recursion
06 Jul, 2022 Example : Input : 2 Output: 7 Series: (1) + (2*3) Input : 4 Output: 5167 Series: (1) + (2*3) + (4*5*6) + (7*8*9*10) C++ C Java Python3 C# PHP Javascript // CPP Program to print the solution// of the series f(n)= (1) + (2*3)// + (4*5*6) ... n using recursion#include<bits/stdc++.h>using namespace st...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 65, "s": 52, "text": " Example : " }, { "code": null, "e": 173, "s": 65, "text": "Input : 2\nOutput: 7\nSeries: (1) + (2*3)\n\nInput : 4\nOutput: 5167\nSeries: (1) + (2*3) + (4...
Python | Initialize a dictionary with only keys from a list
15 Feb, 2019 Given a List, the task is to create a dictionary with only keys by using given list as keys. Let’s see the different methods we can do this task. Method #1 : By iterating through list # Python code to initialize a dictionary# with only keys from a list # List of keyskeyList = ["Paras", "Jain", "Cyware"] ...
[ { "code": null, "e": 53, "s": 25, "text": "\n15 Feb, 2019" }, { "code": null, "e": 146, "s": 53, "text": "Given a List, the task is to create a dictionary with only keys by using given list as keys." }, { "code": null, "e": 199, "s": 146, "text": "Let’s see th...
How to save files using a File Chooser in JavaFX?
Using JavaFX file chooser, you can open files browse through them and save the files. The class javafx.stage.FileChooser represents a file chooser, you can open a file dialog open single or multiple files using this. You can create a file chooser in your application by instantiating this class. The showSaveDialog() met...
[ { "code": null, "e": 1358, "s": 1062, "text": "Using JavaFX file chooser, you can open files browse through them and save the files. The class javafx.stage.FileChooser represents a file chooser, you can open a file dialog open single or multiple files using this. You can create a file chooser in you...
C++ ios Library - Uppercase Function
It is used to sets the uppercase format flag for the str stream. When the uppercase format flag is set, uppercase (capital) letters are used instead of lowercase for representations on output operations involving stream-generated letters, like some hexadecimal representations and numerical base prefixes. Following is t...
[ { "code": null, "e": 2909, "s": 2603, "text": "It is used to sets the uppercase format flag for the str stream. When the uppercase format flag is set, uppercase (capital) letters are used instead of lowercase for representations on output operations involving stream-generated letters, like some hexa...
How can Tensorflow be used to test, reset the model and load the latest checkpoint?
Tensorflow is a machine learning framework that is provided by Google. It is an open−source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. It has optimization techniques that help in performing complicated ...
[ { "code": null, "e": 1653, "s": 1062, "text": "Tensorflow is a machine learning framework that is provided by Google. It is an open−source framework used in conjunction with Python to implement algorithms, deep learning applications and much more. It is used in research and for production purposes. ...
String Matching With FuzzyWuzzy. This tutorial will go over how to match... | by Jason Wong | Towards Data Science
Tutorial for Matching Sequences With the FuzzyWuzzy Library This tutorial will go over how to match strings by their similarity. FuzzyWuzzy can save you ample amounts of time during the data science process by providing tools such as the Levenshtein distance calculation. Along with examples, I will also include some he...
[ { "code": null, "e": 232, "s": 172, "text": "Tutorial for Matching Sequences With the FuzzyWuzzy Library" }, { "code": null, "e": 538, "s": 232, "text": "This tutorial will go over how to match strings by their similarity. FuzzyWuzzy can save you ample amounts of time during the ...
Tryit Editor v3.7
HTML form elements Tryit: input element
[ { "code": null, "e": 29, "s": 10, "text": "HTML form elements" } ]
Introduction to Graph Neural Networks with DeepWalk | by Mohit Mayank | Towards Data Science
Graph Neural Networks are the current hot topic [1]. And this interest is surely justified as GNNs are all about latent representation of the graph in vector space. Representing an entity as a vector is nothing new. There are many examples like word2vec and Gloves embeddings in NLP which transforms a word into a vector...
[ { "code": null, "e": 1055, "s": 172, "text": "Graph Neural Networks are the current hot topic [1]. And this interest is surely justified as GNNs are all about latent representation of the graph in vector space. Representing an entity as a vector is nothing new. There are many examples like word2vec ...
Different ways to represent N as sum of K non-zero integers - GeeksforGeeks
11 Aug, 2021 Given N and K. The task is to find out how many different ways there are to represent N as the sum of K non-zero integers. Examples: Input: N = 5, K = 3 Output: 6 The possible combinations of integers are: ( 1, 1, 3 ) ( 1, 3, 1 ) ( 3, 1, 1 ) ( 1, 2, 2 ) ( 2, 2, 1 ) ( 2, 1, 2 ) Input: N = 10, K = 4 Output:...
[ { "code": null, "e": 24935, "s": 24907, "text": "\n11 Aug, 2021" }, { "code": null, "e": 25058, "s": 24935, "text": "Given N and K. The task is to find out how many different ways there are to represent N as the sum of K non-zero integers." }, { "code": null, "e": 250...
ASP.NET Core - Configuration
In this chapter, we will be discussing the configuration related to ASP.NET Core project. In Solution Explorer, you will see the Startup.cs file. If you have worked with previous versions of ASP.NET Core, you will probably expect to see a global.asax file, which was one place where you could write codes to execute duri...
[ { "code": null, "e": 2814, "s": 2461, "text": "In this chapter, we will be discussing the configuration related to ASP.NET Core project. In Solution Explorer, you will see the Startup.cs file. If you have worked with previous versions of ASP.NET Core, you will probably expect to see a global.asax fi...
Add elements to a Dictionary in Javascript
Now we'll create the put method that'll allow us to put key-value pairs on the dictionary. Now using this we'll implement the put method. Note that JS has objects that act quite like dictionaries. We can just set the container's key property to value. put(key, value) { this.container[key] = value; } You can test th...
[ { "code": null, "e": 1200, "s": 1062, "text": "Now we'll create the put method that'll allow us to put key-value pairs on the dictionary. Now using this we'll implement the put method." }, { "code": null, "e": 1315, "s": 1200, "text": "Note that JS has objects that act quite like...
How to stop the execution of a function with JavaScript?
To stop the execution of a function in JavaScript, use the clearTimeout() method. This function call clears any timer set by the setTimeout() functions. You can try to run the following code to learn how to work with clearTimeout() method in JavaScript. <html> <head> <title>JavaScript clearTimeout() method</ti...
[ { "code": null, "e": 1215, "s": 1062, "text": "To stop the execution of a function in JavaScript, use the clearTimeout() method. This function call clears any timer set by the setTimeout() functions." }, { "code": null, "e": 1316, "s": 1215, "text": "You can try to run the follow...
How To Scrape the Dark Web. Scraping the Dark Web using Python... | by Mitchell Telatnik | Towards Data Science
To most users, Google is the gateway to exploring the internet. However, the deep web contains pages that cannot be indexed by Google. Within this space, lies the dark web — anonymized websites, often called hidden services, dealing in criminal activity from drugs to hacking to human trafficking. Website URLs on the da...
[ { "code": null, "e": 469, "s": 171, "text": "To most users, Google is the gateway to exploring the internet. However, the deep web contains pages that cannot be indexed by Google. Within this space, lies the dark web — anonymized websites, often called hidden services, dealing in criminal activity f...
Distinct strings with odd and even changes allowed - GeeksforGeeks
07 Mar, 2022 Given an array of lower case strings, the task is to find the number of strings that are distinct. Two strings are distinct if, on applying the following operations on one string, the second string cannot be formed. A character on the odd index can be swapped with another character on the odd index only....
[ { "code": null, "e": 25162, "s": 25134, "text": "\n07 Mar, 2022" }, { "code": null, "e": 25380, "s": 25162, "text": "Given an array of lower case strings, the task is to find the number of strings that are distinct. Two strings are distinct if, on applying the following operation...
Python program to communicate between parent and child process using the pipe.
Using fork is the easiest way to create child process.fork () is part of the os standard Python library. Here, we solve this task by using of pipe(). For passing information from one process to another pipe() is used. For two way communication two pipes can be use, one for each direction because pipe() is unidirectiona...
[ { "code": null, "e": 1167, "s": 1062, "text": "Using fork is the easiest way to create child process.fork () is part of the os standard Python library." }, { "code": null, "e": 1385, "s": 1167, "text": "Here, we solve this task by using of pipe(). For passing information from one...
Deep learning on a combination of time series and tabular data. | by Manish Chablani | Towards Data Science
We often times find ourself in a situation where we have combination of different features that we want to leverage in our model. The input data to your model is a mix of time series and tabular data. Architecting a deep learning model to work well in this scenario is an interesting problem. One example scenario is: Yo...
[ { "code": null, "e": 340, "s": 47, "text": "We often times find ourself in a situation where we have combination of different features that we want to leverage in our model. The input data to your model is a mix of time series and tabular data. Architecting a deep learning model to work well in this...
Chain Code for 2D Line - GeeksforGeeks
06 Sep, 2021 Chain code is a lossless compression technique used for representing an object in images. The co-ordinates of any continuous boundary of an object can be represented as a string of numbers where each number represents a particular direction in which the next point on the connected line is present. One poin...
[ { "code": null, "e": 25302, "s": 25274, "text": "\n06 Sep, 2021" }, { "code": null, "e": 25742, "s": 25302, "text": "Chain code is a lossless compression technique used for representing an object in images. The co-ordinates of any continuous boundary of an object can be represent...
Operating Systems | Set 3 - GeeksforGeeks
17 Jun, 2021 Following questions have been asked in GATE CS exam. 1. Suppose the time to service a page fault is on the average 10 milliseconds, while a memory access takes 1 microsecond. Then a 99.99% hit ratio results in average memory access time of (GATE CS 2000) (a) 1.9999 milliseconds (b) 1 millisecond (c) 9.999...
[ { "code": null, "e": 28186, "s": 28158, "text": "\n17 Jun, 2021" }, { "code": null, "e": 28240, "s": 28186, "text": "Following questions have been asked in GATE CS exam. " }, { "code": null, "e": 28532, "s": 28240, "text": "1. Suppose the time to service a pag...
Changing Column in MySQL from int to double?
To change the column in MySQL from int to double you need to use ALTER TABLE command. The syntax is as follows: ALTER TABLE yourTableName modify column yourColumnName DOUBLE NOT NULL; If you want NULL value then remove NOT NULL from the above syntax. The syntax is as follows: ALTER TABLE yourTableName modify column you...
[ { "code": null, "e": 1148, "s": 1062, "text": "To change the column in MySQL from int to double you need to use ALTER TABLE command." }, { "code": null, "e": 1174, "s": 1148, "text": "The syntax is as follows:" }, { "code": null, "e": 1246, "s": 1174, "text": ...
How to remove gaps between bars in Matplotlib bar chart?
To remove gaps between bars, we can change the align value to center in the argument of bar() method. Create a dictionary called data with two keys, milk and water. Create a dictionary called data with two keys, milk and water. Get the list of keys and values in the dictionay. Get the list of keys and values in the dic...
[ { "code": null, "e": 1164, "s": 1062, "text": "To remove gaps between bars, we can change the align value to center in the argument of bar() method." }, { "code": null, "e": 1227, "s": 1164, "text": "Create a dictionary called data with two keys, milk and water." }, { "co...
Principal Components Analysis (PCA) In Python In Under 5 Minutes | by Wei Hao Khoong | Towards Data Science
Existing knowledge of linear algebra and matrix factorization Python 3 programming proficiency In a nutshell, PCA is arguably the most popular dimensionality reduction algorithm for datasets with a large number of features. It serves to remove highly correlated features and redundant ones, and also trims away noise in ...
[ { "code": null, "e": 108, "s": 46, "text": "Existing knowledge of linear algebra and matrix factorization" }, { "code": null, "e": 141, "s": 108, "text": "Python 3 programming proficiency" }, { "code": null, "e": 376, "s": 141, "text": "In a nutshell, PCA is a...
How to remove an element from an array in Java
Following example shows how to remove an element from array. import java.util.ArrayList; public class Main { public static void main(String[] args) { ArrayList objArray = new ArrayList(); objArray.clear(); objArray.add(0,"0th element"); objArray.add(1,"1st element"); objArray.add(2,"2n...
[ { "code": null, "e": 1124, "s": 1062, "text": "Following example shows how to remove an element from array. " }, { "code": null, "e": 1607, "s": 1124, "text": "import java.util.ArrayList; public class Main {\n public static void main(String[] args) {\n ArrayList objArray =...
ASIN(), ACOS() and ATAN() Function in MariaDB - GeeksforGeeks
01 Oct, 2020 1. ASIN Function :In MariaDB, the ASIN function is used for finding arc sine of a number. In this function, a number will be passed as a parameter and this function will return the arcsine of that number. The function will return valid output only if the number is in the range of -1 to 1, otherwise, it wil...
[ { "code": null, "e": 24304, "s": 24276, "text": "\n01 Oct, 2020" }, { "code": null, "e": 24636, "s": 24304, "text": "1. ASIN Function :In MariaDB, the ASIN function is used for finding arc sine of a number. In this function, a number will be passed as a parameter and this functio...
Sentiment Analysis through LSTMs. Build your own model in less than 50... | by Rohith Gandhi | Towards Data Science
Language bonds humans together. Language acts as a tool for us to convey our thoughts and feelings to another person and with the help of the same tool we are able to understand their thoughts and feelings as well. Most of us start talking from around 18 months old to 2 years. It is not yet completely understood how th...
[ { "code": null, "e": 569, "s": 47, "text": "Language bonds humans together. Language acts as a tool for us to convey our thoughts and feelings to another person and with the help of the same tool we are able to understand their thoughts and feelings as well. Most of us start talking from around 18 m...
ML | Kolmogorov-Smirnov Test - GeeksforGeeks
17 Jan, 2022 Kolmogorov–Smirnov test a very efficient way to determine if two samples are significantly different from each other. It is usually used to check the uniformity of random numbers. Uniformity is one of the most important properties of any random number generator and Kolmogorov–Smirnov test can be used to te...
[ { "code": null, "e": 25655, "s": 25627, "text": "\n17 Jan, 2022" }, { "code": null, "e": 26197, "s": 25655, "text": "Kolmogorov–Smirnov test a very efficient way to determine if two samples are significantly different from each other. It is usually used to check the uniformity of...
Using styled API in ReactJS - GeeksforGeeks
28 Dec, 2020 Styled components in ReactJS is a CSS-in-JS library that can be used for a better UI design. This API allows us to create a styled component and apply all styling properties. For using Styled API in React we need to install styled components. Prerequisites: Basics of ReactJS Already created ReactJS app Ste...
[ { "code": null, "e": 25745, "s": 25717, "text": "\n28 Dec, 2020" }, { "code": null, "e": 25988, "s": 25745, "text": "Styled components in ReactJS is a CSS-in-JS library that can be used for a better UI design. This API allows us to create a styled component and apply all styling ...
Practical SQL: Designing and Creating a Relational Database | by Soner Yıldırım | Towards Data Science
SQL is a programming language that is used by most relational database management systems (RDBMS) to manage data stored in tabular form (i.e. tables). A relational database consists of multiple tables that relate to each other. The relation between tables is formed in the sense of shared columns. There are many differe...
[ { "code": null, "e": 323, "s": 172, "text": "SQL is a programming language that is used by most relational database management systems (RDBMS) to manage data stored in tabular form (i.e. tables)." }, { "code": null, "e": 470, "s": 323, "text": "A relational database consists of m...
Style Rules in CSS
CSS comprises of style rules interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts − Selector - A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc. Property - A property is a type of attrib...
[ { "code": null, "e": 1221, "s": 1062, "text": "CSS comprises of style rules interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts −" }, { "code": null, "e": 1341, "s": 1221, "text": "Selector - A selector ...
Convert a string to uppercase in Julia - uppercase() and uppercasefirst() Methods - GeeksforGeeks
01 Apr, 2020 The uppercase() is an inbuilt function in julia which is used to return a string with all characters converted to uppercase. Syntax: uppercase(s::AbstractString) Parameters: s::AbstractString: Specified string. Returns: It returns a string with all characters converted to uppercase. Example: # Julia progra...
[ { "code": null, "e": 24464, "s": 24436, "text": "\n01 Apr, 2020" }, { "code": null, "e": 24589, "s": 24464, "text": "The uppercase() is an inbuilt function in julia which is used to return a string with all characters converted to uppercase." }, { "code": null, "e": 2...
Tutorial: Data Wrangling and Mapping in R | by Pres Nichols | Towards Data Science
I think I’ve said this before ... but I love maps. Almost everyone uses them, making maps an amazing way of instantly communicating huge amounts of data without worrying about overwhelming your audience. One of my favorite tools for working with spatial data is R. Apart from being great for data wrangling, its broad us...
[ { "code": null, "e": 376, "s": 172, "text": "I think I’ve said this before ... but I love maps. Almost everyone uses them, making maps an amazing way of instantly communicating huge amounts of data without worrying about overwhelming your audience." }, { "code": null, "e": 589, "s": ...
Convert XML to POJO using the Jackson library in Java?
The JSON Jackson is a library for Java. It has very powerful data binding capabilities and provides a framework to serialize custom java objects to JSON and deserialize JSON back to Java object. We can also convert an XML format to the POJO object using the readValue() method of the XmlMapper class. public <T> T readVa...
[ { "code": null, "e": 1363, "s": 1062, "text": "The JSON Jackson is a library for Java. It has very powerful data binding capabilities and provides a framework to serialize custom java objects to JSON and deserialize JSON back to Java object. We can also convert an XML format to the POJO object using...
How to Create a Forest Plot in R? - GeeksforGeeks
04 Jan, 2022 In this article, we will discuss how to create a Forest Plot in the R programming language. A forest plot is also known as a blobbogram. It helps us to visualize estimated results from a certain number of studies together along with the overall results in a single plot. It is extensively used in medical re...
[ { "code": null, "e": 25162, "s": 25134, "text": "\n04 Jan, 2022" }, { "code": null, "e": 25254, "s": 25162, "text": "In this article, we will discuss how to create a Forest Plot in the R programming language." }, { "code": null, "e": 25692, "s": 25254, "text":...